/* ============================================================
   IsNotGreat — custom in-app window controls (Electron frameless window)
   Only built inside the desktop app (window.isnotgreat.isDesktopApp).
   In a normal browser it never appears, so this is a no-op.

   Design: NO reserved title bar / header strip. The minimize / maximize /
   close buttons float in the top-right corner over the app content, just
   like a minimal professional app. The app's own top bars act as the
   window drag region (see the .ig-app -webkit-app-region rules in social.css),
   so the frameless window can still be moved by its headers.
   ============================================================ */
.ig-app { --tb-h: 40px; }

/* Invisible full-width top overlay — it never blocks clicks
   (pointer-events: none); it only hosts the window buttons in the corner. */
#igTitlebar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--tb-h, 40px); z-index: 99999;
    pointer-events: none;
}

/* ---- floating window buttons (top-right corner) ---- */
.igtb-right {
    position: absolute; top: 0; right: 0; height: 100%;
    display: flex;
    pointer-events: auto;                 /* only the buttons are interactive */
    -webkit-app-region: no-drag;          /* buttons must not be a drag zone */
}
.igtb-btn {
    width: 46px; height: 100%; border: 0; background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #aeb6bf; transition: background .12s ease, color .12s ease;
}
.igtb-btn svg { display: block; }
.igtb-btn:hover { background: rgba(76,194,255,.14); color: #ffffff; }
.igtb-btn:active { background: rgba(76,194,255,.24); }
.igtb-close:hover { background: #e81123; color: #fff; }
.igtb-close:active { background: #c50f1e; }
/* NOTE: these must outrank `.igtb-btn svg { display:block }` (0,2,0 beats 0,1,1),
   otherwise BOTH the maximize and restore icons render at once. */
.igtb-btn .igtb-ic-restore { display: none; }
.igtb-btn.igtb-maxed .igtb-ic-max { display: none; }
.igtb-btn.igtb-maxed .igtb-ic-restore { display: block; }
