/* Same notice layout; colors follow each help site's existing palette. */
html[data-help-language-theme="alarminder"] {
  --help-language-bg: var(--accent-soft, #ebeef7);
  --help-language-text: var(--text, #212121);
  --help-language-line: var(--line, #bbb);
  --help-language-card: var(--card, #fbfbfb);
  --help-language-focus: var(--focus, #2f53ce);
}
html[data-help-language-theme="brainpark"] {
  --help-language-bg: var(--accent-soft, #e0eeec);
  --help-language-text: var(--ink, #1d3a44);
  --help-language-line: var(--line, #d3e3e0);
  --help-language-card: var(--surface, #fff);
  --help-language-focus: var(--focus, #183e4c);
}
html[data-help-language-theme="cosmicme"] {
  --help-language-bg: var(--accent-soft, #27223c);
  --help-language-text: var(--text, #f1f3fc);
  --help-language-line: var(--line, #37415a);
  --help-language-card: var(--card, #1b2132);
  --help-language-focus: var(--focus, #d9ceff);
}
html[data-help-language-theme="flextodo"] {
  --help-language-bg: var(--note, var(--accent-soft, #edf6f1));
  --help-language-text: var(--fg, var(--text, #16191d));
  --help-language-line: var(--line, #e3e6ea);
  --help-language-card: var(--card, #f7f8fa);
  --help-language-focus: var(--accent, #1f9d55);
}
html[data-help-language-theme="nevoria"] {
  --help-language-bg: var(--accent-soft, #fce8e2);
  --help-language-text: var(--ink, #3a2818);
  --help-language-line: var(--line, #eadfcb);
  --help-language-card: var(--surface, #fff);
  --help-language-focus: var(--focus, #a34635);
}
html[data-help-language-theme="smartmdt"] {
  --help-language-bg: var(--orange-soft, #fdf0df);
  --help-language-text: var(--ink, #1f2a23);
  --help-language-line: var(--line, #d3e1d0);
  --help-language-card: var(--surface, #fbfdf9);
  --help-language-focus: var(--green, #2e7d32);
}
html[data-help-language-theme="snorelog"] {
  --help-language-bg: #203b60;
  --help-language-text: var(--ink, #f4f7ff);
  --help-language-line: var(--line, #355073);
  --help-language-card: var(--paper, #101e31);
  --help-language-focus: var(--accent, #aec5ff);
}
html[data-help-language-theme="woodcalc"] {
  --help-language-bg: var(--honey-soft, #fcefcf);
  --help-language-text: var(--ink, #2c2014);
  --help-language-line: var(--line, #e7d8b6);
  --help-language-card: var(--surface, #fffdf6);
  --help-language-focus: var(--wood, #9a6a34);
}

.help-language-notice,
.help-language-notice * {
  box-sizing: border-box;
}
.help-language-notice {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid var(--help-language-line);
  background: var(--help-language-bg);
  color: var(--help-language-text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .95rem;
  line-height: 1.6;
  transition: opacity .18s ease;
}
.help-language-notice[hidden] {
  display: none !important;
}
.help-language-notice.is-hiding {
  opacity: 0;
}
.help-language-notice .help-language-notice__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: .85rem max(16px, env(safe-area-inset-right)) .85rem max(16px, env(safe-area-inset-left));
}
.help-language-notice .help-language-notice__text {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.help-language-notice .help-language-notice__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--help-language-line);
  border-radius: 8px;
  background: var(--help-language-card);
  color: inherit;
  cursor: pointer;
}
.help-language-notice .help-language-notice__close svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}
.help-language-notice .help-language-notice__close:focus-visible {
  outline: 2px solid var(--help-language-focus);
  outline-offset: 2px;
}
@media (min-width: 640px) {
  .help-language-notice {
    font-size: .9rem;
    line-height: 1.45;
  }
  .help-language-notice .help-language-notice__inner {
    gap: .6rem;
    padding: .55rem 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .help-language-notice {
    transition: none;
  }
}
