/* v1.9.48: Window Controls Overlay — installed PC app only.
   The white Windows title bar is gone; TreadIQ's own header reaches the top and
   Windows' – ☐ ✕ buttons sit on top of it. Drag the window by the header.
   Phones, browsers and older PCs ignore all of this (they keep the normal bar). */
@media (display-mode: window-controls-overlay) {
  /* drag the window by the header and by the sign-in / key / suspended screens */
  .topbar, #tiq-login, #tiq-key, #tiq-suspended { -webkit-app-region: drag; app-region: drag; }
  /* everything you click stays clickable */
  .topbar button, .topbar a, .topbar input, .topbar select, .topbar nav, .topbar .tabs,
  .topbar .net-status, .topbar #tiq-whoami, .topbar .brand-logo,
  #tiq-login .tiq-card, #tiq-key .tiq-card, #tiq-suspended .tiq-card,
  #tiq-login button, #tiq-key button, #tiq-suspended button, input, select, textarea, a, button {
    -webkit-app-region: no-drag; app-region: no-drag;
  }
  /* keep Mic / Import / Export clear of the – ☐ ✕ buttons (right on Windows, left on Mac) */
  .topbar-inner {
    padding-left: env(titlebar-area-x, 0px) !important;
    padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 6px) !important;
  }
}
