/* No settings flash: editor mode is decided synchronously in the head. */
:root:not([data-settings-editor='true']) :is(#crtTools, .lcd-post-settings) { display: none !important; }
.appearance-publish-title { color: var(--terminal-accent, #ef5754) !important; }
.appearance-publish a { color: var(--terminal-accent, #ef5754); font: inherit; }
.appearance-publish a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.appearance-colors h2 { margin: 0 0 14px; font: inherit; color: var(--accent); }
.appearance-colors select { display: block; width: 100%; min-height: 44px; margin: 8px 0 14px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
.appearance-colors input[type='color'] { display: block; width: 100%; height: 44px; padding: 3px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.appearance-colors :is(select, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.appearance-swatches { display: flex; gap: 6px; margin-top: 14px; }
.appearance-swatches span { flex: 1; height: 24px; border: 1px solid var(--line); border-radius: 3px; }
/* Theme tokens also cover reading text and surfaces with legacy fixed colors. */
:root[data-color-theme]:not([data-color-theme='current']) :is(.post-excerpt, .post-description, .about-copy h1, .about-copy h2, .about-copy p) { color: var(--theme-body-text); }
:root[data-color-theme]:not([data-color-theme='current']) :is(.post-thumbnail, .post-figure img) { background: var(--theme-image-bg); }
:root[data-color-theme]:not([data-color-theme='current']) .lightbox { background: color-mix(in srgb, var(--paper) 96%, transparent); }
:root[data-color-theme]:not([data-color-theme='current']) .lightbox :is(button, .lightbox-full) { background: var(--cream); }
/* Shadow-free comparison: show only the recolored face below. */
.brand-wordmark picture {
  position: relative;
  background: transparent;
  mask: none;
}
.brand-wordmark picture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  mask: var(--lcd-wordmark-image) left center / 100% 100% no-repeat;
  mask-mode: luminance;
  pointer-events: none;
}
.brand-wordmark img { opacity: 0; }
:root[data-color-theme]:not([data-color-theme='current']) .brand-wordmark:is(.lcd-glitch-band, .lcd-glitch-retain)::after,
:root[data-color-theme]:not([data-color-theme='current']) .brand-wordmark.lcd-glitch-retain::before { background: var(--accent); mask: var(--lcd-wordmark-image) left center / auto 100% no-repeat; mask-mode: luminance; }
:root[data-color-theme='paper'] .site-header :is(.brand, .brand-wordmark picture) { filter: none; }
:root[data-color-theme='paper'] .site-header :is(.brand-copy > p, .site-nav) { text-shadow: none; }
