/* Ocean collection + calls. Every rule is scoped; the approved Messenger stays intact. */
:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-modes{display:flex;gap:6px;padding:5px;background:var(--mf-soft);border:1px solid var(--mf-line);border-radius:15px;margin:18px 0 12px}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-modes button{flex:1;min-width:0;background:transparent;border-color:transparent;padding:12px 8px}
:root[data-nm-theme] body.nm-theme .nm-finish :is(.nm-background-modes,.nm-ci-tabs) button.active{background:var(--mf-accent)!important;color:var(--mf-accent-ink)!important;border-color:var(--mf-accent)}
.nm-background-count{font-size:13px;color:var(--mf-muted);margin:12px 0}.nm-background-choice img{object-fit:cover}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-choice{overflow:hidden;border-radius:15px;padding:0 0 12px;transition:box-shadow .15s,border-color .15s}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-choice img{width:100%;height:145px;border-radius:0;display:block;object-fit:cover}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-choice span{display:block;font-size:15px;margin:10px 12px 2px}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-choice small{display:block;font-size:12px!important;margin:0 12px}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-choice.active{border:2px solid var(--mf-accent);box-shadow:0 0 0 2px var(--mf-tint)}
.nmmsg-title>div:first-child{flex:1;min-width:0}.nm-ci-launch{position:relative}.nm-ci-launch[data-count]:after{content:attr(data-count);position:absolute;top:-3px;right:-3px;min-width:19px;height:19px;display:grid;place-items:center;border-radius:10px;background:#b8354f;color:#fff;font:700 11px/1 system-ui;border:2px solid var(--mp-panel)}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-ci-tabs{display:flex;gap:5px;padding:5px;background:var(--mf-soft);border:1px solid var(--mf-line);border-radius:15px;margin:0 0 18px}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-ci-tabs button{flex:1;border-color:transparent;background:none;min-width:0}
.nm-ci-list{display:grid;gap:12px}.nm-ci-card{border:1px solid var(--mf-line);background:var(--mf-panel);border-radius:17px;padding:18px}.nm-ci-card.attention{border-left:4px solid var(--mf-danger)}
.nm-ci-card-heading{display:flex;align-items:center;gap:14px}.nm-ci-symbol{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--mf-tint);color:var(--mf-accent)}.nm-ci-symbol svg{width:22px;height:22px}
:root[data-nm-theme] body.nm-theme .nm-finish .nm-ci-card h3{font-size:17px!important;line-height:1.4;margin:0}.nm-ci-card p{margin:3px 0;color:var(--mf-muted);font-size:14px}.nm-ci-card time{font-size:12px;color:var(--mf-muted)}
.nm-ci-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.nm-ci-card-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.nm-ci-card-actions button svg{width:17px!important;height:17px!important}
.nm-ci-player:empty{display:none}.nm-ci-player audio,#nmVoicePreview audio{display:block;width:100%;margin:15px 0 0;color-scheme:light}.nm-ci-player audio{max-width:440px}:root[data-nm-theme="dark"] :is(.nm-ci-player,#nmVoicePreview) audio{color-scheme:dark}
.nm-ci-row-status:empty,[data-ci-status]:empty{display:none}.nm-ci-row-status{margin:10px 0 0!important}.nm-ci-more{display:flex;justify-content:center;margin-top:18px}
.nm-ci-empty{display:grid;place-items:center;text-align:center;padding:38px 20px;background:var(--mf-soft);border:1px dashed var(--mf-line);border-radius:18px}.nm-ci-empty svg{width:36px;height:36px;color:var(--mf-accent)}.nm-ci-empty p{max-width:35ch;color:var(--mf-muted);margin:0}.nm-ci-empty h3{font-size:21px!important;margin:15px 0 8px}
.nm-ci-attention{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 14px;flex:none;border-bottom:1px solid var(--mp-line);background:var(--mp-selected);color:var(--mp-ink);font-size:13px}.nm-ci-attention>span{display:flex;gap:8px;align-items:center;flex:1;min-width:0}.nm-ci-attention svg{width:18px;height:18px;flex:none}.nm-ci-attention button{min-height:44px;background:var(--mp-panel);color:var(--mp-ink);border:1px solid var(--mp-line);border-radius:10px;padding:8px 12px;font:650 13px system-ui;cursor:pointer}
.nm-voice-stage{padding:25px 16px 20px;display:grid;place-items:center;text-align:center;border-radius:18px;background:radial-gradient(ellipse at top,var(--mf-tint),var(--mf-soft));border:1px solid var(--mf-line)}.nm-voice-orb{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;color:var(--mf-accent);background:var(--mf-panel);border:1px solid var(--mf-line);box-shadow:0 8px 26px #081b3114}.nm-voice-orb svg{width:32px;height:32px}#nmVoiceTime{font-variant-numeric:tabular-nums;font-size:34px;letter-spacing:-1px;margin-top:12px}#nmVoiceHint{color:var(--mf-muted);max-width:34ch;font-size:14px;margin:6px 0 0}
:root[data-nm-theme] body.nm-theme .nm-voice-overlay [hidden],:root[data-nm-theme] body.nm-theme .nmmsg-platinum #nmmsgRecentCalls[hidden]{display:none!important}
.nm-voice-overlay .nm-dialog-footer{flex-wrap:wrap}.nm-ci-overlay .nm-detail-card{width:min(700px,100%)!important}
@media(max-width:600px){:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-choice img{height:118px}:root[data-nm-theme] body.nm-theme .nm-finish .nm-background-modes button{font-size:13px!important}.nm-ci-card{padding:15px}.nm-ci-card-actions button{flex:1;min-width:90px}.nm-ci-attention{padding:6px 10px;font-size:12px}.nm-ci-attention button{padding:6px 8px}.nmmsg-platinum .nmmsg-title{gap:4px}.nm-ci-tabs button{padding:10px 8px!important}}
@media(prefers-reduced-motion:reduce){.nm-background-choice{transition:none!important}}

/* 24.10.49.2: lighting controls precede scenes and keep accessible contrast. */
:root[data-nm-theme] body.nm-theme .nm-finish.nm-background-overlay .nm-background-modes{grid-area:modes;margin:0;flex:none}
:root[data-nm-theme] body.nm-theme .nm-finish.nm-background-overlay .nm-background-count{grid-area:count;margin:0}
:root[data-nm-theme] body.nm-theme .nm-finish.nm-background-overlay .nm-background-modes button[aria-pressed="true"],
:root[data-nm-theme] body.nm-theme .nm-finish.nm-ci-overlay .nm-ci-tabs button.active{background:var(--mf-accent)!important;color:var(--mf-accent-ink)!important;border-color:var(--mf-accent)!important}
@media(min-width:701px){body .nm-background-overlay .nm-detail-body{grid-template-areas:"intro intro" "modes modes" "preview cats" "preview count" "preview gallery" "options gallery" "upload upload" "note note" "status status"}}
@media(max-width:480px){
 :root[data-nm-theme] body.nm-theme .nm-finish .nm-ci-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 :root[data-nm-theme] body.nm-theme .nm-finish .nm-ci-card-actions button{min-width:0;width:100%;min-height:46px;font-size:14px!important;padding:11px 8px!important;white-space:normal;overflow-wrap:anywhere}
 :root[data-nm-theme] body.nm-theme .nm-finish .nm-ci-card-actions button:last-child:nth-child(3){grid-column:1/-1}
 :root[data-nm-theme] body.nm-theme .nm-finish .nm-ci-card-actions button svg{flex-shrink:0}
}

/* Theme foreground and fill must change together, including background tabs. */
:root[data-nm-theme] body.nm-theme .nm-finish :is(.nm-background-modes,.nm-ci-tabs) button{transition:none!important}

/* Keep every secondary-surface control legible during theme changes. */
:root[data-nm-theme] body.nm-theme .nm-finish button{transition:none!important}
