/* Signed-in tool destinations share a paper surface. Form controls retain their own boundaries. */
.workspace:has(.feature-page){background:#fff}
.workspace:has(.feature-page) .topbar{background:#fbfcfe;border-bottom:1px solid #e1e5ed}
#main.feature-page{
  --blue:var(--ui-link);--blue-dark:var(--ui-link-hover);--ink:var(--ui-text);--muted:var(--ui-secondary);--line:#dfe4eb;
  color:var(--ink);background:#fff;padding:clamp(18px,2.5vw,38px);min-width:0
}
.feature-page .page-heading{align-items:flex-start;gap:16px 24px;flex-wrap:wrap;margin:0 0 23px}
.feature-page .page-heading h1{margin:0;font-size:clamp(26px,2.3vw,35px);line-height:1.24;color:var(--ui-text, #272c2a);letter-spacing:-.025em}
.feature-page .page-heading .subheading{margin:6px 0 0;max-width:70ch;color:var(--muted);line-height:1.6}
.feature-page .page-heading .subheading:empty{display:none}
#main.feature-page :is(.panel,.office-compose,.office-preview,.office-studio,.reading-aid,.cutting-room,.tools-panel){
  background:transparent;box-shadow:none;border:0;border-radius:0
}
.feature-page :is(.panel,.office-compose,.office-preview){padding:0;margin:0;min-width:0}
.feature-page :is(.panel,.tools-panel)+:is(.panel,.tools-panel){margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.feature-page :is(.office-studio,.studio-editor){padding:0}
.feature-page .page-heading ~ :is(section,article,nav),.feature-page .office-studio{scroll-margin-top:75px}
.feature-page .panel h2,.feature-page .desk-section-title h2,.feature-page .studio-review h2{font-size:clamp(17px,1.6vw,21px);line-height:1.4;margin:0 0 12px}
.feature-page .office-studio .office-preview{padding-inline-start:clamp(12px,2.3vw,30px);border-inline-start:1px solid var(--line)}
.feature-page :is(label,dt){color:var(--ui-text, #272c2a)}
.feature-page :is(textarea,select,input:not([type=checkbox],[type=radio],[type=hidden]),.task-model-picker>summary,.voice-picker>summary){
  max-width:100%;min-width:0;border:1px solid #a9b6c8;background:#fff;color:var(--ui-text, #272c2a);border-radius:7px
}
.feature-page :is(.btn,button,summary,a){overflow-wrap:anywhere}
.feature-page .btn:not(.secondary,.soft,.danger,.ghost,.warning):not(:disabled){
  background:var(--blue);color:var(--ui-on-primary,#fff);border-color:var(--blue);box-shadow:none
}
.feature-page .btn.secondary{background:white;color:var(--ui-text, #272c2a);border-color:#c9d1dc}
.feature-page .task-model-picker>summary,.feature-page .picker-option span,.feature-page .voice-picker>summary{
  white-space:normal;overflow-wrap:anywhere;min-width:0
}
.feature-page .picker-option small{color:var(--ui-secondary, #505b55)}
.feature-page :is(.task-tools,.section-index){flex-wrap:wrap;gap:8px 16px;border-radius:0;background:none}
.feature-page .task-tools button{color:var(--ui-link);font-weight:600;min-height:42px}
.studio-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.feature-page .studio-steps{display:flex;gap:clamp(5px,2vw,28px);border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;margin:0 0 24px;background:none}
.feature-page .studio-steps button{
  padding:8px 5px 12px;min-height:46px;min-width:0;background:none;border:0;border-bottom:3px solid transparent;
  border-radius:0;color:var(--ui-secondary, #505b55);font-size:16px;font-weight:550;text-decoration:none;line-height:1.4
}
.feature-page .studio-steps button[aria-pressed=true]{color:var(--ui-link);border-bottom-color:var(--blue);font-weight:700}
.feature-page .studio-editor{display:block;max-width:1080px}
.studio-editor fieldset{min-width:0}
/* This standalone form does not inherit the studio editor's fieldset sizing.
   A classic mobile scrollbar reduces the usable width below the viewport. */
#product-film{display:grid;gap:14px;min-width:0;width:100%;max-width:100%}
#product-film>*{min-width:0;max-width:100%;box-sizing:border-box}
#product-film fieldset{margin:0;min-inline-size:0;padding:12px}
#product-film label:not(:has([type=radio],[type=checkbox])){display:grid;gap:8px}
#product-film input[type=file]{display:block;width:100%;min-width:0;box-sizing:border-box}
#product-film p{margin:0;overflow-wrap:anywhere}
#product-film fieldset p{margin:10px 0 16px}
#product-film fieldset p:last-child{margin-bottom:0}
#product-film button[type=submit]{justify-self:start}
/* The legacy light feature palette otherwise overrides the merchant theme on
   the result inspector and its navigation links. Keep this change video-only. */
html.merchant-orbit #main.feature-page:has(#product-film,.studio-review,[data-campaign-clip]){
  --ink:var(--text);--muted:var(--soft);--blue:var(--a);--blue-dark:var(--a);--line:var(--edge)
}
.feature-page .studio-editor #clip-recipe,.feature-page #clip-library{margin:0}
.feature-page #clip-product>.btn{margin-top:16px}
.feature-page .studio-editor[hidden],.feature-page :is(#clip-product,#clip-recipe,#clip-library)[hidden]{display:none}
.studio-review{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(240px,.85fr);gap:clamp(20px,3vw,48px);align-items:start}
.studio-review>*{min-width:0}.studio-picture{position:relative;background:#1c2027;border-radius:9px;overflow:hidden}
.studio-picture>span{position:absolute;z-index:1;pointer-events:none;top:12px;left:15px;background:#171b22cc;color:white;border-radius:5px;padding:3px 7px;font-weight:650;font-size:15px}
.studio-picture video{width:100%;height:clamp(330px,57vh,590px);object-fit:contain;background:#1c2027;display:block;border:0}
.feature-page .studio-monitor>h2{font-size:15px;margin:16px 0 8px}
.studio-strip{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity}
.studio-strip button{position:relative;flex:0 0 116px;scroll-snap-align:start;min-height:72px;border-radius:7px;overflow:hidden;
  border:2px solid transparent;background:#222832;padding:0;text-align:left;color:#fff}
.studio-strip img{width:100%;height:74px;object-fit:cover;display:block}
.studio-strip button>span{display:block;background:#202731;padding:5px 7px;font-size:12px;line-height:1.35}
.studio-strip small{display:block;color:#d6dfed}
.studio-strip button[aria-pressed=true]{border-color:var(--blue);outline:1px solid var(--blue)}
.studio-inspector{display:flex;flex-direction:column;gap:24px;align-self:stretch}
.studio-product,.studio-audio{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.studio-product img{width:48px;height:54px;object-fit:cover;border-radius:6px}
.studio-product strong{flex:1;overflow-wrap:anywhere;min-width:8ch}
.studio-inspector a:not(.btn){font-size:14px;color:var(--ui-link);text-underline-offset:3px}
.studio-inspector dl{margin:0}
.studio-inspector dl div{padding:9px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:5em 1fr;gap:8px}
.studio-inspector dt,.studio-audio small{color:var(--ui-secondary, #505b55);font-size:14px}
.studio-inspector dd{margin:0;font-weight:550;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.studio-audio button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#eaf0ff;color:var(--ui-link)}
.studio-audio button svg{width:19px}.studio-audio small{display:block}
.studio-deliver{display:grid;gap:8px;margin-top:auto;text-align:center}
.studio-deliver a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px}
.feature-page .all-batches{margin-top:24px;border:0;border-top:1px solid var(--line);padding:14px 0;background:none;border-radius:0}
.feature-page .all-batches summary{min-height:44px;align-content:center;width:fit-content}
@media(max-width:800px){
  .studio-review{grid-template-columns:1fr;gap:20px}.studio-picture video{height:min(49vh,420px)}
  .studio-inspector{gap:20px}.feature-page .office-studio .office-preview{border-inline-start:0;border-top:1px solid var(--line);padding:18px 0 0}
}
@media(max-width:650px){
  #main.feature-page{padding:17px 12px 36px}.feature-page .page-heading{gap:12px;margin-bottom:14px}
  .studio-actions{gap:6px}.studio-actions .btn{font-size:13px;min-height:44px;padding:7px 9px}
  .feature-page .studio-steps{gap:8px;justify-content:space-between;margin-bottom:16px}.feature-page .studio-steps button{font-size:14px}
  .feature-page :is(.btn,.task-model-picker>summary,.voice-picker>summary,.picker-option){min-height:44px}
  .studio-product a{min-height:44px;align-content:center}.studio-strip button{flex-basis:90px}
}
.studio-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,92px),1fr));overflow:visible;align-items:start}
.studio-strip button{max-width:136px;width:100%}
