/* Effect discovery leads creation. Shared film styles remain in studio.css. */
@media(min-width:901px){
  #creator-panel .selected-effect video,#creator-panel .selected-effect>img{height:160px}
  #creator-panel .selected-effect h3{margin-top:12px}
  #creator-panel .selected-effect a{margin-bottom:12px}
  #creator-panel .reference-inputs{margin-bottom:10px}
  #creator-panel .reference-label{min-height:76px}
}
.topbar{height:72px;background:#fff;padding:0 28px}
.shell{display:block;max-width:1680px}
main{padding:0 32px}
.back-link{display:none}
.mobile-library{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px}
.library{display:none;position:fixed;inset:72px 0 0 auto;width:min(360px,100%);height:calc(100dvh - 72px);z-index:30;background:#fff;border-left:1px solid var(--gr-border);padding:24px}
.library.open{display:flex}
.studio-heading{padding:32px 0 22px}
.studio-heading h1{font-size:32px;letter-spacing:-.035em;line-height:1.2;margin:0 0 10px}
.studio-heading p{font-size:14px;color:var(--muted);line-height:1.6;margin:0}
.creation-nav{display:flex;gap:6px;border-bottom:1px solid var(--gr-border);margin-bottom:26px}
.creation-nav button{font-size:14px;min-height:48px;padding:10px 18px;border-bottom:3px solid transparent;margin-bottom:-1px}
.creation-nav button[aria-pressed=true]{border-bottom-color:var(--gr-black);font-weight:700}
.creation-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start}
.examples{margin:0;min-width:0}
.catalog-heading{gap:12px;flex-wrap:wrap}
.catalog-heading h2{font-size:19px;margin:0;letter-spacing:-.02em}
.search input{background:#fff;width:240px;border-radius:10px;font-size:13px}
.filter-row{margin:20px 0 12px;gap:6px;flex-wrap:wrap}
.filter-row button{font-size:12px;min-height:40px;background:#fff;padding:8px 14px}
.filter-row button[aria-pressed=true]{background:var(--gr-black)}
.category-label{margin-left:auto;min-width:0}
.category-label select{background:none;border-color:var(--gr-border);font-size:12px;max-width:180px}
.catalog-caption{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;margin:0 0 18px;line-height:1.6}
.catalog{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 14px}
.trend-visual{aspect-ratio:3/4;border-radius:12px;background:#e4e4de}
.trend-select{position:absolute;inset:0;z-index:1;border:2px solid transparent;border-radius:12px;width:100%;height:100%}
.trend-select:hover{border-color:var(--gr-black)}
.trend-select[aria-pressed=true]{border:3px solid var(--gr-pink)}
.trend-check{display:none;position:absolute;bottom:12px;left:10px;background:var(--gr-pink);color:#242423;font-size:10px;font-weight:700;padding:6px 8px;border-radius:6px;pointer-events:none;z-index:2}
.trend-select[aria-pressed=true]~.trend-check{display:block}
.trend-play{width:40px;height:40px;min-width:40px;min-height:40px;bottom:10px;right:10px;z-index:3}
.trend-play[aria-pressed=true]{background:var(--gr-pink)}
.trend-badge{pointer-events:none;z-index:2;font-size:10px;text-transform:none;padding:5px 8px}
.trend-title{font-size:12px;line-height:1.5;margin:10px 0 5px;font-weight:700;min-height:0}
.trend:hover .trend-title{text-decoration:none}
.trend-detail{font-size:11px}
.trend-detail span:last-child{color:var(--gr-black);font-weight:700;font-variant-numeric:tabular-nums}
.catalog-empty{grid-column:1/-1;padding:60px 16px;text-align:center;font-size:14px}
#creator-panel{position:sticky;top:94px;margin:0;width:100%;max-width:none;max-height:calc(100dvh - 112px);overflow:auto;border:1px solid var(--gr-border);border-radius:16px;background:#fff;padding:20px;color:var(--gr-black)}
.creator-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.creator-heading h2{font-size:14px;margin:0}
#close-creator{display:none;font-size:26px;width:44px;height:44px}
.composer{padding:0;border:0;background:none;border-radius:0}
.selected-effect video,.selected-effect>img{display:block;width:100%;height:230px;object-fit:contain;background:#eeeee8;border-radius:10px}
.selected-effect h3,#idea-heading h3{font-size:20px;letter-spacing:-.025em;line-height:1.3;margin:16px 0 8px}
.selected-effect p,#idea-heading p{font-size:12px;color:var(--muted);line-height:1.65;margin:0 0 8px}
.selected-effect a{display:inline-flex;align-items:center;gap:4px;font-size:11px;margin-bottom:18px;color:var(--muted)}
.selected-effect a svg{width:14px;height:14px}
.reference-inputs{display:grid;gap:10px;margin:0 0 18px}
.reference-label{min-height:88px;width:100%;background:#f8f8f5;border-color:#888880;padding:14px;font-size:12px}
.reference-label span{white-space:normal;overflow-wrap:anywhere}
.reference-label strong{display:block;font-size:13px}
.reference-label small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.reference-label>svg{width:24px;height:24px}
.reference-label img{width:52px;height:60px;flex-shrink:0}
.reference-label:focus-within{outline:2px solid var(--gr-black);outline-offset:3px}
.composer-controls{display:block}
.settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.settings>label{font-size:11px;margin:0;color:var(--muted)}
.settings select{width:100%;background:#f4f4f0;border:1px solid var(--gr-border);font-size:13px;min-height:44px;margin-top:6px}
#model-wrap{grid-column:1/-1}
#advanced-settings{margin:14px 0}
#advanced-settings summary{font-size:12px;cursor:pointer;min-height:40px;display:list-item;padding:10px 0}
#advanced-settings .settings{padding:8px 0}
.settings .audio-switch{flex-direction:row;align-self:end;margin:0;min-height:44px;font-size:12px}
.composer-controls>.primary{width:100%;min-height:48px;margin-top:18px;font-size:13px}
.composer-foot{flex-direction:column;align-items:center;gap:5px;font-size:11px;line-height:1.5;margin-top:12px;padding-top:0;border:0}
#price{display:none}
.creator-empty{padding:52px 4px 60px;text-align:center}
.creator-empty>svg{width:42px;height:42px;margin-bottom:20px}
.creator-empty h3{font-size:20px;letter-spacing:-.02em}
.creator-empty p{font-size:13px;line-height:1.8;color:var(--muted)}
.awaiting-effect .composer-controls,.awaiting-effect .composer-foot{display:none}
#prompt-label{display:block;font-size:12px;margin:20px 0 8px}
.composer textarea{border:1px solid var(--gr-border);background:#f8f8f5;border-radius:10px;padding:12px;font-size:14px;min-height:140px;margin-bottom:16px}
.composer textarea:focus{outline:2px solid var(--gr-black);outline-offset:2px}
#job-status{font-size:12px;padding:12px;margin-bottom:0}
body:has(#creator-panel:modal){overflow:hidden}
@media(min-width:1600px){.catalog{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1199px){.creation-layout{grid-template-columns:minmax(0,1fr) 310px;gap:24px}.catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.category-label{margin-left:0}.catalog-caption span:last-child{display:none}}
@media(max-width:900px){
  main{padding:0 20px}.creation-layout{display:block}.catalog{grid-template-columns:repeat(3,minmax(0,1fr))}
  #creator-panel:not([open]){display:none}
  #creator-panel[open]{position:fixed;inset:auto 0 0;top:auto;margin:0 auto;max-width:540px;width:100%;max-height:92dvh;padding:16px 20px 24px;border-radius:20px 20px 0 0;border:0}
  #creator-panel::backdrop{background:#24242385}
  #close-creator{display:block}.creator-heading{margin:0 0 12px}.selected-effect video,.selected-effect>img{height:220px}
  .composer-controls>.primary{position:relative}.creator-heading h2{font-size:16px}
}
@media(max-width:600px){
  .topbar{height:64px;padding:0 16px;gap:10px}.brand{font-size:21px}.brand-sub{display:none}.brand-mark{width:28px;height:30px;font-size:23px}
  .workspace-tabs button{min-width:60px;font-size:12px;padding:8px}.workspace-tabs span{display:none}.mobile-library span{display:none}
  .library{top:64px;height:calc(100dvh - 64px)}main{padding:0 16px}
  .studio-heading{padding:26px 0 16px}.studio-heading h1{font-size:27px}.studio-heading p{font-size:13px;max-width:330px;line-height:1.7}
  .creation-nav{margin-bottom:24px;gap:0;justify-content:space-between}.creation-nav button{font-size:12px;padding:10px 8px;min-height:48px}
  .catalog-heading{display:flex}.catalog-heading h2{display:none}.search{width:100%;margin-top:4px}.search input{width:100%;min-height:44px}
  .filter-row{gap:6px;margin:14px 0 10px}.filter-row button{font-size:11px;padding:8px 12px;min-height:44px}.category-label{margin-left:0;width:100%}.category-label select{max-width:100%;width:100%;min-height:44px}
  .catalog-caption{font-size:10px;margin-bottom:14px}.catalog-caption span:last-child{display:none}
  .catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.trend-play{width:44px;height:44px}.trend-check{font-size:9px;left:6px;padding:5px}
  .trend-title{font-size:12px;min-height:0}.trend-detail{font-size:11px}
  .selected-effect h3,#idea-heading h3{font-size:20px}.composer textarea{font-size:16px}.settings>label:first-child{min-width:0}
  footer{font-size:10px;padding-top:32px}
}
.category-chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.category-chips button{min-height:40px;padding:8px 12px;border:1px solid var(--gr-border);border-radius:20px;font-size:12px;background:#fff}.category-chips button[aria-pressed=true]{background:var(--gr-pink);border-color:var(--gr-black);font-weight:700}.category-label{display:none}
#effect-mode-wrap,#effect-model-wrap,#count-wrap,#emotion-wrap{display:block;font-size:12px;margin:16px 0}#effect-mode-wrap select,#effect-model-wrap select,#count-wrap select{display:block;width:100%;margin-top:6px;min-height:44px;border-color:var(--gr-border)}#effect-settings summary{font-size:13px;cursor:pointer;padding:12px 0;min-height:44px}#effect-settings .settings{margin:8px 0}#accessory-options{border:0;padding:10px 0;margin:0}#accessory-options legend{font-size:12px;padding:0}#accessory-options label{display:flex;align-items:center;gap:8px;font-size:12px;margin:0;min-height:40px}#accessory-options input{width:18px;min-height:18px;margin:0}#quote-error{font-size:12px;line-height:1.6;color:#9e2118}.seo-effect{display:block;text-decoration:none;font-size:12px}.seo-effect img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px}.seo-effect span{display:block;margin:8px 0}
@media(max-width:600px){.category-chips{flex-wrap:nowrap;overflow:auto;padding:3px 0 10px;margin-bottom:8px}.category-chips button{white-space:nowrap;min-height:44px;flex-shrink:0}#creator-panel .settings select{font-size:13px}}
/* Visual mode selection and direct scene choices. */
#effect-mode-wrap{border:0;padding:0;margin:20px 0}#effect-mode-wrap legend,.scene-group legend{font-size:12px;font-weight:600;margin-bottom:10px;padding:0}
.mode-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}.mode-card{position:relative;cursor:pointer;margin:0!important;min-width:0}.mode-card-visual{display:block;position:relative;overflow:hidden;border:2px solid transparent;border-radius:10px;background:#eee}.mode-card video,.mode-card img{display:block;width:100%;height:118px;object-fit:cover}.mode-card input,.scene-choice input{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0;clip-path:inset(50%)}.mode-card:has(input:checked) .mode-card-visual{border-color:var(--gr-black)}.mode-card:has(input:checked) .mode-name{font-weight:700}.mode-card:has(input:focus-visible) .mode-card-visual,.scene-choice:has(input:focus-visible) span{outline:2px solid var(--gr-black);outline-offset:3px}.mode-name{display:block;font-size:12px;line-height:1.4;margin-top:6px}.mode-play{position:absolute;bottom:7px;right:7px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff}.mode-play svg{width:14px;height:14px}
.scene-group{border:0;padding:0;margin:16px 0 22px}.choice-row{display:flex;flex-wrap:wrap;gap:8px}.scene-choice,#accessory-options .scene-choice{position:relative;display:block;cursor:pointer;margin:0;min-height:44px}.scene-choice span{display:flex;align-items:center;min-height:44px;padding:10px 13px;font-size:12px;line-height:1.4;border:1px solid var(--gr-border);border-radius:8px;background:#f8f8f5}.scene-choice:has(input:checked) span{background:var(--gr-pink);border-color:var(--gr-black);color:var(--gr-black)}#accessory-options legend{font-weight:600;margin-bottom:10px}.trend.is-playing video{opacity:1!important}

.trend-badge.is-hot{background:#ff98eb;color:#191919}

/* The idea composer occupies the workspace; effects keep their visual gallery. */
.creation-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 28px}.creation-nav button{white-space:nowrap}.creation-nav button[aria-pressed="true"]{background:#111;color:#fff}
.idea-mode .studio-heading{display:none}.idea-mode .examples{display:none}.idea-mode .creation-layout{display:block}.idea-mode #creator-panel{position:relative;top:0;display:block;width:100%;max-width:1100px;margin:0 auto;border-radius:28px;padding:28px;max-height:none;overflow:visible}.idea-mode #close-creator{display:none}.idea-mode .composer{gap:20px}.idea-mode #prompt{min-height:180px;font-size:20px;line-height:1.6}.idea-mode .composer-controls{border-top:1px solid #deded9;padding-top:18px}.idea-mode .settings{display:flex;flex-wrap:wrap;gap:16px}.idea-mode .settings label{flex:1;min-width:150px}.idea-mode #generate{width:auto;min-width:230px;margin-left:auto}.video-source{display:flex;gap:8px}.video-source button{border:1px solid #ccc;border-radius:100px;padding:9px 18px;background:#fff}.video-source button[aria-pressed="true"]{background:#e9e8e4;border-color:#111}.job-status img{max-width:100%;max-height:560px;object-fit:contain}.job-status audio,.asset audio{max-width:100%;width:100%}.asset:has(audio){display:block}.idea-mode #voice-settings[hidden],.idea-mode #music-settings[hidden],.idea-mode #video-source[hidden]{display:none}
@media(max-width:900px){.creation-nav{gap:6px;margin-bottom:16px}.creation-nav button{padding:10px 12px;font-size:14px}.idea-mode #creator-panel{padding:18px;border-radius:20px}.idea-mode #prompt{font-size:17px;min-height:150px}.idea-mode #generate{width:100%;margin:0}.idea-mode .settings label{min-width:120px}}

#models-open{align-self:end;min-height:44px;white-space:nowrap}#models-dialog{max-width:920px;width:min(920px,calc(100vw - 32px));max-height:85dvh;margin:auto;padding:28px;border:0;border-radius:24px;overflow:auto;background:#fff;color:#171717}#models-dialog::backdrop{background:#17171770}#models-dialog .section-line{gap:16px}#models-dialog h2{margin:0;font-size:26px}.models-filters{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.models-filters .search{max-width:none;flex:1;min-width:180px}.models-filters select{max-width:100%;min-height:44px}.model-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-top:1px solid #e8e8e3}.model-card h3{margin:6px 0;font-size:18px}.model-card p{margin:6px 0;font-size:14px;color:#62625e;max-width:560px}.model-card small{display:block;overflow-wrap:anywhere;color:#777;font-size:11px}.model-category{font-size:12px;color:#777}.model-card-actions{display:grid;gap:12px;flex-shrink:0}.model-card-actions a{font-size:13px;color:inherit}#models-more{margin-top:16px}@media(max-width:600px){#models-dialog{padding:20px}.model-card{align-items:stretch;flex-direction:column;gap:12px}.model-card-actions{justify-items:start}.models-filters select{width:100%}}

.seo-heading{margin:24px 0 28px;max-width:1100px}.seo-heading h1{font-size:clamp(24px,3vw,44px);line-height:1.15;overflow-wrap:anywhere;margin:0 0 12px}.seo-heading p{color:var(--muted,#696965);max-width:850px;line-height:1.5}.seo-links{margin:40px 0 24px;line-height:2}.seo-links a{color:inherit}.studio-heading h2{font-size:28px;margin:0}.film-heading h2{font-size:32px;margin:0}

.studio-heading,#idea-heading{display:none}

.account-button{display:flex;align-items:center;gap:8px;min-height:44px;white-space:nowrap;font-size:13px}#auth-dialog{width:min(440px,calc(100vw - 32px));max-height:85dvh;padding:28px;border:0;border-radius:24px;background:#fff;color:#171717;margin:auto}#auth-dialog::backdrop{background:#17171770}#auth-dialog h2{font-size:24px;margin:0}#auth-note{margin:20px 0;line-height:1.5}#auth-email{overflow-wrap:anywhere}.auth-provider{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;margin-top:12px;border:1px solid #d8d8d3;border-radius:28px;background:#fff;font-size:15px}.auth-provider:hover:not(:disabled){background:#f4f4f0}.auth-provider strong{font-size:21px}#apple-unavailable{font-size:13px;line-height:1.5;margin:12px 0 0}@media(max-width:600px){.account-button{width:36px;padding:0;justify-content:center}.account-button span{display:none}#auth-dialog{padding:22px}}@media(max-width:380px){.topbar{padding:0 12px;gap:6px}.workspace-tabs button{min-width:52px;padding:6px}.mobile-library{padding:0;width:28px}}

/* Independent legal confirmations stay readable on phone checkout. */
.legal-checks{margin:18px 0}.legal-checks label{display:flex!important;align-items:flex-start;gap:10px;margin:12px 0;font-size:14px;line-height:1.5}.legal-checks input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:2px 0;accent-color:#315946}.legal-checks label[hidden]{display:none!important}.legal-checks p,.auth-legal-note{font-size:13px;line-height:1.5;color:#62685d}.legal-checks a,.auth-legal-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}footer{flex-wrap:wrap}

.analytics-choice{position:fixed;z-index:1000;bottom:16px;left:16px;right:16px;max-width:820px;margin:auto;background:#fff;border:1px solid #d9ddd6;box-shadow:0 4px 30px #0002;border-radius:16px;padding:18px;display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center}.analytics-choice[hidden]{display:none}.analytics-choice>div:first-child{flex:1 1 330px}.analytics-choice p{font-size:13px;line-height:1.5;margin:6px 0}.analytics-choice a{color:inherit;text-decoration:underline}.analytics-actions{display:flex;gap:8px;flex-wrap:wrap}.analytics-actions button{font-size:13px}#analytics-choice-error:empty{display:none}

.library-intro{font-size:13px;color:var(--muted);line-height:1.5;margin:12px 0}.material-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.material-filters button{border:1px solid var(--gr-border);border-radius:20px;padding:8px 12px;min-height:40px;font-size:12px}.material-filters button[aria-pressed=true]{background:var(--gr-black);color:#fff;border-color:var(--gr-black)}.material-card{display:block}.material-card video,.material-card img{width:100%;height:auto;max-height:180px;object-fit:contain;background:#f4f4f0}.material-card>div{padding:10px 0}.material-status{font-size:12px;color:var(--muted);margin:6px 0}.material-download{display:inline-block;font-size:12px;margin-left:12px;text-decoration:underline}.material-empty{grid-column:1/-1;line-height:1.6}

.duration-hint{display:block;line-height:1.4;font-size:12px;color:var(--muted);margin-top:6px}.duration-hint[hidden]{display:none}
/* Popular examples stay above discovery; votes are actual Brevis likes. */
.popular-section{margin-bottom:32px}.popular-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 16px}.popular-heading h2{margin:0;font-size:24px;letter-spacing:-.02em}.popular-heading p{margin:0;max-width:40ch;font-size:12px;color:var(--muted)}.popular-trends{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.popular-trends .trend-visual{aspect-ratio:4/5}.popular-trends .trend-title{font-size:14px}.trend-title-row{display:flex;align-items:center;justify-content:space-between;gap:6px}.trend-title-row h3{flex:1;min-width:0}.trend-like{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-width:44px;min-height:44px;padding:4px;font-size:12px;font-variant-numeric:tabular-nums;color:#41413d}.trend-like svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.trend-like[aria-pressed="true"]{color:#81245f}.trend-like[aria-pressed="true"] svg{fill:#ff90e9}.trend-like:disabled{opacity:.5}.tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.tool-field{min-width:0}.tool-field label{display:grid;gap:10px;font-size:14px;font-weight:600}.tool-field select{width:100%;min-width:0}.tool-field img,.tool-field video{display:block;max-width:100%;width:100%;height:220px;object-fit:contain;margin:14px 0;border-radius:12px;background:#f4f4f0}.tool-field audio{display:block;max-width:100%;width:100%;margin:14px 0}.tool-upload{position:relative;display:flex!important;justify-content:center;margin-top:12px;min-height:44px;cursor:pointer}.tool-upload:focus-within{outline:2px solid #81245f;outline-offset:3px}#tool-inputs>label{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}#tool-description,#tool-status{font-size:14px;line-height:1.6}#tool-status{font-variant-numeric:tabular-nums}.creation-nav{overflow-x:auto}.creation-nav button{flex-shrink:0;white-space:nowrap}
@media(max-width:600px){.popular-heading{display:block}.popular-heading p{margin-top:8px}.popular-trends{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;padding-bottom:10px}.popular-trends .trend{flex:0 0 70%;scroll-snap-align:start}.popular-trends .trend-visual{aspect-ratio:4/5}.popular-heading h2{font-size:22px}.tool-fields{grid-template-columns:1fr;gap:20px}.tool-field img,.tool-field video{height:180px}}
.creation-nav{flex-wrap:nowrap}.composer.tool-mode{display:flex;flex-direction:column;gap:0}.tool-mode #tool-inputs{order:1}.tool-mode #prompt-label{order:2}.tool-mode #prompt{order:3;min-height:100px;font-size:16px}.tool-mode .composer-controls{order:4}.tool-mode #model-description{order:5}.tool-mode #quote-error{order:6}.tool-mode .composer-foot{order:7}
@media(max-width:600px){.creation-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible}.creation-nav button{min-width:0;font-size:12px;padding:8px 4px;white-space:normal;line-height:1.4}.tool-mode #prompt{font-size:15px}}
