/* M9h.1: Ocean Home parity with the existing Atmosphere Home / Change Module.
 * The same #v2-ocean-mode-home click handler is preserved. This button is inside
 * the home overlay, but outside the clipped left Ocean sidebar.
 * Hidden on module selection, other component previews, and over Ocean modals.
 */
#v2-ocean-mode-home { display: none; }
#v2-module-home:has(#v2-ocean-workspace:not([hidden])) #v2-ocean-mode-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    position: fixed;
    top: .7rem;
    right: .7rem;
    z-index: 10;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: .6rem .9rem;
    border: 1px solid #4b7dac;
    border-radius: 12px;
    background: linear-gradient(145deg, #24609a, #193a68);
    color: #fff;
    font: 700 .87rem -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: normal;
    box-shadow: 0 4px 0 #0c2341, 0 9px 18px rgba(0,0,0,.32);
    cursor: pointer;
    pointer-events: auto;
}
#v2-module-home:has(#v2-ocean-workspace:not([hidden])) #v2-ocean-mode-home:hover {
    filter: brightness(1.14);
}
#v2-module-home:has(#v2-ocean-workspace:not([hidden])) #v2-ocean-mode-home:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0c2341;
}
#v2-module-home:has(#v2-ocean-workspace:not([hidden])) #v2-ocean-mode-home:focus-visible {
    outline: 3px solid #a8e8ff;
    outline-offset: 5px;
}
/* The modal and backdrop must remain above navigation, with no overlap. */
#v2-module-home:has(#v2-ocean-editor-dialog:not([hidden])) #v2-ocean-mode-home {
    display: none;
}
@media (max-width: 650px) {
    #v2-module-home:has(#v2-ocean-workspace:not([hidden])) #v2-ocean-mode-home {
        top: auto;
        right: .8rem;
        bottom: .8rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    #v2-ocean-mode-home { transition: none !important; }
}
