/* Compact creation workspace and editorial discovery grid. */
:root{--studio-sidebar:196px;--community-bg:#111214;--community-surface:#1b1d20}
html,body{background:var(--community-bg)}.bg-stack{background:radial-gradient(ellipse 600px 300px at 54% 8%,#18434a17,transparent)}.bg-grain{opacity:.025}.bg-wash{background:none}
.studio-sidebar{background:#17181a;border-right:1px solid #ffffff04;padding-top:25px}.studio-brand{font-size:23px;padding-bottom:35px}.studio-brand small{font-size:7px;letter-spacing:1.5px;color:#686b71}.sidebar-group-label{display:none}.studio-nav{gap:7px}.studio-nav button{min-height:43px;border-radius:9px;font-weight:500}.studio-nav button.active{background:#ffffff0b;border-color:#ffffff03;color:#f5f5f6}.studio-nav small{color:#85888f}.side-icon{font-size:21px}.topbar{height:64px;background:#111214f2;border-color:#ffffff04;padding-right:30px}.topbar .btn-primary{background:#e9c17e;box-shadow:none}.page{padding-top:64px}.page .section{width:min(1680px,calc(100% - 72px))}.home-stage{padding:34px 36px 0;min-height:0}.hero-eyebrow{display:none}.home-stage h1{font-size:30px;letter-spacing:-.8px;font-weight:650;margin:10px 0 9px;line-height:1.5}.home-stage>.sub{font-size:11px;margin-bottom:25px;color:#696f79}
.composer{width:min(1120px,100%);border:1px solid #ffffff0c;border-radius:18px;box-shadow:none;background:linear-gradient(115deg,#1b2427,#1d2427 60%,#202728)}.composer-heading{display:none}.composer-body{position:relative;padding:15px 20px 6px}.mode-tabs{display:inline-flex;background:#141a1c;border-color:#ffffff08;padding:3px;border-radius:20px}.mode-tab{min-height:28px;padding:4px 13px;font-size:11px;color:#939b9e}.mode-tab.active{color:#1c2223;background:linear-gradient(100deg,#efd9ba,#d3f3f5);box-shadow:none}.composer textarea{min-height:78px;padding:15px 2px 8px;font-size:13px;line-height:1.9;resize:vertical}.composer textarea::placeholder{color:#717a80}.material-toolbar{position:absolute;right:20px;top:17px;display:flex;align-items:center;gap:12px;font-size:10px;color:#7e898e}.material-toolbar>button{font-size:11px;border:1px solid #ffffff12;border-radius:8px;color:#c1c9cc;background:#ffffff03;padding:6px 10px;display:flex;align-items:center;gap:5px;cursor:pointer}.material-toolbar>button[hidden],.material-toolbar>span[hidden]{display:none}.material-toolbar>button>span{font-size:15px;line-height:1}.material-toolbar>button:hover{background:#ffffff0a}.material-toolbar>span{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#materialTray{margin:14px 0 0}#materialTray[hidden]{display:none}#materialTray .ref-grid{margin:0;gap:9px}#materialTray .ref-card{padding:11px 12px;border-radius:11px}.ref-body{min-height:45px}.ref-add{width:43px;height:43px}.ref-card-head b{font-size:11px}.ref-card-head small{font-size:9px}.ref-total{font-size:9px}.mode-help{font-size:10px;margin:7px 0 0;color:#738187}
.composer-tools{padding:11px 15px;border-top:1px solid #ffffff07;gap:10px;background:transparent}.composer-tools .chip{min-height:31px;border-color:#ffffff12;background:#ffffff03;font-size:11px;padding:0 10px;box-shadow:none}.composer-tools .chip-model{border-color:transparent;background:transparent;color:#d7dddf}.composer-tools .chip-model img{width:16px;height:16px}.composer-tools .chip.locked{opacity:.75}.composer-tools .spec-row{gap:7px}.composer-tools .dur-ctl{min-width:160px;height:31px;gap:7px;padding-left:7px;padding-right:9px;background:#ffffff03;border-color:#ffffff0d}.dur-ctl input[type=number]{width:37px;min-height:24px;font-size:11px}.dur-ctl input[type=range]{width:90px}.cost-pill{min-height:32px;font-size:12px;border-color:#ffffff10;background:transparent;padding:0 10px}.generate-btn{min-height:33px;padding:0 20px;font-size:12px;box-shadow:none;background:#e6c38a}.composer-hint{font-size:10px;margin-top:10px;line-height:1.5}.composer-err:empty{display:none}.home-stage>.composer-err{margin-bottom:0}.creative-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:23px 0 26px}.creative-shortcuts>button{border:1px solid #ffffff05;border-radius:12px;background:#1b1d20;color:#e5e6e8;display:flex;align-items:center;gap:13px;text-align:left;padding:8px;min-width:0;cursor:pointer;transition:background .15s}.creative-shortcuts>button:hover{background:#24272b}.creative-shortcuts img,.shortcut-api{width:75px;height:59px;object-fit:cover;border-radius:8px;flex-shrink:0}.creative-shortcuts>button:nth-child(1){background:#142831}.creative-shortcuts>button:nth-child(2){background:#142e2e}.creative-shortcuts>button>span:not(.shortcut-api){min-width:0}.creative-shortcuts b{display:block;font-size:12px;font-weight:550;margin-bottom:7px;white-space:nowrap}.creative-shortcuts small{display:block;font-size:9px;color:#747e86;line-height:1.5}.creative-shortcuts i{font-style:normal;margin-left:auto;margin-right:7px;color:#727b83;font-size:13px}.shortcut-api{display:grid;place-items:center;color:#d7c4a4;font:23px ui-monospace,monospace;background:linear-gradient(140deg,#313034,#20272f)}
.discovery-section{padding:10px 0 50px}.discovery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}.discovery-toolbar>div{display:flex;align-items:center;gap:12px}.discovery-toolbar h2{font-size:18px;margin:0;font-weight:650}.gallery-demo-note{font-size:9px;border:1px solid #ffffff0e;border-radius:4px;padding:3px 6px;color:#696e76;white-space:nowrap}.gallery-search{height:32px;width:270px;border:1px solid #ffffff0f;border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#111214}.gallery-search svg{width:14px;height:14px;fill:none;stroke:#7e858e;stroke-width:1.5;flex-shrink:0}.gallery-search input{width:100%;min-width:0;background:none;border:none;outline:none;color:#d6d9de;font-size:11px}.gallery-search input::placeholder{color:#626975}.gallery-categories{display:flex;gap:7px;overflow:auto;scrollbar-width:none;margin-bottom:19px;white-space:nowrap;padding-bottom:2px}.gallery-categories::-webkit-scrollbar{display:none}.gallery-categories button{background:transparent;border:1px solid transparent;color:#a2a5ad;font-size:11px;padding:8px 14px;border-radius:8px;cursor:pointer;flex-shrink:0}.gallery-categories button.active{color:#f0f1f4;background:#27292c;border-color:#ffffff04}.gallery-categories button:hover{color:#fff;background:#ffffff05}.discovery-caption{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#696f79;font-size:10px;margin-bottom:14px}.discovery-caption>span:first-child{color:#babec5}.discovery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:21px 16px;align-items:start}.discovery-card{display:block;padding:0;border:1px solid #ffffff04;border-radius:12px;background:#1a1c1f;text-align:left;min-width:0;overflow:hidden;color:#f2f2f3;cursor:pointer;transition:transform .18s,border-color .18s}.discovery-card:hover{border-color:#ffffff1b;transform:translateY(-2px)}.discovery-cover{position:relative;display:block;aspect-ratio:1.47;background:#111216;overflow:hidden}.discovery-cover img,.discovery-cover video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.discovery-cover video{opacity:0;pointer-events:none;transition:opacity .12s}.discovery-card.previewing video{opacity:1}.discovery-cover::after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#0007);pointer-events:none}.gallery-play{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;background:#0006;border:1px solid #ffffff30;display:grid;place-items:center;font-size:13px;opacity:0;transition:opacity .15s}.discovery-card:hover .gallery-play{opacity:1}.discovery-card.previewing .gallery-play{opacity:0}.gallery-duration{position:absolute;bottom:9px;right:10px;z-index:1;color:#f0f1f4;font-size:9px;text-shadow:0 1px 4px #000}.gallery-genre{position:absolute;top:9px;left:9px;font-size:9px;background:#1118;color:#e5e7eb;border:1px solid #ffffff0c;border-radius:4px;padding:3px 5px;opacity:0;transition:opacity .15s}.discovery-card:hover .gallery-genre{opacity:1}.discovery-card-info{display:block;padding:13px 12px 12px}.discovery-card-info>b{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:550;line-height:1.7;margin-bottom:9px;letter-spacing:.1px}.discovery-card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.creator{display:flex;align-items:center;gap:6px;color:#9298a2;font-size:10px;min-width:0}.creator>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.creator-avatar{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:linear-gradient(135deg,var(--avatar-a),var(--avatar-b));font-size:8px;color:#fff;font-weight:600;box-shadow:inset 0 0 0 1px #ffffff14;flex-shrink:0}.demo-badge{font-size:8px;color:#656d77;white-space:nowrap}.gallery-empty{padding:70px 16px;text-align:center;color:#818a97;background:#ffffff02;border:1px dashed #ffffff10;border-radius:14px}.gallery-empty[hidden]{display:none}.gallery-empty b{font-size:16px;color:#d6dbe3}.gallery-empty p{font-size:12px;margin:12px 0 22px}.personal-recent{display:none}.gallery-dialog-open{overflow:hidden}.gallery-dialog{padding:0;border:1px solid #ffffff18;border-radius:18px;width:min(1180px,calc(100vw - 70px));max-height:calc(100svh - 70px);background:#1a1d21;color:#e5e7eb;box-shadow:0 40px 140px #0008;overflow:hidden}.gallery-dialog::backdrop{background:#050608cf;backdrop-filter:blur(8px)}.gallery-dialog-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:540px;max-height:calc(100svh - 70px)}.gallery-player-wrap{position:relative;background:#080a0d;min-width:0;display:flex;align-items:center;justify-content:center}.gallery-player-wrap video{width:100%;max-height:calc(100svh - 100px);object-fit:contain}.gallery-close{position:absolute;right:14px;top:14px;z-index:2;width:31px;height:31px;border:1px solid #ffffff24;border-radius:50%;background:#111b;color:#eee;font-size:23px;cursor:pointer;display:grid;place-items:center;line-height:1}.gallery-details{padding:29px 25px;overflow:auto}.gallery-detail-tag{display:inline-block;font-size:10px;color:#9aa7b5;background:#ffffff06;border-radius:5px;padding:5px 7px}.gallery-details h2{font-size:21px;line-height:1.6;margin:15px 0 19px}.gallery-detail-author{display:flex;align-items:center;gap:10px}.creator-avatar.large{width:32px;height:32px;font-size:13px}.gallery-detail-author b{display:block;font-size:12px;font-weight:550;margin-bottom:5px}.gallery-detail-author small{font-size:9px;color:#707b88}.gallery-description{font-size:12px;line-height:1.9;color:#8d98a6;margin:22px 0}.gallery-prompt-box{border:1px solid #ffffff09;border-radius:10px;padding:14px;background:#11161c;margin-bottom:17px}.gallery-prompt-box h3{font-size:11px;color:#c8d0da;margin:0 0 10px;font-weight:500}.gallery-prompt-box p{font-size:11px;line-height:1.9;color:#8593a4;margin:0 0 10px}.gallery-prompt-box button{background:none;padding:0;border:none;color:#c9b38d;font-size:10px;cursor:pointer}#galleryUsePrompt{width:100%;font-size:12px;min-height:37px;box-shadow:none}.gallery-source{display:flex;flex-direction:column;gap:9px;font-size:10px;color:#687584;margin:23px 0}.gallery-source small{font-size:9px}.gallery-source a{color:#91a2b7;text-decoration:underline;text-underline-offset:3px}.gallery-detail-nav{display:flex;justify-content:space-between;gap:10px;padding-top:16px;border-top:1px solid #ffffff09}.gallery-detail-nav button{background:none;border:none;color:#9da8b7;font-size:11px;cursor:pointer;padding:0}.footer{background:#111214;border-color:#ffffff06;color:#525963;font-size:10px;padding-top:20px;padding-bottom:22px}
@media(min-width:1800px){.page .section{width:min(2100px,calc(100% - 110px))}.home-stage{padding-top:48px}.discovery-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 18px}.discovery-cover{aspect-ratio:1.5}.creative-shortcuts{padding-top:28px}.creative-shortcuts img,.shortcut-api{width:95px;height:66px}.creative-shortcuts b{font-size:13px}.creative-shortcuts small{font-size:10px}.composer{max-width:1200px}.composer textarea{min-height:95px}}
@media(min-width:861px) and (max-width:1250px){:root{--studio-sidebar:170px}.page .section{width:calc(100% - 40px)}.discovery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 12px}.creative-shortcuts{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:20px}.creative-shortcuts img,.shortcut-api{width:66px;height:49px}.creative-shortcuts>button{padding:7px}.home-stage{padding-left:20px;padding-right:20px}.composer-tools .spec-row:first-child{flex:1 1 100%}.composer-tools .spec-row:last-child{margin-left:auto}.material-toolbar>span{display:none}.composer-tools .dur-ctl{min-width:145px}}
@media(max-width:860px){:root{--studio-sidebar:0px}.topbar{height:58px;padding:0 13px}.page{padding-top:58px}.home-stage{padding:25px 16px 0}.home-stage h1{font-size:25px;letter-spacing:-.7px;margin:4px 0 8px}.home-stage>.sub{font-size:10px;margin-bottom:20px}.page .section{width:calc(100% - 32px)}.composer{border-radius:14px}.composer-body{padding:12px 13px 4px}.mode-tab{padding:4px 11px;font-size:10px;min-height:27px}.mode-tabs{display:inline-flex;width:auto}.mode-tab{flex:none}.material-toolbar{position:static;margin:13px 0 0;justify-content:space-between}.material-toolbar>button{font-size:10px;padding:5px 8px}.material-toolbar>span{font-size:9px;max-width:150px}.material-toolbar:has(>button[hidden]){display:none}.composer textarea{min-height:76px;font-size:12px;padding-top:10px}.composer-tools{padding:8px 10px;gap:8px}.composer-tools .spec-row:first-child{display:flex;flex-wrap:wrap;gap:6px;width:100%;flex-basis:100%}.composer-tools .spec-row:first-child .chip-dd:first-child{flex:1 1 calc(100% - 168px)}.composer-tools .spec-row:first-child .chip-dd:not(:first-child){width:70px;flex:0 0 70px}.composer-tools .chip-dd>.chip{font-size:10px;min-height:29px;padding:0 8px}.composer-tools .chip-dd:first-child>.chip{max-width:100%}.composer-tools .dur-ctl{flex:1;min-width:100px;width:auto}.composer-tools .dur-ctl input[type=range]{width:auto}.composer-tools .spec-row:last-child{width:100%;margin:0;gap:8px}.composer-tools .chip#chipAudio{font-size:10px;min-height:31px}.cost-pill{font-size:11px;min-height:31px}.generate-btn{font-size:11px;min-height:33px;flex:1}.composer-hint{font-size:9px;margin-top:8px}.creative-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:18px 0 23px}.creative-shortcuts>button{gap:8px;padding:6px;border-radius:9px}.creative-shortcuts img,.shortcut-api{width:43px;height:45px;border-radius:6px}.creative-shortcuts b{font-size:10px;margin-bottom:5px}.creative-shortcuts small{font-size:8px;line-height:1.5}.creative-shortcuts i{display:none}.shortcut-api{font-size:16px}.discovery-section{padding-top:3px}.discovery-toolbar{display:block;margin-bottom:14px}.discovery-toolbar>div{margin-bottom:14px}.discovery-toolbar h2{font-size:17px}.gallery-search{width:100%;height:33px}.gallery-categories{gap:3px;margin-bottom:13px}.gallery-categories button{font-size:10px;padding:7px 10px}.discovery-caption{font-size:9px;margin-bottom:12px}.discovery-caption>span:last-child{display:none}.discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.discovery-cover{aspect-ratio:1.1}.discovery-card{border-radius:10px}.discovery-card-info{padding:9px 8px 10px}.discovery-card-info>b{font-size:11px;line-height:1.5;margin-bottom:9px}.creator{font-size:8px;gap:5px}.creator-avatar{width:16px;height:16px;font-size:7px}.demo-badge{font-size:7px}.gallery-duration{font-size:8px;bottom:7px;right:7px}.gallery-genre{font-size:8px}.gallery-demo-note{font-size:8px}.gallery-play{width:31px;height:31px;font-size:10px}.gallery-dialog{width:calc(100vw - 24px);max-height:calc(100svh - 26px);border-radius:13px;overflow:auto}.gallery-dialog-layout{display:flex;flex-direction:column;min-height:0;max-height:none}.gallery-player-wrap{min-height:170px}.gallery-player-wrap video{max-height:45svh}.gallery-close{right:10px;top:10px;width:27px;height:27px;font-size:20px}.gallery-details{padding:20px;overflow:visible}.gallery-details h2{font-size:19px;margin-top:12px}.gallery-description{margin:18px 0;font-size:11px}.gallery-prompt-box p{font-size:10px}.gallery-source{margin:20px 0}.footer{font-size:9px}.mobile-nav{background:#16191df5;border-color:#ffffff09}}
@media(max-width:360px){.home-stage{padding-left:12px;padding-right:12px}.page .section{width:calc(100% - 24px)}.composer-tools .spec-row:first-child .chip-dd:first-child{flex:1 1 100%}.composer-tools .spec-row:first-child .chip-dd:not(:first-child){flex:1 1 60px;width:auto}.composer-tools .dur-ctl{flex:1 1 100%}.creative-shortcuts img,.shortcut-api{width:36px;height:42px}.creative-shortcuts b{font-size:9px}.creative-shortcuts small{font-size:7px}.discovery-card-info>b{font-size:10px}.creator{font-size:7px}.demo-badge{display:none}.gallery-categories button{padding:7px 9px}}
@media(prefers-reduced-motion:reduce){.discovery-card{transition:none}.discovery-card:hover{transform:none}}

/* Portrait image avatars replace the initial-only placeholders. */
img.creator-avatar{display:block;object-fit:cover;width:26px;height:26px;border-radius:50%;background:#cfd5dc;border:1px solid #ffffff18;box-shadow:none}.creator{font-size:11px;gap:7px}.discovery-card-info{padding-bottom:13px}.creator-avatar.large{width:42px;height:42px}.gallery-detail-author{gap:11px}
@media(max-width:860px){img.creator-avatar{width:23px;height:23px}.creator{font-size:9px;gap:6px}.creator-avatar.large{width:38px;height:38px}.discovery-card-info{padding-bottom:11px}}

/* Mixed landscape / portrait editorial masonry; first two items per column are curated. */
.gallery-column{display:flex;flex-direction:column;gap:21px;min-width:0}.gallery-column .discovery-card{width:100%;flex:none}.discovery-card.is-landscape .discovery-cover{aspect-ratio:1.6}.discovery-card.is-portrait .discovery-cover{aspect-ratio:3/4}.gallery-format{position:absolute;z-index:1;left:9px;bottom:9px;font-size:8px;color:#ffffffb3;text-shadow:0 1px 4px #000}.gallery-orientations{display:flex;align-items:center;gap:3px}.gallery-orientations button{background:none;border:1px solid transparent;border-radius:5px;padding:5px 8px;font-size:10px;color:#6e7784;cursor:pointer}.gallery-orientations button.active{background:#ffffff08;color:#c4cbd5;border-color:#ffffff08}.gallery-orientations button:hover{color:#fff}
@media(max-width:860px){.gallery-column{gap:14px}.gallery-format{font-size:7px;bottom:7px;left:7px}.gallery-orientations button{font-size:9px;padding:5px 7px}.discovery-caption{align-items:center}.discovery-card.is-landscape .discovery-cover{aspect-ratio:1.4}.discovery-card.is-portrait .discovery-cover{aspect-ratio:3/4}}

/* Source-quality covers; everyday profile treatments rather than a repeated badge row. */
.discovery-card-meta{justify-content:flex-start}.creator-avatar{flex-shrink:0}.creator{color:#929aa5;font-weight:400}.discovery-card-info>b{font-weight:500;letter-spacing:0}.gallery-detail-tag{line-height:1.6}.gallery-description{font-size:11px}

#costPill [hidden] { display: none; }
.cost-pill[data-promotion] {
  gap: 6px;
  min-height: 38px;
  padding-inline: 11px;
  border-color: #e6c38a38;
  background: #e6c38a0d;
  white-space: nowrap;
}
.quote-original {
  position: relative;
  display: inline-block;
  margin-inline-end: 4px;
  color: #929a9f;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}
.quote-original::after {
  content: "";
  position: absolute;
  top: 49%;
  inset-inline: -2px;
  border-top: 1px solid #a6adb0;
  transform: rotate(-14deg);
}
.cost-pill[data-promotion] #cost {
  color: #ffd491;
  font-size: 21px;
  font-weight: 760;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.quote-unit { color: #e3bd7d; font-size: 11px; font-weight: 600; }
.composer-tools:has(.cost-pill[data-promotion]) .generate-btn { min-height: 38px; }
