/* One physical page/row/dock template for both external Market masters. */
.market-wizard.catalog-frame{position:relative;display:flex;flex-direction:column;gap:.5rem;height:100%;min-height:0;padding:.65rem;box-sizing:border-box;overflow:hidden;background:#f5f7fa}
.market-wizard .catalog-frame-head{flex:none;min-height:0;padding:.15rem .25rem;background:transparent;border:0}
.market-wizard .catalog-frame-heading{min-width:0}.market-wizard .catalog-frame-heading h1{margin:.15rem 0;font-size:1.1rem;line-height:1.3}.market-wizard .catalog-frame-heading small{font-size:.76rem;color:#61758b}
.market-wizard-steps{gap:.35rem;padding:0 .1rem}.market-wizard-steps button{font:inherit;font-size:.8rem;min-height:2.15rem}.market-wizard-steps button:disabled{opacity:.7;color:#61758b}.market-wizard-steps button[aria-current]{opacity:1;color:#28588c}
.market-wizard-middle{min-width:0;overscroll-behavior:contain}.market-wizard-panel{display:grid;gap:.65rem;padding:.85rem}.market-wizard-panel>p,.market-wizard-panel h2{margin:0}.market-wizard-panel h2{font-size:1rem}
.market-wizard-panel form{display:grid;gap:.65rem;min-width:0}.market-wizard-panel label{display:grid;gap:.3rem;min-width:0;font-size:.83rem;color:#4b6077}.market-wizard-panel label[hidden]{display:none}
.market-wizard-panel input:not([type=checkbox]),.market-wizard-panel select{box-sizing:border-box;min-width:0;width:100%;min-height:2.2rem;padding:.4rem .55rem;border:1px solid #cbd9e9;border-radius:7px;background:#fff;color:#24374d;font:inherit;font-size:.86rem}
.market-wizard-panel input[type=checkbox]{width:1rem;height:1rem;flex:0 0 1rem;accent-color:#3578d4}.market-wizard-panel details{min-width:0;padding:.55rem;border:1px solid #dce5ef;border-radius:8px}.market-wizard-panel summary{cursor:pointer;font-size:.85rem}
.market-wizard-list{display:grid;gap:.55rem;min-width:0}.market-wizard-row{display:flex;align-items:flex-start;gap:.65rem;padding:.7rem;border:1px solid #dce5ef;border-radius:8px;min-width:0;background:#fff}.market-wizard-leading{display:flex;flex-direction:column;align-items:center;gap:.5rem;flex:none}.market-import-thumb{width:56px;height:56px;object-fit:cover;border-radius:6px;border:1px solid #dce5ef}
.market-import-row-body{display:grid;gap:.45rem;min-width:0;flex:1}.market-import-row-body strong,.market-import-row-body small,.market-import-row-body p{overflow-wrap:anywhere;word-break:normal}.market-import-row-body strong{font-size:.88rem}.market-wizard-panel .market-import-row-body small{font-size:.77rem;font-weight:400;letter-spacing:0;text-transform:none;color:#61758b}.market-import-row-body p{margin:0;font-size:.85rem;white-space:pre-wrap}
.market-import-fields{display:grid;gap:.4rem;border:0;padding:0;margin:0;min-width:0}.market-import-fields legend{font-size:.8rem;color:#61758b;margin-bottom:.3rem}.market-import-fields label{display:flex;align-items:center;gap:.4rem;font-weight:400}
.market-wizard-notice{padding:.6rem;border:1px solid #bdd2e9;background:#f1f7ff;border-radius:8px;font-size:.84rem;overflow-wrap:anywhere}.market-wizard-dock{display:block;min-width:0;align-self:stretch;padding:.4rem}.market-wizard-dock .catalog-action-dock{width:100%;min-width:0;box-sizing:border-box}.market-wizard-status{display:block;white-space:normal;font-size:.8rem;color:#61758b}
.market-wizard .catalog-dock-action{font-size:.82rem}.market-wizard .catalog-dock-action.is-primary{background:#3578d4;border-color:#3578d4;color:#fff}.market-wizard [aria-busy=true]{cursor:wait}
@media(max-width:600px){.market-wizard.catalog-frame{padding:.45rem;gap:.4rem}.market-wizard-panel{padding:.65rem}.market-wizard-row{padding:.55rem;gap:.5rem}.market-import-thumb{width:44px;height:44px}.market-wizard .catalog-frame-heading h1{font-size:1rem}}
.market-workbench{display:grid;grid-template-columns:minmax(8rem,28%) minmax(0,1fr);gap:.65rem;min-width:0;}
.market-workbench-controls{grid-column:1/-1;display:flex;align-items:end;flex-wrap:wrap;gap:.45rem;}
.market-workbench-controls label{display:flex;align-items:center;gap:.35rem;}
.market-workbench aside{min-width:0;max-height:22rem;overflow:auto;border:1px solid #d7e4f0;border-radius:8px;}
.market-workbench aside nav{display:grid;gap:.2rem;padding:.35rem;}
.market-workbench aside button{text-align:left;min-width:0;overflow-wrap:anywhere;padding:.35rem;}
.market-workbench aside button small{display:block;color:#536c8b;}
.market-workbench-body,.market-comparison,.market-workbench-body .market-import-row-body{min-width:0;}
.market-comparison table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:.9em;}
.market-comparison th,.market-comparison td{text-align:left;vertical-align:top;padding:.3rem;border-bottom:1px solid #e2eaf4;overflow-wrap:anywhere;white-space:pre-wrap;}
.market-comparison th:first-child{width:25%;}
.market-comparison [data-market-changed]{background:#f2f6fe;}
.market-workbench [hidden]{display:none!important;}
@media(max-width:650px){
 .market-workbench{grid-template-columns:minmax(0,1fr);}
 .market-workbench aside{max-height:7rem;}
 .market-workbench aside nav{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));}
 .market-comparison tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 .market-comparison th:first-child{grid-column:1/-1;width:auto;}
 .market-comparison thead th:first-child{display:none;}
 .market-comparison tbody th{padding-bottom:.14rem;border-bottom:0;}
 .market-comparison tbody td{padding-top:.14rem;}
}
