/* Scoped Solv3R Eye-Dome-Lit 3D Cinema Stage styles (never pollutes :root). */
.s3r {
  --s-bg: #0b0e13; --s-bg2: #0f1319; --s-bg3: #141922; --s-bg4: #1a2029;
  --s-line: rgba(255,255,255,0.10); --s-line2: rgba(255,255,255,0.16); --s-line3: rgba(255,255,255,0.24);
  --s-ink: #e4ebf3; --s-ink2: #b8c3d1; --s-muted: #8492a6; --s-faint: #616f82;
  --s-acc: #38d2bc; --s-acc2: #6ce5d3; --s-accbg: rgba(56, 210, 188, 0.14);
  --panel: rgba(11, 15, 21, 0.80);
  position: relative; width: 100%; height: 100%; min-height: 360px;
  background: #05070b; color: var(--s-ink); color-scheme: dark;
  border: 1px solid var(--s-line2); border-radius: 14px; overflow: hidden; isolation: isolate;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font: 12.5px/1.45 "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
}
.s3r *, .s3r *::before, .s3r *::after { box-sizing: border-box; }
.s3r button { font: inherit; color: inherit; }
.s3r svg { display: block; }
.s3r:fullscreen { border-radius: 0; border: 0; }
.s3r-canvas { position: absolute; inset: 0; }
.s3r-canvas canvas { width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
.s3r-canvas canvas:active { cursor: grabbing; }
.s3r-empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .3s;
  background: radial-gradient(ellipse at center, rgba(56, 210, 188, 0.07), transparent 62%); }
.s3r.has .s3r-empty, .s3r.live .s3r-empty, .s3r:has(.s3r-load.on) .s3r-empty { opacity: 0; transition: none; }
.s3r-empty-in { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--s-muted); max-width: 280px; }
.s3r-empty-in b { color: var(--s-ink2); font-weight: 600; font-size: 13px; }
.s3r-mark { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: var(--s-acc2); margin-bottom: 8px; background: var(--s-accbg); }
.s3r-mark svg { width: 26px; height: 26px; }
.s3r-head { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px; pointer-events: none; z-index: 3; }
.s3r-tools { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9px; background: var(--panel); border: 1px solid var(--s-line); backdrop-filter: blur(8px); pointer-events: auto; }
.s3r-tools > button { width: 30px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--s-ink2); cursor: pointer; padding: 0; }
.s3r-tools > button svg { width: 16px; height: 16px; }
.s3r-tools > button:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
.s3r-toast { position: absolute; left: 50%; top: 16px; transform: translate(-50%, -6px); padding: 6px 12px; border-radius: 999px;
  background: rgba(56, 210, 188, 0.18); border: 1px solid rgba(108, 229, 211, 0.45); color: #d9fff9;
  font: 600 11.5px/1 var(--f-mono); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 4; backdrop-filter: blur(8px); }
.s3r-toast.on { opacity: 1; transform: translate(-50%, 0); }
.s3r-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 7px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--s-line); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 3; }
.s3r.has .s3r-foot { opacity: 1; pointer-events: auto; }
.s3r.live .s3r-foot { display: none; }
.s3r-foot .s3r-title { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.s3r-title b { font-weight: 700; font-size: 13px; color: #fff; }
.s3r-title span { color: var(--s-muted); font: 11px/1.3 var(--f-mono); }
.s3r-title span:empty { display: none; }
.s3r-legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--s-muted); font-size: 10.5px; }
.s3r-key { display: none; align-items: center; gap: 6px; }
.s3r.has-motion .s3r-key { display: inline-flex; }
@media (max-width: 820px) { .s3r-hint { display: none; } }
.s3r-load { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 7, 11, 0.68); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 5; }
.s3r-load.on { opacity: 1; }
.s3r-load-in { display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--s-ink2); font: 11.5px var(--f-mono); }
.s3r-bar { width: 170px; height: 3px; border-radius: 3px; background: var(--s-line2); overflow: hidden; }
.s3r-bar i { display: block; height: 100%; width: 0; background: var(--s-acc2); transition: width .1s; }

/* Timeline */
.s3r .tl { display: flex; align-items: center; gap: 10px; }
.s3r .tl-play { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--s-line3); background: var(--s-bg4); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.s3r .tl-play:hover { border-color: var(--s-acc2); background: rgba(56, 210, 188, 0.2); }
.s3r .tl-track { position: relative; flex: 1; height: 22px; cursor: pointer; outline: none; touch-action: none; }
.s3r .tl-rail, .s3r .tl-fill { position: absolute; left: 0; top: 10px; height: 3px; border-radius: 2px; }
.s3r .tl-rail { right: 0; background: var(--s-line2); }
.s3r .tl-fill { background: linear-gradient(90deg, #38d2bc, #ff9b42); }
.s3r .tl-ticks i { position: absolute; top: 8px; width: 1px; height: 7px; background: var(--s-line3); }
.s3r .tl-head { position: absolute; top: 5px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(56, 210, 188, 0.32); }
.s3r .tl-marks .tl-mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.s3r .tl-mark b { width: 2px; height: 22px; background: #ff9b42; opacity: 0.85; }
.s3r .tl-mark em { position: absolute; top: -13px; font: 600 9.5px/1 var(--f-mono); font-style: normal; color: #ffad60; white-space: nowrap; }
.s3r .tl-time { flex: none; min-width: 96px; text-align: right; font: 600 11.5px/1 var(--f-mono); color: #fff; font-variant-numeric: tabular-nums; }

/* View chips */
.s3r-chips { position: relative; }
.s3r .chips-canvas { display: block; cursor: pointer; }
.s3r .chips-tip { position: absolute; z-index: 6; display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(11, 15, 21, 0.96); border: 1px solid var(--s-line2);
  pointer-events: none; opacity: 0; transition: opacity .15s; transform: translateY(-100%); margin-top: -28px; white-space: nowrap; box-shadow: 0 10px 28px rgba(0,0,0,0.5); }
.s3r .chips-tip .tip-img { border-radius: 4px; flex: none; background-repeat: no-repeat; }
.s3r .tip-txt { display: flex; flex-direction: column; font-size: 11px; }
.s3r .tip-txt b { font-weight: 600; color: #fff; }
.s3r .tip-txt span { color: var(--s-muted); font-family: var(--f-mono); }

/* Floating HUD panel */
.s3r-panel { pointer-events: auto; display: flex; flex-direction: column; gap: 8px; width: 238px; padding: 9px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--s-line); backdrop-filter: blur(10px); }
.s3r-sls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s3r-sl { display: flex; flex-direction: column; gap: 3px; color: var(--s-ink2); font-size: 11px; }
.s3r-sl span { display: flex; justify-content: space-between; }
.s3r-sl output { font: 10px/1.4 var(--f-mono); color: var(--s-muted); }
.s3r-sl input { width: 100%; accent-color: var(--s-acc); margin: 0; }
.s3r-sl.s3r-wide { grid-column: 1 / -1; }
.s3r-tgs { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.s3r-tg { display: flex; align-items: center; gap: 6px; color: var(--s-ink2); cursor: pointer; font-size: 11.5px; user-select: none; }
.s3r-tg input { display: none; }
.s3r-tg i { width: 26px; height: 15px; border-radius: 8px; background: var(--s-line2); position: relative; flex: none; transition: background .15s; }
.s3r-tg i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #cfd7e2; transition: transform .15s; }
.s3r-tg input:checked + i { background: var(--s-acc); }
.s3r-tg input:checked + i::after { transform: translateX(11px); background: #041f1b; }
.s3r:not(.stream) .s3r-traj { display: none; }
.s3r-more summary { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 8px; border: 1px solid var(--s-line); border-radius: 6px;
  background: rgba(255,255,255,0.03); color: var(--s-ink2); font-size: 11px; cursor: pointer; list-style: none; user-select: none; }
.s3r-more summary::-webkit-details-marker { display: none; }
.s3r-more summary:hover { border-color: var(--s-acc); color: #fff; }
.s3r-more summary span { flex: 1; }
.s3r-more summary svg { width: 13px; height: 13px; flex: none; }
.s3r-more summary .chev { opacity: 0.7; transition: transform .15s; }
.s3r-more[open] summary .chev { transform: rotate(180deg); }
.s3r-more[open] summary { margin-bottom: 8px; }
@media (max-width: 640px) {
  .s3r-panel { width: 196px; padding: 7px 8px; }
  .s3r-more { display: none; }
}
