/* JOE FLOW LIGHT: plain drawing tool, no AI, no Joe assistant, no print shop.
   Active when <html data-edition="light"> (set by the head script for ?edition=light
   and by build-www --edition=light). The full edition is unaffected. */
html[data-edition="light"] [id^="ai-"],
html[data-edition="light"] [id^="chatbot"],
html[data-edition="light"] [id^="joe-"],
html[data-edition="light"] [class^="joe-"],
html[data-edition="light"] [id^="jf-mp"],
html[data-edition="light"] #print-shop-btn,
html[data-edition="light"] #print-shop-modal,
html[data-edition="light"] [data-edition-hide="light"] {
    display: none !important;
}

/* Mobile layouts show these two with ID-specific !important rules: match them by ID so we win. */
html[data-edition="light"] #ai-quick-btn,
html[data-edition="light"] #joe-btn,
html[data-edition="light"] #ai-quick-menu,
html[data-edition="light"] #ai-settings-section,
html[data-edition="light"] #mode-status-indicator,
html[data-edition="light"] #magic-mode-content {
    display: none !important;
}

/* Elements only meant for JOE FLOW LIGHT (beta button in Einstellungen > Über). */
html:not([data-edition="light"]) [data-edition-show="light"] {
    display: none !important;
}

/* v26.10: the orange debug version badge covered the "Farben" button on phones;
   LIGHT shows the version in the what's-new dialog and the feedback mail instead. */
html[data-edition="light"] #version-indicator {
  display: none !important;
}

/* v26.10: LIGHT has no Classic/Magic mode, but setRightSidebarMode('normal') still paints the
   right panel with the Classic gradient (95% -> 5% opaque) and a neon-green edge, so the canvas
   showed through. LIGHT uses the solid surface of the active theme instead. */
html[data-edition="light"] #right-panel {
    background: var(--surface-1, #1c1d20) !important;
    border-left: 1px solid var(--border-1, rgba(255, 255, 255, 0.08)) !important;
}
