.component-gallery{width:min(780px,calc(100vw - 32px));max-width:none;max-height:min(650px,calc(100dvh - 40px));margin:auto;padding:0;border:1px solid #c1d0c8;border-radius:9px;background:#fff;color:#213b33;box-shadow:0 18px 70px #142a3540;font-size:12px;overflow:hidden}
.component-gallery[open]{display:flex;flex-direction:column}
.component-gallery::backdrop{background:#163b3540}
.component-gallery>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px 10px;flex:none;border-bottom:1px solid #e2eae5}
.component-gallery h2{font-size:16px;line-height:22px;margin:0 0 3px}
.component-gallery header p{font-size:11px;line-height:16px;margin:0;color:#61776b}
.component-gallery button{min-height:28px;font-size:12px;padding:4px 8px;border-radius:5px}
.component-gallery header>button{flex:none;min-width:28px;padding:3px}
.component-gallery-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;flex:none;background:#f8faf8}
.component-gallery nav{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}
.component-gallery nav button{white-space:nowrap}.component-gallery nav>span{color:#91a298}.component-gallery nav>strong{line-height:16px}
.component-gallery-search{display:flex;align-items:center;position:relative;max-width:240px;min-width:150px;flex:1}
.component-gallery-search input{width:100%;min-height:30px;padding:5px 29px 5px 8px;font-size:12px;margin:0}
.component-gallery-search input::-webkit-search-cancel-button{display:none}
.component-gallery-search button{position:absolute;right:3px;top:3px;padding:1px 5px;min-height:24px;border:0;background:transparent}
.component-gallery-content{padding:12px 16px 16px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.component-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.component-gallery-grid.categories{grid-template-columns:repeat(3,minmax(0,1fr))}
.component-gallery-grid.templates{grid-template-columns:repeat(2,minmax(0,1fr))}
.component-gallery button.component-gallery-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:9px;text-align:center;min-width:0;gap:5px;background:white;border:1px solid #dae5de;color:#213b33;border-radius:7px}
.component-gallery button.component-gallery-card:hover{border-color:#5a9b82;background:#f4faf6}.component-gallery button.component-gallery-card:focus-visible{outline:2px solid #227f65;outline-offset:2px}
.component-gallery-card[aria-disabled=true]{cursor:default}.component-gallery-card[aria-disabled=true]:hover{border-color:#dae5de;background:white}
.component-gallery-symbol{height:90px;display:flex;align-items:center;justify-content:center;flex:none;color:#152e3b;overflow:hidden}
.component-gallery-symbol svg{display:block;width:100%;height:100%;font-family:Arial,sans-serif;pointer-events:none}
.component-gallery-card strong{font-size:12px;line-height:16px;overflow-wrap:anywhere}
.component-gallery-card>span{font-size:10px;line-height:14px;color:#697d71}.component-gallery-card>small{font-size:10px;line-height:14px;color:#48795f;margin-top:auto;padding-top:3px}
.component-gallery-grid.categories .component-gallery-symbol{height:75px}.component-gallery-grid.categories .component-gallery-card{min-height:165px}
.component-gallery-grid.templates .component-gallery-symbol{height:135px}
.component-gallery-placeholder{font-size:11px;color:#788c80}.component-gallery-empty{margin:35px 12px;text-align:center;color:#61776b;font-size:12px}
.component-gallery>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:9px 16px;border-top:1px solid #e2eae5;flex:none;background:#fafcfb}
.component-gallery>footer>span{margin-right:auto;font-size:10px;line-height:15px;color:#64776b}.component-gallery>footer>span.error{color:#b14333}
@media(max-width:600px){.component-gallery-tools{align-items:stretch;flex-direction:column;gap:7px}.component-gallery-search{max-width:none}.component-gallery-grid,.component-gallery-grid.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.component-gallery-content{padding:10px}.component-gallery-symbol{height:80px}.component-gallery-grid.categories .component-gallery-card{min-height:153px}.component-gallery>footer{padding:8px 10px}}
@media(max-width:380px){.component-gallery-grid.templates{grid-template-columns:1fr}}
