.genjutsu-library-intro{justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px;font-size:14px;line-height:1.6;display:flex}.genjutsu-library-intro p{max-width:70ch;color:var(--gallery-muted)}.genjutsu-library-intro a{white-space:nowrap;text-underline-offset:4px;text-decoration:underline}.explore-page{background:#f8faf9;min-height:calc(100dvh - 80px)}.template-explore{--gallery-bg:#f8faf9;--gallery-ink:#243d2d;--gallery-muted:#6c7c71;--gallery-line:#dce6df;max-width:1600px;color:var(--gallery-ink);background:var(--gallery-bg);margin:auto;padding:0 28px 80px}.template-explore-intro{text-align:center;padding:56px 0 32px}.template-explore-intro h1{letter-spacing:-.045em;font-size:48px;font-weight:700;line-height:1.15}.template-explore-intro h1 span{color:#16a36b;vertical-align:top;font-size:36px}.template-explore-intro p{color:var(--gallery-muted);margin-top:16px;font-size:16px}.template-explore-tabs{border-bottom:1px solid var(--gallery-line);justify-content:center;gap:36px;display:flex}.template-explore-tabs button{color:var(--gallery-muted);white-space:nowrap;border-bottom:2px solid #0000;padding:18px 0;font-size:14px}.template-explore-tabs button[aria-current]{color:var(--gallery-ink);border-color:#10b981;font-weight:600}.template-explore-filters{justify-content:space-between;gap:12px;margin:28px 0 36px;display:flex}.template-explore-search{border:1px solid var(--gallery-line);width:360px;color:var(--gallery-muted);border-radius:10px;align-items:center;gap:10px;padding:10px 14px;display:flex}.template-explore-search input{width:100%;min-width:0;color:var(--gallery-ink);background:0 0;outline:none;font-size:14px}.template-explore-filters select{background:var(--gallery-bg);border:1px solid var(--gallery-line);border-radius:10px;max-width:45%;padding:10px 14px;font-size:14px}.template-explore-group{margin:0 0 44px}.template-explore-group h2{margin-bottom:18px;font-size:18px;font-weight:600}.template-explore-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;display:grid}.template-explore-card{aspect-ratio:3/4;border:1px solid var(--gallery-line);background:#171717;border-radius:14px;position:relative;overflow:hidden}.template-explore-cover{text-align:left;color:#fff;width:100%;height:100%;display:block}.template-explore-cover>img,.template-explore-cover>video{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.template-explore-cover>span:first-child{color:#86efac;place-items:center;height:100%;font-size:13px;display:grid}.template-explore-caption{text-align:center;pointer-events:none;background:linear-gradient(#0000,#000c);justify-content:center;align-items:center;gap:7px;padding:56px 12px 16px;font-size:13px;font-weight:600;display:flex;position:absolute;bottom:0;left:0;right:0}.template-explore-card>.explore-favorite{color:#fff;opacity:0;background:#0000008c;border-radius:50%;place-items:center;width:32px;height:32px;display:grid;position:absolute;top:10px;right:10px}.template-explore-card-use{color:#052e23;text-align:center;white-space:normal;opacity:0;background:#10b981;border-radius:999px;width:max-content;max-width:calc(100% - 16px);padding:8px 12px;font-size:12px;font-weight:700;line-height:1.25;position:absolute;bottom:52px;left:50%;transform:translate(-50%)}.template-explore-card:hover .template-explore-card-use,.template-explore-card:focus-within .template-explore-card-use,.template-explore-card:hover>.explore-favorite,.template-explore-card:focus-within>.explore-favorite{opacity:1}.template-explore button:focus-visible,.template-explore-dialog button:focus-visible,.template-explore-filters select:focus-visible,.template-explore-search:focus-within{outline-offset:3px;outline:2px solid #10b981}.template-explore-status{color:#15803d;justify-content:center;align-items:center;gap:12px;padding:44px 16px;display:flex}.dark .template-explore-status{color:#15803d}.template-explore-status button{text-decoration:underline}.template-explore-empty{text-align:center;padding:64px 16px}.template-explore-empty h2{font-size:24px;font-weight:600}.template-explore-empty p{color:var(--gallery-muted);margin:12px 0 20px}.template-explore-empty button,.template-explore-more{border:1px solid var(--gallery-line);border-radius:999px;padding:12px 24px}.template-explore-more{margin:32px auto;display:block}.template-explore-dialog{border:1px solid var(--gallery-line);background:var(--gallery-bg);width:min(1100px,100vw - 64px);max-width:none;max-height:calc(100dvh - 48px);color:var(--gallery-ink);border-radius:20px;padding:0;overflow:auto}.template-explore-dialog::backdrop{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#000000bf}.template-explore-detail{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);min-height:560px;display:grid}.template-explore-media{background:#090909;justify-content:center;align-items:center;min-width:0;display:flex;overflow:hidden}.template-explore-media>video,.template-explore-media>img{object-fit:contain;width:100%;max-height:75dvh}.template-explore-info{flex-direction:column;gap:28px;min-width:0;padding:44px 28px 24px;display:flex;position:relative}.template-explore-close{padding:6px;position:absolute;top:12px;right:12px}.template-explore-detail-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.template-explore-detail-heading p{color:var(--gallery-muted);margin-bottom:8px;font-size:12px}.template-explore-detail-heading h2{font-size:22px;font-weight:600;line-height:1.3}.template-explore-detail-heading .explore-favorite{color:#059669;padding:8px}.template-explore-prompt h3{margin-bottom:12px;font-size:12px;font-weight:600}.template-explore-prompt p{white-space:pre-wrap;max-height:280px;color:var(--gallery-muted);font-size:14px;line-height:1.75;overflow:auto}.template-explore-step{gap:12px;margin-top:auto;display:flex}.template-explore-step button{border:1px solid var(--gallery-line);border-radius:50%;padding:8px}.template-explore-step button:disabled{opacity:.25}.template-explore-use{color:#052e23;text-align:center;white-space:normal;background:#10b981;border-radius:12px;width:100%;padding:15px 12px;font-weight:600;line-height:1.3}@media (max-width:1100px){.template-explore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:640px){.template-explore{padding:0 16px 48px}.template-explore-intro{padding:36px 0 20px}.template-explore-intro h1{font-size:36px}.template-explore-tabs{justify-content:space-between;gap:0}.template-explore-tabs button{padding:16px 2px;font-size:12px}.template-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-explore-filters{gap:8px;margin:20px 0 28px}.template-explore-search{width:60%;padding:10px}.template-explore-filters select{width:40%;padding:8px}.template-explore-caption{padding-bottom:12px;font-size:12px}.template-explore-dialog{border-radius:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.template-explore-detail{flex-direction:column;min-height:0;display:flex}.template-explore-media>video,.template-explore-media>img{max-height:44dvh}.template-explore-info{gap:20px;padding:32px 20px 20px}.template-explore-prompt p{max-height:160px}.template-explore-group{margin-bottom:32px}}@media (hover:none){.template-explore-card>.explore-favorite,.template-explore-card-use{opacity:1}}.explore-comparison{touch-action:none;-webkit-user-select:none;user-select:none;cursor:ew-resize;background:#17271e;width:100%;height:100%;min-height:160px;position:relative;overflow:hidden}.explore-comparison>img{object-fit:contain;pointer-events:none;width:100%;height:100%;display:block}.explore-comparison-before{pointer-events:none;position:absolute;inset:0}.explore-comparison-before img{object-fit:contain;width:100%;height:100%}.explore-comparison-divider{pointer-events:none;background:#fff;width:2px;position:absolute;top:0;bottom:0;box-shadow:0 0 5px #0008}.explore-comparison-divider span{color:#fff;background:#163d2edb;border:1px solid #fff9;border-radius:50%;place-items:center;width:32px;height:32px;font-size:17px;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.explore-comparison-label{color:#fff;pointer-events:none;background:#0008;border-radius:4px;padding:3px 7px;font-size:10px;position:absolute;top:10px;left:10px}.explore-comparison-label.after{left:auto;right:10px}.explore-comparison input{opacity:0;cursor:ew-resize;width:100%;height:100%;position:absolute;inset:0}.explore-comparison:focus-within{outline-offset:-2px;outline:2px solid #21b779}.explore-comparison>p{color:#fff;padding:10px;font-size:12px;position:absolute;bottom:10px}.template-explore-media .explore-comparison{background:#090909;height:560px;max-height:60dvh}@media (max-width:640px){.template-explore-card>.explore-favorite,.template-explore-card-use{opacity:1}}.template-explore-grid.is-video-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1px;grid-auto-flow:dense;gap:10px}.template-explore-card.is-video{aspect-ratio:auto;border:0;border-radius:12px;min-height:0}.template-explore-card.is-video .template-explore-card-use{bottom:14px}@media (max-width:1100px){.template-explore-grid.is-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:640px){.template-explore-grid.is-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}.template-explore-filters{justify-content:flex-start}.template-explore-filters select{margin-left:auto}.template-explore-filters{top:var(--explore-nav-bottom,120px);z-index:30;background:var(--gallery-bg);box-shadow:0 1px 0 var(--gallery-line);margin-top:16px;margin-bottom:24px;padding:12px 0;position:sticky}.genjutsu-intro{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(32px,6vw,96px);margin:28px 0 36px;display:grid}.genjutsu-intro-media{grid-area:1/2;min-width:0}.genjutsu-intro-media video{aspect-ratio:16/9;background:#171717;border-radius:14px;width:100%;height:auto;display:block}.genjutsu-intro-media p{color:#15803d;margin-top:10px;font-size:13px}.dark .genjutsu-intro-media p{color:#86efac}.genjutsu-intro-media button{text-decoration:underline}.genjutsu-intro-copy{grid-area:1/1;max-width:560px}.genjutsu-intro-copy h3{letter-spacing:-.035em;text-wrap:balance;font-size:clamp(28px,3.1vw,44px);font-weight:700;line-height:1.12}.genjutsu-intro-copy p{color:var(--gallery-muted);max-width:48ch;margin-top:18px;font-size:16px;line-height:1.65}@media (max-width:640px){.template-explore-filters{margin-top:8px;margin-bottom:20px}.genjutsu-intro{flex-direction:column;align-items:stretch;gap:28px;margin:20px 0 32px;display:flex}.genjutsu-intro-copy h3{font-size:28px}.genjutsu-intro-copy p{margin-top:12px;font-size:15px;line-height:1.55}.genjutsu-intro-media video{border-radius:12px}}.template-explore-loading{min-height:65vh;padding:8px 0 40px}.template-explore-skeleton-heading{background:var(--gallery-line);border-radius:6px;width:120px;height:22px;margin-bottom:24px}.template-explore-skeleton-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;display:grid}.template-explore-skeleton-card{aspect-ratio:3/4;background:var(--gallery-line);border-radius:12px;animation:1.8s ease-in-out infinite explore-loading-pulse}.template-explore-more-status{color:#15803d;margin:-12px 0 16px;font-size:12px}.dark .template-explore-more-status{color:#15803d}.template-explore-more-status button{margin-left:12px;text-decoration:underline}@keyframes explore-loading-pulse{50%{opacity:.45}}@media (max-width:1024px){.template-explore-skeleton-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:640px){.template-explore-skeleton-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media (prefers-reduced-motion:reduce){.template-explore-skeleton-card{animation:none}}.template-explore-dialog{margin:auto;inset:0}.template-explore-use{position:sticky;bottom:0}.template-explore-info{max-height:calc(100dvh - 50px);overflow:auto}.template-explore-filters{top:var(--studio-header-height,72px)}.template-explore-media{position:relative}.template-explore-group{content-visibility:auto;contain-intrinsic-size:auto 800px}@media (max-width:640px){.template-explore-info{max-height:none;overflow:visible}.template-explore-dialog{max-height:calc(100dvh - 20px)}}.genjutsu-template-details{gap:18px;min-width:0;font-size:12px;line-height:1.6;display:grid}.genjutsu-template-details h3{margin-bottom:8px;font-weight:600}.genjutsu-detail-motion{position:relative}.genjutsu-detail-motion video{background:#101310;border-radius:10px;width:100%;max-height:180px}.genjutsu-detail-images{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.genjutsu-detail-images img{aspect-ratio:1;object-fit:contain;border-radius:8px;width:100%}.genjutsu-detail-images figcaption{margin-top:4px;font-size:10px}.genjutsu-detail-prompt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:250px;overflow:auto}.genjutsu-template-details button{text-underline-offset:3px;font-size:11px;text-decoration:underline}@media (max-width:640px){.genjutsu-library-intro{display:block}.genjutsu-library-intro a{margin-top:12px;display:inline-block}}
