body .clss-tool-header {
  --clss-header-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --clss-header-ink: #061b31;
  --clss-header-muted: #526a78;
  --clss-header-teal: #0fa2a5;
  --clss-header-line: #c8d9dd;
  --clss-header-panel: #ffffff;
  --clss-header-focus: #0eebc5;
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-width: 0;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--clss-header-line);
  border-radius: 0;
  color: var(--clss-header-ink);
  background: transparent;
  box-shadow: none;
  font: 400 16px/1.5 var(--clss-header-mono);
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}

html[data-theme="dark"] body .clss-tool-header {
  --clss-header-ink: #f3fcfd;
  --clss-header-muted: #9bb2ba;
  --clss-header-teal: #37ced0;
  --clss-header-line: #23424e;
  --clss-header-panel: #0b1a26;
}

body .clss-tool-header,
body .clss-tool-header * {
  box-sizing: border-box;
}

body .clss-tool-header a,
body .clss-tool-header button {
  -webkit-tap-highlight-color: transparent;
}

body .clss-tool-header :focus-visible {
  outline: 3px solid var(--clss-header-focus);
  outline-offset: 3px;
}

body .clss-tool-header .clss-brand-lockup {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

body .clss-tool-header .clss-brand {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--clss-header-ink);
  background: transparent;
  font: 780 16px/1 var(--clss-header-mono);
  letter-spacing: -0.045em;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

body .clss-tool-header .clss-brand span {
  color: var(--clss-header-teal);
}

body .clss-tool-header .clss-brand:is(:hover, :focus-visible, :visited),
body .clss-tool-header .clss-studio-brand:visited {
  color: var(--clss-header-ink);
  text-decoration: none;
}

body .clss-tool-header .clss-brand-by {
  margin: 0;
  padding: 0;
  color: var(--clss-header-muted);
  font: 800 9.12px/1 var(--clss-header-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body .clss-tool-header .clss-studio-brand {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--clss-header-ink);
  background: transparent;
  text-decoration: none;
  place-items: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body .clss-tool-header .clss-studio-brand:hover,
body .clss-tool-header .clss-studio-brand:focus-visible {
  border-color: var(--clss-header-line);
  background: var(--clss-header-panel);
  transform: translateY(-1px);
}

body .clss-tool-header .clss-studio-brand img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

html[data-theme="dark"] body .clss-tool-header .clss-studio-brand img {
  filter: brightness(1.35) saturate(0.95);
}

body .clss-tool-header .clss-preferences {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

html.js body .clss-tool-header .clss-preferences {
  display: flex;
}

body .clss-tool-header .clss-language-switch,
body .clss-tool-header .clss-theme-switch {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--clss-header-muted);
  font: 400 16px/1.5 var(--clss-header-mono);
}

body .clss-tool-header .clss-theme-switch {
  padding-left: 7px;
  border-left: 1px solid var(--clss-header-line);
}

body .clss-tool-header .clss-switch-button {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--clss-header-muted);
  background: transparent;
  box-shadow: none;
  font: 750 10.72px/1.5 var(--clss-header-mono);
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  appearance: none;
  place-items: center;
  touch-action: manipulation;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

body .clss-tool-header .clss-switch-button:hover,
body .clss-tool-header .clss-switch-button:focus-visible,
body .clss-tool-header .clss-switch-button[aria-pressed="true"] {
  color: var(--clss-header-ink);
}

body .clss-tool-header .clss-theme-switch .clss-switch-button[aria-pressed="true"] {
  border-color: var(--clss-header-line);
  background: var(--clss-header-panel);
}

body .clss-tool-header .clss-switch-button svg {
  display: block;
  width: 16.8px;
  height: 16.8px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  body .clss-tool-header {
    width: calc(100% - 28px);
    min-height: 72px;
    gap: 8px;
  }

  body .clss-tool-header .clss-brand-lockup { gap: 7px; }
  body .clss-tool-header .clss-brand { font-size: 13.12px; }
  body .clss-tool-header .clss-brand-by { font-size: 8px; }
  body .clss-tool-header .clss-studio-brand {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    padding: 5px;
  }

  body .clss-tool-header .clss-preferences { gap: 3px; }
  body .clss-tool-header .clss-language-switch,
  body .clss-tool-header .clss-theme-switch {
    min-height: 34px;
  }

  body .clss-tool-header .clss-theme-switch { padding-left: 3px; }

  body .clss-tool-header .clss-switch-button {
    width: 30px;
    height: 34px;
    min-width: 30px;
    min-height: 34px;
    font-size: 9.92px;
  }

  body .clss-tool-header .clss-theme-switch .clss-switch-button {
    width: 34px;
    min-width: 34px;
  }
}

@media (max-width: 340px) {
  body .clss-tool-header { flex-wrap: wrap; }
  body .clss-tool-header .clss-brand-lockup { gap: 5px; }
  body .clss-tool-header .clss-brand { font-size: 11.52px; }
  body .clss-tool-header .clss-brand-by { font-size: 7.36px; }
  body .clss-tool-header .clss-studio-brand {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
    padding: 4px;
  }

  body .clss-tool-header .clss-theme-switch { border-left: 0; }
  body .clss-tool-header .clss-switch-button { width: 28px; min-width: 28px; }
  body .clss-tool-header .clss-theme-switch .clss-switch-button { width: 31px; min-width: 31px; }
}

@media (prefers-contrast: more) {
  body .clss-tool-header { border-bottom-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  body .clss-tool-header .clss-studio-brand,
  body .clss-tool-header .clss-switch-button { transition: none; }
}
