/* Scope visual changes to the furniture color tab. */
#dp-colors.stool-palette-ready{display:flex;flex-direction:column;gap:0;align-items:stretch}#dp-colors.stool-palette-ready[hidden]{display:none!important}
#dp-colors.stool-palette-ready>.dp-custom-color,#dp-colors.stool-palette-ready>#muji-any-color{display:none!important}
#stool-furniture-palette{order:1;min-width:0}#stool-furniture-palette h2{font-size:14px;margin:0}#stool-furniture-palette h3{font-size:11px;color:#6d6d65;margin:12px 0 8px}.stool-color-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}#stool-current-color{font-size:11px;color:#6d6d65}.stool-color-note{font-size:10px;line-height:1.6;color:#77776e;margin:6px 0 8px}
#stool-furniture-palette .stool-color-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
#dp-colors #stool-furniture-palette button[data-color]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;height:auto;min-width:0;min-height:56px;padding:5px 1px;border:1px solid transparent;border-radius:9px;box-shadow:none;background:transparent;color:#373735;font:10px NotoSansJP,sans-serif;cursor:pointer}
#dp-colors #stool-furniture-palette button[data-color] i{display:flex;align-items:center;justify-content:center;width:28px;height:28px;box-sizing:border-box;border:1px solid #37373525;border-radius:50%;font:16px NotoSansJP,sans-serif;font-style:normal}
#dp-colors #stool-furniture-palette button[data-color] span{font-size:10px;line-height:1.35;overflow-wrap:anywhere}#dp-colors #stool-furniture-palette button[data-color][aria-pressed=true]{border-color:#373735;background:#f6f6f3;box-shadow:none}
#stool-furniture-palette button:focus-visible,#stool-furniture-palette input:focus-visible,#stool-furniture-palette summary:focus-visible{outline:2px solid #373735;outline-offset:2px}
#stool-furniture-palette details{border-top:1px solid #e5e5df;margin-top:12px}#stool-furniture-palette summary{font:12px NotoSansJP,sans-serif;min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer}#stool-furniture-palette summary::before{content:'+';width:12px}#stool-furniture-palette details[open]>summary::before{content:'−'}
.stool-custom-row{display:flex;align-items:end;gap:10px}.stool-custom-row label{display:grid;flex:1;min-width:0;gap:6px;font-size:11px}#stool-color-hex{width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:8px 10px;border:1px solid #b8b8b0;border-radius:8px;font:16px NotoSansJP,sans-serif;color:#373735;background:#fff}
#dp-colors #stool-color-apply{width:auto;height:auto;min-height:44px;border:1px solid #373735;border-radius:8px;box-shadow:none;padding:8px 12px;font:12px NotoSansJP,sans-serif;background:#373735;color:#fff}
#stool-color-error{font-size:11px;line-height:1.6;color:#8c493d;margin:6px 0}#stool-color-error:empty{display:none}.stool-native-color{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:12px 0;min-height:44px}#stool-color-native{width:64px;height:44px;border:1px solid #d6d6cd;background:#fff;border-radius:8px;padding:3px}
#stool-material-options .dp-part-controls{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 0 8px}#stool-material-options .dp-part-controls>label:has(#dp-part-select){display:none}#stool-material-options #dp-part-reset{width:100%;height:auto;border:1px solid #d1d1c8;border-radius:8px;box-shadow:none;font-size:12px}
#dp-colors.stool-palette-ready #muji-part-visual{order:0;display:grid;grid-template-columns:minmax(0,1fr) 124px;gap:6px 10px;margin:0 0 8px;padding:10px;border-color:#deded5;border-radius:10px;box-sizing:border-box}
#dp-colors.stool-palette-ready #muji-part-visual>b{display:flex;align-items:center;justify-content:space-between;font-size:12px;grid-column:1/-1}#dp-colors.stool-palette-ready #muji-part-current{font-size:11px;margin:0;grid-column:1;line-height:1.5}
#dp-colors.stool-palette-ready #muji-part-canvas{grid-column:2;grid-row:2/4;align-self:center}#dp-colors.stool-palette-ready #muji-part-canvas canvas{width:124px!important;height:62px!important;max-width:124px!important}
#dp-colors.stool-palette-ready #muji-part-buttons{grid-column:1;margin:0;gap:5px}#dp-colors.stool-palette-ready #muji-part-buttons button{min-width:0;padding:6px 8px;font-size:10px;border-color:#d3d3ca}
#dp-colors.stool-palette-ready #muji-part-visual small{display:none;grid-column:1/-1;font-size:10px;line-height:1.5;color:#77776e}
#dp-colors #stool-part-preview-toggle{width:44px;height:44px;min-height:44px;border:1px solid #deded5;border-radius:8px;box-shadow:none;background:white;color:#373735;font-size:20px}
#dp-colors.stool-palette-ready #muji-part-visual.stool-preview-expanded #muji-part-canvas{grid-column:1/-1;grid-row:auto}#dp-colors.stool-palette-ready #muji-part-visual.stool-preview-expanded canvas{width:100%!important;height:auto!important;max-width:420px!important}#dp-colors.stool-palette-ready #muji-part-visual.stool-preview-expanded small{display:block}
@media(max-width:360px){#stool-furniture-palette .stool-color-grid{grid-template-columns:repeat(5,minmax(0,1fr))}#dp-colors.stool-palette-ready #muji-part-visual{grid-template-columns:minmax(0,1fr) 100px}#dp-colors.stool-palette-ready #muji-part-canvas canvas{width:100px!important;height:50px!important}}
@media(min-width:900px){#dp-colors.stool-palette-ready #muji-part-visual{grid-template-columns:minmax(0,1fr) 180px}#dp-colors.stool-palette-ready #muji-part-canvas canvas{width:180px!important;height:90px!important}}
