/* Canonical ns-gp (device theme) and ns-gp-ag (app theme); no second palette. */
.ns-polish-6 {
    font-family: var(--ns-font);
    color: var(--ns-text);
    background-color: var(--ns-bg);
    min-width: 0;
}
.ns-polish-6 :focus-visible { outline: 2px solid var(--ns-text); outline-offset: 3px; }
.ns-polish-6 ::placeholder { color: var(--ns-text-2); opacity: 1; }

/* Standalone Slack settings follow the device, including the original ungated view. */
body.ns-polish-6:not(.ns-content-page) { margin: 0; }
.ns-polish-6 .wrap { overflow-wrap: anywhere; }
.ns-polish-6 .wrap .btn { color: var(--ns-on-accent); background: var(--ns-gold); }
.ns-polish-6 .wrap .btn-quiet { color: var(--ns-text); background: var(--ns-surface); }
.ns-polish-6 .wrap .btn-danger { color: var(--ns-text); background: var(--ns-elevated); border: 1px solid var(--ns-border-strong); }
.ns-polish-6 .wrap :is(input[type="text"], select, textarea) { color: var(--ns-text); background: var(--ns-card); border-color: var(--ns-border-strong); }
.ns-polish-6 .wrap :is(.btn, input[type="text"], select) { min-height: 44px; }
.ns-polish-6 .wrap :is(.flash-error, .flash-success) { border: 1px solid var(--ns-border-strong); }

/* Reconnect the legacy chat style dialects; drawing palettes and voice scripts remain untouched. */
.desktop-container.ns-polish-6 {
    --act-bg: var(--ns-bg);
    --act-surface: var(--ns-card);
    --act-surface-2: var(--ns-surface);
    --act-surface-3: var(--ns-elevated);
    --act-text: var(--ns-text);
    --act-text-strong: var(--ns-text);
    --act-muted: var(--ns-text-2);
    --act-accent: var(--ns-gold-light);
    --act-border: var(--ns-border-strong);
    --act-msg-user: var(--ns-elevated);
    --act-msg-bot: var(--ns-surface);
    --act-input-bg: var(--ns-card);
    --act-font: var(--ns-font);
    --chat-v2-bg: var(--ns-bg);
    --chat-v2-panel: var(--ns-card);
    --chat-v2-surface: var(--ns-surface);
    --chat-v2-border: var(--ns-border-strong);
    --chat-v2-accent: var(--ns-gold-light);
    --chat-v2-accent-soft: var(--ns-elevated);
    --chat-v2-text: var(--ns-text);
    --chat-v2-text-muted: var(--ns-text-2);
    --chat-v2-radius: var(--ns-radius);
    --av2-bg-0: var(--ns-bg);
    --av2-bg-1: var(--ns-card);
    --av2-bg-2: var(--ns-surface);
    --av2-border: var(--ns-border);
    --av2-accent: var(--ns-gold-light);
    --av2-focus-ring: 0 0 0 3px var(--ns-border-strong);
    --av2-text: var(--ns-text);
    --av2-text-muted: var(--ns-text-2);
    --ns-bg-primary: var(--ns-bg);
    --ns-bg-secondary: var(--ns-card);
    --ns-bg-tertiary: var(--ns-surface);
    --ns-bg-elevated: var(--ns-surface);
    --ns-text-primary: var(--ns-text);
    --ns-text-secondary: var(--ns-text-2);
    --ns-text-muted: var(--ns-text-2);
    --ns-accent-gold: var(--ns-gold-light);
}
.ns-polish-6 .action-btn-container :is(input:not([type="color"]):not([type="range"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
    background-color: var(--ns-card);
    color: var(--ns-text);
    border-color: var(--ns-border-strong);
}
.ns-polish-6 #brain-thinking-indicator { color: var(--ns-text-2) !important; }

/* Content pages reuse content-google-path.css; these local details need readable ink in both schemes. */
.ns-polish-6.ns-content-page .ns-cu-door-tag--amber { color: var(--ns-on-accent); }
.ns-polish-6.ns-gp.ns-content-page .ns-cu-loop-num { color: var(--ns-text-2); }
.ns-polish-6.ns-content-page :is(.ns-cu-alert, .ns-cu-alert i, .ns-cu-hint, .ns-cu-submit-note) { color: var(--ns-text-2); }
.ns-polish-6.ns-content-page .ns-cu-form :is(input, textarea) { color: var(--ns-text); background: var(--ns-card); border-color: var(--ns-border-strong); }
.ns-polish-6.ns-content-page .ns-cu-form :is(input, textarea):focus { border-color: var(--ns-text); }
