/**
 * Embed Mode UI Overrides
 * Applied when body has class "embed-mode" (set by auth.js IIFE).
 * Hides chrome that is unnecessary/confusing inside an iframe embed.
 */

/* Hide user info, logout, export, and dashboard-only elements */
body.embed-mode .user-info,
body.embed-mode #user-info,
body.embed-mode #logout-btn,
body.embed-mode .logout-btn,
body.embed-mode #export-btn,
body.embed-mode a[href="/dashboard"],
body.embed-mode .theme-toggle {
    display: none !important;
}

/* Show export only if org explicitly enables it */
body.embed-mode.org-export-enabled #export-btn {
    display: inline-flex !important;
}

/* Let the main content fill the full width without sidebar */
body.embed-mode .app-container {
    width: 100%;
}

/* Remove any max-width constraints so content fills the iframe */
body.embed-mode .main-content {
    min-width: 0;
    width: 100%;
}
