body:not(.storefront) .metal-color-presets.compact-color-templates{display:grid;grid-template-columns:100px minmax(0,1fr) 205px;gap:12px;align-items:start;padding:10px;border:1px solid #ddd9cf;border-radius:8px}
.color-template-heading{display:grid;gap:5px;padding-top:5px}.color-template-heading small{font-size:10px;line-height:1.6;color:var(--muted)}
.compact-color-template-list{display:flex;flex-wrap:wrap;align-content:start;gap:6px;min-width:0}
.compact-color-template{display:inline-flex;align-items:center;max-width:100%;height:29px;border:1px solid #cddbd4;border-radius:6px;background:#fff;overflow:hidden;cursor:grab}
body:not(.storefront) .compact-color-template>button{border:0!important;background:transparent!important;margin:0!important;border-radius:0!important;padding:5px 8px!important;height:27px;font-size:11px;white-space:nowrap;cursor:grab}
body:not(.storefront) .compact-color-template>button.remove{border-left:1px solid #e5ebe8!important;color:#b45445;padding:5px 7px!important;cursor:pointer}
.compact-color-template.dragging{opacity:.45;outline:2px dashed #35785d}
body:not(.storefront) .compact-color-template-add{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
body:not(.storefront) .compact-color-template-add input{width:100%;box-sizing:border-box;min-width:0;border:1px solid var(--line);border-radius:5px;padding:6px 8px;font-size:11px;height:30px}
body:not(.storefront) .compact-color-template-add button{margin:0;padding:6px 8px;border:1px solid var(--line);border-radius:5px;background:#fff;font-size:11px;height:30px}
@media(max-width:900px){body:not(.storefront) .metal-color-presets.compact-color-templates{grid-template-columns:minmax(0,1fr) 190px}.color-template-heading{grid-column:1/-1}}
@media(max-width:600px){body:not(.storefront) .metal-color-presets.compact-color-templates{grid-template-columns:1fr}}
/* Header and a floating add form give the full rectangle to saved colors. */
body:not(.storefront) .metal-color-presets.compact-color-templates{position:relative;display:block;padding:8px 10px;max-width:100%;box-sizing:border-box}
body:not(.storefront) .compact-color-templates .color-template-heading{display:flex;align-items:center;gap:10px;padding:0 0 6px;min-height:24px}
body:not(.storefront) .compact-color-templates .color-template-heading b{font-size:12px;white-space:nowrap}
body:not(.storefront) .compact-color-templates .color-template-heading small{font-size:10px;margin:0}
body:not(.storefront) .compact-color-templates .color-template-add-toggle{margin:0 0 0 auto;padding:3px 9px;height:25px;border:1px solid #cddbd4;background:#fff;border-radius:5px;font-size:11px;white-space:nowrap;cursor:pointer}
body:not(.storefront) .compact-color-templates .compact-color-template-list{width:100%;gap:5px}
body:not(.storefront) .compact-color-templates .compact-color-template-add{position:absolute;right:10px;top:37px;z-index:20;width:240px;padding:10px;background:#fff;border:1px solid #cddbd4;border-radius:8px;box-shadow:0 8px 24px #173f3526}
body:not(.storefront) .compact-color-templates .compact-color-template-add[hidden]{display:none!important}
body:not(.storefront) .spec-section>header.compact-spec-template-header{display:flex;align-items:center;gap:9px;flex-wrap:nowrap;padding-bottom:6px;margin-bottom:6px}
body:not(.storefront) .compact-spec-template-header>div:first-of-type{flex:none}
body:not(.storefront) .compact-spec-template-header h3{margin:0;white-space:nowrap}
body:not(.storefront) .compact-spec-template-header p[hidden]{display:none!important}
body:not(.storefront) .compact-spec-template-header>.color-template-heading{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0}
body:not(.storefront) .compact-spec-template-header .color-template-heading b{font-size:12px;white-space:nowrap}
body:not(.storefront) .compact-spec-template-header .color-template-heading small{font-size:10px;margin:0;white-space:nowrap}
body:not(.storefront) .compact-spec-template-header .color-template-add-toggle{margin-left:auto;height:25px;padding:3px 9px;border:1px solid #cddbd4;border-radius:5px;background:#fff;font-size:11px;white-space:nowrap;cursor:pointer}
body:not(.storefront) .compact-color-templates .compact-color-template-add{top:4px}
/* Override legacy preset grids that reserved an empty right-hand column. */
body:not(.storefront) .metal-color-presets.compact-color-templates{display:block!important;grid-template-columns:none!important;width:100%;min-width:0}
body:not(.storefront) .compact-color-templates .compact-color-template-list{display:flex!important;width:100%;max-width:none;box-sizing:border-box;justify-content:flex-start;flex-wrap:wrap}
#presetColorEn[hidden],#newSpecColorEn[hidden]{display:none!important}
body:not(.storefront) .manual-spec-additions .spec-custom-color{grid-template-columns:minmax(0,1fr) auto}
