/* Original engraved artwork. PNG alpha is preserved; the live palette supplies its color. */
:root{--tapestry-opacity:.18;--tapestry-hero-opacity:.28;--tapestry-chrome-opacity:.11}
:root[data-theme=dark]{--tapestry-opacity:.14;--tapestry-hero-opacity:.22;--tapestry-chrome-opacity:.095}
:root[data-decoration=khokhloma]{--theme-tapestry:url("/brand/khokhloma-tapestry-v3.png")}
:root[data-decoration=gzhel]{--theme-tapestry:url("/brand/gzhel-tapestry-v3.png")}
:root[data-decoration=gorodets]{--theme-tapestry:url("/brand/gorodets-tapestry-v3.png")}
:root[data-decoration=folk]{--theme-tapestry:url("/brand/folk-tapestry-v3.png")}
:root[data-decoration=rock]{--theme-tapestry:url("/brand/rock-tapestry-v3.png")}
:root[data-decoration=industrial]{--theme-tapestry:url("/brand/industrial-tapestry-v3.png")}
:root[data-decoration=valkyrie]{--theme-tapestry:url("/brand/valkyrie-tapestry-v3.png")}
:root[data-decoration=philharmonic]{--theme-tapestry:url("/brand/philharmonic-tapestry-v3.png")}
:root[data-decoration=slavonic]{--theme-tapestry:url("/brand/slavonic-tapestry-v3.png")}
:root[data-decoration=alternative]{--theme-tapestry:url("/brand/alternative-tapestry-v3.png")}
:root[data-decoration=pop]{--theme-tapestry:url("/brand/pop-tapestry-v3.png")}
:root[data-decoration=svo]{--theme-tapestry:url("/brand/svo-tapestry-v3.png")}
:root[data-decoration=patriotic]{--theme-tapestry:url("/brand/patriotic-tapestry-v3.png")}
:root[data-decoration=rap]{--theme-tapestry:url("/brand/rap-tapestry-v3.png")}
:root[data-decoration=bard]{--theme-tapestry:url("/brand/bard-tapestry-v3.png")}
:root[data-decoration=yesenin]{--theme-tapestry:url("/brand/yesenin-tapestry-v4.png")}
@media screen{
  :root body{isolation:isolate;background-image:none}
  :root body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--primary);mask:var(--theme-tapestry) right bottom / contain no-repeat;mask-mode:luminance;opacity:var(--tapestry-opacity)}
  :where(.home-page,.library-page,.help-page,.registration-page,.studio-page,.create-panel,.workspace-panel,.hero,.modal,.empty,.studio-empty,.workspace-welcome,.tapestry-surface){position:relative;isolation:isolate}
  :root[data-decoration] :is(.home-page,.library-page,.help-page,.registration-page,.studio-page,.create-panel,.workspace-panel,.hero,.modal,.empty,.studio-empty,.workspace-welcome,.tapestry-surface){background-image:none}
  :root[data-decoration] :is(.home-page,.library-page,.help-page,.registration-page,.studio-page,.create-panel,.workspace-panel,.hero,.modal,.empty,.studio-empty,.workspace-welcome,.tapestry-surface)::before{
    content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
    background:var(--primary);mask:var(--theme-tapestry) right bottom / contain no-repeat;mask-mode:luminance;opacity:var(--tapestry-opacity)
  }
  :root[data-decoration] .hero::before{opacity:var(--tapestry-hero-opacity);mask-position:left bottom}
  :root[data-decoration] :is(.create-panel,.workspace-panel,.studio-page,.modal)::before{opacity:var(--tapestry-chrome-opacity)}
  :root[data-decoration] .workspace-welcome{background:transparent}
  :root[data-decoration] .workspace-welcome::before{display:none}
  :root[data-decoration] .idea-card .idea-art{background-image:none}
  :root[data-decoration] .idea-card{background-color:var(--surface)}
  :where(.modal>header,.studio-header,.create-tabs,.studio-mode-bar,.studio-note-toolbar,.dlg-bar,.modal-header,#controls-left){position:relative;isolation:isolate}
  :root[data-decoration] :is(.modal>header,.studio-header,.workspace-header,.create-tabs,.studio-mode-bar,.studio-note-toolbar,.dlg-bar,.modal-header,#controls-left){background-image:none}
  :root[data-decoration] :is(.modal>header,.studio-header,.create-tabs,.studio-mode-bar,.studio-note-toolbar,.dlg-bar,.modal-header,#controls-left)::before{
    content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:var(--primary);
    mask:var(--theme-tapestry) right 65% / 420px 420px no-repeat;mask-mode:luminance;opacity:var(--tapestry-chrome-opacity)
  }
  :root[data-decoration] #controls-left::before{mask-size:auto 100%;mask-position:left bottom}
  /* Only text fields need an opaque backing over the ornament. Preserve the
     state backgrounds of switches and the transparent range hit area. */
  :root[data-decoration] :is(.song-list,.library-toolbar,.create-panel textarea,.create-panel input:not([type=checkbox]):not([type=radio]):not([type=range]),.studio-inspector,.timeline-ruler,.track-header,.piano-tools,.roll-tools){background-color:var(--surface)}
}
@media(max-width:700px){
  :root{--tapestry-opacity:.14;--tapestry-hero-opacity:.22}
  :root[data-theme=dark]{--tapestry-opacity:.12;--tapestry-hero-opacity:.19}
  :root[data-decoration] :is(.modal>header,.studio-header,.create-tabs)::before{mask-size:300px 300px}
}
@media(prefers-contrast:more){:root{--tapestry-opacity:.045;--tapestry-hero-opacity:.06;--tapestry-chrome-opacity:.025}}
@media print{body::before,:is(.home-page,.library-page,.help-page,.registration-page,.studio-page,.create-panel,.workspace-panel,.hero,.modal,.empty,.studio-empty,.workspace-welcome,.tapestry-surface,.studio-mode-bar,.studio-note-toolbar,.dlg-bar,.modal-header,#controls-left)::before{display:none!important}}
