* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", sans-serif; background: #f4f3fa; color: #22203a; }
header { background: #2d2a5a; color: #fff; padding: 16px 20px; }
h1 { margin: 0 0 10px; font-size: 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 0; border-radius: 8px; padding: 8px 14px; background: #46417e; color: #fff; cursor: pointer; font-size: 15px; }
.tab.active { background: #f0b83a; color: #22203a; font-weight: 600; }
main { padding: 18px 20px 40px; max-width: 1200px; margin: 0 auto; }
.panel { display: none; }
.panel.active { display: block; }
h2 { font-size: 18px; margin: 26px 0 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
input[type="search"] { padding: 9px 12px; border: 1px solid #c8c4e0; border-radius: 8px; font-size: 15px; min-width: 240px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid #b8b2da; background: #fff; border-radius: 16px; padding: 5px 11px; cursor: pointer; font-size: 14px; }
.chip.active { background: #2d2a5a; color: #fff; border-color: #2d2a5a; }
.batch-info { color: #5a5680; margin-bottom: 12px; font-size: 15px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
figure { margin: 0 0 16px; background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 3px rgba(40,30,90,.08); }
figcaption { font-size: 14px; color: #5a5680; margin-bottom: 8px; }
img { max-width: 100%; height: auto; display: block; border-radius: 6px; cursor: zoom-in; }
video { width: 100%; border-radius: 6px; background: #000; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.cards li { background: #fff; border-radius: 8px; padding: 9px 12px; font-size: 15px; box-shadow: 0 1px 2px rgba(40,30,90,.06); }
.cards li small { display: block; color: #7a7698; font-size: 12px; margin-top: 2px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.gallery figure { margin: 0; }
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog img { cursor: default; max-height: 94vh; }
dialog::backdrop { background: rgba(10,8,30,.8); }
#closeZoom { position: absolute; top: 8px; right: 10px; border: 0; background: #fff; border-radius: 50%; width: 34px; height: 34px; font-size: 22px; cursor: pointer; }
