/* BZDR v5.30.22: compact, independent mobile command pair. Desktop layouts unchanged. */
.mobile-command-pair,.mobile-zoom-dock{display:none}
@media(max-width:899px){
  body:not(.bzdr-desktop) #editView .edit-mode-bar{
    height:59px!important;min-height:59px!important;padding:3px 5px!important;
    gap:0!important;align-items:stretch!important
  }
  body:not(.bzdr-desktop) #editView .edit-mode-bar>.edit-mode-picker,
  body:not(.bzdr-desktop) #editView .edit-mode-bar>.mode-cells,
  body:not(.bzdr-desktop) #editView .edit-mode-bar>.grid-state{display:none!important}
  body:not(.bzdr-desktop) #editView .mobile-command-pair{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:5px;min-width:0;width:100%;height:53px
  }
  .mobile-command-panel{
    min-width:0;display:flex;flex-direction:column;gap:3px;padding:3px 5px;
    border:1px solid #354958;border-radius:6px;background:linear-gradient(180deg,#192731,#0d1720);
    box-shadow:inset 0 1px #ffffff0a;color:#afc9d8
  }
  .mobile-command-head{display:flex;min-width:0;align-items:center;gap:4px;height:15px}
  .mobile-command-head span{flex:none;font:700 8px/1 ui-monospace,monospace;letter-spacing:.6px;color:#7e9cae}
  .mobile-command-head select{flex:1;min-width:0;height:18px;min-height:18px;padding:0 13px 0 3px;font:600 9px/14px system-ui,sans-serif;color:#c9e0ed;background:#192c39;border:1px solid #314f61;border-radius:3px}
  .mobile-command-body{min-width:0;display:flex;align-items:center;gap:3px;height:27px}
  .mobile-command-body[hidden]{display:none!important}
  .mobile-command-body select,.mobile-command-body button{
    min-width:0;min-height:27px;height:27px;border:1px solid #405766;
    border-radius:4px;background:linear-gradient(#283947,#16232d);color:#d7e9f1;
    font:600 10px ui-monospace,monospace
  }
  .mobile-command-body select{flex:1;padding:0 3px;width:100%}
  .mobile-command-body button{flex:none;min-width:29px;padding:0 5px}
  .mobile-command-body button:disabled{opacity:.42}
  .mobile-command-body .mobile-command-grow{flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
  .mobile-command-body button[aria-pressed="true"]{background:#254e40;border-color:#5c9e85;color:#bcf3cf}
  .mobile-command-panel select:focus-visible,.mobile-command-panel button:focus-visible,
  .mobile-zoom-dock button:focus-visible{outline:2px solid #90d3f5;outline-offset:1px}
  body:not(.bzdr-desktop) #editView .mobile-zoom-dock{
    position:absolute;display:flex;align-items:center;gap:3px;right:8px;bottom:8px;
    z-index:9;padding:4px;border:1px solid #476075;border-radius:12px;
    background:#13222bef;box-shadow:0 7px 20px #000a,inset 0 1px #ffffff12;
    -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)
  }
  .mobile-zoom-dock button{flex:none;display:grid;place-items:center;width:33px;height:32px;min-width:33px;border:1px solid #405c6e;border-radius:7px;background:#263c4c;color:#e3f4fb;font:600 20px/1 system-ui}
  .mobile-zoom-dock button:disabled{opacity:.4}
  .mobile-zoom-dock .mobile-zoom-more{width:21px;min-width:21px;font-size:14px;padding:0}
  .mobile-zoom-extras{display:flex;overflow:hidden;align-items:center;gap:3px;max-width:0;opacity:0;pointer-events:none;white-space:nowrap;transition:max-width .24s ease,opacity .17s ease}
  .mobile-zoom-dock.is-expanded .mobile-zoom-extras{max-width:82px;opacity:1;pointer-events:auto}
  .mobile-zoom-extras button{min-width:36px;width:36px;font-size:11px}
  .mobile-zoom-dock.is-expanded .mobile-zoom-more{color:#92d8f9}
  /* Mobile uses the platform's transient scroll indicators; desktop retains persistent scrollbars. */
  body:not(.bzdr-desktop) #editView .timeline-panel{scrollbar-width:thin;scrollbar-color:#547183 transparent}
  body:not(.bzdr-desktop) #editView .timeline-panel::-webkit-scrollbar{width:3px}
  body:not(.bzdr-desktop) #editView .timeline-panel::-webkit-scrollbar-thumb{background:#547183;border-radius:4px}
}
@media(max-width:350px){
 .mobile-command-head span{display:none}
 .mobile-command-panel{padding-inline:3px}
 .mobile-command-body button{min-width:26px;padding:0 3px}
}
@media(prefers-reduced-motion:reduce){.mobile-zoom-extras{transition:none!important}}
