/* ZebraVIS controls: same green-grey raised hardware language as ZebraAMP. */
.zviz{position:relative;background:linear-gradient(135deg,#2a382f,#18271f);padding:10px;gap:7px;box-sizing:border-box;overflow:auto;min-width:0}
.zviz-top,.zviz-controls,.zviz-footer,.zviz-transport,.zviz-zoom{flex:0 0 auto;min-width:0}
.zviz-stage{min-height:100px;flex:1 1 0;border:3px ridge #89b99c;background:#03140e}
.zviz-stage .zviz-canvas{position:absolute;inset:0;width:100%;height:100%}
.zviz-controls{display:grid;grid-template-columns:38px minmax(0,1fr) 38px 38px;gap:5px}
.zviz-mode-name{min-width:0;font-size:10px;overflow-wrap:anywhere;line-height:1.3}
.zviz button{
 cursor:pointer;border:2px outset #d7e6da;border-radius:0;
 background:linear-gradient(135deg,#dbe4dd,#acb9b0 60%,#91a095);
 color:#172920;font-family:"Courier New",monospace;
 box-shadow:1px 2px 1px #0009;touch-action:manipulation;
}
.zviz button:active{border-style:inset;box-shadow:none;transform:translateY(1px)}
.zviz button:disabled{opacity:.4;cursor:default}
.zviz button:focus-visible,.zviz input:focus-visible{outline:2px solid #aff5c9;outline-offset:3px}
.zviz-step,.zviz-fullscreen{min-height:38px;padding:4px}
.zviz-zoom{display:flex;align-items:center;gap:8px;padding:7px 8px;border:2px inset #5a7c66;background:#081e13}
.zviz-zoom[hidden]{display:none}
.zviz-zoom-label{display:flex;flex:1;align-items:center;gap:8px;min-width:0;font-size:10px}
.zviz-zoom-range{width:0;min-width:35px;flex:1;height:30px;margin:0;accent-color:#92deac;cursor:ew-resize;touch-action:pan-y}
.zviz-zoom-value{min-width:38px;text-align:right;color:#b8f5ca}
.zviz-zoom-reset{min-width:36px;min-height:34px;font-size:11px}
.zviz-footer{padding-top:5px}.zviz-footer span{font-size:8px}
.zviz-transport{display:flex;justify-content:center;gap:8px;padding:8px 3px 2px;border-top:1px solid #6d947b77}
.zviz-track{min-height:46px;min-width:58px;flex:0 1 85px;font-size:21px;line-height:1}
.zviz .zviz-play{background:linear-gradient(#d2f8d9,#8cdbab);font-weight:bold}
.zviz:fullscreen{width:100vw;height:100dvh;max-width:none;max-height:none;padding-bottom:max(18px,env(safe-area-inset-bottom));background-color:#26372e}
@media(max-width:700px){
 .zviz{padding:6px;gap:5px}
 .zviz-top{padding:5px}.zviz-brand{font-size:11px;letter-spacing:1px}.zviz-led{font-size:8px}
 .zviz-controls{grid-template-columns:34px minmax(0,1fr) 34px 34px;gap:4px}
 .zviz-mode-name{font-size:9px}
 .zviz-zoom{padding:3px 5px;gap:5px}.zviz-zoom-label{font-size:9px;gap:5px}
 .zviz-track{flex:1 1 0;min-height:46px;max-width:95px}
 .zviz-transport{padding-top:6px}
}
@media(max-height:480px){
 .zviz{overflow:auto;gap:3px}.zviz-top{padding:3px}.zviz-stage{min-height:80px;flex-basis:80px}
 .zviz-footer{display:none}.zviz-transport{padding-top:4px}.zviz-track{min-height:38px}
 .zviz-zoom{padding-top:1px;padding-bottom:1px}
}


/* ZebraVIS glass CRT layer: ONLY Tunnel & Hyperdrive; static GPU-friendly
 * gradients, no full-frame canvas blur, animated noise or large repaints. */
.zviz-stage{isolation:isolate}
.zviz-crt{
  position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;
  border-radius:5px;
  background:repeating-linear-gradient(to bottom,
    rgba(0,0,0,.055) 0px,rgba(0,0,0,.055) 1px,
    transparent 1px,transparent 4px);
  box-shadow:inset 0 0 24px 6px rgba(0,1,5,.24),
             inset 0 0 92px 19px rgba(0,1,7,.16);
}
.zviz-crt[hidden]{display:none!important}
.zviz-crt::before,.zviz-crt::after{
  content:"";position:absolute;inset:0;pointer-events:none;
}
.zviz-crt::before{
  background:repeating-linear-gradient(to right,
    rgba(230,69,89,.055) 0px,rgba(230,69,89,.055) 1px,
    rgba(39,209,140,.028) 1px,rgba(39,209,140,.028) 2px,
    rgba(85,121,244,.045) 2px,rgba(85,121,244,.045) 3px);
  opacity:.4;
}
.zviz-crt::after{
  background:linear-gradient(158deg,rgba(173,245,224,.075),transparent 23%,
    transparent 76%,rgba(42,86,91,.028)),
    radial-gradient(ellipse at 50% 50%,transparent 55%,rgba(0,1,8,.20) 100%);
}
@media(max-width:700px){
 .zviz-crt{box-shadow:inset 0 0 16px 3px rgba(0,1,6,.17),
                       inset 0 0 45px 9px rgba(0,1,7,.12)}
}


/* ZebraVIS LAB — one physical Windows-era window; existing ZebraAMP
 * faders and green metal surface remain intact. The silver scrollbar stays
 * visible on Android, where native scrollbars frequently auto-hide. */
.zviz-controls{grid-template-columns:38px minmax(0,1fr) 38px 38px 38px}
.zviz-settings-toggle{font-size:19px;line-height:1;min-height:38px;padding:2px 0}
.zviz-settings-toggle[aria-expanded="true"]{
 border-style:inset;background:linear-gradient(#829e88,#abc4ae);
 color:#092515;box-shadow:inset 1px 2px 5px #071b14b0;
}
.zviz-tune-frame{
 position:absolute;top:54px;right:10px;z-index:30;
 width:min(360px,calc(100% - 20px));
 height:70%;max-height:calc(100% - 67px);
 display:flex;align-items:stretch;min-height:0;
 padding:2px;
 overflow:hidden;box-sizing:border-box;
 border:3px solid;
 border-color:#f4f4f4 #535353 #4e4e4e #eeeeee;
 border-radius:1px;
 background:#26372e url('/assets/zebraamp/ampbg.png') repeat 0 0 / 256px 256px;
 box-shadow:inset 1px 1px 0 #fff9,
            inset -1px -1px 0 #0008,
            2px 5px 13px #000a;
}
.zviz-tune-frame[hidden]{display:none!important}
/* Exactly the same hardware screw sprites as the existing machine. */
.zviz-tune-frame::before,.zviz-tune-frame::after{
 content:"";position:absolute;left:3px;right:24px;height:14px;
 background-image:url('/assets/zebraamp/vis.png'),url('/assets/zebraamp/vis.png');
 background-repeat:no-repeat;
 background-position:left center,right center;
 background-size:14px 14px;
 z-index:2;pointer-events:none;
}
.zviz-tune-frame::before{top:2px}
.zviz-tune-frame::after{bottom:2px}
.zviz-tune-panel{
 position:relative;top:auto;right:auto;z-index:auto;
 min-width:0;min-height:0;max-height:none;
 width:auto;height:100%;flex:1 1 auto;
 overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;
 padding:23px 12px 23px;
 border:0;border-radius:0;background:transparent;
 box-shadow:none;
 color:#a9dbb7;font:10px "Courier New",monospace;
 scrollbar-width:none;-ms-overflow-style:none;
 touch-action:pan-y;
}
.zviz-tune-panel::-webkit-scrollbar{display:none;width:0}
.zviz-tune-head{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 min-height:27px;padding:0 10px;margin:0 0 18px;
 border:0;background:transparent;box-shadow:none;
}
.zviz-tune-heading{
 font:bold 10px/1.4 "Courier New",monospace;
 letter-spacing:.6px;color:#a9dbb7;overflow-wrap:anywhere;
}
.zviz .zviz-tune-close{
 flex:none;min-height:25px;width:26px;height:25px;
 padding:0;font:bold 17px/1 Arial,sans-serif;
 background:linear-gradient(#dce3dc,#98aa9c);
}
.zviz-tune-list{display:flex;flex-direction:column;gap:24px;padding:0 10px}
.zviz-tune-row{
 display:flex;flex-direction:column;gap:6px;
 margin:0;padding:0;border:0;outline:0;
 border-radius:0;background:none;box-shadow:none;cursor:default;
}
.zviz-tune-row-label{
 font:bold 10px/1.4 "Courier New",monospace;
 letter-spacing:.6px;color:#a9dbb7;
}
.zviz .zviz-tune-slider{
 width:100%;height:26px;min-height:24px;
 display:block;margin:0;padding:0;cursor:ew-resize;touch-action:pan-y;
}
.zviz-tune-foot{
 display:flex;justify-content:center;align-items:center;
 margin:27px 0 1px;padding:0;border:0;background:none;
}
.zviz .zviz-tune-reset{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto;width:auto;min-width:124px;max-width:180px;
 padding:8px 14px;min-height:33px;
 border:2px outset #d7e6da;border-radius:1px;
 background:linear-gradient(165deg,#dae5dc,#a2b7a8 61%,#859a8a);
 color:#173122;font:bold 10px "Courier New",monospace;
 letter-spacing:.5px;box-shadow:1px 2px 2px #0008;
}
.zviz .zviz-tune-reset:active{
 border-style:inset;transform:translateY(1px);box-shadow:inset 1px 1px 3px #0006;
}
/* Real raised gray XP scrollbar, with inset black groove, beveled movable
 * thumb and two classic arrow buttons. No browser-overlay dependence. */
.zviz-tune-scrollrail{
 flex:0 0 19px;width:19px;min-width:19px;min-height:0;
 display:flex;flex-direction:column;align-items:stretch;
 border-left:1px solid #555;
 background:#bcbcbc;box-shadow:inset 1px 0 #f9f9f9;
 user-select:none;-webkit-user-select:none;
}
.zviz .zviz-tune-scroll-arrow{
 flex:0 0 19px;display:flex;align-items:center;justify-content:center;
 width:18px;height:19px;min-height:19px;
 padding:0;margin:0;border:2px outset #fff;
 border-radius:0;background:linear-gradient(#dedede,#aaa);
 color:#343434;font:bold 9px/1 Arial,sans-serif;
 box-shadow:none;touch-action:manipulation;
}
.zviz .zviz-tune-scroll-arrow:disabled{opacity:.55}
.zviz-tune-scroll-track{
 position:relative;min-height:0;flex:1 1 auto;
 border:1px inset #ddd;
 background:repeating-linear-gradient(45deg,#c8c8c8 0px,#c8c8c8 2px,#bdbdbd 2px,#bdbdbd 4px);
}
.zviz .zviz-tune-scroll-thumb{
 position:absolute;left:0;right:0;top:0;
 width:100%;height:48px;min-height:0;display:block;
 margin:0;padding:0;
 border:2px outset #f2f2f2;border-radius:0;
 background:linear-gradient(90deg,#ddd 0%,#bebebe 50%,#a4a4a4 100%);
 box-shadow:inset 1px 1px #fff9,inset -1px -1px #6668;
 cursor:grab;touch-action:none;
}
.zviz .zviz-tune-scroll-thumb:active{cursor:grabbing;transform:none}
.zviz .zviz-tune-scroll-thumb:disabled{opacity:.85;cursor:default}
@media(max-width:700px){
 .zviz-controls{grid-template-columns:34px minmax(0,1fr) 34px 34px 34px;gap:4px}
 .zviz-settings-toggle{font-size:17px;min-height:34px}
 .zviz-tune-frame{
  top:49px;right:6px;width:calc(100% - 12px);
  height:69%;max-height:calc(100% - 61px);
 }
 .zviz-tune-panel{padding:21px 9px 20px}
 .zviz-tune-head{padding:0 9px;margin-bottom:17px}
 .zviz-tune-list{gap:23px;padding:0 11px}
 .zviz .zviz-tune-slider{height:31px;min-height:31px}
 .zviz-tune-frame::before,.zviz-tune-frame::after{
  right:24px;background-size:11px 11px;height:11px;
 }
 .zviz-tune-scrollrail{flex-basis:19px;width:19px}
}
@media(max-height:480px){
 .zviz-tune-frame{top:37px;max-height:calc(100% - 43px)}
}
