/* This component owns queue geometry, including the open state. */
body #nbkQueueDrawer.nbk-queue-drawer{
  box-sizing:border-box;position:fixed;inset:12px 12px 12px auto;
  width:min(400px,calc(100dvw - 24px));max-width:calc(100dvw - 24px);
  height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);
  margin:0;padding:0;border:1px solid #b7b28b4a;border-radius:22px;
  background:linear-gradient(155deg,#2b241a,#142019 80%);color:#eeeade;
  overflow:hidden;box-shadow:0 20px 70px #0007;
}
body #nbkQueueDrawer[open]{display:flex;flex-direction:column;}
body #nbkQueueDrawer::backdrop{background:#080b08a3;}
body #nbkQueueDrawer #queuePanel.queue-panel,
body #nbkQueueDrawer #queuePanel.queue-panel.open{
  box-sizing:border-box;position:static;inset:auto;
  display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;
  width:100%;max-width:100%;height:100%;max-height:100%;
  margin:0;padding:20px;border:0;border-radius:inherit;
  transform:none;animation:none;transition:none;
  opacity:1;visibility:visible;pointer-events:auto;
  background:transparent;backdrop-filter:none;box-shadow:none;overflow:hidden;
}
body #nbkQueueDrawer .queue-panel-header{display:flex;flex-wrap:wrap;align-items:center;gap:12px;flex:none;padding-bottom:16px;margin:0;border-bottom:1px solid #d9bb8029;}
body #nbkQueueDrawer .queue-panel-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:1;min-width:0;}
body #nbkQueueDrawer .queue-panel-title{font-size:16px;color:#eeeade;}
body #nbkQueueDrawer .queue-panel-actions{display:flex;gap:8px;flex:none;margin-left:auto;}
body #nbkQueueDrawer .queue-close-btn{display:grid;place-items:center;min-width:44px;min-height:44px;}
body #nbkQueueDrawer .queue-close-btn svg{width:18px;height:18px;}
body #nbkQueueDrawer #queueList{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:14px 0;scrollbar-width:thin;}
body #nbkQueueDrawer .queue-empty{box-sizing:border-box;max-width:100%;min-height:180px;padding:32px 14px;color:#bac6b4;white-space:normal;overflow-wrap:anywhere;}
body #nbkQueueDrawer .queue-item{min-width:0;}
body #nbkQueueDrawer :is(.qi-title,.queue-item-info){min-width:0;overflow-wrap:anywhere;}
body #nbkQueueDrawer :is(.qi-remove,.queue-item-remove){flex:none;min-width:40px;min-height:40px;}
body #nbkQueueDrawer :focus-visible{outline:2px solid #d9bb80;outline-offset:2px;}
@media(max-width:820px){
  body #nbkQueueDrawer.nbk-queue-drawer{
    inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px;
    width:calc(100dvw - 16px);max-width:calc(100dvw - 16px);
    height:min(72dvh,620px);max-height:calc(100dvh - 24px);border-radius:22px;
  }
  body #nbkQueueDrawer #queuePanel.queue-panel{padding:16px;}
}
