/* Shop management mirrors the reviewed list, detail modal and settings drawer. */
.portal-ui [data-panel=overview]{--sm-blue:#165dff;color:#1d2129;font-size:14px}
body.portal-ui [data-panel=overview]>.stats,body.portal-ui [data-panel=overview]>.quick-entry,body.portal-ui [data-panel=overview]>.shop-panel{display:none!important}
body.portal-ui .sm-page-title{display:flex;align-items:center;gap:14px;margin:0 0 18px}body.portal-ui .sm-page-title strong{font-size:16px}body.portal-ui .sm-page-title span{font-size:12px;color:#86909c}
body.portal-ui .sm-filter{display:flex;align-items:flex-end;gap:14px;background:#fff;border:1px solid #e5e9f1;border-radius:7px;padding:14px;margin-bottom:12px;box-shadow:0 2px 10px #183b6810}
body.portal-ui .sm-filter label{display:grid;gap:8px;color:#6b778c;font-size:14px}body.portal-ui .sm-filter select{width:144px}body.portal-ui .sm-filter input{width:194px}body.portal-ui .sm-filter input,body.portal-ui .sm-filter select,body.portal-ui .sm-dialog input,body.portal-ui .sm-dialog textarea,body.portal-ui .sm-dialog select{border:1px solid transparent;background:#f2f3f5;border-radius:5px;min-height:32px;padding:6px 11px;color:#1d2129;font:inherit;box-sizing:border-box;box-shadow:none}
body.portal-ui .sm-filter input::placeholder,body.portal-ui .sm-dialog input::placeholder,body.portal-ui .sm-dialog textarea::placeholder{color:#a9aeb8}body.portal-ui .sm-filter :is(input,select):focus,body.portal-ui .sm-dialog :is(input,textarea,select):focus{outline:1px solid #165dff;background:white}
body.portal-ui .sm-filter button,body.portal-ui .sm-dialog button,body.portal-ui .sm-table-card button{font:inherit;border:0;box-shadow:none;border-radius:4px;min-height:32px;cursor:pointer;padding:5px 12px;background:#f2f3f5;color:#4e5969;display:inline-flex;align-items:center;justify-content:center;gap:5px}
body.portal-ui .sm-filter button.sm-primary,body.portal-ui .sm-dialog button.sm-primary{background:#165dff;color:#fff;box-shadow:0 3px 8px #165dff25}body.portal-ui .sm-filter button.sm-link{background:transparent;color:#165dff}body.portal-ui .sm-filter svg,body.portal-ui .sm-dialog svg,body.portal-ui .sm-table-card svg{width:16px;height:16px;flex-shrink:0}body.portal-ui .sm-filter button:disabled,body.portal-ui .sm-dialog button:disabled,body.portal-ui .sm-table-card button:disabled{opacity:.4;cursor:not-allowed}
body.portal-ui .sm-table-card{border:1px solid #e5e6eb;border-radius:7px;overflow:hidden;background:#fff;box-shadow:0 2px 9px #1d49720a}body.portal-ui .sm-table-scroll{overflow:auto}body.portal-ui .sm-table-card table{border-collapse:collapse;width:100%;text-align:left;font-size:13px;table-layout:auto}body.portal-ui .sm-table-card th{font-size:12px;font-weight:600;color:#4e5969;background:#f7f8fa;height:36px;border-bottom:1px solid #e5e6eb;padding:0 16px;white-space:nowrap}body.portal-ui .sm-table-card th:first-child{width:30%}body.portal-ui .sm-table-card th button{padding:0;background:transparent;font-size:12px;font-weight:600;gap:7px;min-height:30px}body.portal-ui .sm-sort{font-size:9px;color:#a9aeb8;white-space:pre;line-height:6px}body.portal-ui .sm-table-card td{padding:13px 16px;border-bottom:1px solid #f2f3f5;color:#4e5969}body.portal-ui .sm-operation{width:125px;text-align:center}body.portal-ui .sm-shop-name{display:flex;align-items:center;gap:8px;min-width:0}body.portal-ui .sm-shop-name strong{font-size:13px;color:#1d2129}body.portal-ui .sm-shop-name small{display:block;font-size:12px;color:#4e5969;margin-top:4px}body.portal-ui .sm-platform{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;font-weight:800;font-size:13px;color:white;background:#165dff;flex-shrink:0}body.portal-ui .sm-platform-pdd{background:#f53f3f}body.portal-ui .sm-platform-weixin{background:#00b99e}body.portal-ui .sm-platform-taobao{background:#ff7d00}
body.portal-ui .sm-actions{display:flex;gap:8px;justify-content:center}body.portal-ui .sm-table-card button.sm-detail-action{color:#00b42a;background:transparent}body.portal-ui .sm-table-card button.sm-settings-action,body.portal-ui .sm-dialog button.sm-settings-action{color:#ff7d00;background:transparent}body.portal-ui .sm-table-card button.sm-delete-action,body.portal-ui .sm-dialog button.sm-delete-action{color:#f53f3f;background:transparent}body.portal-ui .sm-actions button{padding:3px;min-height:26px;width:28px}body.portal-ui .sm-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;min-height:66px;padding:12px 20px;box-sizing:border-box;background:#fcfcff;font-size:12px;color:#4e5969}body.portal-ui .sm-pagination span{margin-right:10px}body.portal-ui .sm-pagination button{background:transparent;width:28px;min-height:28px;padding:0}body.portal-ui .sm-pagination .sm-current{background:#165dff;color:#fff;box-shadow:0 3px 8px #165dff25}body.portal-ui .sm-empty{text-align:center!important;color:#86909c!important;padding:44px 16px!important}body.portal-ui .sm-empty strong{font-weight:500}body.portal-ui .sm-empty p{margin-bottom:0;font-size:12px}
body.portal-ui .sm-dialog{font-family:Arial,'Microsoft YaHei',sans-serif;font-size:14px;color:#1d2129;padding:0;border:0;border-radius:4px;width:min(1024px,calc(100vw - 40px));max-width:none;max-height:90vh;box-shadow:0 12px 40px #0002;background:#fff;overflow:auto}body.portal-ui .sm-dialog::backdrop{background:#1d21299c}body.portal-ui .sm-dialog header{position:sticky;top:0;background:#fff;z-index:2;display:flex;align-items:center;justify-content:center;min-height:54px;border-bottom:1px solid #e5e6eb;padding:0 50px}body.portal-ui .sm-dialog header h2{font-size:16px;font-weight:500;text-align:center;line-height:1.5;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.portal-ui .sm-dialog header button{position:absolute;right:14px;top:11px;background:transparent;font-size:22px;font-weight:300;min-height:30px;padding:0 8px}body.portal-ui .sm-dialog .sm-body{padding:24px}body.portal-ui .sm-dialog footer{display:flex;gap:12px;justify-content:flex-end;padding:16px 20px;border-top:1px solid #e5e6eb;background:#fff}body.portal-ui .sm-dialog footer[hidden]{display:none}body.portal-ui .sm-dialog fieldset{border:0;margin:0;padding:0;min-width:0}body.portal-ui .sm-dialog label{display:grid;gap:10px;color:#4e5969}body.portal-ui .sm-dialog textarea{resize:vertical;width:100%;line-height:1.55;border-radius:0}body.portal-ui .sm-dialog input:disabled{color:#c9cdd4}body.portal-ui .sm-summary{display:grid;grid-template-columns:1fr repeat(4,1fr);gap:5px;background:#fafbff;padding:6px;border:1px solid #f2f3f5;border-radius:8px;margin-bottom:12px}body.portal-ui .sm-summary>.sm-shop-name{padding:8px;min-width:150px}body.portal-ui .sm-metric{display:grid;gap:5px;padding:8px;border:1px solid #f2f3f5;border-radius:7px;align-content:center}body.portal-ui .sm-metric strong{font-size:18px}body.portal-ui .sm-metric span{color:#4e5969}body.portal-ui .sm-products-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}body.portal-ui .sm-products-heading strong{font-size:14px}body.portal-ui .sm-products-heading p{font-size:12px;margin:5px 0 0}body.portal-ui .sm-product-search{display:flex;gap:8px}body.portal-ui .sm-product-search>div{display:flex;align-items:center;border:1px solid #165dff;border-radius:5px;overflow:hidden}body.portal-ui .sm-product-search input{background:#fff;width:166px;min-width:100px;border-radius:0}body.portal-ui .sm-product-search button{padding:7px;min-height:32px}body.portal-ui .sm-product-table th:first-child{width:17%}body.portal-ui .sm-product-table th:nth-child(2){width:37%}body.portal-ui .sm-product-table th:nth-child(3){width:30%}body.portal-ui .sm-product-table td{padding:10px 16px}body.portal-ui .sm-product-table img,body.portal-ui .sm-product-summary img{width:48px;height:48px;object-fit:cover;border-radius:7px}body.portal-ui .sm-image-empty{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:6px;background:#f2f3f5;color:#a9aeb8;font-size:10px}body.portal-ui .sm-product-title{color:#1d2129!important;font-weight:500;line-height:1.65}body.portal-ui .sm-table-card button.sm-copy{padding:3px;min-height:20px;background:transparent;color:#86909c}body.portal-ui .sm-copy svg{width:12px;height:12px}body.portal-ui .sm-product{width:min(848px,calc(100vw - 32px))}body.portal-ui .sm-product-summary{display:flex;align-items:center;gap:8px;padding:12px;background:#f7f8fc;border-radius:7px;border:1px solid #f2f3f5;margin-bottom:14px;font-size:12px}body.portal-ui .sm-product-summary>div{flex:1;min-width:0}body.portal-ui .sm-product-summary small{display:block;margin-top:6px;color:#4e5969}body.portal-ui .sm-product-summary>span{color:#4e5969;white-space:nowrap}body.portal-ui .sm-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px}body.portal-ui .sm-two-cols input{width:100%;border-radius:0}body.portal-ui .sm-product form label{margin-bottom:12px}body.portal-ui .sm-product form label:last-child{margin-bottom:0}
body.portal-ui .sm-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(580px,100vw);height:100vh;max-height:none;border-radius:0;overflow:hidden}body.portal-ui .sm-drawer[open]{display:flex;flex-direction:column}body.portal-ui .sm-drawer header{justify-content:flex-start;padding-left:18px;flex-shrink:0}body.portal-ui .sm-drawer .sm-body{padding:14px 18px;overflow:auto;flex:1}body.portal-ui .sm-drawer footer{flex-shrink:0}body.portal-ui .sm-settings-summary{display:flex;align-items:center;justify-content:space-between;background:#f7f9ff;border:1px solid #f2f3f5;border-radius:7px;padding:15px;margin-bottom:16px}body.portal-ui .sm-settings-summary>span{font-size:12px;background:#f2f3f5;padding:4px 8px}body.portal-ui .sm-rule-heading{display:flex;gap:12px;justify-content:space-between;margin-bottom:12px}body.portal-ui .sm-rule-heading>div:first-child{flex:1}body.portal-ui .sm-rule-heading>div:last-child{display:flex;align-items:flex-start;gap:8px;flex-shrink:0}body.portal-ui .sm-rule-heading button{font-size:13px;padding:6px 10px}body.portal-ui .sm-rule-heading h3,body.portal-ui .sm-clear h3{font-size:14px;margin:0 0 8px}body.portal-ui .sm-rule-heading p{font-size:12px;line-height:1.8;margin:0;color:#4e5969}body.portal-ui .sm-rule{border:1px solid #d9e3f9;box-shadow:0 0 0 1px #165dff05;border-radius:10px;padding:16px;background:#f8fbff;margin-bottom:12px}body.portal-ui .sm-rule-head{display:flex;gap:8px;align-items:center}body.portal-ui .sm-rule-number{display:flex;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;background:#e8efff;color:#165dff;font-size:12px;flex-shrink:0}body.portal-ui .sm-rule-head select{flex:1;min-width:0;background:#fff;border-color:#e5e6eb}body.portal-ui .sm-rule-head button{padding:3px;min-height:24px;width:20px;background:transparent}body.portal-ui .sm-rule .sm-keyword-label{display:flex;gap:16px;align-items:flex-start;padding-left:32px;margin-top:14px;font-size:12px}body.portal-ui .sm-keyword-label>div{flex:1;min-width:0;background:white;border:1px solid #e5e6eb;border-radius:5px;padding:4px}body.portal-ui .sm-keyword-label input{background:transparent;width:100%;padding:5px 10px;min-height:28px;font-size:13px}body.portal-ui .sm-rule p{font-size:12px;margin:12px 0 0 32px;line-height:1.6}body.portal-ui .sm-tags{display:flex;flex-wrap:wrap;gap:4px}body.portal-ui .sm-tags:empty{display:none}body.portal-ui .sm-tags>span{background:#e8efff;color:#165dff;padding:1px 4px;border-radius:3px}body.portal-ui .sm-tags button{background:transparent;min-height:20px;padding:0 4px;color:inherit}body.portal-ui .sm-rule-bottom{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}body.portal-ui .sm-rule-count{font-size:12px;color:#86909c}body.portal-ui .sm-clear{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border:1px solid #f3dede;border-radius:8px;background:#fff8f8}body.portal-ui .sm-clear p{font-size:12px;margin:0;color:#4e5969;line-height:1.6}body.portal-ui .sm-clear button,body.portal-ui .sm-dialog button.sm-danger{color:#f53f3f;background:#fff0f0;flex-shrink:0}body.portal-ui .sm-confirm{width:min(440px,calc(100vw - 30px))}body.portal-ui .sm-confirm .sm-body{line-height:1.8}body.portal-ui .sm-dialog-feedback,body.portal-ui #sm-feedback{color:#00a870;font-size:13px;line-height:1.6}body.portal-ui .sm-error{color:#f53f3f!important}
@media(max-width:760px){body.portal-ui .sm-filter{flex-wrap:wrap;gap:10px}body.portal-ui .sm-filter label{flex:1}body.portal-ui .sm-filter input,body.portal-ui .sm-filter select{width:100%;min-width:120px}body.portal-ui .sm-table-card table{min-width:700px}body.portal-ui .sm-dialog .sm-body{padding:14px}body.portal-ui .sm-summary{grid-template-columns:repeat(2,1fr)}body.portal-ui .sm-summary>.sm-shop-name{grid-column:1/-1}body.portal-ui .sm-products-heading{flex-wrap:wrap}body.portal-ui .sm-products-heading p{line-height:1.6}body.portal-ui .sm-product-summary>span{display:none}body.portal-ui .sm-two-cols{grid-template-columns:1fr}body.portal-ui .sm-rule-heading{flex-wrap:wrap}body.portal-ui .sm-rule-heading>div:first-child{flex-basis:100%}body.portal-ui .sm-product-table table{min-width:630px}body.portal-ui .sm-dialog{max-height:94vh}body.portal-ui .sm-drawer{max-height:none}}

body.portal-ui .sm-dialog{padding:0;border:0;border-radius:4px;animation:none;transform:none;font-weight:400;line-height:1.5}
body.portal-ui .sm-dialog::backdrop{animation:none;background:#1d21299c}
body.portal-ui .sm-drawer{border-radius:0}
body.portal-ui .sm-dialog label{margin-top:0}
body.portal-ui .sm-dialog p{font-size:12px!important;font-weight:400!important;line-height:1.8!important}
body.portal-ui .sm-dialog small{font-size:12px!important;font-weight:400!important}
body.portal-ui #workspace[data-view="overview"] [data-panel="overview"]{display:block}
body.portal-ui #workspace[data-view="overview"] .sm-page-title{margin:0 0 18px}
body.portal-ui #workspace[data-view="overview"] .sm-filter{margin-bottom:12px}
body.portal-ui .sm-dialog .sm-rule-head select{width:0;min-width:0}
body.portal-ui .sm-table-card .sm-platform{object-fit:contain;background:transparent}
body.portal-ui .sm-empty-add{display:flex;justify-content:center;padding:14px}

body.portal-ui:has(#workspace[data-view="overview"]:not([hidden])) [data-ai-service-assistant]{display:none}
body.portal-ui .sm-empty-add[hidden]{display:none}

/* Local review: the shop list and its dialogs share the overview's visual system. */
body.portal-ui #workspace[data-view="overview"] .workspace-main{max-width:none;padding:0 24px 28px;background:#f5f7fb}
body.portal-ui #workspace[data-view="overview"] .workspace-scroll{padding:0;overflow:visible}
body.portal-ui #workspace[data-view="overview"] :is(.context-bar,#workspace-page-heading){display:none}
body.portal-ui #workspace[data-view="overview"] .sm-page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:88px;padding:16px 2px;margin:0}
body.portal-ui .sm-page-title h1{margin:0;font-size:20px;font-weight:700;line-height:1.5;color:#222934}
body.portal-ui .sm-page-title p{margin:5px 0 0;color:#69788f;font-size:12px!important;line-height:1.5!important;font-weight:500!important}
body.portal-ui .sm-page-title [data-sm-refresh]{flex:none}
body.portal-ui #workspace[data-view="overview"] .sm-filter{align-items:flex-end;gap:14px;padding:16px;margin:0 0 14px;border:1px solid #e4eaf3;border-radius:14px;box-shadow:0 2px 6px rgb(31 57 99 / 3%)}
body.portal-ui .sm-filter label{gap:7px;font-size:12px!important;font-weight:500!important;line-height:1.5!important;color:#69788f}
body.portal-ui .sm-filter select{width:164px}
body.portal-ui .sm-filter input{width:240px}
body.portal-ui :is(.sm-filter,.sm-dialog) :is(input,select,textarea){min-height:36px;padding:8px 11px;border:1px solid #dce4ef;border-radius:9px;background:#f8fafc;color:#34445c;font-size:13px;margin:0;line-height:1.5}
body.portal-ui :is(.sm-filter,.sm-dialog) :is(input,select,textarea):hover:not(:disabled){border-color:#b7cdf8}
body.portal-ui :is(.sm-filter,.sm-dialog) :is(input,select,textarea):disabled{color:#7d899b;background:#f1f4f8}
body.portal-ui :is(.sm-filter,.sm-dialog,.sm-table-card) button{min-height:36px;border:1px solid #dce4ef;border-radius:10px;padding:7px 12px;background:#fff;color:#52617a;font-size:13px;font-weight:500;line-height:20px;transition:background-color .15s,border-color .15s,color .15s}
body.portal-ui :is(.sm-filter,.sm-dialog,.sm-table-card) button:hover:not(:disabled){border-color:#b7cdf8;background:#eff5ff;color:#245ecf}
body.portal-ui :is(.sm-filter,.sm-dialog) button.sm-primary{background:#2b68e8;border-color:#2b68e8;color:#fff;box-shadow:0 2px 5px rgb(43 104 232 / 12%)}
body.portal-ui :is(.sm-filter,.sm-dialog) button.sm-primary:hover:not(:disabled){background:#225bd3;border-color:#225bd3;color:#fff}
body.portal-ui .sm-filter button.sm-link{border-color:transparent;background:transparent;color:#69788f}
body.portal-ui #sm-list{border:1px solid #e4eaf3;border-radius:14px;background:#fff;box-shadow:0 2px 6px rgb(31 57 99 / 3%)}
body.portal-ui .sm-table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:14px 18px;border-bottom:1px solid #f0f2f6}
body.portal-ui .sm-table-heading h2{margin:0;font-size:16px;font-weight:700;line-height:24px;color:#222934}
body.portal-ui .sm-table-heading>span{padding:3px 9px;border-radius:6px;background:#f4f6fa;color:#738198;font-size:12px;font-variant-numeric:tabular-nums}
body.portal-ui .sm-table-card table{font-variant-numeric:tabular-nums}
body.portal-ui .sm-table-card th{height:44px;padding:7px 18px;border-color:#edf1f6;background:#f8fafc;color:#69788f;font-size:12px}
body.portal-ui .sm-table-card th button{min-height:28px;padding:0;border:0;border-radius:5px;background:transparent;color:inherit;font-size:12px;box-shadow:none}
body.portal-ui .sm-table-card th button:hover{background:transparent;color:#2864db}
body.portal-ui .sm-table-card th[aria-sort]:not([aria-sort="none"]){color:#2864db}
body.portal-ui .sm-table-card th[aria-sort]:not([aria-sort="none"]) .sm-sort{color:#2864db}
body.portal-ui .sm-table-card td{padding:15px 18px;border-color:#edf1f6;color:#52617a;font-size:13px;vertical-align:middle}
body.portal-ui .sm-table-card tbody tr:hover{background:#f8faff}
body.portal-ui #sm-list td:not(:first-child):not(:last-child){font-weight:600;color:#34445c}
body.portal-ui #sm-list .sm-shop-name{gap:12px;align-items:center}
body.portal-ui #sm-list .sm-platform{width:32px;height:32px;border-radius:9px}
body.portal-ui .sm-shop-identity{min-width:0}
body.portal-ui .sm-shop-identity strong{display:block;max-width:32ch;font-size:13px;font-weight:600;color:#34445c;overflow-wrap:anywhere;line-height:1.5}
body.portal-ui #workspace[data-view="overview"] #sm-list .sm-shop-identity small{margin-top:3px;font-size:11px!important;font-weight:400!important;line-height:1.5!important;color:#7c899d}
body.portal-ui .sm-actions{gap:7px}
body.portal-ui .sm-actions button{width:34px;min-height:34px;padding:7px;border-radius:9px}
body.portal-ui .sm-table-card button.sm-detail-action{color:#2b68e8;border-color:#dfebff;background:#f0f5ff}
body.portal-ui .sm-table-card button.sm-settings-action,body.portal-ui .sm-dialog button.sm-settings-action{color:#61728b;border-color:#e5eaf2;background:#f7f9fc}
body.portal-ui .sm-table-card button.sm-delete-action,body.portal-ui .sm-dialog button.sm-delete-action{color:#c56b70;border-color:transparent;background:transparent}
body.portal-ui :is(.sm-table-card,.sm-dialog) button.sm-delete-action:hover:not(:disabled){color:#c6424c;border-color:#f1cfd3;background:#fff3f4}
body.portal-ui .sm-pagination{min-height:62px;padding:14px 18px;gap:8px;border-top:1px solid #edf1f6;background:#fff;color:#7b8799}
body.portal-ui .sm-pagination>span{margin-right:auto;font-size:12px}
body.portal-ui .sm-pagination button{width:32px;min-height:32px;padding:0;border:1px solid transparent;border-radius:8px;background:#f7f9fc;color:#69788f}
body.portal-ui .sm-pagination .sm-current{background:#edf4ff;color:#2b68e8;border-color:#dce8fc;box-shadow:none;font-weight:600}
body.portal-ui .sm-empty{padding:40px 18px!important;color:#7c899d!important}
body.portal-ui .sm-empty strong{display:block;color:#52617a;font-size:14px;font-weight:600}
body.portal-ui .sm-empty p{margin:7px 0 0;font-size:12px!important;font-weight:400!important;line-height:1.7!important;color:#8290a4}
body.portal-ui .sm-empty-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 14px;border:1px solid #e2ebf9;border-radius:16px;background:#f0f5fd;color:#7e9ac5}
body.portal-ui .sm-table-card .sm-empty-icon svg{width:26px;height:26px}
body.portal-ui .sm-empty-add{padding:18px 0 0}
body.portal-ui .sm-empty-add #prepare{min-height:36px;padding:8px 16px;border:1px solid #2b68e8;border-radius:10px;background:#2b68e8;color:white;box-shadow:0 2px 5px rgb(43 104 232 / 12%);font-size:13px}
body.portal-ui .sm-empty-add #prepare:hover{background:#225bd3;border-color:#225bd3}
body.portal-ui #sm-feedback:not([hidden]){padding:11px 14px;margin:0 0 14px;border:1px solid #cfe7dd;border-radius:10px;background:#f2faf6;color:#268267;font-size:13px}
body.portal-ui #sm-feedback.sm-error{border-color:#f0d2d5;background:#fff6f6;color:#b84d55!important}
body.portal-ui .sm-dialog{border:1px solid #e4eaf3;border-radius:16px;background:#fff;color:#34445c;box-shadow:0 20px 65px rgb(29 48 80 / 22%)}
body.portal-ui .sm-dialog::backdrop{background:rgb(24 38 61 / 42%)}
body.portal-ui .sm-dialog header{justify-content:flex-start;min-height:60px;padding:14px 60px 14px 22px;border-bottom-color:#edf1f6}
body.portal-ui .sm-dialog header h2{font-size:16px;font-weight:650;text-align:left;color:#222934}
body.portal-ui .sm-dialog header button{right:16px;top:12px;width:34px;min-height:34px;padding:0;border:1px solid transparent;border-radius:10px;background:#f6f8fc;color:#7c899d;font-size:22px}
body.portal-ui .sm-dialog .sm-body{padding:20px 22px}
body.portal-ui .sm-dialog footer{padding:14px 22px;border-color:#edf1f6;gap:10px}
body.portal-ui .sm-dialog .sm-summary{grid-template-columns:minmax(180px,1.25fr) repeat(4,minmax(0,1fr));gap:10px;padding:0;border:0;background:transparent;border-radius:0;margin-bottom:22px}
body.portal-ui .sm-dialog .sm-summary>.sm-shop-name{min-width:0;padding:12px;border:1px solid #dce8fc;border-radius:12px;background:#edf4ff;gap:9px}
body.portal-ui .sm-dialog .sm-summary .sm-shop-name>div{min-width:0}
body.portal-ui .sm-dialog .sm-summary .sm-shop-name strong{overflow-wrap:anywhere;line-height:1.6}
body.portal-ui .sm-dialog .sm-summary .sm-shop-name small{overflow-wrap:anywhere;color:#7084a4}
body.portal-ui .sm-dialog .sm-metric{gap:5px;padding:14px 12px;border:1px solid #e4eaf3;border-radius:12px;background:#fff}
body.portal-ui .sm-dialog .sm-metric strong{font-size:24px;line-height:1.3;color:#34445c;font-variant-numeric:tabular-nums}
body.portal-ui .sm-dialog .sm-metric span{font-size:12px;color:#7b8799;white-space:nowrap}
body.portal-ui .sm-dialog .sm-products-heading{margin-bottom:14px;gap:16px}
body.portal-ui .sm-dialog .sm-products-heading strong{font-size:15px;color:#34445c}
body.portal-ui .sm-dialog .sm-products-heading p{margin-top:5px;color:#7b8799}
body.portal-ui .sm-dialog .sm-product-search>div{border:1px solid #dce4ef;border-radius:10px;background:#fff}
body.portal-ui .sm-dialog .sm-product-search input{min-height:36px;border:0;border-radius:9px 0 0 9px;background:transparent;width:194px}
body.portal-ui .sm-dialog .sm-product-search button{border-radius:8px;padding:6px 9px}
body.portal-ui .sm-dialog [data-refresh-products]{white-space:nowrap}
body.portal-ui .sm-dialog .sm-product-table{border-color:#e4eaf3;border-radius:12px;box-shadow:none}
body.portal-ui .sm-dialog .sm-product-summary{padding:14px;gap:12px;border-color:#e4eaf3;border-radius:12px;background:#f7f9fd;margin-bottom:18px}
body.portal-ui .sm-dialog .sm-two-cols{gap:14px;margin-bottom:14px;align-items:start}
body.portal-ui .sm-dialog .sm-two-cols label{margin-bottom:0;align-content:start}
body.portal-ui .sm-dialog .sm-two-cols input{border-radius:9px}
body.portal-ui .sm-dialog .sm-product-summary strong{overflow-wrap:anywhere}
body.portal-ui .sm-dialog label{gap:7px;font-size:12px!important;font-weight:500!important;color:#69788f}
body.portal-ui .sm-dialog textarea{border-radius:9px;line-height:1.7;background:#fff}
body.portal-ui .sm-drawer{width:min(580px,100vw);border-radius:16px 0 0 16px;max-height:none}
body.portal-ui .sm-drawer header{padding-left:20px}
body.portal-ui .sm-drawer .sm-body{padding:18px 20px}
body.portal-ui .sm-dialog .sm-settings-summary{padding:14px;border:1px solid #dce8fc;border-radius:12px;background:#edf4ff;margin-bottom:20px;gap:10px}
body.portal-ui .sm-dialog .sm-settings-summary>span{border-radius:7px;padding:5px 8px;background:#e1ebfc;color:#5475a7;white-space:nowrap;font-size:11px}
body.portal-ui .sm-dialog .sm-rule-heading{gap:12px;margin-bottom:14px;flex-wrap:wrap}
body.portal-ui .sm-dialog .sm-rule-heading>div:first-child{flex-basis:100%}
body.portal-ui .sm-dialog .sm-rule-heading>div:last-child{flex-wrap:wrap}
body.portal-ui .sm-dialog .sm-rule-heading h3,body.portal-ui .sm-dialog .sm-clear h3{font-size:14px;color:#34445c}
body.portal-ui .sm-dialog .sm-rule-heading p{color:#7b8799}
body.portal-ui .sm-dialog .sm-rule{padding:14px;border:1px solid #e0e9f8;border-radius:12px;background:#f8faff;box-shadow:none}
body.portal-ui .sm-dialog .sm-rule-head{gap:7px}
body.portal-ui .sm-dialog .sm-rule-head button{width:26px;min-height:30px;padding:3px;border-color:transparent;background:transparent}
body.portal-ui .sm-dialog .sm-rule-number{border-radius:8px;background:#e6efff;color:#2b68e8}
body.portal-ui .sm-dialog .sm-rule-head select{min-height:36px;border-radius:8px}
body.portal-ui .sm-dialog .sm-keyword-label>div{padding:5px;border-color:#dce4ef;border-radius:9px}
body.portal-ui .sm-dialog .sm-keyword-label input{border:0;background:transparent;border-radius:6px;font-size:12px;min-height:32px;padding:5px 7px}
body.portal-ui .sm-dialog .sm-tags>span{border-radius:6px;background:#e8efff;color:#2b68e8;font-size:12px}
body.portal-ui .sm-dialog .sm-tags button{min-height:20px;border:0;padding:0 4px;border-radius:4px;background:transparent}
body.portal-ui .sm-dialog .sm-clear{border-color:#f2dde0;border-radius:12px;background:#fffbfb;padding:14px}
body.portal-ui .sm-dialog .sm-clear button,body.portal-ui .sm-dialog button.sm-danger{border-color:#edcfd3;background:#fff4f5;color:#bd4854}
body.portal-ui .sm-dialog button.sm-danger:hover:not(:disabled){background:#ffe9ec;border-color:#dfb4ba;color:#af3542}
body.portal-ui .sm-dialog-feedback:not([hidden]){padding:9px 12px;background:#f1f8f5;border-radius:9px;color:#268267}
body.portal-ui .sm-dialog-feedback.sm-error{background:#fff3f4;color:#b84d55!important}
body.portal-ui :is(.sm-filter,.sm-dialog,.sm-table-card,.sm-empty-add) :is(button,input,select,textarea):focus-visible{outline:3px solid #92b6fc;outline-offset:3px}
@media(max-width:1100px){body.portal-ui #workspace[data-view="overview"] .workspace-main{padding:0 16px 24px}body.portal-ui #sm-list table{min-width:790px}body.portal-ui .sm-dialog .sm-summary{grid-template-columns:repeat(4,minmax(0,1fr))}body.portal-ui .sm-dialog .sm-summary>.sm-shop-name{grid-column:1/-1}}
@media(max-width:760px){body.portal-ui #workspace[data-view="overview"] .sm-filter{padding:14px;gap:12px}body.portal-ui .sm-filter label{min-width:0;flex:1 1 140px}body.portal-ui .sm-filter :is(input,select){width:100%;min-width:0}body.portal-ui .sm-dialog{width:calc(100vw - 24px);border-radius:14px}body.portal-ui .sm-dialog header{padding-left:16px}body.portal-ui .sm-dialog .sm-body{padding:16px}body.portal-ui .sm-dialog footer{padding:12px 16px}body.portal-ui .sm-dialog .sm-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.portal-ui .sm-dialog .sm-products-heading{align-items:flex-start}body.portal-ui .sm-dialog .sm-product-search{width:100%}body.portal-ui .sm-dialog .sm-product-search>div{flex:1;min-width:0}body.portal-ui .sm-dialog .sm-product-search input{min-width:0;width:100%}body.portal-ui .sm-dialog .sm-metric{padding:12px}body.portal-ui .sm-dialog .sm-metric strong{font-size:22px}body.portal-ui .sm-drawer{width:min(580px,100vw);border-radius:0;max-height:none}body.portal-ui .sm-dialog .sm-rule .sm-keyword-label{display:block;padding-left:0;margin-top:12px}body.portal-ui .sm-dialog .sm-keyword-label>div{margin-top:7px}body.portal-ui .sm-dialog .sm-rule p{margin-left:0}body.portal-ui .sm-dialog .sm-settings-summary{align-items:flex-start;flex-wrap:wrap}body.portal-ui .sm-dialog .sm-clear{align-items:flex-start;flex-direction:column}body.portal-ui .sm-dialog .sm-clear button{align-self:flex-end}}
@media(max-width:480px){body.portal-ui #workspace[data-view="overview"] .sm-page-title{align-items:flex-start;flex-wrap:wrap;gap:12px;padding:18px 0 14px}body.portal-ui .sm-page-title>div{width:100%}body.portal-ui .sm-page-title [data-sm-refresh]{margin-left:auto}body.portal-ui #workspace[data-view="overview"] .sm-filter{gap:10px}body.portal-ui .sm-filter label{flex-basis:100%}body.portal-ui .sm-filter button{flex:1}body.portal-ui .sm-table-heading{padding:12px 14px}body.portal-ui .sm-pagination{padding:12px;gap:5px;flex-wrap:wrap}body.portal-ui .sm-pagination>span{font-size:11px;margin-right:0;flex-basis:100%;text-align:left}body.portal-ui .sm-pagination button:first-of-type{margin-left:auto}}
@media(max-width:1100px){body.portal-ui #sm-list table:has(.sm-empty){min-width:0}body.portal-ui #sm-list table:has(.sm-empty) thead{display:none}}
@media(prefers-reduced-motion:reduce){body.portal-ui :is(.sm-filter,.sm-dialog,.sm-table-card) button{transition:none}}
@media(forced-colors:active){body.portal-ui :is(.sm-table-card,.sm-filter,.sm-dialog,.sm-empty-icon){background:Canvas;border-color:GrayText;color:CanvasText}body.portal-ui :is(.sm-table-card,.sm-dialog) button{border-color:ButtonText;color:ButtonText;background:ButtonFace}body.portal-ui .sm-table-card tbody tr:hover{background:Canvas}body.portal-ui .sm-sort{color:CanvasText}}

/* Product sync and SKU facts stay visible alongside editable parameters. */
body.portal-ui .sm-dialog.sm-detail{max-width:calc(100% - 24px);max-height:calc(100% - 24px);box-sizing:border-box}
body.portal-ui .sm-detail .sm-products-heading>strong,body.portal-ui :is(.sm-skus,.sm-product-facts) h3{font-size:18px;font-weight:700;margin:0 0 12px;color:#34445c}
body.portal-ui .sm-detail .sm-sync-status{font-size:14px!important;margin:0 0 16px;color:#52617a}
body.portal-ui :is(.sm-skus,.sm-product-facts){margin:20px 0}
body.portal-ui :is(.sm-skus,.sm-product-facts) h3 span{font-size:14px;font-weight:400;margin-left:10px;color:#69788f}
body.portal-ui .sm-skus table{min-width:560px}
body.portal-ui .sm-skus :is(th,td){font-size:14px;overflow-wrap:anywhere}
body.portal-ui .sm-skus th:first-child{width:auto}
body.portal-ui .sm-product :is(label,textarea,input){font-size:16px}

/* The shop list follows one short heading and its filters. */
body.portal-ui #workspace[data-view="overview"] .sm-page-title{min-height:60px;padding:10px 2px;align-items:center;gap:10px}
body.portal-ui #workspace[data-view="overview"] .sm-page-title>div{width:auto;min-width:0}
body.portal-ui #workspace[data-view="overview"] .sm-page-title h1{font-size:22px}
body.portal-ui #workspace[data-view="overview"] .sm-filter{padding:10px 14px;margin-bottom:10px}
body.portal-ui #workspace[data-view="overview"] .sm-filter label{gap:5px;font-size:14px!important}
