/* One non-repeating viewport image spans application chrome. Each menu reveals its
   own part of the same scene. Authored pages never match these selectors. */
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.app-header,.workspace-nav,.tool-rail,.inspector,.writer-header,.writer-sidebar,.writer-inspector,#app-header,#sidebar,.pro-header,.pro-nav,.pro-inspector,.studio-world,.fd-studio>header,.fd-file-menu>div,.writer-file-menu>div,.pro-file>div){
 background-image:linear-gradient(color-mix(in srgb,var(--fd-panel) calc(var(--fd-atmosphere-effective-wash, var(--fd-atmosphere-wash)) * 100%),transparent),color-mix(in srgb,var(--fd-panel) calc(var(--fd-atmosphere-effective-wash, var(--fd-atmosphere-wash)) * 100%),transparent)),var(--fd-atmosphere-image)!important;
 background-color:var(--fd-panel)!important;background-position:0 0,var(--fd-atmosphere-x,0px) var(--fd-atmosphere-y,0px)!important;background-size:auto,var(--fd-atmosphere-width,100vw) var(--fd-atmosphere-height,100vh)!important;background-origin:border-box!important;background-attachment:scroll,scroll!important;background-repeat:no-repeat!important;
 border-color:color-mix(in srgb,var(--fd-atmosphere-tint) 35%,var(--fd-line))!important;
}
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.tool-rail,.inspector,.writer-sidebar,.writer-inspector,#sidebar,.pro-nav,.pro-inspector,.studio-world,.fd-studio>header,.fd-file-menu>div,.writer-file-menu>div,.pro-file>div) :is(button,summary,input,select,textarea,.scene-item,.side-heading):not(.active):not([aria-pressed=true]):not([aria-selected=true]){background-color:var(--fd-panel)!important;color:var(--fd-ink)!important}
.fd-atmosphere-settings{padding-bottom:18px;border-bottom:1px solid var(--fd-line)}
.fd-atmosphere-toggle{display:flex!important;align-items:center;gap:9px!important;margin:12px 0;font-weight:600}
.fd-atmosphere-toggle[hidden]{display:none!important}
.fd-atmosphere-toggle input{flex:0 0 auto;width:19px;height:19px;margin:0}
.fd-atmosphere-context{font-size:12px!important;color:var(--fd-muted)!important}
.fd-atmosphere-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fd-atmosphere-grid button{padding:0 0 12px;overflow:hidden;text-align:left;white-space:normal;border:2px solid var(--fd-line);border-radius:12px;background:var(--fd-panel);color:var(--fd-ink);min-width:0;cursor:pointer}
.fd-atmosphere-grid img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;margin-bottom:10px}
.fd-atmosphere-grid strong,.fd-atmosphere-grid small{display:block;padding:0 12px}
.fd-atmosphere-grid strong{font-size:14px;line-height:1.35}
.fd-atmosphere-grid small{font-size:12px;line-height:1.45;margin-top:5px;color:var(--fd-muted)}
.fd-atmosphere-grid button[aria-pressed=true]{border-color:var(--fd-accent);box-shadow:0 0 0 1px var(--fd-accent)}
.fd-atmosphere-grid button:focus-visible,.fd-atmosphere-controls :focus-visible{outline:3px solid var(--fd-accent);outline-offset:3px}
.fd-atmosphere-controls{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:16px 0}
.fd-atmosphere-controls>label:first-child{display:grid;gap:6px;font-size:13px}.fd-atmosphere-controls select,.fd-atmosphere-controls button{min-height:40px}
.fd-atmosphere-controls .fd-atmosphere-toggle{flex:1;min-width:200px;font-size:13px}
.fd-atmosphere-guide{font-size:13px;line-height:1.55}.fd-atmosphere-guide summary{cursor:pointer;font-weight:600;padding:8px 0}
.fd-atmosphere-settings [role=status]{font-size:12px;min-height:1em}
@media(max-width:520px){.fd-atmosphere-grid{grid-template-columns:1fr}.fd-atmosphere-grid button{display:grid;grid-template-columns:94px 1fr;grid-template-rows:auto auto;column-gap:0;padding:0}.fd-atmosphere-grid img{grid-row:1/3;height:100%;min-height:98px;margin:0;aspect-ratio:auto}.fd-atmosphere-grid strong{align-self:end;padding-top:10px}.fd-atmosphere-grid small{padding-bottom:10px}.fd-atmosphere-controls{gap:8px}}
@media(forced-colors:active){html[data-fd-atmosphere] :is(.app-header,.workspace-nav,.tool-rail,.inspector,.writer-header,.writer-sidebar,.writer-inspector,#app-header,#sidebar,.pro-header,.pro-nav,.pro-inspector,.studio-world,.fd-studio>header,.fd-file-menu>div,.writer-file-menu>div,.pro-file>div){background-image:none!important}}

html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.inspector,.writer-sidebar,.writer-inspector,#sidebar,.pro-nav,.pro-inspector,.studio-world) :is(label,p,small,h1,h2,h3,h4,.panel-eyebrow,.section-label){background-color:var(--fd-panel);border-radius:3px}
.fd-atmosphere-filter{display:grid;gap:6px;max-width:280px;margin:12px 0;font-size:13px;font-weight:600}.fd-atmosphere-filter select{min-height:40px}.fd-atmosphere-grid button[hidden]{display:none!important}

/* Keep inspirational art in application ribbons while controls remain legible. */
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.viewer-toolbar,.writer-ribbon,.pro-toolbar,.pro-steps,.format-bar,.project-bar,#view-tabs,.workspace-view-controls,.studio-modes,.studio-tabs,.studio-tools){background-image:linear-gradient(color-mix(in srgb,var(--fd-panel) calc(var(--fd-atmosphere-effective-wash, var(--fd-atmosphere-wash)) * 100%),transparent),color-mix(in srgb,var(--fd-panel) calc(var(--fd-atmosphere-effective-wash, var(--fd-atmosphere-wash)) * 100%),transparent)),var(--fd-atmosphere-image)!important;background-color:var(--fd-panel)!important;background-position:0 0,var(--fd-atmosphere-x,0px) var(--fd-atmosphere-y,0px)!important;background-size:auto,var(--fd-atmosphere-width,100vw) var(--fd-atmosphere-height,100vh)!important;background-origin:border-box!important;background-attachment:scroll,scroll!important;background-repeat:no-repeat!important;border-color:color-mix(in srgb,var(--fd-atmosphere-tint) 35%,var(--fd-line))!important}
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.viewer-toolbar,.writer-ribbon,.pro-toolbar,.pro-steps,.format-bar,.project-bar,#view-tabs,.workspace-view-controls,.studio-modes,.studio-tabs,.studio-tools) :is(button,select,input,summary,label):not(.active):not([aria-pressed=true]):not([aria-selected=true]){background-color:var(--fd-panel);color:var(--fd-ink)}
@media(forced-colors:active){html[data-fd-atmosphere] :is(.viewer-toolbar,.writer-ribbon,.pro-toolbar,.pro-steps,.format-bar,.project-bar,#view-tabs,.workspace-view-controls,.studio-modes,.studio-tabs,.studio-tools){background-image:none!important}}

/* High contrast keeps artwork visible at a reduced strength. */
html[data-fd-contrast=more]{--fd-atmosphere-effective-wash:max(.86, var(--fd-atmosphere-wash))}

/* A single viewport scene continues through Screenwriter's menus and page surround.
   These surfaces are application chrome; screenplay pages and authored artwork stay intact. */
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.first-guide,.view-head,.board-navigation,.workspace-display-panel,#studio-tool-grip,#pages-scroll){
 background-image:linear-gradient(color-mix(in srgb,var(--fd-panel) calc(var(--fd-atmosphere-effective-wash, var(--fd-atmosphere-wash)) * 100%),transparent),color-mix(in srgb,var(--fd-panel) calc(var(--fd-atmosphere-effective-wash, var(--fd-atmosphere-wash)) * 100%),transparent)),var(--fd-atmosphere-image)!important;
 background-color:var(--fd-panel)!important;background-position:0 0,var(--fd-atmosphere-x,0px) var(--fd-atmosphere-y,0px)!important;background-size:auto,var(--fd-atmosphere-width,100vw) var(--fd-atmosphere-height,100vh)!important;background-origin:border-box!important;background-attachment:scroll,scroll!important;background-repeat:no-repeat!important;
}
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.first-guide,.view-head,.board-navigation,.workspace-display-panel) :is(button,select,input,summary,code){background-color:var(--fd-panel)!important;color:var(--fd-ink)!important}
@media(forced-colors:active){html[data-fd-atmosphere] :is(.first-guide,.view-head,.board-navigation,.workspace-display-panel,#studio-tool-grip,#pages-scroll){background-image:none!important}}


/* Remove the decorative seams between themed ribbon rows. */
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.app-header,#app-header,.workspace-nav,.writer-header,.pro-header,.viewer-toolbar,.writer-ribbon,.pro-toolbar,.pro-steps,.format-bar,.project-bar,#view-tabs,.workspace-view-controls,.studio-modes,.studio-tabs,.studio-tools,.fd-story-art>header){
 border-top-color:transparent!important;
 border-bottom-color:transparent!important;
}
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) :is(.fd-story-art,.fd-story-art>header){
 background-image:linear-gradient(color-mix(in srgb,var(--fd-panel) calc(var(--fd-atmosphere-effective-wash,var(--fd-atmosphere-wash)) * 100%),transparent),color-mix(in srgb,var(--fd-panel) calc(var(--fd-atmosphere-effective-wash,var(--fd-atmosphere-wash)) * 100%),transparent)),var(--fd-atmosphere-image)!important;
 background-color:var(--fd-panel)!important;
 background-position:0 0,var(--fd-atmosphere-x,0px) var(--fd-atmosphere-y,0px)!important;
 background-size:auto,var(--fd-atmosphere-width,100vw) var(--fd-atmosphere-height,100vh)!important;
 background-repeat:no-repeat!important;
}
html[data-fd-atmosphere]:not([data-fd-atmosphere=off]):not([data-fd-focus=true]) .fd-story-art>p{background:var(--fd-panel);color:var(--fd-ink);border-radius:6px;padding:4px 8px}
@media(forced-colors:active){html[data-fd-atmosphere] :is(.fd-story-art,.fd-story-art>header){background-image:none!important}}
