:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#18202a;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}a{color:#0b5cab;text-decoration:none}.shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.side{background:#111820;color:#fff;padding:24px 16px}.brand{font-size:22px;font-weight:800;margin-bottom:30px}.side a{display:block;color:#dbe4ee;padding:10px 12px;border-radius:8px;margin:3px 0}.side a:hover{background:#263240}.main{padding:28px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card,.panel{background:#fff;border:1px solid #e0e5ea;border-radius:12px;padding:18px}.metric{font-size:30px;font-weight:800}.muted{color:#697786}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:11px;border-bottom:1px solid #e7ebef}th{font-size:12px;text-transform:uppercase;color:#697786}.search{display:flex;gap:8px;margin-bottom:18px}.search input,input{padding:10px 12px;border:1px solid #cbd3dc;border-radius:8px;min-width:260px}.btn,button{background:#18202a;color:#fff;border:0;border-radius:8px;padding:10px 14px;cursor:pointer}.login{max-width:400px;margin:12vh auto;background:#fff;padding:28px;border-radius:14px;border:1px solid #dde3e9}.login input{display:block;width:100%;margin:10px 0;min-width:0}.error{background:#fff0f0;color:#9d1d1d;padding:10px;border-radius:8px}.swatch{display:inline-block;width:18px;height:18px;border:1px solid #bbb;border-radius:4px;vertical-align:middle;margin-right:8px}@media(max-width:850px){.shell{grid-template-columns:1fr}.side{display:flex;gap:8px;overflow:auto}.brand{margin:8px}.side a{white-space:nowrap}.cards,.grid2{grid-template-columns:1fr}.main{padding:16px}}
.builder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.builder-grid label,.dependent-fabric label{display:flex;flex-direction:column;gap:6px;font-weight:600}
select{padding:10px 12px;border:1px solid #cbd3dc;border-radius:8px;background:#fff;min-width:0}
.construction-card{margin-bottom:12px}
@media(max-width:900px){.builder-grid{grid-template-columns:1fr}}

.savebar{position:sticky;bottom:0;margin-top:18px;padding:18px 0;display:flex;justify-content:flex-end;gap:10px}
.btn.secondary{background:#697786}.check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important}.check input{min-width:auto;width:auto}
.colour-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.colour-slot{border:1px solid #e0e5ea;border-radius:10px;padding:12px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.colour-slot b{grid-column:1/-1}.colour-slot input{min-width:0;width:100%}@media(max-width:900px){.colour-grid{grid-template-columns:1fr}.colour-slot{grid-template-columns:1fr}}

.construction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.construction-item{border:1px solid #e0e5ea;border-radius:10px;padding:14px}
.construction-item label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.construction-item .cf{margin-top:12px}
#garmentFabrics .muted{grid-column:1/-1}
@media(max-width:1000px){.construction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.construction-grid{grid-template-columns:1fr}}

.colour-toolbar{display:grid;grid-template-columns:2fr 1fr auto;gap:16px;align-items:end;margin-bottom:18px}.colour-toolbar label{display:flex;flex-direction:column;gap:6px;font-weight:600}.colour-count{font-weight:700;padding:11px 14px;border:1px solid #dfe4ea;border-radius:8px}.selected-colours{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}.selected-colour{display:flex;align-items:center;gap:8px;border:1px solid #d9e0e7;border-radius:10px;padding:7px;min-width:230px}.selected-order,.colour-order{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#172033;color:#fff;font-weight:700;font-size:12px}.selected-swatch{width:34px;height:34px;border-radius:7px;border:1px solid #bbb}.selected-info{display:flex;flex-direction:column;flex:1}.selected-info small{opacity:.65}.selected-actions{display:flex;gap:3px}.selected-actions button{border:1px solid #d7dde4;background:#fff;border-radius:6px;height:28px}.colour-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.colour-tile{border:2px solid #e0e5ea;background:#fff;border-radius:11px;padding:7px;cursor:pointer;text-align:left}.colour-tile.selected{border-color:#172033;box-shadow:0 0 0 1px #172033}.colour-swatch{height:62px;border-radius:7px;border:1px solid rgba(0,0,0,.15);display:flex;justify-content:flex-end;padding:5px}.colour-name,.colour-code{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.colour-name{font-weight:700;margin:7px 3px 2px}.colour-code{font-size:12px;opacity:.65;margin:0 3px 3px}@media(max-width:800px){.colour-toolbar{grid-template-columns:1fr}}

/* v0.3.10 modal colour picker */
.colour-heading-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.colour-heading-row h3{margin:0 0 3px}
.rmodal{display:none;position:fixed;inset:0;z-index:2000}
.rmodal.open{display:block}
.rmodal-backdrop{position:absolute;inset:0;background:rgba(10,18,30,.58)}
.rmodal-dialog{position:relative;width:min(1050px,calc(100vw - 40px));max-height:calc(100vh - 60px);margin:30px auto;background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden}
.rmodal-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:20px 22px 14px;border-bottom:1px solid #e4e8ed}
.rmodal-head h2{margin:0 0 4px}
.rmodal-head p{margin:0}
.rmodal-close{border:0;background:transparent;font-size:32px;line-height:1;cursor:pointer;padding:0 4px}
.colour-modal-toolbar{display:grid;grid-template-columns:2fr 1fr;gap:16px;padding:16px 22px;border-bottom:1px solid #e4e8ed;background:#fafbfc}
.colour-modal-toolbar label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.modal-colour-grid{padding:20px 22px;overflow:auto;align-content:start}
body.modal-open{overflow:hidden}
@media(max-width:700px){
 .rmodal-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);margin:10px auto}
 .colour-modal-toolbar{grid-template-columns:1fr}
 .colour-heading-row{align-items:flex-end}
}

/* v0.3.11 colour names/codes */
.colour-hex{display:block;font-size:11px;opacity:.5;margin:0 3px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal-colour-grid .colour-name{font-size:14px}
.modal-colour-grid .colour-code{font-size:12px;font-weight:600}

/* v0.3.12 - force colour tile text to remain visible below swatch */
.modal-colour-grid{
  grid-template-columns:repeat(auto-fill,minmax(145px,1fr));
  gap:12px;
}
.modal-colour-grid .colour-tile{
  display:grid;
  grid-template-rows:76px auto auto auto;
  align-content:start;
  min-height:150px;
  height:auto;
  padding:8px;
  overflow:visible;
  background:#fff;
}
.modal-colour-grid .colour-swatch{
  display:flex;
  width:100%;
  height:76px;
  min-height:76px;
  box-sizing:border-box;
  margin:0;
}
.modal-colour-grid .colour-name,
.modal-colour-grid .colour-code,
.modal-colour-grid .colour-hex{
  position:static;
  width:auto;
  height:auto;
  min-height:0;
  max-height:none;
  opacity:1;
  visibility:visible;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1.25;
  box-sizing:border-box;
}
.modal-colour-grid .colour-name{
  display:block;
  margin:8px 3px 1px;
  font-size:14px;
  font-weight:700;
  color:#172033;
}
.modal-colour-grid .colour-code{
  display:block;
  margin:1px 3px 0;
  font-size:12px;
  font-weight:600;
  color:#4d5968;
}
.modal-colour-grid .colour-hex{
  display:block;
  margin:1px 3px 2px;
  font-size:11px;
  color:#7a8491;
}
@media(max-width:700px){
  .modal-colour-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}
}

.colour-usage-section{padding:4px 0 16px}.colour-usage-section+.colour-usage-section{border-top:1px solid #e4e8ed;padding-top:18px;margin-top:2px}

/* v0.3.15 Style Builder */
.style-rule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rule-card{border:1px solid #dfe4ea;border-radius:10px;padding:14px;background:#fafbfc}.rule-card h3{margin:0 0 10px}
.rule-check{display:flex;gap:8px;align-items:flex-start;padding:5px 2px;font-weight:400}
.style-builder-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.style-builder-head h2{margin-bottom:4px}
.construction-rule-card{border:1px solid #dfe4ea;border-radius:10px;margin-top:10px;background:#fff}
.construction-rule-title{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#fafbfc;border-radius:10px}
.construction-rule-title label{display:flex;gap:9px;align-items:center}
.rule-toggle{border:1px solid #d7dde4;background:#fff;border-radius:6px;width:30px;height:30px;font-size:18px;cursor:pointer}
.construction-rule-options{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:2px 14px;padding:10px 16px 14px;border-top:1px solid #edf0f3}
.sticky-save{position:sticky;bottom:0;margin:18px 0 0;padding:13px 16px;border:1px solid #dfe4ea;border-radius:10px;background:rgba(255,255,255,.96);display:flex;justify-content:flex-end;align-items:center;gap:16px;box-shadow:0 -4px 18px rgba(0,0,0,.06)}
@media(max-width:900px){.style-rule-grid{grid-template-columns:1fr 1fr}.style-builder-head{display:block}}
@media(max-width:600px){.style-rule-grid{grid-template-columns:1fr}}

/* v0.3.16 option-specific construction fabrics */
.option-fabric-rule{border:1px solid #e7ebef;border-radius:8px;padding:9px 10px;background:#fff}
.option-title{margin-bottom:4px}.fabric-rule-editor{margin:8px 0 2px 24px;padding:10px;border-left:3px solid #dce4ec;background:#fafbfc;border-radius:4px}
.fabric-rule-editor>label{display:flex;gap:10px;align-items:center;font-weight:600;margin-bottom:8px}.fabric-rule-editor select{min-width:190px}
.fabric-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1px 10px;max-height:220px;overflow:auto}

/* v0.3.17 Style Builder compact option/fabric layout */
#constructionRules .construction-rule-options{
 display:block!important;
 padding:8px 12px 12px;
}
#constructionRules .construction-rule-options[style*="none"]{display:none!important}
#constructionRules .option-fabric-rule{
 display:block;
 width:100%;
 min-height:0;
 margin:7px 0;
 padding:0;
 border:1px solid #e1e6eb;
 border-radius:8px;
 overflow:hidden;
 background:#fff;
}
#constructionRules .option-rule-head{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 min-height:44px;
 padding:7px 10px;
 background:#fff;
}
#constructionRules .option-title{
 margin:0;
 padding:0;
 min-width:0;
 font-size:14px;
 color:#172033;
}
#constructionRules .option-title strong{display:inline;white-space:normal}
#constructionRules .fabric-toggle{
 flex:0 0 auto;
 border:1px solid #d6dde5;
 border-radius:6px;
 padding:6px 10px;
 background:#f8fafb;
 color:#243247;
 cursor:pointer;
}
#constructionRules .fabric-toggle:disabled{opacity:.5;cursor:default}
#constructionRules .fabric-rule-editor{
 margin:0;
 padding:12px 14px 14px;
 border:0;
 border-top:1px solid #e7ebef;
 border-radius:0;
 background:#fafbfc;
}
#constructionRules .fabric-toolbar{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
 margin-bottom:10px;
}
#constructionRules .fabric-toolbar label{display:flex;align-items:center;gap:8px;font-weight:600}
#constructionRules .fabric-toolbar select{min-width:180px;width:auto}
#constructionRules .fabric-checks{
 display:grid;
 grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
 gap:4px 12px;
 max-height:260px;
 overflow:auto;
 padding:4px;
}
#constructionRules .fabric-checks .rule-check{
 min-height:30px;
 margin:0;
 padding:5px 7px;
 border-radius:5px;
 background:#fff;
 color:#172033;
}

/* v0.3.18 compact named fabric rows */
#constructionRules .fabric-checks{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:6px 12px!important;max-height:320px!important;overflow-y:auto!important;overflow-x:hidden!important;align-items:start!important}
#constructionRules .fabric-checks .rule-check{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:auto!important;min-width:0!important;min-height:34px!important;height:auto!important;padding:6px 9px!important;margin:0!important;border:1px solid #e6eaee!important;border-radius:6px!important;background:#fff!important;text-align:left!important}
#constructionRules .fabric-checks .rule-check input{flex:0 0 auto!important;margin:0!important}
#constructionRules .fabric-checks .rule-check span{display:block!important;min-width:0!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important}

/* v0.3.19: isolated Style Builder fabric rows.
   Intentionally does not reuse .rule-check / colour tile / generic grid styles. */
#constructionRules .sb-fabric-list{
 display:flex!important;
 flex-direction:column!important;
 width:100%!important;
 max-height:320px!important;
 overflow-y:auto!important;
 overflow-x:hidden!important;
 gap:0!important;
 padding:0!important;
 margin:0!important;
}
#constructionRules .sb-fabric-row{
 display:flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:flex-start!important;
 width:100%!important;
 min-width:0!important;
 min-height:36px!important;
 height:36px!important;
 max-height:36px!important;
 margin:0!important;
 padding:0 10px!important;
 gap:10px!important;
 border:0!important;
 border-bottom:1px solid #e7ebef!important;
 border-radius:0!important;
 background:#fff!important;
 box-shadow:none!important;
 overflow:hidden!important;
 cursor:pointer!important;
}
#constructionRules .sb-fabric-row:last-child{border-bottom:0!important}
#constructionRules .sb-fabric-row:hover{background:#f5f7f9!important}
#constructionRules .sb-fabric-row input.fabric-enable{
 display:block!important;
 position:static!important;
 flex:0 0 16px!important;
 width:16px!important;
 min-width:16px!important;
 max-width:16px!important;
 height:16px!important;
 min-height:16px!important;
 max-height:16px!important;
 margin:0!important;
 padding:0!important;
}
#constructionRules .sb-fabric-name{
 display:block!important;
 position:static!important;
 flex:1 1 auto!important;
 width:auto!important;
 min-width:0!important;
 height:auto!important;
 min-height:0!important;
 max-height:none!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 background:transparent!important;
 font-size:14px!important;
 font-weight:400!important;
 line-height:20px!important;
 text-align:left!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
 word-break:normal!important;
 overflow-wrap:normal!important;
 writing-mode:horizontal-tb!important;
}

/* v0.3.20: strict vertical construction-fabric list */
#constructionRules .sb-fabric-list{
 display:block!important;
 width:100%!important;
 max-height:360px!important;
 overflow-y:auto!important;
 overflow-x:hidden!important;
 padding:0!important;
 margin:0!important;
 column-count:1!important;
 columns:auto!important;
}
#constructionRules .sb-fabric-row{
 display:flex!important;
 flex-flow:row nowrap!important;
 align-items:center!important;
 justify-content:flex-start!important;
 box-sizing:border-box!important;
 width:100%!important;
 min-width:100%!important;
 max-width:100%!important;
 height:38px!important;
 min-height:38px!important;
 max-height:38px!important;
 padding:0 10px!important;
 margin:0!important;
 gap:10px!important;
 float:none!important;
 clear:both!important;
 position:relative!important;
 border:0!important;
 border-bottom:1px solid #e7ebef!important;
 border-radius:0!important;
 background:#fff!important;
}
#constructionRules .sb-fabric-row input.fabric-enable{
 position:static!important;
 display:inline-block!important;
 flex:0 0 16px!important;
 width:16px!important;
 height:16px!important;
 margin:0!important;
}
#constructionRules .sb-fabric-row .sb-fabric-name{
 position:static!important;
 display:block!important;
 flex:1 1 auto!important;
 width:auto!important;
 min-width:0!important;
 height:auto!important;
 margin:0!important;
 padding:0!important;
 writing-mode:horizontal-tb!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
 text-align:left!important;
}

/* v0.3.21 Garment Construction accordion */
#constructionRules .construction-rule-card{overflow:hidden}
#constructionRules .accordion-head{
 appearance:none;width:100%;border:0;margin:0;padding:12px 14px;background:#fafbfc;
 display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;
 text-align:left;color:#172033;cursor:pointer;
}
#constructionRules .accordion-head:hover{background:#f3f6f8}
#constructionRules .accordion-chevron{font-size:25px;line-height:20px;transform:rotate(0deg);transition:transform .15s ease;text-align:center}
#constructionRules .accordion-head[aria-expanded="true"] .accordion-chevron{transform:rotate(90deg)}
#constructionRules .category-selected-count{font-size:12px;font-weight:500;color:#718096;white-space:nowrap}
#constructionRules .construction-rule-options{display:block;padding:8px 12px 12px!important;border-top:1px solid #edf0f3}
#constructionRules .simple-construction-option{
 display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:7px 10px;
 border-bottom:1px solid #edf0f3;background:#fff;font-weight:400;cursor:pointer;
}
#constructionRules .simple-construction-option:last-child{border-bottom:0}
#constructionRules .simple-construction-option:hover{background:#f7f9fa}
#constructionRules .simple-construction-option input{flex:0 0 auto;margin:0}
#constructionRules .option-title{display:flex;align-items:center;gap:9px;margin:0;padding:0;font-size:14px}
#constructionRules .option-title input{flex:0 0 auto;margin:0}

/* v0.3.24 option-specific fabrics: Collar/Cuff/Pocket/Gusset only */
#constructionRules .option-fabric-rule{display:block;width:100%;border-bottom:1px solid #edf0f3;background:#fff}
#constructionRules .option-rule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:6px 10px}
#constructionRules .option-title{display:flex;align-items:center;gap:9px;min-width:0;margin:0;font-weight:400}
#constructionRules .fabric-toggle{flex:0 0 auto;padding:6px 10px;border:1px solid #d6dde5;border-radius:6px;background:#f8fafb;cursor:pointer}
#constructionRules .fabric-toggle:disabled{opacity:.5;cursor:default}
#constructionRules .fabric-rule-editor{padding:10px 14px 14px;border-top:1px solid #edf0f3;background:#fafbfc}
#constructionRules .fabric-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
#constructionRules .fabric-toolbar label{display:flex;align-items:center;gap:8px;font-weight:600}
#constructionRules .sb-fabric-list{display:block!important;width:100%!important;max-height:320px!important;overflow-y:auto!important;overflow-x:hidden!important}
#constructionRules .sb-fabric-row{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;height:36px!important;min-height:36px!important;padding:0 10px!important;margin:0!important;border:0!important;border-bottom:1px solid #e7ebef!important;background:#fff!important}
#constructionRules .sb-fabric-name{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important;writing-mode:horizontal-tb!important}

/* v0.3.26 User Manager */
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.button{display:inline-block;text-decoration:none;border:1px solid #d5dbe2;border-radius:6px;padding:7px 11px;background:#fff;color:#172033;font:inherit;cursor:pointer}
.button.primary,button.primary{background:#172033;color:#fff;border-color:#172033}
.notice{padding:10px 12px;border-radius:7px;margin:0 0 14px}.notice.success{background:#edf8f0}.notice.error{background:#fff0f0}
.status-pill{display:inline-block;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:600}.status-active{background:#edf8f0}.status-disabled{background:#f1f3f5;color:#667085}
.actions{white-space:nowrap}.actions form{margin-left:6px}.table-wrap{overflow-x:auto}
.user-form-panel{max-width:760px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-weight:600}.form-grid input,.form-grid select{width:100%;box-sizing:border-box}.span-2{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;margin-top:18px}
@media(max-width:700px){.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.panel-head{align-items:flex-start;flex-direction:column}}

/* v0.3.27 Production Method fabric configuration */
.pm-rule-row{border-bottom:1px solid #edf0f3;padding:7px 0}.pm-rule-row:last-child{border-bottom:0}
.pm-rule-row>.rule-check{display:inline-flex;align-items:center;gap:7px;min-width:210px}
.pm-fabric-toggle{float:right;padding:5px 9px;border:1px solid #d6dde5;border-radius:6px;background:#f8fafb;cursor:pointer}
.pm-fabric-toggle:disabled{opacity:.5;cursor:default}
.pm-fabric-editor{clear:both;margin-top:8px;padding:10px;border:1px solid #e2e7ec;border-radius:7px;background:#fafbfc}
.pm-fabric-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.pm-fabric-list{display:block;max-height:280px;overflow-y:auto;background:#fff}
.pm-fabric-row{display:flex;align-items:center;gap:9px;width:100%;min-height:34px;padding:5px 8px;border-bottom:1px solid #edf0f3;box-sizing:border-box}
.pm-fabric-row:last-child{border-bottom:0}

/* v0.3.28 cleaner Production Method configuration */
.production-method-card #rule-productionmethod{display:block}
.production-method-card .pm-rule-row{padding:0;border-bottom:1px solid #e7ebef}
.production-method-card .pm-rule-row:last-child{border-bottom:0}
.production-method-card .pm-rule-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-height:52px;padding:8px 10px}
.production-method-card .pm-method-check{display:flex;align-items:center;gap:10px;min-width:0;margin:0;cursor:pointer;font-weight:500}
.production-method-card .pm-method-check input{flex:0 0 auto;margin:0}
.production-method-card .pm-method-check span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.production-method-card .pm-fabric-toggle{float:none;min-width:132px;margin:0;padding:7px 11px}
.production-method-card .pm-fabric-editor{margin:0 10px 10px;padding:10px 12px}
@media(max-width:620px){
 .production-method-card .pm-rule-main{grid-template-columns:1fr}
 .production-method-card .pm-fabric-toggle{width:100%}
}

/* v0.3.29: Product Information Rules in two rows */
.style-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.production-method-card .pm-rule-main{grid-template-columns:minmax(0,1fr) auto!important}
.production-method-card .pm-method-check{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
.production-method-card .pm-method-name{display:inline-block!important;color:#172033!important;opacity:1!important;visibility:visible!important;font-weight:500!important;white-space:normal!important}
.production-method-card .pm-fabric-toggle{min-width:150px!important}
@media(max-width:800px){.style-rule-grid{grid-template-columns:1fr!important}}

/* v0.3.30 Product Files / Tech Pack */
.section-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.section-title-row h2{margin-bottom:4px}
.product-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.product-file-card{border:1px solid #dfe5eb;border-radius:10px;padding:14px;background:#fff;min-width:0}.product-file-card.has-file{background:#fbfcfd}
.product-file-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.product-file-card-head h3{margin:0 0 2px}.file-requirement,.file-status{font-size:12px;color:#667085}.file-status{white-space:nowrap}
.file-drop-zone{display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:120px;border:2px dashed #cbd5df;border-radius:9px;padding:14px;cursor:pointer;background:#f8fafc;transition:.15s ease}.file-drop-zone:hover,.file-drop-zone.dragging{border-color:#667085;background:#f1f4f7}.file-drop-zone input{display:none}.file-drop-zone strong{margin-bottom:3px}.file-drop-zone span,.file-drop-zone small{color:#667085;font-size:12px}.selected-upload{min-height:20px;padding-top:7px;font-size:12px}
.current-file{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e8ecf0;margin-top:6px;padding-top:10px}.current-file>div:first-child{min-width:0}.current-file strong,.current-file small{display:block;overflow:hidden;text-overflow:ellipsis}.current-file small{color:#667085;margin-top:2px}.file-actions{display:flex;gap:6px;flex-shrink:0}.btn.small,button.small{padding:6px 9px;font-size:12px}.remove-file-check{display:flex!important;align-items:center;gap:7px;margin-top:10px;font-size:12px;color:#667085}
.techpack-list{margin-top:12px;border:1px solid #e2e7ec;border-radius:9px;overflow:hidden}.techpack-row{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:10px;padding:11px 13px;border-bottom:1px solid #edf0f3}.techpack-row:last-child{border-bottom:0}.techpack-row b,.techpack-row small{display:block}.techpack-row small{color:#667085;margin-top:2px}.techpack-state{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-weight:700}.techpack-state.ready{background:#e8f7ee;color:#237a43}.techpack-state.missing{background:#fff1f0;color:#b42318}.techpack-state.optional{background:#f2f4f7;color:#667085}.techpack-warning{margin-top:10px;padding:10px 12px;border-radius:7px;background:#fff7e6}
.size-chart-manager{margin-top:14px}.size-chart-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.4fr) auto;align-items:center;gap:18px;padding:13px 4px;border-bottom:1px solid #e7ebef}.size-chart-name strong,.size-chart-name small,.size-chart-current strong,.size-chart-current small{display:block}.size-chart-name small,.size-chart-current small{color:#667085;margin-top:2px}.size-chart-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.size-chart-actions form{margin:0}.inline-upload input{display:none}
@media(max-width:850px){.product-file-grid{grid-template-columns:1fr}.size-chart-row{grid-template-columns:1fr}.size-chart-actions{justify-content:flex-start;flex-wrap:wrap}.current-file{align-items:flex-start;flex-direction:column}}
