/* Neutral gray surfaces and inverse type; blue is reserved for the selected brand image. */
:root {
  color-scheme: light;
  --theme-bg: #f7f7f7; --theme-surface: #ffffff; --theme-surface-alt: #ededed; --theme-input: #ffffff;
  --theme-text: #202020; --theme-muted: #5f5f5f; --theme-border: #b8b8b8;
  --theme-accent: #333333; --theme-primary: #292929; --theme-primary-hover: #404040; --theme-on-primary: #ffffff;
  --theme-error: #b4233c; --theme-success: #167347; --theme-focus: #555555; --theme-focus-ring: #55555525;
  --theme-highlight: #e4e4e4; --theme-stage: #eeeeee; --theme-grid: #88888825;
  --theme-shadow: 0 12px 32px #0000000d; --theme-backdrop: #00000070; --header-control-bg: #ededed;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --theme-bg: #1f1f1f; --theme-surface: #292929; --theme-surface-alt: #353535; --theme-input: #202020;
  --theme-text: #f5f5f5; --theme-muted: #c2c2c2; --theme-border: #737373;
  --theme-accent: #f5f5f5; --theme-primary: #f0f0f0; --theme-primary-hover: #ffffff; --theme-on-primary: #202020;
  --theme-error: #ff9eab; --theme-success: #68dba0; --theme-focus: #d9d9d9; --theme-focus-ring: #d9d9d930;
  --theme-highlight: #3d3d3d; --theme-stage: #242424; --theme-grid: #aaaaaa1f;
  --theme-shadow: 0 12px 32px #00000020; --theme-backdrop: #000000a3; --header-control-bg: #353535;
}
html, body { background: var(--theme-bg); color: var(--theme-text); }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--theme-highlight); color: var(--theme-text); }
a { color: var(--theme-accent); }
:is(button, input, textarea, select) { font: inherit; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--theme-primary); }
:is(button, a, input, textarea, select, summary, [role="button"]):focus-visible { outline: 3px solid var(--theme-focus); outline-offset: 3px; }
:is(input, textarea)::placeholder { color: var(--theme-muted); opacity: .85; }
dialog { background: var(--theme-surface); color: var(--theme-text); border-color: var(--theme-border); box-shadow: var(--theme-shadow); }
dialog::backdrop { background: var(--theme-backdrop); }
body:not(.catalog-page) > header {
  box-sizing: border-box; display: flex; align-items: center; flex-wrap: wrap; max-width: none; min-height: 80px; height: auto; margin: 0;
  padding: 16px max(24px, calc((100vw - 1184px) / 2)); gap: 24px; background: var(--theme-surface); border-bottom: 1px solid var(--theme-border);
}
body > header .brand { display: inline-flex; flex-direction: row; align-items: center; flex-shrink: 0; gap: 10px; color: var(--theme-text); text-decoration: none; letter-spacing: -.7px; }
body > header .brand .brand-mark { display: block; width: 44px; height: 44px; object-fit: contain; }
body > header .brand .brand-name { padding: 0; margin: 0; border: 0; font-size: 20px; font-weight: 750; letter-spacing: -.7px; color: var(--theme-text); white-space: nowrap; }
body:not(.catalog-page) > header nav { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; margin-right: 0; }
body > header nav a { white-space: nowrap; padding: 9px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--theme-muted); border-radius: 8px; }
body > header nav a:hover { background: var(--theme-surface-alt); color: var(--theme-text); }
body > header nav a[aria-current="page"] { background: var(--theme-highlight); color: var(--theme-accent); }
body > header .account-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
body > header .account-tools select { width: auto; max-width: 132px; min-height: 32px; margin: 0; padding: 6px 10px; border: 1px solid var(--theme-border); border-radius: 8px; background: var(--theme-input); color: var(--theme-text); font-size: 12px; }
body > header #themeToggle { display: grid; place-items: center; font-size: 19px; line-height: 1; cursor: pointer; }
body > header #accountButton { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
body > header #accountButton:disabled { opacity: .6; cursor: not-allowed; }
body > header :is(#accountButton, #themeToggle, .language-control) { box-sizing: border-box; height: 32px; min-width: 56px; margin: 0; border: 1px solid var(--theme-border); border-radius: 8px; background: var(--header-control-bg); color: var(--theme-text); }
body > header :is(#themeToggle, .language-control) { width: 56px; flex: 0 0 56px; padding: 0; }
body > header .language-control { position: relative; display: grid; place-items: center; }
body > header .language-flag { display: flex; align-items: center; justify-content: center; pointer-events: none; }
body > header .language-flag svg { display: block; width: 24px; height: 16px; border-radius: 2px; fill: none; stroke: none; }
body > header .account-tools .language-control #language { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-width: none; padding: 0; margin: 0; border: 0; opacity: 0; cursor: pointer; }
body > header .language-control:focus-within { outline: 3px solid var(--theme-focus); outline-offset: 3px; }
.ad-placement[hidden] { display: none !important; }
.ad-placement { margin: 48px 0 28px; padding: 24px 0; border-block: 1px solid var(--theme-border); text-align: center; color: var(--theme-muted); }
.ad-placement .ad-label { margin: 0 0 14px; font-size: 11px; letter-spacing: .08em; color: var(--theme-muted); }
.ad-placement .ad-content { min-height: 100px; }
.catalog-page .catalog-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.catalog-page .catalog-topline .brand { font-size: 20px; }
button.primary:disabled, .support-main .primary:disabled, #accountDialog .primary:disabled {
  background: var(--theme-surface-alt); color: var(--theme-muted); border: 1px solid var(--theme-border); box-shadow: none; opacity: 1;
}
@media (max-width: 1080px) {
  body:not(.catalog-page) > header { padding: 12px 24px; gap: 12px 20px; }
  body:not(.catalog-page) > header nav { order: 3; flex-basis: 100%; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
  body > header nav a { padding: 8px 12px; }
}
@media (max-width: 540px) {
  body:not(.catalog-page) > header { padding: 12px 16px; gap: 10px; }
  body > header .brand .brand-mark { width: 36px; height: 36px; }
  body > header .brand .brand-name { display: none; }
  body > header .account-tools { gap: 6px; }
  body > header #accountButton { max-width: 110px; }
  body > header nav a { font-size: 12px; padding: 9px 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
