/* Browser appearance overrides shared color roles only; geometry and media stay intact. */
:root[data-theme="light"] {
  color-scheme: light;
  --color-selection-bg: #ded5b9;
  --color-selection-text: #292923;
  --color-primary: #765d1f;
  --color-primary-tint: #655019;
  --color-primary-alt-tint: #ece4cd;
  --color-on-primary: #fffdf7;
  --color-primary-ring: rgba(118, 93, 31, 0.30);
  --color-secondary: #626257;
  --color-secondary-tint: #505047;
  --color-success: #38633c;
  --color-success-tint: #2e5332;
  --color-success-subtle: #e6eee1;
  --color-success-ring: rgba(56, 99, 60, 0.30);
  --color-warning: #80501f;
  --color-warning-tint: #6b4219;
  --color-warning-subtle: #f2e6d4;
  --color-danger: #963f32;
  --color-danger-tint: #803529;
  --color-danger-subtle: #f5e4dd;
  --color-danger-ring: rgba(150, 63, 50, 0.30);
  --color-text: #292923;
  --color-text-light: #626257;
  --color-bg-page: #f4f2eb;
  --color-bg-surface: #fffdf7;
  --color-bg-paper: #fffdf7;
  --color-bg-subtle: #eeece3;
  --color-bg-hover: #e9e6db;
  --color-bg-selected: #e3decd;
  --color-border: #858174;
  --color-border-light: #d5d1c5;
  --color-border-rule: #d5d1c5;
  --color-accent-soft: #ece4cd;
  --color-accent-text: #655019;
  --color-accent-base: #765d1f;
  --color-chrome: #eeece3;
  --color-chrome-bar: #f4f2eb;
  --color-chrome-text: #292923;
  --color-chrome-muted: #626257;
  --color-chrome-border: #d5d1c5;
  --color-chrome-selected: #e3decd;
  --color-chrome-hover: #e9e6db;
  --color-chrome-accent: #765d1f;
  --color-overlay: rgba(41, 41, 35, 0.48);
  --shadow-overlay: 0 8px 24px rgba(41, 41, 35, 0.18);
}

.display-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xxs);
  max-width: 100%;
  color: var(--color-chrome-text);
}

.display-settings label {
  font: inherit;
}

.display-settings select {
  width: auto;
  max-width: 100%;
  min-height: var(--interaction-height);
  padding: var(--space-3xs) var(--space-xxs);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-surface);
  color: var(--color-text);
  font: inherit;
}

@media (pointer: coarse) {
  .display-settings select {
    min-height: var(--interaction-height-touch);
    font-size: 1rem;
  }
}
