/* MPAS-Ocean V2-M9f.3a. Map-visible, Atmosphere-style side navigation.
 * Scoped to Ocean's open shell. Source-backed Atmosphere map remains inert;
 * visual map display does not confer Ocean scientific mesh authority. */
#v2-module-home:has(#v2-ocean-workspace:not([hidden])) {
    padding: 0; overflow: hidden; background: transparent;
    pointer-events: none;
}
#v2-module-home:has(#v2-ocean-workspace:not([hidden])) .v2-home-wrap {
    width: 100%; max-width: none; margin: 0; padding: 0;
}
#v2-module-home:has(#v2-ocean-workspace:not([hidden])) #v2-ocean-workspace {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: none; width: min(610px, 100vw); max-width: 100vw;
    height: 100dvh; margin: 0; padding: 0 0 16px 90px;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    border: 0; border-right: 1px solid #becbd9;
    border-radius: 0 12px 12px 0; pointer-events: auto;
    box-shadow: 3px 0 20px rgba(23, 43, 69, .26);
}
#v2-ocean-workspace #v2-ocean-mode-rail {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 90px; z-index: 3;
    display: flex; flex-direction: column; gap: 5px;
    padding: 10px 6px; background: #fff;
    border-right: 1px solid #d3dee9;
    box-shadow: 1px 0 4px rgba(0, 25, 60, .08);
}
#v2-ocean-workspace #v2-ocean-mode-rail .v2-ocean-mode-rail-title {
    margin: -10px -6px 10px; padding: 14px 3px;
    text-align: center; background: #0879d1; color: #fff;
    font-size: .82rem; font-weight: 750;
}
#v2-ocean-workspace #v2-ocean-mode-rail button {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    min-height: 70px; margin: 0; padding: 11px 3px;
    color: #35485b; background: #fff; border: 1px solid transparent;
    border-radius: 7px; font-size: .71rem; font-weight: 650;
    line-height: 1.15; cursor: pointer;
}
#v2-ocean-workspace #v2-ocean-mode-rail button i { font-size: 1.25rem; }
#v2-ocean-workspace #v2-ocean-mode-rail button span { overflow-wrap: anywhere; }
#v2-ocean-workspace #v2-ocean-mode-rail button[aria-selected="true"] {
    color: #036aca; background: #eaf3ff;
    border-color: #a9cdf3; box-shadow: inset 3px 0 #0879d1;
}
#v2-ocean-workspace #v2-ocean-mode-rail button:hover:not(:disabled) {
    color: #075c9b; background: #edf5fd; border-color: #aecbe9;
}
#v2-ocean-workspace #v2-ocean-mode-rail button:disabled { opacity: .42; cursor: not-allowed; }
#v2-ocean-workspace #v2-ocean-mode-rail #v2-ocean-mode-home {
    margin-top: auto; color: #42627c; border-top: 1px solid #d3dee9;
}
#v2-ocean-workspace #v2-ocean-mode[hidden],
#v2-ocean-workspace #v2-ocean-workspace-controls label[hidden] {
    display: none !important;
}
#v2-ocean-workspace #v2-ocean-workspace-controls {
    display: grid; grid-template-columns: 1fr;
    padding: 12px 16px; gap: 7px;
}
#v2-ocean-workspace > header { padding: 20px 16px 12px; }
#v2-ocean-workspace > header h2 { font-size: 1.17rem; }
#v2-ocean-workspace #v2-ocean-map-note {
    font-size: .75rem; line-height: 1.4; color: #697e90;
    border-left: 2px solid #9bbbd7; padding-left: 9px;
}
#v2-ocean-workspace #v2-ocean-workspace-status { font-size: .8rem; }
#v2-ocean-workspace #v2-ocean-tabs { padding: 7px 9px 0; }
#v2-ocean-workspace #v2-ocean-tabs button { padding: 9px 7px; font-size: .78rem; }
#v2-ocean-workspace [data-ocean-pane] { margin: 0 8px; padding: 12px; }
#v2-ocean-workspace #v2-ocean-editor-actions { justify-content: flex-start; }
#v2-ocean-workspace #v2-ocean-editor-actions #v2-ocean-reset { margin-left: 0; }
#v2-ocean-workspace .v2-ocean-option { grid-template-columns: 1fr 1fr; }
#v2-ocean-workspace .v2-ocean-option :is(.v2-ocean-option-name,
    .v2-ocean-option-metadata, .v2-ocean-option-description) { grid-column: 1 / -1; }
#v2-ocean-workspace .v2-ocean-option-editor { grid-column: 2; }
#v2-ocean-workspace .v2-ocean-option-include { grid-column: 1; justify-self: start; }
#v2-ocean-workspace .v2-ocean-option-reset { grid-column: 2; justify-self: start; }
@media (max-width: 660px) {
    #v2-module-home:has(#v2-ocean-workspace:not([hidden])) #v2-ocean-workspace {
        width: 100vw; border-radius: 0; padding-left: 68px;
    }
    #v2-ocean-workspace #v2-ocean-mode-rail { width: 68px; }
    #v2-ocean-workspace #v2-ocean-mode-rail button { font-size: .65rem; min-height: 62px; }
    #v2-ocean-workspace #v2-ocean-workspace-controls { grid-template-columns: 1fr; }
    #v2-ocean-workspace .v2-ocean-option { grid-template-columns: 1fr; }
    #v2-ocean-workspace .v2-ocean-option :is(.v2-ocean-option-editor, .v2-ocean-option-value,
        .v2-ocean-option-include, .v2-ocean-option-reset) { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
    #v2-ocean-workspace #v2-ocean-mode-rail button { transition: none; }
}
