/* How-to video player: floating, draggable, resizable. Brand tokens can be overridden per site on :root. */
:root{
  --sp-bg:#0F1E33;--sp-bg2:#14315A;--sp-ink:#F2EEE2;--sp-mute:#B9C3D1;
  --sp-accent:#0F85DB;--sp-ok:#3CC261;--sp-card:#F2EEE2;--sp-card-ink:#0F1E33;
  --sp-font:"Montserrat","Public Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
.sp,.sp *{box-sizing:border-box}
.sp{position:fixed;z-index:2147483000;left:12px;top:12px;width:420px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);
  display:flex;flex-direction:column;background:var(--sp-bg);color:var(--sp-ink);font-family:var(--sp-font);font-size:14px;line-height:1.4;
  border-radius:16px;border:1px solid rgba(242,238,226,.22);box-shadow:0 18px 50px rgba(5,12,24,.45),0 2px 6px rgba(5,12,24,.3);overflow:hidden;
  touch-action:none;-webkit-user-select:none;user-select:none}
.sp[hidden]{display:none}
.sp-bar{display:flex;align-items:center;gap:6px;padding:6px 6px 6px 14px;background:linear-gradient(180deg,var(--sp-bg2),var(--sp-bg));cursor:grab;touch-action:none;flex:none;min-height:44px}
.sp-bar:active{cursor:grabbing}
.sp-bar:focus-visible{outline:3px solid var(--sp-accent);outline-offset:-3px}
.sp-grab{width:14px;height:14px;flex:none;opacity:.7}
.sp-title{flex:1;min-width:0;font-weight:600;font-size:13px;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-btn{appearance:none;border:0;background:rgba(242,238,226,.1);color:var(--sp-ink);font:600 12px/1 var(--sp-font);min-width:36px;height:36px;padding:0 10px;border-radius:10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;touch-action:manipulation}
.sp-btn:hover{background:rgba(242,238,226,.2)}
.sp-btn:focus-visible{outline:3px solid var(--sp-accent);outline-offset:1px}
.sp-btn[aria-pressed="true"]{background:var(--sp-accent);color:#fff}
.sp-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.sp-body{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
.sp-main{flex:none;min-width:0}
.sp-stage{position:relative;background:#000;aspect-ratio:16/9;width:100%}
.sp-stage video{width:100%;height:100%;display:block;background:#000;object-fit:contain;-webkit-user-select:none;user-select:none}
.sp-stage video::cue{font-family:var(--sp-font);font-size:1.05em;background:rgba(5,12,24,.78);color:#fff}
.sp-pipmsg{display:none;position:absolute;inset:0;align-items:center;justify-content:center;text-align:center;padding:16px;background:var(--sp-bg2);color:var(--sp-ink);font-weight:600}
.sp-pip .sp-pipmsg{display:flex}.sp-pip .sp-stage video{visibility:hidden}
.sp-tools{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;background:var(--sp-bg)}
.sp-steps{list-style:none;margin:0;padding:8px;overflow:auto;background:var(--sp-card);color:var(--sp-card-ink);flex:1;min-height:64px;max-height:240px;-webkit-overflow-scrolling:touch;touch-action:pan-y;-webkit-user-select:text;user-select:text}
.sp-steps[hidden]{display:none}
.sp-steps li{margin:0}
.sp-step{display:flex;gap:10px;width:100%;text-align:left;appearance:none;border:0;border-left:4px solid transparent;background:transparent;color:inherit;font:inherit;padding:10px 10px;border-radius:8px;cursor:pointer;min-height:44px;touch-action:manipulation}
.sp-step:hover{background:rgba(15,133,219,.08)}
.sp-step:focus-visible{outline:3px solid var(--sp-accent);outline-offset:-3px}
.sp-step[aria-current="step"]{border-left-color:var(--sp-ok);background:rgba(60,194,97,.14)}
.sp-n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--sp-bg2);color:var(--sp-ink);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}
.sp-step[aria-current="step"] .sp-n{background:var(--sp-ok);color:#06210f}
.sp-st{display:block;font-weight:700;font-size:14px}
.sp-sx{display:block;font-size:13px;opacity:.85;margin-top:2px}
.sp-tm{margin-left:auto;flex:none;font-size:11px;opacity:.65;font-variant-numeric:tabular-nums;padding-left:6px}
.sp-grip{position:absolute;right:0;bottom:0;width:30px;height:30px;cursor:nwse-resize;touch-action:none;z-index:2;display:flex;align-items:flex-end;justify-content:flex-end;padding:5px;color:var(--sp-ink);opacity:.85}
.sp-grip svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;filter:drop-shadow(0 0 2px #000)}
.sp-grip:focus-visible{outline:3px solid var(--sp-accent)}
.sp-msg{position:absolute;left:8px;right:8px;bottom:8px;padding:8px 10px;border-radius:8px;background:rgba(5,12,24,.85);color:#fff;font-size:12px;pointer-events:none;opacity:0;transition:opacity .2s}
.sp-msg.on{opacity:1}
/* wide window: steps beside the video */
.sp-wide .sp-body{flex-direction:row}
.sp-wide .sp-main{flex:1 1 58%}
.sp-wide .sp-steps{flex:1 1 42%;max-height:none;min-height:0;border-left:1px solid rgba(15,30,51,.15)}
/* minimised: small pill, audio keeps playing */
.sp-min{width:auto!important;height:auto!important;min-width:220px;max-width:calc(100vw - 16px);border-radius:999px}
.sp-min .sp-body,.sp-min .sp-grip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);visibility:hidden}
.sp-min .sp-bar{border-radius:999px;padding-left:16px}
.sp-min .sp-tools-min{display:inline-flex}
.sp-tools-min{display:none;gap:6px}
/* in-page buttons */
.sp-wrap{position:relative;display:block}
.sp-float{position:absolute;right:10px;top:10px;z-index:3;background:rgba(15,30,51,.85);color:#F2EEE2;border:1px solid rgba(242,238,226,.35);border-radius:10px;font:600 12px/1 var(--sp-font);padding:10px 12px;min-height:40px;cursor:pointer}
.sp-float:hover{background:#14315A}.sp-float:focus-visible{outline:3px solid var(--sp-accent);outline-offset:2px}
.sp-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (pointer:coarse){.sp-btn{min-width:44px;height:44px}.sp-grip{width:44px;height:44px;padding:8px}}
@media (max-width:480px){.sp{border-radius:14px}.sp-title{font-size:12px}}
@media (prefers-reduced-motion:reduce){.sp-msg{transition:none}}
@media print{.sp,.sp-float{display:none!important}}
