/* V2-M9f.3c1: Ocean layout parity with Atmosphere namelist dialogs.
 * Presentation only. Existing Ocean form nodes are MOVED, not duplicated.
 * All rules are explicitly Ocean-scoped. */
#v2-ocean-workspace #v2-ocean-launcher {
    margin: 8px 0 0;
    padding: 13px 12px;
    background: #f7f9fb;
    border: 1px solid #dce4ec;
    border-radius: 7px;
}
#v2-ocean-workspace #v2-ocean-launcher h3 {
    margin: 0 0 5px;
    color: #273c50;
    font-size: 15px;
    font-weight: 650;
}
#v2-ocean-workspace #v2-ocean-launcher p {
    margin: 4px 0 12px;
    color: #667687;
    font-size: 12px;
    line-height: 1.5;
}
#v2-ocean-workspace #v2-ocean-open-editor {
    width: 100%;
    padding: 9px 10px;
    font-size: 13px;
    color: #fff;
    background: #0074d9;
    border: 1px solid #0062b7;
    border-radius: 5px;
}
#v2-ocean-workspace #v2-ocean-open-editor:hover:not(:disabled) {
    background: #0062b7;
}
#v2-ocean-workspace #v2-ocean-back { display: none !important; }
#v2-ocean-workspace #v2-ocean-editor-backdrop[hidden],
#v2-ocean-workspace #v2-ocean-editor-dialog[hidden] { display: none !important; }
#v2-ocean-workspace #v2-ocean-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, .48);
    pointer-events: auto;
}
#v2-ocean-workspace #v2-ocean-editor-dialog {
    position: fixed;
    top: 2.5vh;
    left: 2.5vw;
    width: 95vw;
    height: 95dvh;
    max-width: none;
    min-width: 0;
    min-height: 0;
    z-index: 31;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: #253443;
    background: #fff;
    border: 1px solid #cfd7de;
    border-radius: 9px;
    box-shadow: 0 20px 50px rgba(0,0,0,.30);
    pointer-events: auto;
    font-size: 14px;
    line-height: 1.45;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    padding: 14px 18px;
    border-bottom: 1px solid #dce3e9;
    background: #f8fafc;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-title {
    margin: 0 0 5px;
    color: #303c49;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-subtitle {
    margin: 0;
    color: #657481;
    font-size: 13px;
}
#v2-ocean-workspace #v2-ocean-editor-close {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #52606d;
    background: transparent;
    border: 0;
    font-size: 26px;
    font-weight: 400;
    line-height: 30px;
}
#v2-ocean-workspace #v2-ocean-editor-close:hover { background: #e9eff6; }
#v2-ocean-workspace #v2-ocean-editor-dialog-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-workspace-controls {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: max-content minmax(230px, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e3e9ef;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-workspace-controls label { font-size: 13px; }
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-search {
    width: min(100%, 720px);
    height: 36px;
    min-width: 0;
    padding: 7px 10px;
    font-size: 13px;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-tabs {
    flex: 0 0 auto;
    gap: 0;
    margin: 0;
    padding: 4px 15px 0;
    background: #f8fafc;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-tabs button {
    padding: 10px 15px;
    font-size: 13px;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content [data-ocean-pane] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 !important;
    padding: 16px !important;
    border: 0 !important;
    background: #fff;
    border-radius: 0;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-editor-actions {
    margin: 0 0 15px;
    justify-content: flex-start;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-editor-actions button {
    padding: 7px 12px;
    font-size: 12px;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-editor-actions #v2-ocean-reset {
    margin-left: auto;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-records {
    display: grid;
    gap: 10px;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-record > summary {
    padding: 13px 17px;
    background: #f4f6f9;
    font-size: 14px;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option {
    grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.5fr) 38px auto;
    align-items: center;
    gap: 10px 16px;
    padding: 14px 18px;
    font-size: 13px;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-name {
    grid-column: 1 / -1;
    font-size: 14px;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-value {
    grid-column: 1;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-editor {
    grid-column: 2;
    min-width: 0;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-include {
    grid-column: 3;
    justify-self: center;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-reset {
    grid-column: 4;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-metadata,
#v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-description {
    grid-column: 1 / -1;
    font-size: 12px;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 15px;
    border-top: 1px solid #dce3e9;
    background: #f8fafc;
}
#v2-ocean-workspace #v2-ocean-editor-dialog-footer p {
    margin: 0;
    color: #687885;
    font-size: 12px;
}
#v2-ocean-workspace #v2-ocean-editor-done {
    flex: 0 0 auto;
    background: #6b7680;
    border-color: #6b7680;
    padding: 7px 15px;
}
@media (max-width: 800px) {
    #v2-ocean-workspace #v2-ocean-editor-dialog { top: 1vh; left: 1vw; width: 98vw; height: 98dvh; }
    #v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option {
        grid-template-columns: minmax(100px, 1fr) minmax(140px, 1.5fr);
    }
    #v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-name,
    #v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-metadata,
    #v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-description { grid-column: 1 / -1; }
    #v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-include { grid-column: 1; justify-self: start; }
    #v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option-reset { grid-column: 2; }
}
@media (max-width: 550px) {
    #v2-ocean-workspace #v2-ocean-editor-dialog-content #v2-ocean-workspace-controls { grid-template-columns: 1fr; gap: 4px; }
    #v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option { grid-template-columns: 1fr; }
    #v2-ocean-workspace #v2-ocean-editor-dialog-content .v2-ocean-option > * { grid-column: 1 !important; }
    #v2-ocean-workspace #v2-ocean-editor-dialog-footer p { display: none; }
}
