.fjord-auth-pending [data-auth-link] { visibility: hidden; }
.fjord-i18n-pending body { visibility: hidden; }
.public-account { position: relative; flex: 0 0 auto; }
.public-account-toggle { display: flex; height: 36px; min-height: 36px; align-items: center; gap: 8px; padding: 3px 8px 3px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.public-account-toggle:hover { background: var(--surface-soft); }
.public-account-avatar { width: 28px; height: 28px; border-radius: 2px; object-fit: cover; }
.public-account-chevron { color: var(--muted); font-size: 11px; }
.public-account-menu { position: absolute; z-index: 100; top: calc(100% + 8px); right: 0; width: 238px; padding: 7px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: 0 18px 45px var(--theme-fixed-000000-a280); }
.public-account-menu[hidden] { display: none; }
.public-account-summary { display: grid; gap: 4px; padding: 9px 10px 11px; }
.public-account-summary small { color: var(--muted); font-size: 10px; }
.public-account-summary strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.public-account-divider { height: 1px; margin: 5px 3px; background: var(--line); }
.public-account-item { display: flex; width: 100%; min-height: 35px; align-items: center; padding: 7px 10px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; text-align: left; text-decoration: none; cursor: pointer; }
.public-account-item:hover { background: var(--surface-soft); }
.public-account-danger { color: var(--red); }
@media (max-width: 560px) { .public-account-name, .public-account-chevron { display: none; } .public-account-toggle { width: 36px; justify-content: center; padding: 4px; } }
[dir="rtl"] .public-account-menu { right: auto; left: 0; }



.topbar-language {
  position: relative;
  display: grid;
  min-width: 56px;
  width: 56px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.topbar-language-display {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  pointer-events: none;
}
.topbar-language > select {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  opacity: 0 !important;
  cursor: pointer !important;
}
button.topbar-theme {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 34px;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
button.topbar-theme:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised, var(--surface-soft));
  color: var(--text);
  transform: translateY(-1px);
}
button.topbar-theme .theme-icon {
  position: absolute;
  display: block !important;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .18s ease, transform .22s ease;
}
button.topbar-theme .theme-icon-sun { opacity: 1; transform: scale(1) rotate(0); }
button.topbar-theme .theme-icon-moon { opacity: 0; transform: scale(.72) rotate(-12deg); }
:root[data-theme="light"] button.topbar-theme .theme-icon-sun { display: block !important; opacity: 0; transform: scale(.72) rotate(12deg); }
:root[data-theme="light"] button.topbar-theme .theme-icon-moon { display: block !important; opacity: 1; transform: scale(1) rotate(0); }
:root[data-theme="dark"] button.topbar-theme .theme-icon-sun { display: block !important; opacity: 1; transform: scale(1) rotate(0); }
:root[data-theme="dark"] button.topbar-theme .theme-icon-moon { display: block !important; opacity: 0; transform: scale(.72) rotate(-12deg); }
@media (prefers-reduced-motion: reduce) {
  button.topbar-theme, button.topbar-theme .theme-icon { transition: none; }
}
@media (max-width: 700px) {
  .topbar-language { min-width: 50px; width: 50px; height: 32px; }
  button.topbar-theme { width: 32px; min-width: 32px; height: 32px; }
  .topbar-language-display { padding-inline: 6px; gap: 3px; }
}




.public-account-toggle { border-radius: 2px; }
:root[data-theme="light"] .topbar-language > select,
:root[data-theme="light"] .topbar-language > select option { color-scheme: light; }
:root[data-theme="dark"] .topbar-language > select,
:root[data-theme="dark"] .topbar-language > select option { color-scheme: dark; }
:root[data-theme="dark"] .topbar-language > select option {
  background-color: var(--surface);
  color: var(--text);
}
.topbar-language:focus-within { box-shadow: none; }
.topbar-language > select:focus,
.topbar-language > select:focus-visible { outline: 0; box-shadow: none; }
