:root{color-scheme:dark;--g:#53fc18;--bg:#090d0b;--line:#29352d;--muted:#a8b5ad}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f2f7f3;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:600}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}a{color:inherit}button{cursor:pointer}.gallery-wrap{width:min(1200px,calc(100% - 32px));margin:auto;padding:28px 0 100px}.gallery-kicker{color:var(--g);font-size:11px;letter-spacing:.12em;font-weight:850}.kg-page-header h1{margin:10px 0 12px;font-size:clamp(30px,5vw,52px);letter-spacing:-.045em;line-height:1.05}.kg-page-header p{max-width:720px;font-size:15px;color:var(--muted);line-height:1.65;margin:0 0 24px}.kg-page-header strong{color:var(--g)}.gallery-filters{display:grid;grid-template-columns:1fr 1.4fr 1fr auto;gap:12px;padding:16px;border:1px solid var(--line);background:#111813;border-radius:16px}.gallery-filters label{display:grid;gap:7px;font-size:10px;font-weight:850;letter-spacing:.07em;min-width:0}.gallery-filters input,.gallery-filters select{min-width:0;width:100%;background:#090e0b;color:#eef5f0;border:1px solid #35463a;border-radius:10px;padding:12px;font-size:14px;min-height:45px}.gallery-filters button{align-self:end;min-height:45px;border:0;border-radius:10px;padding:10px 18px;background:var(--g);color:#101a10;font-size:12px;font-weight:900}.gallery-summary{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin:22px 0 14px}.gallery-summary>span:first-child{color:white;font-weight:850}#galleryStatus:empty{display:none}#galleryStatus{font-size:14px;line-height:1.6;color:var(--muted)}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-height:100px}.gallery-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#111813}.photo-open{display:block;aspect-ratio:16/9;background:#060907;overflow:hidden}.photo-open img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}.photo-open:hover img{transform:scale(1.025)}.photo-open:focus-visible{outline:3px solid var(--g);outline-offset:-3px}.photo-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;font-size:12px}.photo-meta>a{font-size:14px;font-weight:850;text-decoration:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-meta>a:hover{color:var(--g)}.photo-meta time{color:#9baa9e;white-space:nowrap;font-size:10px}.gallery-empty{grid-column:1/-1;border:1px dashed #3b4c3d;padding:42px 18px;border-radius:14px;text-align:center;font-size:15px;color:var(--muted);line-height:1.65}.gallery-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:26px}.gallery-pagination button,.viewer-arrows button,.gallery-close{min-width:44px;min-height:44px;border:1px solid #3d5142;border-radius:10px;background:#152119;color:#fff;padding:10px 14px;font-size:12px;font-weight:800}button:disabled{opacity:.35;cursor:default}#galleryViewer{width:min(1200px,calc(100% - 24px));max-height:94dvh;padding:0;border:1px solid #48614e;border-radius:16px;background:#080c09;color:#fff;overflow:auto}#galleryViewer::backdrop{background:rgba(0,0,0,.9)}#galleryFullImage{display:block;width:100%;max-height:75dvh;object-fit:contain;min-height:120px}.gallery-close{position:absolute;right:10px;top:10px;z-index:2;background:#0b140dee}#galleryViewer footer{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:15px;font-size:13px}#galleryAuthor{font-weight:850;text-decoration:none;color:var(--g)}#galleryTime{color:var(--muted)}#galleryOriginal{margin-left:auto;font-size:11px;font-weight:850}.viewer-arrows{display:flex;justify-content:center;gap:12px;padding:0 12px 12px}.gallery-admin-tools{display:flex;flex-wrap:wrap;gap:10px;padding:16px;margin:15px 0;border:1px solid var(--line);border-radius:14px}.gallery-admin-tools>a,.gallery-admin-tools>button,.photo-admin button{min-height:42px;border:1px solid #405344;border-radius:9px;background:#18251b;color:#fff;padding:10px 14px;text-decoration:none;font-weight:800;font-size:12px}.gallery-admin-tools>button{background:var(--g);color:#0b1708}.photo-admin{display:flex;align-items:center;gap:8px;padding:0 12px 12px;flex-wrap:wrap}.photo-admin small{color:#ffca89}.photo-admin button{padding:8px;font-size:11px;min-height:40px}.photo-admin button[data-action=delete]{color:#ffadad}#importStatus{font-size:13px;color:var(--muted);line-height:1.6}.admin-gallery .gallery-wrap{padding-top:28px}@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-filters{grid-template-columns:1fr 1fr}.photo-meta{flex-wrap:wrap;gap:5px}.photo-meta time{font-size:11px}}@media(max-width:520px){.gallery-wrap{width:calc(100% - 24px);padding-top:22px}.gallery-filters{padding:12px;gap:10px}.gallery-filters label:nth-child(2){grid-column:1/-1;grid-row:2}.gallery-filters button{grid-column:1/-1}.gallery-grid{grid-template-columns:1fr;gap:12px}.gallery-summary>span:nth-child(2){display:none}.photo-meta{flex-wrap:nowrap}.photo-meta>a{font-size:15px}.photo-meta time{font-size:11px}.kg-page-header p{font-size:14px}.gallery-pagination{gap:12px}#galleryOriginal{margin-left:0}#galleryFullImage{max-height:65dvh}}@media(prefers-reduced-motion:reduce){.photo-open img{transition:none}}

.gallery-random{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:0 0 16px}.gallery-random button,.photo-like{border:1px solid #3d5943;background:#15281a;color:#e7f5eb;border-radius:9px;padding:10px 14px;font:800 13px/1.4 Inter,Arial,sans-serif;cursor:pointer}.gallery-random span{font-size:13px;color:#a8b5ad}.photo-like{margin:0 12px 12px;padding:7px 12px;min-height:36px}.photo-like[aria-pressed=true]{color:#53fc18;border-color:#53fc18}.photo-like:disabled{opacity:.5}.memory-report{color:#53fc18;text-underline-offset:3px}#galleryViewer .photo-like{margin:0}