/* Slidr web runtime — styles. Sizes mirror the Flutter widgets they replace. */
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
.player { position: fixed; inset: 0; background: #000; color: #fff; font-family: "Inter", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; user-select: none; -webkit-user-select: none; }
.viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pinch-zoom; }
.layer { position: absolute; inset: 0; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.slide { position: relative; overflow: hidden; contain: layout paint; }
.slide svg.bg { position: absolute; left: 0; top: 0; }

/* elements */
.el { position: absolute; box-sizing: border-box; transform-origin: 50% 50%; }
.spot { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .26s cubic-bezier(.215, .61, .355, 1), opacity .26s cubic-bezier(0, 0, .58, 1); }
.tappable { cursor: pointer; }
.sv { position: absolute; left: 0; top: 0; overflow: visible; }
.tx { position: absolute; inset: 0; display: flex; flex-direction: column; box-sizing: border-box; }
.tt { width: 100%; margin: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.tb { position: absolute; inset: 0; }
.tc { position: absolute; display: flex; align-items: center; box-sizing: border-box; }
.tct { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; white-space: pre-wrap; overflow-wrap: break-word; }
.cv { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.comp { position: absolute; inset: 0; }
.unknown { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #ff5252; border-radius: 6px; color: #ff5252; font-size: 12px; }
.ic { font-family: "SlidrIcons"; font-style: normal; font-weight: normal; line-height: 1; display: inline-flex; align-items: center; justify-content: center; font-feature-settings: "liga"; flex: none; }

/* layout helpers for widget-tree components */
.col { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.col.start { align-items: flex-start; }
.col.center { align-items: center; }
.col.end { align-items: flex-end; position: relative; inset: auto; }
.col.stretch { align-items: stretch; }
.row { display: flex; align-items: center; }
.layer.comp, .comp.layer { position: absolute; inset: 0; }
.fitbox { position: relative; width: 100%; flex: none; }
.fit { display: inline-block; white-space: nowrap; }
div.fit.col { position: relative; inset: auto; display: inline-flex; white-space: normal; }

/* KpiCard */
.kpi { position: absolute; inset: 0; box-sizing: border-box; padding: 18px; }
.kpi-bar { position: absolute; left: 18px; top: 18px; bottom: 18px; width: 4px; border-radius: 2px; }
.kpi-box { position: absolute; left: 32px; top: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; }
.kpi-box .fit { white-space: nowrap; }

/* Slider */
.slider { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.slider.inline { flex-direction: row; align-items: center; justify-content: flex-start; }
.sl-head { display: flex; align-items: baseline; margin-bottom: 8px; }
.sl-head .sl-label { flex: 1 1 auto; min-width: 0; }
.sl-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-value { text-align: right; white-space: nowrap; }
.sl-track { position: relative; height: 26px; flex: none; touch-action: none; }
.sl-rail, .sl-fill { position: absolute; left: 11px; top: 10px; height: 6px; border-radius: 3px; }
.sl-rail { right: 11px; }
.sl-knob { position: absolute; top: 2px; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .38); }

/* Picker */
.picker { flex: 1 1 auto; display: flex; padding: 4px; box-sizing: border-box; min-height: 0; }
.pick { flex: 1 1 0; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: background-color .15s; padding: 0 8px; }

/* Toggle */
.toggle { position: absolute; inset: 0; display: flex; align-items: center; }
.tg-switch { width: 52px; height: 30px; box-sizing: border-box; padding: 3px; border-radius: 15px; flex: none; transition: background-color .16s; position: relative; }
.tg-knob { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .26); transition: left .16s; }
.tg-switch.on .tg-knob { left: 25px; }
.tg-label { margin-left: 12px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stepper */
.stepper { position: absolute; inset: 0; display: flex; align-items: center; }
.st-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pill { display: flex; align-items: center; padding: 6px; border-radius: 28px; flex: none; }
.st-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.st-value { min-width: 64px; text-align: center; }

/* Button */
.btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; box-sizing: border-box; box-shadow: 0 3px 8px rgba(0, 0, 0, .26); overflow: hidden; }
.btn .fit { display: inline-flex; align-items: center; }

/* LiveValue */
.led { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }

/* Reveal */
.reveal { position: absolute; inset: 0; perspective: 833px; }
.rv-card { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .52s cubic-bezier(.645, .045, .355, 1); }
.rv-card.flipped { transform: rotateY(180deg); }
.rv-face { position: absolute; inset: 0; box-sizing: border-box; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.rv-front { box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.rv-back { transform: rotateY(180deg); }
.rv-title { font-weight: 700; text-align: center; line-height: 1.2; }

/* controls take their own clicks */
.control { touch-action: none; }

/* player chrome */
.black { position: absolute; inset: 0; background: #000; display: none; }
.hud { position: absolute; right: 8px; bottom: 4px; display: flex; align-items: center; gap: 2px; color: rgba(255, 255, 255, .54); font-size: 12px; font-variant-numeric: tabular-nums; z-index: 5; }
.hud-btn { background: none; border: 0; color: inherit; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; cursor: pointer; padding: 0; }
.hud-btn:hover { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
.hud-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); }
.hud-count { padding: 0 4px; }
.notes { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; box-sizing: border-box; padding: 16px; background: rgba(0, 0, 0, .88); display: none; gap: 16px; z-index: 6; }
.n-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.n-head { display: flex; gap: 24px; font-size: 13px; color: rgba(255, 255, 255, .54); margin-bottom: 8px; }
.n-strong { color: rgba(255, 255, 255, .7); font-weight: 600; }
.n-body { flex: 1 1 auto; overflow: auto; font-size: 16px; line-height: 1.4; color: #fff; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.n-next { width: 280px; flex: none; }
.n-label { font-size: 12px; color: rgba(255, 255, 255, .54); margin-bottom: 4px; }
.thumb { position: relative; overflow: hidden; pointer-events: none; }
.overview { position: absolute; inset: 0; background: #000; padding: 32px; box-sizing: border-box; overflow: auto; display: none; gap: 16px; align-content: start; z-index: 7; }
.tile { padding: 0; margin: 0; background: none; border: 1px solid rgba(255, 255, 255, .24); cursor: pointer; display: block; }
.tile.current { border: 3px solid #fff; }
.tile:focus-visible { outline: 2px solid #7ab0ff; }
#loading { position: fixed; inset: 0; display: grid; place-items: center; z-index: 10; }
#loading div { width: 26px; height: 26px; border: 2px solid #333; border-top-color: #999; border-radius: 50%; animation: slidr-spin .8s linear infinite; }
@keyframes slidr-spin { to { transform: rotate(360deg); } }
.outline { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@font-face{font-family:"SlidrIcons";src:url("fonts/icons.otf") format("opentype");font-display:block}
@font-face{font-family:"Inter";src:url("fonts/inter-400i.ttf") format("truetype");font-weight:400;font-style:italic;font-display:block}
@font-face{font-family:"Inter";src:url("fonts/inter-700i.ttf") format("truetype");font-weight:700;font-style:italic;font-display:block}
@font-face{font-family:"Inter";src:url("fonts/inter-300.ttf") format("truetype");font-weight:300;font-style:normal;font-display:block}
@font-face{font-family:"Inter";src:url("fonts/inter-400.ttf") format("truetype");font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:"Inter";src:url("fonts/inter-500.ttf") format("truetype");font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:"Inter";src:url("fonts/inter-600.ttf") format("truetype");font-weight:600;font-style:normal;font-display:block}
@font-face{font-family:"Inter";src:url("fonts/inter-700.ttf") format("truetype");font-weight:700;font-style:normal;font-display:block}
@font-face{font-family:"Inter";src:url("fonts/inter-800.ttf") format("truetype");font-weight:800;font-style:normal;font-display:block}
@font-face{font-family:"SF Pro Display";src:url("fonts/inter-400i.ttf") format("truetype");font-weight:400;font-style:italic;font-display:block}
@font-face{font-family:"SF Pro Display";src:url("fonts/inter-700i.ttf") format("truetype");font-weight:700;font-style:italic;font-display:block}
@font-face{font-family:"SF Pro Display";src:url("fonts/inter-300.ttf") format("truetype");font-weight:300;font-style:normal;font-display:block}
@font-face{font-family:"SF Pro Display";src:url("fonts/inter-400.ttf") format("truetype");font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:"SF Pro Display";src:url("fonts/inter-500.ttf") format("truetype");font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:"SF Pro Display";src:url("fonts/inter-600.ttf") format("truetype");font-weight:600;font-style:normal;font-display:block}
@font-face{font-family:"SF Pro Display";src:url("fonts/inter-700.ttf") format("truetype");font-weight:700;font-style:normal;font-display:block}
@font-face{font-family:"SF Pro Display";src:url("fonts/inter-800.ttf") format("truetype");font-weight:800;font-style:normal;font-display:block}
@font-face{font-family:"Menlo";src:url("fonts/jetbrains-mono-400i.ttf") format("truetype");font-weight:400;font-style:italic;font-display:block}
@font-face{font-family:"Menlo";src:url("fonts/jetbrains-mono-700i.ttf") format("truetype");font-weight:700;font-style:italic;font-display:block}
@font-face{font-family:"Menlo";src:url("fonts/jetbrains-mono-300.ttf") format("truetype");font-weight:300;font-style:normal;font-display:block}
@font-face{font-family:"Menlo";src:url("fonts/jetbrains-mono-400.ttf") format("truetype");font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:"Menlo";src:url("fonts/jetbrains-mono-500.ttf") format("truetype");font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:"Menlo";src:url("fonts/jetbrains-mono-600.ttf") format("truetype");font-weight:600;font-style:normal;font-display:block}
@font-face{font-family:"Menlo";src:url("fonts/jetbrains-mono-700.ttf") format("truetype");font-weight:700;font-style:normal;font-display:block}
@font-face{font-family:"Menlo";src:url("fonts/jetbrains-mono-800.ttf") format("truetype");font-weight:800;font-style:normal;font-display:block}