/* Admin task layout. Uses the existing admin-system palette and component tokens. */
body.merchant-admin #overlays .modal{max-height:calc(100dvh - 48px)!important;min-height:0!important}
body.merchant-admin #overlays .modal{border-color:var(--ds-line-strong)!important}
body.merchant-admin #overlays .field>span{font-size:14px!important;line-height:1.5!important;font-weight:550!important}
body.merchant-admin #overlays :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background:var(--ds-surface-2)!important;color:var(--ds-ink)!important;border:1px solid var(--ds-line)!important;font-size:14px!important;caret-color:var(--ds-accent)}
body.merchant-admin #overlays :is(input,select,textarea):focus-visible{outline:2px solid var(--ds-accent);outline-offset:2px}
body.merchant-admin #overlays :is(input,textarea)::placeholder{color:var(--ds-muted);opacity:1}
body.merchant-admin #overlays :is(input[type=checkbox],input[type=radio]){accent-color:var(--ds-accent)}
body.merchant-admin #overlays .modal.inventory-import-modal{width:min(760px,calc(100vw - 48px))!important;max-width:760px!important;max-height:calc(100dvh - 48px)!important;display:flex!important;flex-direction:column;padding:0!important;overflow:hidden!important}
body.merchant-admin #overlays .inventory-import-modal>.modal-head{position:static!important;flex:none;margin:0!important;padding:20px 24px!important;background:var(--ds-surface);border-bottom:1px solid var(--ds-line)}
body.merchant-admin #overlays .inventory-import-modal>form{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px;scroll-padding:20px 0 90px}
body.merchant-admin #overlays .inventory-import-modal .field{margin-bottom:18px}
body.merchant-admin #overlays .inventory-import-modal textarea[name=content]{min-height:150px!important;font-family:var(--ds-font,inherit);tab-size:4}
body.merchant-admin .card-cleanup{border:1px solid var(--ds-line);border-radius:var(--ds-r-sm);margin:0 0 20px;background:var(--ds-surface)}
body.merchant-admin .card-cleanup>summary{cursor:pointer;padding:14px 16px;font-size:15px;font-weight:600;color:var(--ds-ink);min-height:48px}
body.merchant-admin .card-cleanup>summary span{font-size:12px;font-weight:400;margin-left:12px;color:var(--ds-muted)}
body.merchant-admin .card-cleanup>summary:focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}
body.merchant-admin .card-cleanup-body{padding:0 16px 16px}
body.merchant-admin #overlays .card-cleanup-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 16px}
body.merchant-admin #overlays .card-cleanup-tools>.button{width:100%!important;min-width:0!important;min-height:44px!important;padding:8px 6px!important;margin:0!important;font-size:13px!important;line-height:1.5;white-space:normal;border:1px solid var(--ds-line)!important;background:var(--ds-surface)!important;color:var(--ds-ink)!important}
body.merchant-admin #overlays .card-cleanup-tools>.button[aria-pressed=true]{background:var(--ds-ink)!important;color:var(--ds-surface)!important;border-color:var(--ds-ink)!important}
body.merchant-admin #overlays .card-cleanup-tools>.button:hover{border-color:var(--ds-ink)!important}
body.merchant-admin #overlays .card-cleanup-tools>.button:focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}
body.merchant-admin .card-cleanup-duplicates{padding-left:20px;margin:0 0 14px;font-size:13px;line-height:1.8;color:var(--ds-ink);overflow-wrap:anywhere}
body.merchant-admin #overlays .card-cleanup-body .field{min-width:0;margin:0 0 14px;display:flex;flex-direction:column;gap:6px}
body.merchant-admin #overlays .card-cleanup-body .field>span{font-size:13px!important;line-height:1.6}
body.merchant-admin #overlays .card-cleanup-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
body.merchant-admin #overlays .card-cleanup-body [hidden]{display:none!important}
body.merchant-admin #overlays .card-cleanup-body :is(input:not([type=checkbox]),select){width:100%;min-width:0;min-height:42px!important;font-size:14px!important}
body.merchant-admin .card-cleanup-help,body.merchant-admin .card-cleanup-local{font-size:13px!important;line-height:1.7;color:var(--ds-muted);margin:0 0 14px}
body.merchant-admin .card-cleanup-trim{display:flex;align-items:center;gap:8px;font-size:14px;margin:2px 0 12px;min-height:32px;color:var(--ds-ink)}
body.merchant-admin #overlays .card-cleanup-trim input{width:18px;height:18px;flex:none;margin:0}
body.merchant-admin .card-cleanup-actions{display:flex;gap:8px;flex-wrap:wrap}
body.merchant-admin .card-cleanup-status{font-size:13px!important;line-height:1.7;margin:12px 0 0;color:var(--ds-ink)}
body.merchant-admin .card-cleanup-status:empty{display:none}
body.merchant-admin .card-cleanup-result{margin-top:14px}
body.merchant-admin .card-cleanup-result:empty{display:none}
body.merchant-admin .card-cleanup-result .table-wrap{margin:0 0 14px}
body.merchant-admin .card-cleanup-result table{min-width:0;width:100%;table-layout:fixed;font-size:13px}
body.merchant-admin .card-cleanup-result th:first-child{width:64px}
body.merchant-admin .card-cleanup-result td{overflow-wrap:anywhere;white-space:normal}
body.merchant-admin .card-cleanup-result td small{display:block;color:var(--ds-muted);margin-top:4px}
body.merchant-admin .card-cleanup-warning{padding:12px;background:var(--ds-surface-2);color:var(--ds-ink);border:1px solid var(--ds-line-strong);font-size:13px!important;line-height:1.7;margin:0 0 14px}
body.merchant-admin #overlays .inventory-import-modal .modal-actions{position:sticky;bottom:-20px;display:flex;justify-content:flex-end;gap:8px;padding:14px 0 20px;margin:18px 0 -20px;border-top:1px solid var(--ds-line);background:var(--ds-surface);z-index:2}
@media(max-width:800px){
 body.merchant-admin #overlays .modal{max-height:calc(100dvh - 24px)!important}
 body.merchant-admin #overlays :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:16px!important;min-height:44px}
 body.merchant-admin #overlays .modal.inventory-import-modal{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
 body.merchant-admin #overlays .inventory-import-modal>.modal-head{padding:16px!important}
 body.merchant-admin #overlays .inventory-import-modal>form{padding:16px;scroll-padding-top:16px}
 body.merchant-admin .card-cleanup>summary{padding:12px}
 body.merchant-admin .card-cleanup>summary span{display:block;margin:5px 0 0;font-size:12px}
 body.merchant-admin .card-cleanup-body{padding:0 12px 12px}
 body.merchant-admin #overlays .card-cleanup-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.merchant-admin #overlays .card-cleanup-body :is(input:not([type=checkbox]),select){font-size:16px!important;min-height:44px!important}
 body.merchant-admin #overlays .card-cleanup-columns{grid-template-columns:minmax(0,1fr)}
 body.merchant-admin #overlays .inventory-import-modal .button{min-height:44px!important}
 body.merchant-admin #overlays .inventory-import-modal .modal-actions{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;bottom:-16px;padding:12px 0 16px;margin-bottom:-16px}
 body.merchant-admin #overlays .inventory-import-modal .modal-actions>.button{width:100%!important;min-width:0!important;margin:0!important;padding:8px!important;white-space:normal}
 body.merchant-admin .card-cleanup-result th:first-child{width:56px}
 body.merchant-admin .card-cleanup-result :is(th,td){padding:9px 7px!important}
}
body.merchant-admin .merchant-console{grid-template-columns:232px minmax(0,1fr)}
body.merchant-admin .merchant-workspace{width:100%;max-width:none;margin-inline:0;min-width:0}
body.merchant-admin .merchant-content .settings-card-body{max-width:none}
body.merchant-admin .merchant-content .settings-page .field>span{font-size:14px!important;line-height:1.5!important;font-weight:550!important}
body.merchant-admin .merchant-content .seo-geo-hub{padding:16px 0;border:0;border-radius:0;background:transparent;margin-bottom:20px}
body.merchant-admin .merchant-content .seo-geo-hub>.row{align-items:flex-start;gap:12px}
body.merchant-admin .merchant-content .seo-geo-endpoints{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin-top:16px}
body.merchant-admin .merchant-content .seo-endpoint-card{padding:14px 0;border:0;border-bottom:1px solid var(--ds-line);border-radius:0;background:transparent;min-width:0;flex-wrap:wrap}
body.merchant-admin .seo-endpoint-card>div:first-child{flex:1 1 180px}
body.merchant-admin .merchant-content .seo-endpoint-card code{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
body.merchant-admin .merchant-sidebar{padding:22px 14px 14px}
body.merchant-admin .merchant-brand strong{font-size:20px!important}
body.merchant-admin .merchant-brand small{font-size:12px!important;letter-spacing:0}
body.merchant-admin .merchant-store{margin:18px 0 16px;padding:10px;font-size:12px!important}
body.merchant-admin .merchant-nav>details{margin-bottom:10px}
body.merchant-admin .merchant-nav>details>summary{padding:8px 10px;font-size:12px!important;letter-spacing:0;color:#B0B9A5!important;cursor:pointer;min-height:36px}
body.merchant-admin .merchant-nav>details>summary:focus-visible{outline:2px solid #C3E56E;outline-offset:-2px;border-radius:6px}
body.merchant-admin .merchant-nav a{font-size:14px!important;padding:9px 10px!important;min-height:38px;gap:10px}
body.merchant-admin .merchant-sidebar-footer{padding:12px 8px 0}
body.merchant-admin .merchant-sidebar-footer>span{margin-top:10px}
body.merchant-admin .merchant-content{padding:24px!important}
body.merchant-admin .merchant-content>.panel{padding:24px!important;margin-bottom:20px}
body.merchant-admin .merchant-content .toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:0;flex-wrap:wrap}
body.merchant-admin .merchant-content .toolbar h2{margin:0;font-size:24px!important;line-height:1.3;font-weight:650;letter-spacing:0}
body.merchant-admin .merchant-content .toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.merchant-admin .merchant-content .toolbar .button{font-size:13px!important;min-height:40px!important;padding:0 13px!important}
body.merchant-admin .admin-search-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
body.merchant-admin .admin-search-label{font-size:13px;color:var(--ds-muted);white-space:nowrap}
body.merchant-admin .admin-search-row #admin-search{width:320px;max-width:100%;min-width:0;min-height:40px!important;margin:0;font-size:14px!important}
body.merchant-admin .merchant-content .admin-list-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:16px!important;margin:0 0 14px}
body.merchant-admin .admin-list-filters .field{display:flex;flex:1 1 150px;flex-direction:column;min-width:0;max-width:240px;gap:6px;margin:0!important}
body.merchant-admin .merchant-content .admin-list-filters .field>span{font-size:13px!important;font-weight:550;line-height:1.5;color:var(--ds-muted)!important;padding:0}
body.merchant-admin .merchant-content .admin-list-filters select{height:40px!important;min-height:40px!important;font-size:14px!important;padding:0 32px 0 12px;width:100%;min-width:0}
body.merchant-admin .admin-list-filters>.button{min-height:40px!important;flex:0 0 auto;align-self:flex-end}
body.merchant-admin .admin-list-filters[data-tab=products]+p{font-size:13px!important;line-height:1.7!important;margin-block:12px}
@media(min-width:801px){
 body.merchant-admin .merchant-content .admin-list-filters[data-tab=products]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto auto;gap:10px}
 body.merchant-admin .admin-list-filters[data-tab=products] .field{max-width:none}
}
body.merchant-admin .merchant-content :is([data-result-count],.admin-result-summary){font-size:13px!important;color:var(--ds-muted)!important;line-height:1.6;margin:12px 0}
body.merchant-admin .merchant-content .product-bulk-bar[hidden]{display:none!important}
body.merchant-admin .merchant-content .product-bulk-bar{padding:12px 14px;margin:14px 0;gap:12px;flex-wrap:wrap}
body.merchant-admin .product-bulk-actions{display:flex;gap:6px;flex-wrap:wrap}
body.merchant-admin .product-reorder-bar{margin:12px 0 16px!important;padding:10px 12px!important;font-size:12px!important}
body.merchant-admin .merchant-content .table-wrap{margin-top:0}
body.merchant-admin .merchant-content table{line-height:1.6}
body.merchant-admin .merchant-content table thead th{font-size:13px!important;font-weight:600!important;letter-spacing:0!important;padding:12px!important;line-height:1.5!important}
body.merchant-admin .merchant-content table tbody td{font-size:14px!important;line-height:1.6!important}
body.merchant-admin .merchant-content table tbody tr:hover{background:var(--ds-surface-2)!important}
body.merchant-admin .merchant-content table :is(.button,summary){font-size:13px!important}
body.merchant-admin .merchant-content table .button.compact{min-height:34px!important;padding-inline:10px!important}
body.merchant-admin .merchant-content :is(td,dd,.admin-kpi-card strong){font-variant-numeric:tabular-nums}
body.merchant-admin #overlays .product-edit-grid{grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px}
body.merchant-admin #overlays .product-publish-form .field>span{font-size:14px!important;line-height:1.5!important;font-weight:550!important}
body.merchant-admin #overlays .product-publish-form .field :is(input,select,textarea){font-size:14px!important;line-height:1.6!important}
body.merchant-admin #overlays .product-publish-form .field>small{font-size:12px!important;line-height:1.7!important}
body.merchant-admin .merchant-content .actions .button{margin:2px 4px 2px 0}
body.merchant-admin .admin-content-kinds{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--ds-line);padding-bottom:12px;margin-bottom:20px}
body.merchant-admin .admin-content-kinds .button{min-height:40px;background:transparent!important;border-color:transparent!important;color:var(--ds-muted)!important;font-size:14px!important;gap:8px}
body.merchant-admin .admin-content-kinds .button span{font-size:12px!important;font-variant-numeric:tabular-nums;color:inherit!important}
body.merchant-admin .admin-content-kinds .button[aria-pressed=true]{background:var(--ds-surface-2)!important;color:var(--ds-ink)!important;border-color:var(--ds-line)!important}
body.merchant-admin .admin-content-query{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;background:var(--ds-surface-2);padding:16px;border-radius:var(--ds-r-sm)}
body.merchant-admin .admin-content-query .admin-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;flex:1 1 260px;margin:0}
body.merchant-admin .admin-content-query .admin-search-label{grid-column:1/-1}
body.merchant-admin .admin-content-query .admin-search-label{line-height:19.5px}
body.merchant-admin .admin-content-query #admin-search{width:100%;background:var(--ds-surface)!important}
body.merchant-admin .merchant-content .admin-content-query .admin-list-filters{background:transparent!important;border:0!important;padding:0!important;margin:0;flex:1 1 260px}
body.merchant-admin .admin-content-query .field{flex-basis:130px;max-width:none}
body.merchant-admin .admin-content-table{width:100%;min-width:640px;table-layout:fixed}
body.merchant-admin .admin-content-table th:first-child{width:36%}
body.merchant-admin .admin-content-table th:nth-child(2){width:15%}
body.merchant-admin .admin-content-table th:nth-child(3){width:13%}
body.merchant-admin .admin-content-table th:nth-child(4){width:14%}
body.merchant-admin .admin-content-table th:last-child{width:22%}
body.merchant-admin .admin-content-table td{white-space:normal!important;overflow-wrap:anywhere}
body.merchant-admin .admin-content-table td strong{font-size:14px;font-weight:600;color:var(--ds-ink)}
body.merchant-admin .content-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.merchant-admin .admin-content-table .content-delete-button{color:var(--ds-danger,#b42318)!important;min-width:36px;padding:0 8px!important}
body.merchant-admin .admin-content-table .content-delete-button:hover{background:var(--ds-surface-2)!important}
body.merchant-admin .content-record-id{display:block;font-size:12px;color:var(--ds-muted);margin-top:4px}
body.merchant-admin .admin-list-empty{padding:40px 20px;text-align:center}
body.merchant-admin .admin-list-empty h3{font-size:17px!important;margin:0 0 8px}
body.merchant-admin .admin-list-empty p{font-size:14px;color:var(--ds-muted);margin:0 0 18px}
body.merchant-admin .admin-order-task-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
body.merchant-admin .admin-order-task-filters .button{min-height:40px;white-space:normal}
body.merchant-admin .admin-order-task-filters .button[aria-pressed=true]{background:var(--ds-ink)!important;border-color:var(--ds-ink)!important;color:var(--ds-surface)!important}
body.merchant-admin .admin-order-quick-tabs{flex-wrap:wrap;overflow:visible;gap:6px;margin-bottom:18px}
body.merchant-admin .admin-order-quick-tabs .button{min-height:36px!important}
body.merchant-admin .order-filter-primary-bar{align-items:flex-end;gap:12px;flex-wrap:wrap}
body.merchant-admin .order-filter-primary-bar .order-search-field{flex-basis:280px}
body.merchant-admin .order-date-shortcuts,body.merchant-admin .order-submit-group{gap:6px;flex-wrap:wrap}
body.merchant-admin .delivery-task-summary{background:var(--ds-surface-2);padding:16px;border-radius:var(--ds-r-sm);margin-bottom:18px}
body.merchant-admin .delivery-task-summary h3{font-size:18px!important;margin:0 0 6px}
body.merchant-admin .delivery-task-summary p{margin:0;color:var(--ds-muted);font-size:14px;line-height:1.7}
body.merchant-admin .product-editor-overview{padding:12px 24px;background:var(--ds-surface-2);border-bottom:1px solid var(--ds-line)}
body.merchant-admin .product-editor-overview>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body.merchant-admin .product-editor-overview strong{font-size:17px;color:var(--ds-ink);overflow-wrap:anywhere}
body.merchant-admin .product-editor-overview dl{display:flex;gap:8px 24px;flex-wrap:wrap;margin:8px 0 4px}
body.merchant-admin .product-editor-overview dl>div{display:flex;align-items:baseline;gap:8px}
body.merchant-admin .product-editor-overview dt{font-size:12px;color:var(--ds-muted)}
body.merchant-admin .product-editor-overview dd{font-size:15px;font-weight:600;margin:0;font-variant-numeric:tabular-nums}
body.merchant-admin .product-editor-overview small{font-size:12px;color:var(--ds-muted)}
body.merchant-admin .product-editor-intro{display:none}
body.merchant-admin .product-sku-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
body.merchant-admin .form-section-heading{display:block!important}
body.merchant-admin .form-section-heading h3{font-size:17px!important;line-height:1.5;margin:0 0 6px}
body.merchant-admin .form-section-heading p{font-size:13px!important;line-height:1.7;margin:0;color:var(--ds-muted)}
body.merchant-admin #overlays .modal.article-editor{max-width:960px!important;width:calc(100vw - 48px)!important}
body.merchant-admin .article-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:28px}
body.merchant-admin .article-editor-layout :is(section,aside){min-width:0}
body.merchant-admin .article-editor-layout h3{font-size:16px!important;line-height:1.5;margin:0 0 18px}
body.merchant-admin .article-editor-layout .field{display:flex;flex-direction:column;gap:7px;margin:0 0 20px}
body.merchant-admin .article-editor-layout .field>span{font-size:13px!important;color:var(--ds-ink-2);font-weight:550}
body.merchant-admin .article-editor-layout :is(input,select,textarea){font-size:14px!important;width:100%;min-width:0}
body.merchant-admin #overlays .modal.article-editor .article-editor-layout textarea{min-height:300px!important;resize:vertical;line-height:1.8}
body.merchant-admin .article-editor-layout small,body.merchant-admin .article-translation-note{font-size:12px!important;line-height:1.7;color:var(--ds-muted)}
body.merchant-admin .article-editor .modal-actions{position:sticky;bottom:0;background:var(--ds-surface);padding-top:16px;margin-top:12px;border-top:1px solid var(--ds-line);display:flex;gap:8px;align-items:center;justify-content:flex-end}
body.merchant-admin .article-editor .modal-actions>span{margin-right:auto;font-size:12px;color:var(--ds-muted)}
@media(max-width:1100px){
 body.merchant-admin .merchant-console{grid-template-columns:216px minmax(0,1fr)}
 body.merchant-admin .merchant-content{padding:20px!important}
 body.merchant-admin .merchant-content>.panel{padding:20px!important}
 body.merchant-admin .admin-content-table{min-width:620px}
}
@media(max-width:800px){
 body.merchant-admin .merchant-console{display:block}
 body.merchant-admin .merchant-sidebar{width:272px;padding:20px 14px;left:-288px}
 body.merchant-admin .merchant-sidebar.is-open{left:0}
 body.merchant-admin .merchant-nav a{min-height:44px;font-size:15px!important}
 body.merchant-admin .merchant-content{padding:16px 12px!important}
 body.merchant-admin .merchant-content>.panel{padding:18px 14px!important}
 body.merchant-admin .merchant-content .settings-savebar{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;padding:12px!important;bottom:0}
 body.merchant-admin .merchant-content .settings-savebar>span{min-width:0;font-size:12px;line-height:1.5}
 body.merchant-admin .merchant-content .settings-savebar small{display:none}
 body.merchant-admin .merchant-content .settings-savebar .button{width:auto!important;flex:0 0 auto;min-height:44px!important;font-size:14px!important;padding-inline:14px!important}
 body.merchant-admin .merchant-content .settings-nav{scrollbar-width:none;scroll-padding-inline:8px}
 body.merchant-admin .merchant-content .seo-geo-endpoints{grid-template-columns:minmax(0,1fr);gap:0}
 body.merchant-admin .merchant-content .toolbar{margin-bottom:16px;gap:12px}
 body.merchant-admin .merchant-content .toolbar h2{font-size:22px!important}
 body.merchant-admin #overlays .product-edit-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 body.merchant-admin #overlays .product-publish-form .field :is(input,select,textarea){font-size:16px!important;min-height:44px}
 body.merchant-admin .merchant-content .toolbar .button{min-height:44px!important}
 body.merchant-admin .admin-search-row{align-items:stretch;gap:7px}
 body.merchant-admin .admin-search-label{flex-basis:100%}
 body.merchant-admin .admin-search-row #admin-search{flex:1 1 180px;width:auto;min-height:44px!important;font-size:16px!important}
 body.merchant-admin .merchant-content .admin-list-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px!important;gap:12px 10px}
 body.merchant-admin .merchant-content .admin-list-filters>.button{width:100%!important;min-width:0!important;margin:0!important}
 body.merchant-admin .merchant-content .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.merchant-admin .admin-kpi-card{min-width:0}
 body.merchant-admin .admin-list-filters .field{flex:1 1 calc(50% - 10px);max-width:none}
 body.merchant-admin .merchant-content .admin-list-filters select{height:44px!important;min-height:44px!important;font-size:16px!important}
 body.merchant-admin .admin-list-filters>.button{min-height:44px!important}
 body.merchant-admin .admin-content-kinds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:16px;margin-bottom:16px}
 body.merchant-admin .admin-content-kinds .button{justify-content:space-between;min-height:44px}
 body.merchant-admin .admin-content-query{padding:12px;gap:14px}
 body.merchant-admin .admin-content-query .admin-search-row{flex-basis:100%}
 body.merchant-admin .merchant-content .admin-content-query .admin-list-filters{flex-basis:100%;gap:10px;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
 body.merchant-admin .admin-content-query .admin-list-filters .field{grid-column:1/-1}
 body.merchant-admin .merchant-content .admin-content-query .admin-list-filters>.button{width:100%!important;margin:0!important;min-width:0!important}
 body.merchant-admin .admin-content-panel .toolbar{flex-wrap:nowrap!important;align-items:center!important}
 body.merchant-admin .admin-content-panel .toolbar h2{flex:1!important;width:auto!important}
 body.merchant-admin .admin-content-panel .toolbar-actions{width:auto!important}
 body.merchant-admin .admin-content-table{display:block;min-width:0!important;table-layout:auto}
 body.merchant-admin .admin-content-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.merchant-admin .admin-content-table tbody{display:block}
 body.merchant-admin .admin-content-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border-bottom:1px solid var(--ds-line)}
 body.merchant-admin .merchant-content .admin-content-table td{display:block;padding:0!important;border:0!important;min-width:0}
 body.merchant-admin .admin-content-table td:first-child,body.merchant-admin .admin-content-table td:last-child{grid-column:1/-1}
 body.merchant-admin .admin-content-table td:not(:first-child):not(:last-child)::before{content:attr(data-label);display:block;font-size:12px;color:var(--ds-muted);margin-bottom:4px}
 body.merchant-admin .admin-content-table td.actions{display:flex!important;gap:6px;flex-wrap:wrap}
 body.merchant-admin .admin-content-table .button{min-height:44px!important}
 body.merchant-admin .admin-content-table .content-delete-button{min-width:44px}
 body.merchant-admin .order-filter-primary-bar .order-search-field{flex-basis:100%}
 body.merchant-admin .order-date-shortcuts{display:flex;width:100%}
 body.merchant-admin .order-submit-group{display:flex;margin-left:0}
 body.merchant-admin .product-editor-overview{padding:10px 18px}
 body.merchant-admin .product-editor-overview dl{gap:4px 16px;margin:6px 0 2px}
 body.merchant-admin .product-editor-overview strong{font-size:15px}
 body.merchant-admin .product-editor-overview dd{font-size:14px}
 body.merchant-admin #overlays .modal.article-editor{width:calc(100vw - 24px)!important}
 body.merchant-admin .article-editor-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 body.merchant-admin #overlays .modal.article-editor .article-editor-layout textarea{min-height:220px!important}
 body.merchant-admin .article-editor-layout :is(input,select,textarea){font-size:16px!important;min-height:44px}
 body.merchant-admin .article-editor .modal-actions{flex-wrap:wrap}
 body.merchant-admin .article-editor .modal-actions .button{min-height:44px}
}
/* Product columns retain readable widths; compact screens use stacked rows. */
body.merchant-admin .merchant-content .table-wrap:has(>.product-manager-table){container:product-table / inline-size}
body.merchant-admin .merchant-content .table-wrap>.product-manager-table{display:block;min-width:1104px!important;width:100%!important}
body.merchant-admin .product-manager-table :is(thead,tbody){display:block}
body.merchant-admin .product-manager-table tr{display:grid;grid-template-columns:76px minmax(240px,1.5fr) minmax(110px,.8fr) minmax(210px,1.5fr) 124px 124px 220px}
body.merchant-admin .product-manager-table :is(th,td){min-width:0;align-content:center}
body.merchant-admin .product-manager-table td[colspan]{grid-column:1/-1}
body.merchant-admin .product-manager-table th:nth-child(1){width:76px!important}
body.merchant-admin .product-manager-table .product-selection-cell{width:76px!important;min-width:76px!important}
body.merchant-admin .product-manager-table .admin-cat-cell{white-space:normal!important;overflow-wrap:anywhere}
body.merchant-admin .product-manager-table .admin-prod-status-cell{display:flex;align-items:center;gap:8px;min-width:0}
body.merchant-admin .product-manager-table .admin-prod-status-cell .button{border:1px solid var(--ds-line)!important;border-radius:4px}
body.merchant-admin .merchant-content .product-manager-table :is(th:last-child,td.actions){width:220px!important;min-width:220px!important}
body.merchant-admin .merchant-content .product-manager-table td{padding-block:12px!important}
body.merchant-admin .merchant-content .product-manager-table .admin-product-title{min-width:0!important;max-width:none!important;align-items:center}
body.merchant-admin .product-manager-table .admin-product-title>div{min-width:0}
body.merchant-admin .product-manager-table .admin-product-title strong{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.5!important}
body.merchant-admin .product-manager-table .admin-product-image{width:64px!important;height:44px!important;flex:0 0 64px;object-fit:cover}
body.merchant-admin .product-manager-table .product-sku-summary{min-width:0;overflow-wrap:anywhere}
body.merchant-admin .product-manager-table :is(.product-sku-summary,.product-sku-summary span,.readiness-label){white-space:normal;overflow-wrap:anywhere}
body.merchant-admin .product-row-readiness{margin:4px 0}
body.merchant-admin .product-row-readiness summary{cursor:pointer;min-height:32px;align-content:center;font-size:12px;color:var(--ds-muted)}
body.merchant-admin .product-row-readiness summary:focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}
body.merchant-admin .product-row-readiness .readiness-label{margin:4px 0 8px;font-size:12px!important;line-height:1.6}
body.merchant-admin .product-manager-table .product-row-actions{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
body.merchant-admin .product-manager-table .product-row-actions .button{flex:none;white-space:nowrap;margin:0!important}
body.merchant-admin .product-manager-table .product-more{display:inline-block;margin:0 0 0 8px;vertical-align:middle}
body.merchant-admin .product-manager-table .product-more[open]{display:block;margin:8px 0 0}
body.merchant-admin .product-manager-table .product-delete-button{color:var(--ds-danger,#b42318)!important;width:32px!important;padding:0!important}
body.merchant-admin .product-manager-table .product-delete-button:hover{background:var(--ds-surface-2)!important}
body.merchant-admin .category-sort-status{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0;color:var(--ds-ink-2);font-size:13px}
body.merchant-admin .category-manager-table{width:100%;min-width:680px;table-layout:fixed}
body.merchant-admin .category-manager-table th:first-child{width:72px!important}
body.merchant-admin .category-manager-table th:nth-child(3){width:180px}
body.merchant-admin .category-manager-table th:nth-child(4){width:72px}
body.merchant-admin .merchant-content .category-manager-table :is(th:last-child,td.actions){width:184px!important;min-width:184px!important}
body.merchant-admin .category-manager-table .category-row-title{display:flex;align-items:center;gap:12px;min-width:0}
body.merchant-admin .category-row-title strong{min-width:0;overflow-wrap:anywhere;white-space:normal}
body.merchant-admin .category-row-title .icon{width:32px;height:32px;flex:none}
body.merchant-admin .category-manager-table .product-drag-handle{margin:0;min-width:44px}
body.merchant-admin .category-manager-table .product-drag-handle .icon{width:22px;height:22px;pointer-events:none;user-select:none;-webkit-user-drag:none}
body.merchant-admin .category-manager-table tr.is-dragging{opacity:.4}
body.merchant-admin .category-manager-table tr.drop-before>td{box-shadow:inset 0 3px var(--ds-accent,var(--bm-accent))}
body.merchant-admin .category-manager-table tr.drop-after>td{box-shadow:inset 0 -3px var(--ds-accent,var(--bm-accent))}
@media(min-width:1100px){
 body.merchant-admin .category-manager-table :is(thead,tbody){display:block}
 body.merchant-admin .category-manager-table tr{display:grid;grid-template-columns:72px minmax(220px,420px) 180px 72px minmax(184px,1fr)}
 body.merchant-admin .category-manager-table :is(th,td){width:auto!important;min-width:0!important;align-content:center}
 body.merchant-admin .merchant-content .category-manager-table :is(th:last-child,td.actions){width:auto!important;min-width:0!important;text-align:left!important}
 body.merchant-admin .category-manager-table td[colspan]{grid-column:1/-1}
}
@media(max-width:700px){
 body.merchant-admin .merchant-content .table-wrap>.category-manager-table{display:block;min-width:0!important;table-layout:auto}
 body.merchant-admin .category-manager-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.merchant-admin .category-manager-table tbody{display:block}
 body.merchant-admin .category-manager-table tr{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 12px;padding:16px 0;border-bottom:1px solid var(--ds-line)}
 body.merchant-admin .merchant-content .category-manager-table td{display:block;padding:0!important;border:0!important;min-width:0!important;width:auto!important}
 body.merchant-admin .category-manager-table td:first-child{grid-column:1;grid-row:1/4;align-self:center}
 body.merchant-admin .category-manager-table td[colspan]{grid-column:1/-1;grid-row:auto}
 body.merchant-admin .category-manager-table td:nth-child(2){grid-column:2;grid-row:1}
 body.merchant-admin .category-manager-table td:nth-child(3){grid-column:2;grid-row:2}
 body.merchant-admin .category-manager-table td:nth-child(4){display:none}
 body.merchant-admin .merchant-content .category-manager-table td.actions{position:static;grid-column:2;grid-row:3;display:flex;flex-wrap:wrap;gap:8px}
 body.merchant-admin .category-manager-table td.actions .button{min-height:44px!important;margin:0!important}
 body.merchant-admin .category-manager-table tr.drop-before{box-shadow:inset 0 3px var(--bm-accent)}
 body.merchant-admin .category-manager-table tr.drop-after{box-shadow:inset 0 -3px var(--bm-accent)}
 body.merchant-admin .category-manager-table tr:is(.drop-before,.drop-after)>td{box-shadow:none}
}
body.merchant-admin .product-delete-dialog{line-height:1.8;overflow-wrap:anywhere}
body.merchant-admin .merchant-content .admin-audit-table{min-width:860px;table-layout:fixed}
body.merchant-admin .admin-audit-table th:first-child{width:170px}
body.merchant-admin .admin-audit-table th:nth-child(2){width:160px}
body.merchant-admin .admin-audit-table th:nth-child(3){width:180px}
body.merchant-admin .admin-audit-table th:nth-child(4){width:180px}
body.merchant-admin .admin-audit-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
body.merchant-admin .merchant-content .admin-audit-table :is(th:last-child,td.actions){width:auto!important;min-width:170px!important}
body.merchant-admin .admin-audit-detail summary{cursor:pointer;white-space:nowrap;min-height:36px;display:flex;align-items:center;color:var(--ds-accent,var(--bm-accent))}
body.merchant-admin .admin-audit-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:12px;line-height:1.6;text-align:left;margin:8px 0 0}
@media(min-width:801px){
 body.merchant-admin .merchant-sidebar{position:sticky;box-shadow:none}
 body.merchant-admin .merchant-topbar [aria-controls="merchant-navigation"]{display:none!important}
}
body.merchant-admin .security-workspace .stats .stat strong{font-size:20px!important;line-height:1.5!important}
@media(max-width:600px){
 body.merchant-admin .security-workspace .stats{grid-template-columns:minmax(0,1fr)!important;gap:8px}
 body.merchant-admin .security-workspace .stats .stat{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:14px!important}
 body.merchant-admin .security-workspace .stats .stat span{flex:0 0 auto;font-size:13px!important}
 body.merchant-admin .security-workspace .stats .stat strong{min-width:0;font-size:16px!important;line-height:1.5!important;text-align:right;overflow-wrap:anywhere}
}
body.merchant-admin .product-delete-dialog .modal-actions{display:flex;gap:8px;justify-content:flex-end}
body.merchant-admin .inventory-overview{border-block:1px solid var(--ds-line);margin-block:16px;padding:0}
body.merchant-admin .inventory-overview>summary{cursor:pointer;padding:14px 0;min-height:48px;font-size:15px;font-weight:600;color:var(--ds-ink)}
body.merchant-admin .inventory-overview>summary span{font-weight:400;margin-left:8px;display:inline-block}
body.merchant-admin .inventory-overview .admin-sku-matrix{margin-bottom:16px}
body.merchant-admin .inventory-sku-picker{min-width:220px;max-width:100%;flex:1 1 320px}
body.merchant-admin .inventory-sku-picker :is(input,select){width:100%;min-width:0}
body.merchant-admin #notification-queue .table-wrap{overflow-x:auto}
body.merchant-admin #settings-panel-queue>header{margin-bottom:12px;padding-bottom:8px}
body.merchant-admin #notification-queue .notification-readiness{display:grid;gap:8px;margin-bottom:16px}
body.merchant-admin #notification-queue .notification-readiness .notice{margin:0;padding:8px 12px}
body.merchant-admin .inventory-overview-empty{grid-column:1/-1;margin:0;padding:12px 0}
body.merchant-admin #notification-queue table{min-width:1000px;table-layout:fixed}
body.merchant-admin #notification-queue :is(th,td){white-space:normal;overflow-wrap:anywhere;vertical-align:top}
body.merchant-admin #notification-queue :is(th,td):nth-child(1){width:190px}
body.merchant-admin #notification-queue :is(th,td):nth-child(2){width:210px}
body.merchant-admin #notification-queue :is(th,td):nth-child(3){width:105px}
body.merchant-admin #notification-queue :is(th,td):nth-child(4){width:76px}
body.merchant-admin #notification-queue :is(th,td):nth-child(5){width:180px}
body.merchant-admin #notification-queue :is(th,td):last-child{width:80px!important;min-width:80px!important}
body.merchant-admin .notification-pagination{justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:16px}
@container product-table (min-width:601px) and (max-width:1104px){
 body.merchant-admin .merchant-content .table-wrap>.product-manager-table{display:block;min-width:0!important}
 body.merchant-admin .product-manager-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.merchant-admin .product-manager-table tr{display:grid;grid-template-columns:52px minmax(180px,1.5fr) minmax(170px,1fr) 124px;gap:8px 16px;padding:16px 8px;border-bottom:1px solid var(--ds-line)}
 body.merchant-admin .merchant-content .product-manager-table td{padding:0!important;border:0!important;width:auto!important;min-width:0!important}
 body.merchant-admin .product-manager-table .product-selection-cell{grid-column:1;grid-row:1/3;align-self:center}
 body.merchant-admin .product-manager-table td:nth-child(2){grid-column:2;grid-row:1}
 body.merchant-admin .product-manager-table td:nth-child(3){grid-column:2;grid-row:2;font-size:12px!important;color:var(--ds-muted)}
 body.merchant-admin .product-manager-table td:nth-child(4){grid-column:3;grid-row:1/3}
 body.merchant-admin .product-manager-table td:nth-child(5){grid-column:4;grid-row:1}
 body.merchant-admin .product-manager-table td:nth-child(6){grid-column:4;grid-row:2}
 body.merchant-admin .merchant-content .product-manager-table td.actions{position:static;grid-column:2/-1;grid-row:3;display:flex!important;align-items:center;justify-content:flex-end;gap:12px;width:auto!important;min-width:0!important;padding-top:10px!important;border-top:1px solid var(--ds-line)!important}
 body.merchant-admin .product-manager-table .product-more{margin:0}
}
@container product-table (max-width:600px){
 body.merchant-admin .merchant-content .table-wrap>.product-manager-table{display:block;min-width:0!important;table-layout:auto}
 body.merchant-admin .product-manager-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.merchant-admin .product-manager-table tbody{display:block}
 body.merchant-admin .product-manager-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--ds-line)}
 body.merchant-admin .merchant-content .product-manager-table td{display:block!important;padding:0!important;border:0!important;min-width:0!important;width:auto!important}
 body.merchant-admin .product-manager-table td:nth-child(2){grid-column:1/-1;grid-row:1}
 body.merchant-admin .product-manager-table td:nth-child(1){grid-column:1/-1;grid-row:2;display:flex!important;align-items:center;gap:8px}
 body.merchant-admin .product-manager-table td:nth-child(3)::before{content:'分类';display:block;font-size:12px;color:var(--ds-muted);margin-bottom:4px}
 body.merchant-admin .merchant-content .product-manager-table td.actions{position:static;grid-column:1/-1;display:flex!important;width:auto!important;min-width:0!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
 body.merchant-admin .product-manager-table .product-more{min-width:140px;margin:0}
 body.merchant-admin .product-manager-table .product-more summary{min-height:44px;display:flex;align-items:center}
 body.merchant-admin .merchant-content .product-manager-table td.actions .button{min-height:44px!important;height:44px!important}
 body.merchant-admin .product-manager-table .product-delete-button{width:44px!important}
}
