/* Image testing follows the existing BR list, table and Arco form patterns. */
.test-plan-toolbar{gap:8px;flex-wrap:nowrap}
.test-plan-table-product{display:flex;align-items:center;gap:10px;min-width:0}
.test-plan-table-product>span:last-child{min-width:0}
.test-plan-table-product strong,.test-plan-table-product small,.test-plan-product-cell strong,.test-plan-product-cell small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-plan-table-product strong,.test-plan-product-cell strong{font-size:13px;font-weight:600;color:#1d2129}
.test-plan-table-product small,.test-plan-product-cell small{font-size:12px;margin-top:4px;color:#86909c}
.test-plan-supply-mark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:4px;background:#e8f3ff;color:#165dff;font-size:14px;font-weight:600}
.test-plan-load{display:flex;align-items:center;gap:12px;padding:16px}
.test-plan-create-modal .arco-modal-body{padding:0}
.test-plan-create-modal form{margin:0}
.test-plan-steps{display:flex;gap:0;list-style:none;margin:0;padding:20px 28px;border-bottom:1px solid #e5e6eb;background:#fafbfc;overflow-x:auto}
.test-plan-steps li{display:flex;align-items:center;gap:10px;flex:1;min-width:185px;font-size:13px;color:#86909c;white-space:nowrap}
.test-plan-steps li:not(:last-child)::after{content:'';height:1px;background:#e5e6eb;flex:1;margin:0 20px}
.test-plan-steps li>span{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:50%;background:#e8ebf0;color:#86909c;font-size:12px}
.test-plan-steps b{font-weight:500}
.test-plan-steps li.current{color:#165dff}
.test-plan-steps li.current>span{background:#165dff;color:#fff}
.test-plan-steps li.done{color:#4e5969}
.test-plan-steps li.done>span{background:#e8f3ff;color:#165dff}
.test-plan-create-body{min-height:330px;max-height:60vh;overflow:auto;padding:24px 28px}
.test-plan-field-label{display:block;margin:0 0 9px;font-size:13px;font-weight:500;color:#1d2129;white-space:nowrap}
.test-plan-field-label small{display:inline;color:#86909c;font-size:12px;font-weight:400;margin-left:6px}
.test-plan-search{display:flex;align-items:center;gap:8px;max-width:570px}
.test-plan-search>.arco-input-wrapper{flex:1;min-width:0}
.test-plan-supply-list{border:1px solid #e5e6eb;border-radius:4px;min-height:150px;overflow:hidden}
.pt-wizard-modal .test-plan-supply-list{max-height:none;overflow:visible}
.test-plan-supply-option{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;border:0;border-bottom:1px solid #f0f1f3;background:#fff;text-align:left;cursor:pointer;min-width:0;color:#1d2129}
.test-plan-supply-option:last-child{border-bottom:0}
.test-plan-supply-option:hover,.test-plan-supply-option:focus-visible{background:#f2f7ff;outline:2px solid #165dff;outline-offset:-2px}
.test-plan-supply-option strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}
.test-plan-supply-option small{flex:none;font-size:12px;color:#86909c;white-space:nowrap}
.test-plan-modal-pagination{display:flex;justify-content:flex-end;margin-top:12px}
.test-plan-supply-summary{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:16px;background:#f7f8fa;border:1px solid #e5e6eb;border-radius:4px;min-width:0}
.test-plan-supply-summary>div{min-width:0;flex:1}
.test-plan-supply-summary strong,.test-plan-supply-summary small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-plan-supply-summary strong{font-size:13px;font-weight:600;color:#1d2129}
.test-plan-supply-summary small{color:#86909c;font-size:12px;margin-top:4px}
.test-plan-selection-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;color:#4e5969;font-size:13px;white-space:nowrap}
.test-plan-selection-bar b{color:#165dff}
.test-plan-selection-bar>div{display:flex;gap:4px}
.test-plan-target-picture{display:grid;place-items:center;width:42px;height:42px;border-radius:4px;background:#f2f3f5;color:#c9cdd4}
.test-plan-target-picture img{width:100%;height:100%;object-fit:contain}
.test-plan-create-body .br-table-zone .arco-table-td{vertical-align:middle}
.test-plan-form-error{margin:0 0 16px;padding:10px 12px;border:1px solid #f7c3c3;border-radius:4px;background:#fff2f0;color:#cb272d;font-size:13px}
.test-plan-form-error:focus{outline:2px solid #f53f3f;outline-offset:2px}
.test-plan-create-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 28px;border-top:1px solid #e5e6eb;background:#fff}
.test-plan-create-footer>span{font-size:12px;color:#86909c;white-space:nowrap}
.test-plan-create-footer>div{display:flex;gap:8px;flex:none}
.test-plan-group-heading{background:#fff;border:1px solid #e5e6eb;border-radius:6px;padding:12px 18px 16px;margin-bottom:10px;min-width:0}
.test-plan-group-heading>div:first-child{display:flex;align-items:center;gap:14px;font-size:12px;margin-left:-12px}
.test-plan-group-title{display:flex;align-items:center;gap:12px;margin:8px 0}
.test-plan-group-title h2{font-size:17px;margin:0;color:#1d2129;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-plan-group-title .tag{flex:none}
.test-plan-group-meta{display:flex;align-items:center;gap:20px;font-size:12px;color:#86909c;white-space:nowrap;overflow-x:auto}
.test-plan-group-meta>span:empty{display:none}
.test-plan-group-toolbar{flex-wrap:nowrap}
.test-plan-progress-summary{display:flex;align-items:center;gap:13px;font-size:13px;color:#4e5969;white-space:nowrap}
.test-plan-progress-summary i{width:1px;height:12px;background:#e5e6eb}
.test-plan-row-pictures .effect-picture{width:42px;height:42px;flex:none}
.page-body.list-page>.br-data-table[data-table-id="image-test-group-targets-v1"]{flex:1;min-height:0;overflow:auto}
.test-plan-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.test-plan-detail>.card{min-width:0;background:#fff;border:1px solid #e5e6eb;border-radius:6px}
.test-plan-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px}
.test-plan-head>div:first-child{min-width:0}
.test-plan-head h2{margin:0 0 7px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-plan-head .test-plan-head-name{display:block;max-width:100%;margin:0 0 7px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-plan-head p{margin:5px 0 0;color:#86909c;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-plan-pictures{display:flex;align-items:center;gap:12px;flex:none}
.test-plan-pictures .effect-picture{width:64px;height:64px;flex:none}
.test-plan-pictures>div{display:grid;gap:4px;text-align:center;font-size:12px;color:#86909c}
.test-plan-pictures .effect-picture img{width:100%;height:100%;object-fit:contain}
.test-plan-stages .active{background:#e8f3ff;color:#165dff}
.test-plan-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.test-plan-metrics article{padding:16px;min-width:0;background:#fff;border:1px solid #e5e6eb;border-radius:6px}
.test-plan-metrics h3{font-size:13px;font-weight:500;margin:0 0 10px}
.test-plan-metrics strong{font-size:24px;white-space:nowrap}
.test-plan-metrics small{display:block;font-size:12px;color:#86909c;margin-top:8px;white-space:nowrap;overflow-x:auto}
@media(max-width:900px){.test-plan-create-footer>span{display:none}
.test-plan-create-footer{justify-content:flex-end}
.test-plan-head{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.page-body.list-page.image-test-hub-page{overflow-x:auto}
.page-body.image-test-hub-page>.toolbar{min-width:690px}
.test-plan-create-body{padding:18px;max-height:60vh}
.test-plan-steps{padding:16px 18px}
.test-plan-steps li{min-width:180px}
.test-plan-create-footer{padding:14px 18px}
.test-plan-supply-option{min-width:480px}
.test-plan-supply-list{overflow-x:auto}
.test-plan-selection-bar{min-width:650px}
.test-plan-group-toolbar{min-width:850px}
.test-plan-head{min-width:650px}
.test-plan-metrics{min-width:650px}
.test-plan-detail>.card:last-child{overflow:auto}}
.test-plan-bulk-bar{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e5e6eb;border-radius:4px;white-space:nowrap;min-width:950px;background:#f7f8fa}
.test-plan-bulk-bar>strong{font-size:13px;font-weight:500;flex:none}
.test-plan-bulk-name{font-size:12px;color:#86909c;min-width:80px;flex:1;overflow:hidden;text-overflow:ellipsis}
.test-plan-bulk-bar .arco-btn{flex:none}
.test-plan-candidate-cell{display:flex;align-items:center;gap:10px;min-width:0}
.test-plan-candidate-cell>div{min-width:0}
.test-plan-candidate-cell strong,.test-plan-candidate-cell small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.test-plan-candidate-cell strong{font-weight:400;color:#1d2129}
.test-plan-candidate-cell small{margin-top:4px;color:#86909c}
.test-plan-settings-row{display:flex;gap:32px;align-items:flex-start;margin-top:20px;min-width:650px}
.test-plan-settings-row fieldset{border:0;padding:0;margin:0;flex:none}
.test-plan-settings-row>div{flex:1;min-width:0}
.test-plan-settings-row .arco-radio-group{white-space:nowrap}
/* Keep each table and its toolbar in the same horizontal scroll space. */
.test-plan-create-body>.br-data-table{min-width:980px}
@media(max-width:700px){.page-body.image-test-hub-page>.br-data-table{min-width:1100px}
.test-plan-create-body>.test-plan-supply-summary{min-width:650px}}
.test-plan-comparison-options{display:flex;gap:14px 24px;align-items:center;flex-wrap:wrap;margin-top:20px;min-width:650px}
.test-plan-comparison-options .arco-checkbox{white-space:nowrap}
.test-plan-comparison-options .arco-select{flex-basis:100%}
.observation-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.test-plan-period-comparison{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:16px}
.test-plan-period-comparison>div{display:grid;gap:10px;white-space:nowrap}
.test-plan-period-comparison strong{font-size:24px}
.test-plan-period-comparison small,.test-plan-period-comparison span{font-size:12px;color:#86909c}
.test-plan-detail>section.card{overflow:auto}
.test-plan-supply-thumb{width:44px;height:44px;object-fit:cover;border-radius:6px;border:1px solid var(--color-border-2);flex:none;background:#f2f3f5}
.test-plan-table-product .test-plan-supply-thumb{width:36px;height:36px;border-radius:4px}
.test-plan-gallery{padding:18px 20px!important;background:#fff!important;border-radius:16px!important;border:1px solid rgba(0,0,0,.08)!important;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.test-plan-gallery>.merch-section-head{margin:0 0 14px}
.test-plan-gallery-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
.test-plan-gallery-card{display:flex;flex-direction:column;gap:12px;padding:14px 16px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fff;min-width:0;transition:border-color .15s ease,box-shadow .15s ease}
.test-plan-gallery-card:hover{border-color:rgba(0,0,0,.16);box-shadow:0 3px 10px rgba(0,0,0,.04)}
.pt-card-head{display:flex;align-items:center;gap:12px;min-width:0}
.pt-card-thumb{width:56px;height:56px;border-radius:8px;overflow:hidden;background:#fafafa;border:1px solid rgba(0,0,0,.08);flex:none;display:grid;place-items:center;color:#c9cdd4;padding:2px}
.pt-card-thumb img{width:100%;height:100%;object-fit:contain;border-radius:5px}
.pt-card-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.pt-card-info .pt-gallery-title{max-width:100%;font-size:13px;font-weight:600;color:#111;text-align:left}
.pt-card-info .zh-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#6a6a6a}
.pt-card-meta{display:flex;align-items:center;gap:6px;min-width:0;margin-top:2px}
.pt-card-empty{font-size:12px;padding:10px 12px;border-radius:8px;background:#fafafa;text-align:center}
.test-plan-gallery-grid{display:grid;grid-template-columns:auto repeat(2,minmax(68px,1fr));gap:5px 12px;padding:10px 12px;border-radius:10px;background:#fafafa;border:1px solid rgba(0,0,0,.05);align-items:baseline}
.test-plan-gallery-grid .h{font-size:11px;font-weight:500;color:#6a6a6a;text-align:right;white-space:nowrap}
.test-plan-gallery-grid .h.card,.test-plan-gallery-grid .h.mall{color:#86909c}
.test-plan-gallery-grid .l{font-size:11px;color:#6a6a6a;white-space:nowrap}
.test-plan-gallery-grid b{font-size:13px;font-weight:600;color:#111;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.test-plan-gallery-grid i{font-style:normal;font-size:12px;color:#6a6a6a;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.test-plan-gallery-grid b.store-metric-empty,.test-plan-gallery-grid i.store-metric-empty{color:#c9cdd4;font-weight:400}
/* Wide observation picker: catalog and image-first selected items scroll independently. */
.pt-wizard-modal .arco-modal-body{height:calc(100dvh - 132px);max-height:none;overflow:hidden;padding:20px 24px}
.pt-observation-form{height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;gap:14px}
.pt-plan-fields{display:flex;align-items:flex-end;gap:14px;min-width:0;flex:none}
.pt-plan-fields label{display:grid;gap:7px;min-width:0;flex:1}
.pt-plan-fields label>span{white-space:nowrap;font-weight:500}
.pt-picker-workspace{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:18px;flex:1;min-height:0;min-width:0}
.pt-product-picker{display:flex;flex-direction:column;min-width:0;min-height:0}
.pt-product-picker .toolbar{overflow-x:auto;flex-wrap:nowrap;padding:0 0 10px;flex:none}
.pt-product-picker .toolbar>*{flex-shrink:0}
.pt-product-picker .toolbar-tail{width:auto}
.pt-product-picker .test-plan-selection-bar{gap:12px;flex:none;min-width:0;margin-bottom:10px}
.pt-product-picker .br-data-table{flex:1;min-height:0;margin-bottom:0}
.pt-product-picker .br-table-zone{min-height:0}
.pt-picker-picture{width:80px;height:80px;position:relative;overflow:hidden;background:var(--color-fill-1);border-radius:5px}
.pt-picker-picture img{position:relative;width:100%;height:100%;object-fit:contain}
.pt-image-placeholder{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--color-text-4);font-size:24px}
.pt-picker-picture img:not([src]),.pt-picker-picture img[data-thumb-error],.pt-selected-image img:not([src]),.pt-selected-image img[data-thumb-error]{visibility:hidden}
.pt-picker-picture img[src]:not([data-thumb-error]){background:var(--color-bg-2)}
.pt-product-picker .test-plan-product-cell{min-width:0}
.pt-product-picker .test-plan-product-cell strong{font-size:14px}
.pt-result-count{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--color-text-3)}
.pt-selected-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--color-border-2);border-radius:8px;background:var(--color-fill-1);overflow:hidden}
.pt-selected-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--color-border-2);flex:none;background:var(--color-bg-2)}
.pt-selected-heading h3{margin:0;font-size:14px;font-weight:600;white-space:nowrap}
.pt-selected-heading h3 span{color:rgb(var(--primary-6));margin-left:5px}
.pt-selected-panel>.arco-empty{margin:auto;padding:24px 8px}
.pt-selected-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start;overflow-y:auto;padding:12px;min-height:0}
.pt-selected-card{min-width:0;padding:7px;background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:6px}
.pt-selected-image{position:relative;width:100%;aspect-ratio:1;display:grid;place-items:center;background:var(--color-fill-1);overflow:hidden;border-radius:4px}
.pt-selected-image img{position:relative;display:block;width:100%;height:100%;object-fit:contain;background:var(--color-bg-2)}
.pt-selected-image .tag{position:absolute;top:4px;left:4px;max-width:calc(100% - 8px);font-size:11px;padding:1px 5px}
.pt-selected-card strong,.pt-selected-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:7px}
.pt-selected-card strong{font-size:12px;font-weight:500}
.pt-selected-card small{font-size:11px;color:var(--color-text-3)}
.pt-selected-card .arco-btn{width:100%;margin-top:5px}
.pt-create-footer{display:flex;align-items:center;gap:8px;white-space:nowrap;flex:none}
.pt-create-footer>.muted{margin-right:auto}
.pt-plan-header{padding:16px}
.pt-observation-note{margin:10px 0 0;font-size:12px}
.pt-legacy-duration{display:flex;gap:8px;align-items:center;font-size:12px}
.pt-plan-header .pt-plan-fields{overflow-x:auto}
@media(max-width:1100px){.pt-picker-workspace{grid-template-columns:minmax(0,1fr) 262px;gap:12px}
.pt-selected-grid{gap:8px;padding:8px}
.pt-selected-card{padding:5px}}
@media(max-width:760px){.pt-wizard-modal .arco-modal-body{height:calc(100dvh - 112px);padding:14px;overflow-y:auto}
.pt-observation-form{height:auto;min-height:100%}
.pt-observation-form>.pt-plan-fields{display:grid}
.pt-picker-workspace{display:flex;flex-direction:column;flex:none}
.pt-product-picker{min-height:360px}
.pt-product-picker .br-data-table{height:280px;flex:none;min-height:280px}
.pt-selected-panel{max-height:330px;min-height:150px}
.pt-selected-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}
.pt-create-footer{position:sticky;bottom:-14px;background:var(--color-bg-2);padding:12px 0 6px;justify-content:flex-end;z-index:2}
.pt-create-footer>.muted{display:none}
.pt-product-picker .test-plan-selection-bar{overflow-x:auto;white-space:nowrap}
.pt-plan-header .pt-plan-fields>label{min-width:260px}}
.pt-gallery-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-size:12px;max-width:180px}
/* Compound date controls are not native labels: their popup must not refocus. */
.pt-plan-fields .pt-plan-field{display:grid;gap:7px;min-width:0;flex:1}
.pt-plan-fields .pt-plan-field>span{font-weight:500;white-space:nowrap}
.pt-plan-fields .pt-duration-field{flex:0 0 112px}
.pt-plan-fields .pt-date-field{flex:1.2}
.pt-date-popup .arco-picker-footer{padding:0}
.pt-selected-content{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}
.pt-selected-group{display:flex;flex-direction:column;flex:1;min-height:90px;border-top:1px solid var(--color-border-2)}
.pt-selected-group h4{margin:0;padding:9px 12px;font-size:13px;white-space:nowrap;flex:none;border-left:4px solid #165dff;background:#e8f3ff;color:#165dff}
.pt-selected-group h4 span{margin-left:6px}
.pt-selected-group.pt-group-control h4{border-left-color:#722ed1;background:#f5e8ff;color:#722ed1}
.pt-selected-group .pt-selected-grid{flex:1;min-height:0;overflow-y:auto}
.pt-group-empty,.pt-selection-loading{padding:12px;color:var(--color-text-3);font-size:12px;margin:0}
.pt-selected-card .arco-select{width:100%;margin-top:7px}
.pt-role-tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap}
.pt-role-experiment{background:#e8f3ff;color:#165dff}
.pt-role-control{background:#f5e8ff;color:#722ed1}
.pt-selected-image .pt-role-tag{position:absolute;left:4px;top:4px;font-size:11px;padding:1px 6px}
.pt-comparison-group{padding:14px 0 4px;margin-top:6px;border-top:1px solid rgba(0,0,0,.06)}
.pt-comparison-group:first-of-type{border-top:0;padding-top:0;margin-top:0}
.pt-comparison-group-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.pt-comparison-group-head .muted{font-size:12px}
.pt-detail-page{gap:14px}
.pt-detail-header{padding:14px 20px 0!important;gap:10px}
.pt-header-title-row{display:flex;align-items:center;gap:10px;min-width:0}
.pt-header-title-row h2{margin:0;font-size:17px;line-height:24px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.pt-header-edit-fields{padding-bottom:14px}
.pt-detail-tabs{gap:14px}
.pt-detail-tabs>.ax-segment{align-self:flex-start;background:#e8e9ec}
.pt-members-card{padding:18px 20px!important;background:#fff!important;border-radius:16px!important;border:1px solid rgba(0,0,0,.08)!important;box-shadow:0 1px 2px rgba(0,0,0,.04);margin-top:14px}
.pt-members-card>.merch-section-head{margin:0 0 14px}
.pt-members-card>.merch-section-head>.toolbar-tail{margin-left:auto;display:flex;align-items:center;gap:8px}
.pt-list-name{font-weight:500;color:#111;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pt-trend-card{padding:18px 20px!important;background:#fff!important;border-radius:16px!important;border:1px solid rgba(0,0,0,.08)!important;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.pt-trend-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.pt-trend-head>.ax-segment{flex:none;max-width:100%;overflow-x:auto}
.pt-trend-filters{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow-x:auto;margin-left:auto;padding:0;border:0;background:transparent;box-shadow:none}
.pt-trend-filters>*{flex:none}
.pt-trend-notes{margin:10px 0 0;font-size:12px}
.pt-trend-card .br-trend-legend{padding:10px 0 2px}
.pt-trend-card .br-trend-legend-list{gap:8px}
.pt-trend-card .br-trend-legend-item{background:#fafafa;border:1px solid rgba(0,0,0,.07);border-radius:10px;padding:3px 8px 3px 4px;transition:border-color .15s ease,background .15s ease}
.pt-trend-card .br-trend-legend-item:hover{border-color:rgba(0,0,0,.16);background:#f5f6f8}
.pt-trend-card .br-trend-legend-item.is-off{opacity:.55}
.pt-trend-card .br-trend-series{font-size:12px;padding:0 2px}
.pt-trend-card .br-trend-series span{max-width:260px}
.pt-trend-card .br-trend-series small{display:none}
.pt-trend-days .br-data-table,.pt-members-card .br-data-table{border:1px solid #eef0f3!important;border-radius:8px!important;box-shadow:none!important}
.pt-trend-days .br-data-table .arco-table-th,.pt-members-card .br-data-table .arco-table-th{background:#f7f8fa!important;color:#526176!important;font-size:11px!important;font-weight:600!important;padding:7px 10px!important;height:34px!important;white-space:nowrap!important;border-bottom:1px solid #eef0f3!important}
.pt-trend-days .br-data-table .arco-table-td,.pt-trend-days .br-data-table .arco-table-tr:nth-child(even) .arco-table-td,.pt-members-card .br-data-table .arco-table-td,.pt-members-card .br-data-table .arco-table-tr:nth-child(even) .arco-table-td{height:auto!important;padding:7px 10px!important;font-size:12px!important;line-height:18px!important;white-space:nowrap!important;color:#1d2939!important;background:#fff!important;font-variant-numeric:tabular-nums;border-bottom:1px solid #f2f3f5!important}
.pt-trend-days .br-data-table .arco-table-td::before,.pt-members-card .br-data-table .arco-table-td::before{background:transparent!important}
.pt-trend-days .br-data-table .arco-table-tr:hover .arco-table-td,.pt-members-card .br-data-table .arco-table-tr:hover .arco-table-td{background:#f7f9fc!important}
.pt-daily-price,.pt-daily-product-id{white-space:nowrap!important;font-variant-numeric:tabular-nums}
@media(max-width:760px){.pt-plan-fields .pt-duration-field,.pt-plan-fields .pt-date-field{flex:auto}
.pt-plan-header .pt-plan-fields{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}
.pt-plan-header .pt-plan-fields>label{min-width:0}
.pt-selected-panel{max-height:620px}
.pt-selected-group{min-height:170px}
.pt-date-popup .arco-picker-range-container{max-width:calc(100vw - 24px);max-height:440px;overflow-y:auto}
.pt-date-popup .arco-picker-range-wrapper{flex-direction:column}
.pt-date-popup .arco-picker-range{max-width:calc(100vw - 24px)}}
.pt-selected-card .pt-selected-remove{position:absolute;top:4px;right:4px;width:auto;height:22px;margin:0;padding:0 5px;background:var(--color-bg-2);border:1px solid var(--color-border-2);font-size:11px}
.pt-date-sort{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0;border:0;background:transparent;color:rgb(var(--primary-6));font:inherit;font-weight:500;white-space:nowrap;cursor:pointer}
.pt-date-sort:focus-visible{outline:2px solid rgb(var(--primary-6));outline-offset:3px;border-radius:2px}
@media(max-width:760px){.pt-date-popup .arco-picker-footer{position:sticky;bottom:0;z-index:1;background:var(--color-bg-2)}
.pt-selected-panel{max-height:none}
.pt-selected-content{overflow:visible;flex:none}
.pt-selected-group{flex:none;min-height:0}
.pt-selected-group .pt-selected-grid{max-height:340px;flex:none}}
/* Product plan cover uses a dedicated thumbnail; missing/failed images keep the icon. */
.pt-list-cover{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border:1px solid var(--color-border-2);border-radius:4px;background:var(--color-fill-2);color:var(--color-text-3);overflow:hidden}
.pt-list-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--color-bg-2)}
.pt-list-cover img:not([src]),.pt-list-cover img[data-thumb-error]{visibility:hidden}
.test-plan-table-product>.pt-list-cover+strong{min-width:0}
.pt-list-cover{padding:0;font:inherit;cursor:zoom-in}
.pt-list-cover:disabled{cursor:default}
.pt-list-cover:focus-visible{outline:2px solid rgb(var(--primary-6));outline-offset:2px}
.pt-plan-summary{display:flex;align-items:center;gap:32px;min-width:680px}
.pt-plan-summary>div{display:grid;gap:8px;white-space:nowrap}
.pt-plan-summary .pt-summary-name{flex:1;min-width:160px}
.pt-plan-summary small{color:var(--color-text-3);font-size:12px}
.pt-plan-summary h2{font-size:16px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-plan-summary strong{font-size:13px;font-weight:500}
.pt-plan-header{overflow-x:auto}
.pt-detail-toolbar{flex-wrap:nowrap;overflow-x:auto}
.pt-detail-toolbar>.muted{white-space:nowrap}
.pt-detail-toolbar>*{flex-shrink:0}
.pt-detail-toolbar>.toolbar-tail{width:auto;flex:none;justify-content:flex-start}
.pt-image-target{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-image-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;max-height:60vh;overflow:auto}
.pt-image-option{display:grid;gap:8px;padding:8px;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-2);cursor:pointer;white-space:nowrap}
.pt-image-option:hover,.pt-image-option:focus-visible{border-color:rgb(var(--primary-6));outline-color:rgb(var(--primary-6))}
.pt-image-preview{position:relative;display:grid;place-items:center;aspect-ratio:1;background:var(--color-fill-1);overflow:hidden}
.pt-image-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--color-bg-2)}
.pt-image-preview img:not([src]),.pt-image-preview img[data-thumb-error]{visibility:hidden}
.pt-image-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;white-space:nowrap}
.pt-trend-figure{margin:0}
.pt-trend-empty{display:grid;place-items:center;min-height:240px;color:#6a6a6a;background:#fafafa;border-radius:12px;border:1px dashed rgba(0,0,0,.08)}
.pt-trend-card .br-trend-series span,.pt-trend-card .br-trend-series small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-trend-days{margin-top:18px;padding-top:16px;border-top:1px solid rgba(0,0,0,.06)}
.pt-trend-days h3{font-size:14px;font-weight:600;color:#111;margin:0}
.pt-trend-days>.merch-section-head{margin:0 0 12px}
.pt-trend-days>.merch-section-head>.toolbar-tail{margin-left:auto;display:flex;align-items:center;gap:8px}
.pt-trend-filters .pt-date-field{flex:none}
.pt-trend-card .br-trend-legend-head{white-space:nowrap}
.pt-trend-card .br-trend-legend{width:290px}
.pt-trend-card .br-trend{min-width:0}
.pt-trend-card .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.pt-trend-days .catalog-name,.pt-members-card .catalog-name{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
@media(max-width:760px){.pt-trend-card .br-trend-legend{width:auto}
.pt-trend-card{padding:14px!important}
.pt-trend-filters{margin-left:0;width:100%}
.pt-detail-header{padding:12px 12px 0!important}
.pt-detail-header .store-detail-kpis{margin:4px -12px 0}}
.pt-detail-tabs>.arco-tabs-nav{background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:6px;padding:0 14px;margin-bottom:12px}
.pt-detail-tabs>.arco-tabs-content{padding-top:0}
.pt-detail-tabs .arco-tabs-tab-title{white-space:nowrap}
.pt-detail-tabs .pt-trend-days{margin-top:20px}
.pt-detail-tabs .pt-trend-days .merch-section-head{margin-bottom:10px}
.pt-trend-card .br-trend-series small{font-size:11px;text-overflow:clip}
.pt-daily-product-id{white-space:nowrap;font-variant-numeric:tabular-nums}
.pt-trend-card .br-trend-legend-row{padding:2px 0}
@media(max-width:760px){.pt-trend-card .br-trend-legend-list{display:block;overflow-x:auto}
.pt-trend-card .br-trend-legend-row{min-width:238px}}
.pt-daily-picture{width:36px;height:36px}
.pt-daily-picture img{width:100%;height:100%;object-fit:contain}
@media(max-width:760px){.pt-trend-card .br-trend-legend-row{min-width:280px}}
.pt-trend-card .br-trend.br-trend-detailed .br-trend-legend{width:auto}
@media(max-width:760px){.pt-trend-card .br-trend.br-trend-detailed .br-trend-legend{width:auto}
.pt-trend-card .br-trend-legend-list{display:flex;overflow:visible}}
.pt-note-text{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.pt-note-target{margin:0 0 10px;font-weight:600}
.pt-note-target small{display:block;font-weight:400;color:var(--color-text-3)}
.pt-note-hint{margin:8px 0 0;font-size:12px}
.metric-picker{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;min-height:260px}
.metric-picker-col{border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:10px 12px;min-width:0}
.metric-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.metric-picker-head b{font-size:13px}
.metric-picker-options{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;max-height:300px;overflow:auto}
.metric-picker-chosen .metric-picker-tags{display:flex;flex-wrap:wrap;gap:8px;max-height:300px;overflow:auto}
.metric-picker-tag{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid rgba(0,0,0,.08);border-radius:999px;font-size:12px;background:#f6f6f6;cursor:default}
.metric-picker-tag .arco-icon-close{cursor:pointer;color:var(--color-text-3)}
.metric-picker-tag .arco-icon-close:hover{color:rgb(var(--primary-6))}
.metric-picker-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
