#earn-layout.remix-mode{max-width:1000px;margin-inline:auto;display:block}
.remix-mode .earn-shell{padding:clamp(20px,4.2vw,48px);border-radius:26px;background:#fff;box-shadow:0 16px 60px #2333180a}
.remix-mode .earn-description{margin:.65rem 0 0}
.remix-mode #earn-status:empty,.remix-mode #earn-actions:empty{display:none}
.remix-layout{gap:clamp(20px,4.2vw,42px);margin-top:25px;grid-template-columns:minmax(0,1.65fr) minmax(165px,.78fr);max-width:none}
.remix-form{gap:10px;min-width:0}
.remix-form #remix-topic{min-height:76px;resize:vertical;border-radius:14px}
.remix-duration{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;border:0;margin:5px 0;padding:0;min-inline-size:0}
.remix-duration legend{font-weight:720;margin-bottom:8px;font-size:.92rem}
.remix-duration label{position:relative;display:block}
.remix-duration input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.remix-duration label span{display:block;padding:9px 5px;text-align:center;border:1px solid #dce5d5;border-radius:11px;background:#fff}
.remix-duration input:checked+span{background:#edf7d7;border-color:#9db45e}
.remix-duration input:focus-visible+span{outline:2px solid #53682b;outline-offset:2px}
.remix-advanced{background:#f8faf5;border:1px solid #e1e8d9;border-radius:13px;padding:0}
.remix-advanced summary,.demo-support summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;min-height:44px;font-size:.92rem;font-weight:720;cursor:pointer}
.remix-advanced summary::-webkit-details-marker,.demo-support summary::-webkit-details-marker{display:none}
.remix-advanced summary::after,.demo-support summary::after{content:'+';font:500 21px/1 Inter,sans-serif;color:#53623a}
.remix-advanced[open]>summary::after,.demo-support[open]>summary::after{content:'−'}
.remix-advanced summary:focus-visible,.demo-support summary:focus-visible{outline:2px solid #53682b;outline-offset:2px;border-radius:12px}
.remix-advanced-body{padding:0 13px 13px}
.remix-action{margin-top:5px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 13px}
.remix-action small,.remix-board-label,.cast-hint,.cast-privacy,.credit-message{font-size:.82rem;color:#4b5c42}
.remix-reference{background:#f7f9f3;padding:8px 8px 12px}
.remix-reference img{display:block;width:min(100%,185px);height:auto;max-height:none;aspect-ratio:9/16;object-fit:contain;margin-inline:auto}
.remix-reference-title,.remix-reference small{margin-inline:5px}
.remix-result:not([hidden]){max-width:none;margin-top:26px;padding-top:20px}
.remix-board-label{display:block;margin-bottom:5px}
.remix-scene-list{gap:10px;margin:15px 0}
.remix-scene-list li{background:#fff;box-shadow:0 4px 14px #24321808;border-radius:15px;padding:13px;gap:7px}
.remix-scene-list li small{width:max-content;padding:2px 7px;background:#edf4de;border-radius:6px;font-variant-numeric:tabular-nums}
.remix-scene-list li strong{line-height:1.22}
.cast-photos{display:flex;gap:8px;flex-wrap:wrap}
.cast-card{display:grid;grid-template-columns:44px 1fr 30px;gap:8px;align-items:center;padding:5px;border:1px solid #dbe5d4;background:#fff;border-radius:10px;font-size:.85rem;font-weight:650}
.cast-card img{width:44px;height:44px;border-radius:6px;object-fit:cover}
.cast-card button,.studio .cast-card button{padding:0;width:28px;height:28px;font-size:1.1rem;line-height:1;background:#eef4e5;border:0;color:#25311e;border-radius:50%}
.cast-pick,.studio .cast-pick{border:1px dashed #aebc9e;border-radius:10px;color:#263522;background:#fff;min-height:42px;padding:6px 10px;display:inline-flex;align-items:center;gap:7px;margin:6px 7px 0 0;font-size:.89rem}
.cast-pick span{font-size:1.2rem;font-weight:450}
.cast-privacy{display:block;margin-top:8px}
.cast-status{margin:5px 0;font-size:.88rem;color:#74401f}
.studio .cast-box{margin:0 0 12px}
.studio .demo-support{padding:0 16px;color:var(--muted)}
.studio .demo-support .row label{margin:0}
.studio .demo-support ul{padding:0 0 10px 25px}
.studio .spend-panel .quote{padding:10px 12px}
.studio .spend-panel #status{font-size:.88rem;margin-bottom:0}
.studio .workbench:has(#studio-launch[hidden]){grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.credit-dialog{width:min(430px,calc(100% - 28px));max-height:calc(100% - 28px);overflow:auto;border:1px solid #dbe5d3;border-radius:22px;padding:23px;color:#19251b;background:#fff;box-shadow:0 20px 70px #17241638}
.credit-dialog::backdrop{background:#10180d60;backdrop-filter:blur(4px)}
.credit-dialog h2{margin:0 33px 16px 0;font:800 clamp(1.3rem,4vw,1.7rem)/1.15 Manrope,Inter,sans-serif;letter-spacing:-.04em}
.credit-close{position:absolute;top:13px;right:13px;border:0;background:#eef3e8;border-radius:50%;font-size:1.3rem;line-height:1;width:34px;height:34px;color:#283418}
.credit-packages{display:grid;gap:6px}
.credit-packages button{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;border:1px solid #e1e8dc;border-radius:9px;color:#172418;background:#f7faf4;padding:9px 11px}
.credit-packages button:hover,.credit-packages button[aria-pressed=true]{border-color:#96a968;background:#edf6d9}
.credit-message{margin:12px 0 0}
@media(max-width:680px){
  .studio .workbench:has(#studio-launch[hidden]){grid-template-columns:1fr}
  .remix-layout{gap:16px;grid-template-columns:1fr}
  .remix-reference{grid-template-columns:60px 1fr;grid-template-rows:auto auto;align-items:center;gap:1px 10px}
  .remix-reference img{width:60px;height:62px;grid-row:span 2}
  .remix-reference-title,.remix-reference small{margin:0}
}
@media(max-width:550px){.remix-scene-list{grid-template-columns:1fr}}

/* Native radios, styled to match the duration controls. */
.motion-pills{min-inline-size:0;margin:0 0 12px;padding:0;border:0}
.motion-pills legend{font-weight:730;font-size:.92rem;margin-bottom:7px}
.motion-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.motion-options label,.studio .motion-options label{margin:0;position:relative;display:flex;font-size:.85rem;line-height:1.2}
.motion-options input[type=radio],.studio .motion-options input[type=radio]{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;padding:0;cursor:pointer}
.motion-options span{display:grid;place-items:center;min-height:45px;width:100%;padding:6px 4px;text-align:center;border-radius:10px;border:1px solid #dbe5d5;background:white;color:#283821}
.motion-options input:checked+span{border-color:#a0b36e;background:#edf6d9}
.motion-options input:focus-visible+span{outline:2px solid #50642b;outline-offset:2px}
.motion-options input:disabled+span{opacity:.55}
.shot-detail-toggle,.studio .shot-detail-toggle{padding:4px 0;color:#45592c;background:transparent;border:0;font-size:.82rem;font-weight:700;min-height:36px;justify-self:start}
.shot-detail-toggle::after{content:' +';margin-inline-start:.35em}
.shot-detail-toggle[aria-expanded=true]::after{content:' −'}
.shot-detail-toggle:focus-visible,.credit-close:focus-visible,.credit-packages button:focus-visible,.credit-pay:focus-visible{outline:2px solid #53682b;outline-offset:3px}
.remix-scene-list li{position:relative}
.remix-scene-list .shot-detail-toggle{align-self:end}
.shot-detail-box{border:1px solid #dce8d2;padding:12px;border-radius:12px;background:#f5f9ef;color:#293823;max-width:100%;overflow-wrap:anywhere}
.shot-detail-box dl,.shot-detail-box dd{margin:0}
.shot-detail-box dt{font-size:.83rem;font-weight:800}
.shot-detail-box dd{font-size:.87rem;line-height:1.42}
.shot-detail-box dt:not(:first-child){margin-top:8px}
@media (min-width:701px) and (hover:hover){
  .remix-scene-list li.shot-expanded{z-index:2;border-color:#aac47b}
  .remix-scene-list .shot-detail-box{position:absolute;z-index:4;left:-1px;right:-1px;bottom:100%;background:#fff;box-shadow:0 13px 29px #22341b26}
}
.credit-dialog{position:fixed;inset:0;margin:auto;max-width:100%;overscroll-behavior:contain}
.credit-dialog h2{padding-right:8px}
.credit-close{top:13px;right:13px;display:grid;place-items:center;font-family:Inter,sans-serif;width:42px;height:42px;padding:0}
.credit-pack-copy{display:grid;gap:2px;min-width:0}
.credit-pack-copy small{color:#4b5d37;font-size:.77rem}
.credit-packages button{min-height:45px}
.credit-packages button[aria-pressed=true]{border-color:#718f42;box-shadow:inset 0 0 0 1px #718f42;background:#eef7dc}
.credit-pay{margin-top:12px;width:100%;min-height:46px;justify-content:center}
.credit-message{min-height:1.3em;margin-top:8px}
@media(max-width:700px){
  .remix-scene-list{grid-template-columns:1fr}
  .remix-scene-list .shot-detail-toggle,.studio .shot-detail-toggle{min-height:44px}
  #earn-layout.remix-mode .earn-shell{padding:17px}
  .remix-action{display:grid;gap:7px}
  .remix-action>.front-button,.remix-result>.front-button{width:100%;min-height:46px;justify-content:center}
  .studio .setup .cta,.studio #run{width:100%;min-height:46px}
  .studio .workbench .preview-panel{grid-row:auto}
  .studio .workbench .spend-panel{grid-column:1}
  .studio .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio .fields label:last-of-type{grid-column:1/-1}
  .studio .fields select{max-width:100%;min-height:44px}
  .credit-dialog{max-height:calc(100dvh - 24px);padding:18px}
}

.motion-note{display:block;margin-top:7px;font-size:.78rem;color:#455641;line-height:1.35}
.studio-looks{margin:0 0 9px}
.stage-costs{display:grid;gap:4px;margin-top:4px;font-size:.85rem;color:#384731}
.stage-costs span{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.stage-costs b{font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
#prepare-visual,#run{width:100%;min-height:43px}
.preview-screen,.remix-reference{position:relative}
.caption-look{position:absolute;z-index:2;left:10%;right:10%;top:58%;text-align:center;color:#fff;font-size:clamp(.66rem,1.75vw,1.12rem);line-height:1.24;text-shadow:0 2px 7px #10180e,0 1px 3px #10180e;pointer-events:none}
.caption-look[data-mode=box]{background:#111e;padding:.4em .45em;border-radius:6px;text-shadow:none}
.caption-look[data-mode=bold] mark{color:#d9fa63;background:transparent;font-weight:950}
.visual-cast-preview{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.visual-cast-preview figure{margin:0;width:min(135px,calc(50% - 6px))}
.visual-cast-preview img{width:100%;aspect-ratio:1;object-fit:cover;display:block;border-radius:10px}
.visual-cast-preview figcaption{font-size:.83rem;margin-top:4px;font-weight:680}
@media(max-width:680px){
  .remix-reference .caption-look{top:auto;bottom:5px;left:6px;right:auto;width:60px;font-size:.55rem}
  .studio-looks select{min-height:44px}
}
.visual-subpanel{margin-top:14px;padding-top:13px;border-top:1px solid #dbe5d3}
.visual-subpanel h3{margin-bottom:0;font-size:1rem}
.remix-duration{grid-template-columns:repeat(4,minmax(0,1fr))}
#stage-shortfall{margin:0 0 10px;color:#485632}

/* Fit values to their card's content box, not the whole viewport. */
.earn-metric{container-type:inline-size;min-width:0}
.earn-metric :is(span,small){overflow-wrap:anywhere}
.earn-metric strong{max-inline-size:100%;white-space:normal;overflow-wrap:anywhere;font-size:clamp(1.02rem,2vw,2.1rem);font-variant-numeric:tabular-nums}
@supports(font-size:1cqi){
  .earn-metric strong{font-size:min(2.1rem,13cqi);white-space:nowrap}
}
.quality-picks{margin:0 0 12px;padding:0;border:0;min-inline-size:0}
.quality-picks legend{font-size:.92rem;font-weight:730;margin-bottom:7px}
.quality-picks-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.quality-picks-row label,.studio .quality-picks-row label,.remix-advanced .quality-picks-row label{margin:0;position:relative;display:block;min-width:0;cursor:pointer}
.quality-picks-row input[type=radio],.studio .quality-picks-row input[type=radio],.remix-form .quality-picks-row input[type=radio]{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;padding:0;min-height:0;cursor:pointer}
.quality-picks-row span{display:grid;place-items:center;min-height:44px;border:1px solid #dce6d4;background:white;border-radius:11px;color:#293d23;padding:7px 5px;font-size:.93rem}
.quality-picks-row input:checked+span{background:#eef7dc;border-color:#92a95e;box-shadow:inset 0 0 0 1px #92a95e}
.quality-picks-row input:focus-visible+span{outline:2px solid #53682b;outline-offset:2px}
.quality-picks-row input:disabled+span{opacity:.55}
