/* Preview surfaces stay outside SVG/HTML renders and source video files. */
.preview.checker,.hero-art.checker,.alpha-preview,.archive-alpha,.alpha-clean,
.studio-art.dark,
:is(.preview,.card-preview,.viewer-stage).alpha-preview[data-background="dark"] {
  background-color:#121416;
  background-image:radial-gradient(ellipse at 50% 28%,#25282c 0%,#191b1e 43%,#111315 100%);
  background-position:center;
  background-size:cover;
}
[data-background="light"]:is(.preview,.card-preview,.viewer-stage).alpha-preview,[data-background="light"].alpha-clean,
[data-background="light"].archive-alpha,.studio-art.light {
  background:#f1f0ed;
}
[data-background="checker"]:is(.preview,.card-preview,.viewer-stage).alpha-preview,.studio-art.checker,[data-background="checker"].alpha-clean,
[data-background="checker"].archive-alpha {
  background-color:#242528;
  background-image:conic-gradient(#242528 25%,#2a2b2f 0 50%,#242528 0 75%,#2a2b2f 0);
  background-size:24px 24px;
}
[data-background="scene"]:is(.preview,.card-preview,.viewer-stage).alpha-preview,[data-background="scene"].alpha-clean,
[data-background="scene"].archive-alpha,.studio-art.scene {
  background:radial-gradient(ellipse at 74% 14%,#5b605b77,transparent 56%),linear-gradient(135deg,#212523,#44473e 65%,#777666);
}
.alpha-preparing>img{visibility:hidden}
.alpha-clean>video{opacity:0!important;pointer-events:none}
.alpha-clean[data-alpha-video="fallback"]>video{opacity:1!important;pointer-events:auto}
.alpha-keyed-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;opacity:0;pointer-events:none}
.alpha-keyed-video.ready{opacity:1}
.archive-focus .alpha-keyed-video{transform:translate(var(--focus-x,0%),var(--focus-y,0%)) scale(var(--focus-scale,1));transform-origin:center}
.viewer-stage.alpha-clean>video{position:absolute;inset:0}
.alpha-background-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 15px;margin:0 0 20px;border:1px solid var(--line,#dde2e9);border-radius:8px;color:var(--muted,#778391);font-size:11px;background:var(--panel,#f7f8fa)}
.alpha-background-toolbar>div{display:flex;gap:6px;align-items:center}
.alpha-background-toolbar button{min-height:31px;border:1px solid var(--line,#d9dfe6);border-radius:5px;padding:5px 11px;background:transparent;color:inherit;font:inherit}
.alpha-background-toolbar button[aria-pressed="true"]{color:var(--lime,#2458ef);border-color:currentColor}
.alpha-background-toolbar button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#alpha-viewer-toolbar.alpha-background-toolbar{margin:0;border-width:1px 0 0;border-radius:0}
.alpha-video-controls{display:flex;align-items:center;gap:14px;padding:11px 20px;background:#17191c;color:#c1c5ca;font:11px ui-monospace,monospace;border-top:1px solid #303338}
.alpha-video-controls>button{height:30px;min-width:34px;border:1px solid #3e4247;border-radius:5px;background:#282b2f;color:#e2e4e7}
.alpha-video-controls>input{flex:1;min-width:25px;accent-color:#d4ed84}
.alpha-video-controls>span{white-space:nowrap;font-variant-numeric:tabular-nums}
.alpha-preview-toolbar button[data-alpha-background="dark"]::before{background:#17191c}
.alpha-preview-toolbar button[data-alpha-background="light"]::before{background:#f1f0ed}
.alpha-preview-toolbar button[data-alpha-background="checker"]::before{background:conic-gradient(#242528 25%,#777b80 0 50%,#242528 0 75%,#777b80 0);background-size:6px 6px}
.alpha-preview-toolbar button[data-alpha-background="scene"]::before{background:linear-gradient(135deg,#212523,#777666)}
@media(max-width:680px){.alpha-background-toolbar{padding:10px;gap:8px}.alpha-background-toolbar>span:last-child{display:none}.alpha-video-controls{padding:9px 12px;gap:8px}}
