:where(.cp-style-current,#cp-style-picker) .theme-swatch{height:80px;border-radius:5px;overflow:hidden;position:relative}
:where(.cp-style-current,#cp-style-picker) .theme-swatch svg{width:100%;height:100%;display:block;fill:currentColor}
:where(.cp-style-current,#cp-style-picker) .theme-swatch .line{fill:none;stroke:currentColor;stroke-width:1.2}
:where(.cp-style-current,#cp-style-picker) .theme-swatch :is(.art-wash,.silhouette-wash){opacity:.12}
:where(.cp-style-current,#cp-style-picker) .theme-swatch .fold-light{opacity:.25}
:where(.cp-style-current,#cp-style-picker) .theme-swatch .fold-shadow{opacity:.5}
.cp-wrap-summary,.cp-style-current,#cp-style-preview{display:flex;align-items:center;gap:12px}
.cp-wrap-summary{flex-wrap:wrap;justify-content:space-between}
.cp-style-current .theme-swatch{width:60px;height:42px;flex:none}
#cp-browse-styles,#cp-style-cancel{min-height:44px}
#cp-style-picker{width:min(700px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #cbd4ca;border-radius:14px;background:#fffdf5;color:#193d34;overflow:hidden}
#cp-style-picker[open]{display:flex;flex-direction:column}
#cp-style-picker::backdrop{background:#193d347a}
#cp-style-picker > header,#cp-style-picker > footer{position:static;height:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 20px;background:#fffdf5}
#cp-style-picker > footer{justify-content:flex-end;border-top:1px solid #cbd4ca}
#cp-style-picker h3,#cp-style-picker h4,#cp-style-picker p{margin:0}
#cp-style-help,#cp-style-preview p{margin-top:4px}
#cp-style-picker .cp-style-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;padding:0 20px 18px}
#cp-style-preview{position:sticky;top:0;z-index:2;isolation:isolate;background:#fffdf5;padding:8px 0 12px;border-bottom:1px solid #cbd4ca}
#cp-themes{position:relative;z-index:0;isolation:isolate}
#cp-style-preview .theme-swatch{width:92px;height:64px;flex:none}
#cp-style-picker h4{margin:16px 0 8px}
#cp-style-picker .cp-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#cp-style-picker .theme{position:relative;display:grid;gap:5px;padding:6px;border:1px solid #cbd4ca;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}
#cp-style-picker .theme:has(input:checked){border-color:#3158d8;box-shadow:inset 0 0 0 1px #3158d8}
#cp-style-picker .theme:has(input:focus-visible){outline:2px solid #3158d8;outline-offset:2px}
#cp-style-picker .theme input{z-index:1;position:absolute;top:9px;right:9px;accent-color:#3158d8}
@media(max-width:600px){
 :where(.cp-style-current,#cp-style-picker) .theme-swatch{height:86px}
 #cp-style-picker{width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0}
 #cp-style-picker > header,#cp-style-picker > footer{padding:10px 12px}
 #cp-style-picker > footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}
 #cp-style-picker .cp-style-scroll{padding-inline:12px}
 #cp-style-picker .cp-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
