@charset "UTF-8";
/* 07-topbar-and-fullscreen-popup.css
   Top bar rows on desktop and phone, the full-screen pop-up, the phone button grid.
   CSS order matters: later files override earlier ones. Keep the numbers in the file names. */
/* Phone: title, support buttons and dark mode on the first row, tool buttons on their own row */
@media(max-width:860px){
  header{flex-wrap:wrap;row-gap:6px}
  header h1{flex:none}
  .support{flex:1;justify-content:center;gap:5px;min-width:0}
  .tb{order:3;flex:1 0 100%;width:100%;overflow-x:auto;flex-wrap:nowrap}
  #theme{padding:6px 8px;font-size:12px}
  .glow{padding:6px 9px;font-size:11.5px}
}
/* Top bar: title and support buttons on the first row, all tool buttons together on a tidy row below */
header{flex-wrap:wrap;row-gap:6px}
.support{margin-left:auto}
.tb{order:3;flex:1 0 100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:5px;align-items:stretch}
.tb .sep{display:none}
.tb button{min-width:0;width:100%;padding:4px 2px;font-size:11px;line-height:1.15;justify-content:center}
.tb button b{font-size:16px}
/* Options pop-up uses the whole screen */
main>aside.open{left:0;top:0;transform:none;width:100vw;height:100vh;max-height:none;border-radius:0;border:0;box-shadow:none;animation:fadein .14s ease-out}
@supports(height:100dvh){main>aside.open{height:100dvh}}
@keyframes fadein{from{opacity:0}to{opacity:1}}
aside .ohead{padding-top:calc(12px + env(safe-area-inset-top,0px))}
@media(min-width:861px){main>aside.open,main>aside.open.two{grid-template-columns:minmax(0,1fr) clamp(320px,32vw,440px)}}
/* Phone: every button visible at once, no sideways swiping */
@media(max-width:860px){
  header{padding:6px 8px;gap:6px;flex-wrap:wrap}
  header h1{font-size:13px}
  .support{flex:1;justify-content:center;gap:4px;min-width:0}
  .glow{padding:4px 7px;font-size:10.5px}
  #theme{padding:4px 7px;font-size:10.5px}
  .tb{order:3;flex:1 0 100%;width:100%;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;overflow:visible}
  .tb .sep{display:none}
  .tb button{min-width:0;width:100%;padding:3px 1px;font-size:10px;line-height:1.15;min-height:42px;justify-content:center}
  .tb button b{font-size:15px}
}
