/* Surface hierarchy: white on the page, neutral grey inside white surfaces. */
.button.secondary,.sx-button:not(.sx-primary){background:var(--surface-raised)}
.sx-comparison-settings{background:var(--surface-raised);box-shadow:var(--surface-shadow)}

/* Controls contained by white cards/dialogs use the shared grey. */
:is(.button-compact,.preview-panel,.preview-callout,.comparison-cell,.language-switch,
 .rc-mode,.rc-input-wrap,.rc-code-row>div,.sx-text-intro,.sx-search,
 .uf-button:not(.uf-primary),.uf-field input,.uf-field textarea,.uf-field select){background:var(--surface-control)}
.card .button.secondary,
.sx-card .sx-button:not(.sx-primary),.sx-modal .sx-button:not(.sx-primary),.sx-filter-menu .sx-button:not(.sx-primary),
.sx-card input:not([type=checkbox]),.sx-card select,.sx-modal input:not([type=checkbox]),.sx-modal select,
.sx-filter-menu select,.sx-comparison-settings select{background:var(--surface-control)}

/* Nested controls get a white level again instead of grey against grey. */
.preview-input-value,.preview-panel .preview-input-value{background:var(--surface-raised)}
.sx-search input,.sx-card .sx-search input,.sx-project-line input{background:transparent}
.uf-inspector-bottom .uf-button{background:transparent}

.button.secondary:hover,.sx-button:not(.sx-primary):hover{background:#ececef}
.card .button.secondary:hover,.sx-card .sx-button:not(.sx-primary):hover,.sx-modal .sx-button:not(.sx-primary):hover,
.button-compact:hover,.uf-button:not(.uf-primary):hover,.rc-code-row button:hover{background:var(--surface-control-hover)}
.preview-input-value:hover{background:var(--surface-raised)}
input::placeholder,textarea::placeholder{color:var(--text-placeholder);opacity:1}
