/* Theme the Lab's browsing UI, leaving the individual designs in their own colours. */
html[data-lab-theme] body[data-template=collection]{--lab-bg:var(--lab-ui-bg);--lab-ink:var(--lab-ui-ink);--lab-muted:var(--lab-ui-muted);--lab-line:var(--lab-ui-line);--lab-accent:var(--lab-ui-ink);background:var(--lab-ui-bg);color:var(--lab-ui-ink)}
html[data-lab-theme] body[data-template=collection] :is(.collection-controls,.overview-section,.overview-browse-mode,.design-preview,.viewer-editions,.overview-colour-tools>article){border-color:var(--lab-ui-line)}
html[data-lab-theme] :is(.palette-cta,.sample-save,.sample-contrast-choices button,.overview-palette-demo>button){border-color:var(--lab-ui-line)}
html[data-lab-theme] :is(.palette-cta:hover,.colour-menu a:hover,.colour-menu button:hover){background:var(--lab-ui-hover)}
html[data-lab-theme] :is(.design-preview,.apps .design-preview,.design-card.is-app .design-preview,.viewer-stage){background:var(--lab-ui-surface)}
html[data-lab-theme] :is(.viewer-routebar,.sample-button-stage,.sample-nav-stage,.sample-input-stage){background:var(--lab-ui-surface);border-color:var(--lab-ui-line)}
html[data-lab-theme] :is(.viewer-editions,.viewer-editions select,.sample-save,.sample-nav-stage>div,.sample-input-stage input,.overview-palette-demo>button){background:var(--lab-ui-raised);color:var(--lab-ui-ink);border-color:var(--lab-ui-line)}
html[data-lab-theme] :is(.collection-appearance-row,.viewer-editions>span,.overview-eyebrow,.sample-caption small,.component-samplers>article>a,.sample-button-stage>span,.sample-input-stage label,.sample-input-stage>span,.overview-colour-tools p,.overview-palette-demo>span,.sample-contrast-choices>span,.overview-browse-mode>span){color:var(--lab-ui-muted)}
html[data-lab-theme] :is(.sample-button-stage>button:first-child,.sample-save[aria-pressed=true],.sample-contrast-choices button[aria-pressed=true]){background:var(--lab-ui-ink);color:var(--lab-ui-bg);border-color:var(--lab-ui-ink)}
html[data-lab-theme] .save-design[aria-pressed=true]{color:var(--lab-ui-ink);background:var(--lab-ui-hover)}
html[data-lab-theme] .viewer-actions #viewer-save[aria-pressed=true]{color:var(--lab-ui-ink)}
html[data-lab-theme=dark] .viewer-stage.mobile iframe{border-color:#363636}
html[data-lab-theme=dark] .preview-cover{background:#0000}
html[data-lab-theme=dark] .design-preview:is(:hover,:focus-visible) .preview-cover{background:#0005}
html[data-lab-theme=dark] :is(input,select)::placeholder{color:#aaa}
