/* Full-page browsing and remixing share one surface and one scroll owner. */
.hm-template-backdrop.hm-template-fullscreen{padding:0;background:#0d0e14;backdrop-filter:none;align-items:stretch}
.hm-template-fullscreen .hm-template-modal{width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;background:radial-gradient(ellipse at 82% 0,#6854bf12,transparent 45%),#0d0e14;box-shadow:none}
.hm-template-fullscreen .hm-template-modal>header{height:84px;padding:16px clamp(20px,4vw,72px);border-bottom:1px solid #ffffff0c;background:#0d0e14e8}
.hm-t-window-title{display:flex;align-items:center;gap:18px;min-width:0}
.hm-t-back{display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff17;background:#ffffff04;border-radius:12px;color:#d5d3e4;font-size:21px!important;flex-shrink:0}
.hm-template-fullscreen .hm-t-window-title small{color:#88819e;font-size:9px;letter-spacing:2.2px}
.hm-template-fullscreen .hm-t-window-title h2{font-size:17px;font-weight:550;margin:5px 0 0;letter-spacing:.3px}
.hm-template-fullscreen .hm-t-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff13;border-radius:50%;font-size:24px!important;background:#ffffff03}
.hm-template-fullscreen .hm-template-scroll{padding:0;scrollbar-gutter:stable;scrollbar-width:thin}
.hm-template-scroll::-webkit-scrollbar,.hm-remix-workspace::-webkit-scrollbar{width:5px}
.hm-template-scroll::-webkit-scrollbar-track,.hm-remix-workspace::-webkit-scrollbar-track{background:#101017}
.hm-template-scroll::-webkit-scrollbar-thumb,.hm-remix-workspace::-webkit-scrollbar-thumb{background:#484050;border-radius:8px}
.hm-t-browser,.hm-t-manager{max-width:1640px;margin:auto;padding:46px clamp(24px,4.5vw,76px) 60px}
.hm-t-browser[hidden],.hm-t-manager[hidden]{display:none}
.hm-template-fullscreen [hidden]{display:none!important}
.hm-t-browse-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:35px}
.hm-t-eyebrow{font-size:9px;color:#a99bd1;letter-spacing:2.5px}
.hm-t-browse-heading h1{font-size:clamp(24px,2.5vw,38px);line-height:1.4;font-weight:550;letter-spacing:-.7px;margin:15px 0 10px;color:#f1eef9}
.hm-t-browse-heading h1 em{font-style:normal;background:linear-gradient(100deg,#d7c9ff,#a69aff 60%,#8ad4d7);color:transparent;background-clip:text;-webkit-background-clip:text}
.hm-t-browse-heading p{color:#8e8a9e;font-size:12px;line-height:1.9;margin:0}
.hm-t-step{font-size:10px;color:#777384;white-space:nowrap;padding-bottom:5px;letter-spacing:.3px}
.hm-t-step i{font-style:normal;color:#413d50;margin:0 10px}
.hm-t-category-tabs{display:flex;gap:8px;border-bottom:1px solid #ffffff0d;padding-bottom:18px;overflow-x:auto;scrollbar-width:none}
.hm-t-category-tabs button{white-space:nowrap;border:1px solid transparent;border-radius:100px;background:transparent;color:#9590a5;padding:10px 20px;font-size:13px;font-weight:500;min-height:42px}
.hm-t-category-tabs button[aria-pressed=true]{color:#e2ff82;background:#d2fa4810;border-color:#d2fa4826}
.hm-t-category-tabs button:hover{background:#ffffff06;color:#e8e4f4}
.hm-t-searchbar{display:flex;align-items:center;gap:10px;margin:26px 0 32px}
.hm-t-searchbar label{display:flex;align-items:center;gap:9px;margin:0;flex:1;max-width:440px;padding:0 14px;border:1px solid #ffffff12;border-radius:12px;background:#ffffff03;color:#868093}
.hm-template-fullscreen .hm-t-searchbar input{background:transparent;border:0;margin:0;padding:12px 0;width:100%;font-size:12px;box-shadow:none}
.hm-t-searchbar label>span{font-size:23px}
.hm-t-searchbar .hm-t-secondary{margin-left:auto;background:transparent;border-color:#ffffff15;color:#a6a0b7}
.hm-template-fullscreen .hm-t-primary{background:#d6fa65;color:#171c08;border-color:#d6fa65;border-radius:11px}
.hm-t-collection-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 19px;gap:20px}
.hm-template-fullscreen .hm-t-collection-heading h2{font-size:16px;font-weight:550;margin:0}
.hm-t-collection-heading>span{font-size:10px;color:#777184}
.hm-template-fullscreen .hm-t-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));gap:28px 22px;align-items:start}
.hm-template-fullscreen .hm-t-browse-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.hm-t-browse-grid .hm-template-cover{height:auto;aspect-ratio:4/3;border-radius:17px;background:#171722}
.hm-t-browse-grid .hm-template-card{max-width:380px}
.hm-t-browse-grid .hm-template-card>button{border:1px solid #ffffff0b;border-radius:18px;background:#14151d;overflow:hidden;padding:0 0 16px;transition:border-color .2s,transform .2s,box-shadow .2s}
.hm-t-browse-grid .hm-template-card>button:hover{transform:translateY(-4px);border-color:#ae99ff55;box-shadow:0 14px 35px #0004}
.hm-t-browse-grid .hm-template-cover{border-radius:0}
.hm-t-browse-grid .hm-template-card h3{font-size:15px;font-weight:550;margin:15px 16px 7px;color:#f0edf6}
.hm-t-browse-grid .hm-template-card p{font-size:11px;color:#888195;margin:0 16px;line-height:1.8;overflow-wrap:anywhere}
.hm-t-browse-grid .hm-template-cover>span{left:13px;top:13px;font-size:10px;border:1px solid #ffffff25;background:#08080c99;backdrop-filter:blur(10px);border-radius:100px;padding:5px 10px}
.hm-t-browse-grid .hm-template-cover>b{left:13px;bottom:13px;border-radius:100px;font-size:9px;background:#08080ca8;padding:5px 9px}
.hm-t-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:32px;border-top:1px solid #ffffff0b;padding-top:22px;color:#777184;font-size:11px}
.hm-t-pagination>div{display:flex;gap:9px}
.hm-t-pagination .hm-t-secondary{background:transparent;border-color:#ffffff15;font-size:11px!important}
.hm-t-empty{padding:65px 20px;text-align:center;border:1px dashed #ffffff12;border-radius:18px;background:#ffffff02}
.hm-t-empty>span{font-size:29px;color:#a293cd}
.hm-t-empty h3{font-size:16px;font-weight:500;color:#d0c9df;margin:15px 0 9px}
.hm-t-empty p{font-size:12px;line-height:1.9;color:#898194;margin:0}
.hm-t-skeletons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;position:relative}
.hm-t-skeletons>div{height:255px;border-radius:17px;background:linear-gradient(120deg,#1b1926,#22202c,#1b1926);animation:hm-template-loading 1.5s ease-in-out infinite alternate}
.hm-t-skeletons>span{position:absolute;left:20px;top:20px;font-size:12px;color:#a69bb9}
.hm-t-manager{max-width:1400px}
.hm-t-manager .hm-t-form{max-width:960px;margin:25px auto;background:#151620;border-color:#ffffff14;border-radius:20px;padding:30px}
.hm-t-manager .hm-t-own{background:#15161f;border-color:#ffffff0f;border-radius:17px;padding:14px}
.hm-gen-modal.hm-remix-workspace,.hm-gen-mobile-page{z-index:90010}
.hm-remix-workspace{background:radial-gradient(ellipse at 80% 0,#6854bf12,transparent 50%),#0d0e14;scrollbar-width:thin}
.hm-generation.is-remix{max-width:1600px;padding:24px clamp(24px,4vw,64px) 60px}
.is-remix .hm-gen-heading{text-align:left;margin:28px 0 28px}
.is-remix .hm-gen-heading h1{font-size:clamp(25px,2.2vw,34px);font-weight:550;margin:13px 0 8px}
.is-remix .hm-gen-heading p{font-size:12px}
.is-remix .hm-gen-remix-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(24px,3.3vw,52px);align-items:start}
.is-remix .hm-gen-remix-context{display:block;margin:0;padding:0;background:#15151e;border:1px solid #ffffff0e;border-radius:21px;overflow:hidden;position:sticky;top:22px}
.is-remix .hm-gen-remix-context>img,.is-remix .hm-gen-remix-context>video{display:block;width:100%;height:clamp(280px,44dvh,560px);border-radius:0;background:#08090d;object-fit:contain}
.is-remix .hm-gen-remix-context>div{padding:22px 24px}
.is-remix .hm-gen-remix-context>div>span{font-size:9px;letter-spacing:1.3px;color:#a99bcd}
.is-remix .hm-gen-remix-context strong{font-size:18px;line-height:1.5;font-weight:550;overflow-wrap:anywhere}
.is-remix .hm-gen-remix-context p{font-size:12px;line-height:1.9;color:#9c93ad;margin:10px 0 18px}
.hm-gen-remix-author{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff0b;padding-top:17px;margin-top:14px}
.hm-gen-remix-author>b{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#8f7ab5,#3c3655);color:#f3eaff;font-size:12px;font-weight:500}
.is-remix .hm-gen-remix-author>span{font-size:11px;line-height:1.6;color:#c3bacf;margin:0}
.hm-gen-remix-author small{display:block;font-size:9px;color:#756c84}
.hm-gen-remix-specs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 14px}
.is-remix .hm-gen-remix-specs span{display:inline-block;color:#aaa0bb;background:#ffffff04;border:1px solid #ffffff09;border-radius:7px;font-size:10px;padding:5px 9px;margin:0}
.hm-gen-editor{min-width:0}
.is-remix .hm-gen-composer{background:#171721;border-color:#ffffff16;border-radius:20px;box-shadow:0 15px 40px #0002}
.is-remix .hm-gen-composer-glow{display:none}
.is-remix .hm-gen-input-area{padding:22px}
.is-remix .hm-gen-input-area textarea{min-height:175px;max-height:350px;font-size:13px;line-height:1.9}
.is-remix .hm-gen-toolbar{padding:18px;background:#ffffff01}
.is-remix .hm-gen-controls{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.is-remix .hm-gen-control,.is-remix .hm-gen-control.model{min-width:0;max-width:none;padding:11px 10px;border-radius:11px}
.is-remix .hm-gen-control.model{grid-column:span 2}
.is-remix .hm-gen-control>span{flex:1}
.is-remix .hm-gen-control small{font-size:9px;margin-bottom:5px}
.is-remix .hm-gen-control select{font-size:12px;max-width:100%}
.is-remix .hm-gen-actionbar{display:flex;align-items:center;gap:20px;padding:18px 0 10px;background:#0d0e14f5;position:sticky;bottom:0;z-index:4}
.is-remix .hm-gen-summary{flex:1;display:flex;flex-direction:column;gap:6px;padding:0;font-size:10px}
.is-remix .hm-gen-summary>div{gap:10px}
.is-remix .hm-gen-summary strong{font-size:17px;font-weight:600;color:#d9f77a}
.is-remix .hm-gen-action-hint{color:#b9a6cd;font-size:10px;line-height:1.5}
.is-remix .hm-gen-submit{align-self:center;min-width:160px;min-height:52px;justify-content:center;border-radius:13px;background:#d6fa65;border-color:#d6fa65;color:#1b210c;box-shadow:none;font-size:13px}
.is-remix .hm-gen-submit:disabled{background:#303128;border-color:#ffffff10;color:#a4a48c}
.is-remix .hm-gen-results{margin-top:42px}
.is-remix .hm-gen-type-switch{display:none}
.hm-template-fullscreen.is-remixing .hm-gen-header{justify-content:flex-end}
.hm-template-fullscreen.is-remixing .hm-gen-header .hm-gen-back{display:none}
.hm-template-fullscreen.is-remixing .hm-gen-heading{margin-top:0}
.hm-template-fullscreen.is-remixing .hm-generation{padding-top:14px}
.hm-gen-library-overlay{z-index:20}
.hm-template-fullscreen .hm-generation :is(label,input,textarea,select){margin-bottom:0}
.hm-template-fullscreen .hm-generation textarea{background:transparent;border:0;border-radius:0;margin:0;padding:9px 0 7px;color:#e9e6f7}
.hm-template-fullscreen .hm-generation .hm-gen-control select{display:block;width:100%;background:transparent;border:0;border-radius:0;margin:0;padding:0;color:#ddd6ef;line-height:1.5}
.hm-template-fullscreen .hm-generation .hm-gen-control{display:flex;line-height:normal}
.hm-t-browser{padding-top:30px}
.hm-t-browse-heading{margin-bottom:25px}
.hm-t-browse-heading h1{margin:12px 0 7px}
.hm-t-searchbar{margin:20px 0 24px}
@keyframes hm-template-loading{to{opacity:.45}}
@media(min-width:1700px){.hm-t-browse-grid .hm-template-cover{aspect-ratio:4/3}}
@media(max-width:1100px){.hm-t-step{display:none}.is-remix .hm-gen-remix-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:24px}.is-remix .hm-gen-remix-context>img,.is-remix .hm-gen-remix-context>video{height:340px}.is-remix .hm-gen-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.is-remix .hm-gen-control.model{grid-column:span 2}.is-remix .hm-gen-submit{min-width:137px}.is-remix .hm-gen-summary strong{font-size:14px}}
@media(max-width:780px){.hm-template-fullscreen .hm-template-modal>header{height:72px;padding:12px 18px}.hm-t-window-title{gap:12px}.hm-template-fullscreen .hm-t-window-title h2{font-size:15px}.hm-template-fullscreen .hm-t-window-title small{font-size:8px;letter-spacing:1.5px}.hm-t-browser,.hm-t-manager{padding:30px 20px 40px}.hm-t-browse-heading{margin-bottom:25px}.hm-t-browse-heading h1{font-size:25px}.hm-t-browse-heading p{font-size:11px}.hm-t-category-tabs{gap:3px;padding-bottom:15px}.hm-t-category-tabs button{font-size:12px;padding:9px 14px}.hm-t-searchbar{flex-wrap:wrap;gap:9px;margin:20px 0 25px}.hm-t-searchbar label{max-width:none;min-width:160px}.hm-t-searchbar .hm-t-secondary{margin-left:0}.hm-template-fullscreen .hm-t-browse-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.hm-t-browse-grid .hm-template-card{max-width:none}.hm-t-browse-grid .hm-template-cover{aspect-ratio:3/4}.hm-t-browse-grid .hm-template-card h3{font-size:13px;margin:11px 11px 5px}.hm-t-browse-grid .hm-template-card p{margin:0 11px;font-size:10px}.hm-t-browse-grid .hm-template-cover>b{font-size:8px;left:8px;bottom:8px}.hm-t-browse-grid .hm-template-cover>span{left:8px;top:8px;font-size:8px;padding:4px 7px}.hm-t-pagination{flex-wrap:wrap;gap:14px;font-size:10px}.hm-t-skeletons{grid-template-columns:1fr 1fr;gap:12px}.hm-t-skeletons>div{height:230px}.hm-t-skeletons>div:nth-child(3){display:none}.hm-generation.is-remix{padding:16px 20px 35px}.is-remix .hm-gen-heading h1{font-size:25px}.is-remix .hm-gen-heading{margin:22px 0}.is-remix .hm-gen-heading p{font-size:11px}.is-remix .hm-gen-remix-layout{display:block}.is-remix .hm-gen-remix-context{position:static;margin-bottom:24px;border-radius:17px}.is-remix .hm-gen-remix-context>img,.is-remix .hm-gen-remix-context>video{height:clamp(220px,38dvh,360px)}.is-remix .hm-gen-remix-context>div{padding:17px 18px}.is-remix .hm-gen-remix-context strong{font-size:16px}.is-remix .hm-gen-remix-context p{max-height:none;font-size:11px}.is-remix .hm-gen-remix-author{padding-top:14px}.is-remix .hm-gen-input-area{padding:19px 17px}.is-remix .hm-gen-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.is-remix .hm-gen-control.model{grid-column:span 2}.is-remix .hm-gen-control{padding:10px 8px}.is-remix .hm-gen-control select{font-size:11px}.is-remix .hm-gen-actionbar{position:fixed;bottom:0;left:0;right:0;padding:13px 20px calc(13px + env(safe-area-inset-bottom));border-top:1px solid #ffffff12;box-shadow:0 -12px 30px #0002;z-index:12;gap:12px}.is-remix .hm-gen-summary{gap:3px;font-size:9px;min-width:0}.is-remix .hm-gen-summary .hm-gen-limit,.is-remix .hm-gen-summary small{display:none}.is-remix .hm-gen-summary strong{font-size:14px}.is-remix .hm-gen-submit{width:auto;min-width:138px;min-height:48px;padding:11px 15px;gap:10px;font-size:12px}.is-remix .hm-gen-submit svg{width:19px}.hm-template-fullscreen.is-remixing .hm-template-scroll,.hm-remix-workspace{padding-bottom:100px}.is-remix .hm-gen-library-overlay{z-index:30}.hm-t-manager .hm-t-form{padding:18px}.hm-template-fullscreen .hm-t-grid:not(.hm-t-browse-grid){grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))}}
@media(prefers-reduced-motion:reduce){.hm-t-skeletons>div{animation:none}.hm-t-browse-grid .hm-template-card>button{transition:none}}
@media(min-width:781px){.is-remix .hm-gen-heading{display:none}.is-remix .hm-gen-header{margin-bottom:20px}.is-remix .hm-gen-input-area textarea{min-height:120px}}
@media(min-width:1101px){.is-remix .hm-gen-controls{grid-template-columns:1.2fr 1fr 1fr}.is-remix .hm-gen-control.model{grid-column:auto}}
.hm-r-cover video.hm-r-preview{opacity:0;transition:opacity .18s ease;pointer-events:none}.hm-r-cover video.hm-r-preview.is-ready{opacity:1}.hm-generation .hm-gen-input-meta{flex-wrap:wrap;gap:10px}.hm-generation .hm-gen-reset-prompt{margin-left:auto}.hm-generation .hm-gen-input-meta>span{margin-left:auto}@media(prefers-reduced-motion:reduce){.hm-r-cover video.hm-r-preview{transition:none}}
