html:lang(ar) {
  --font-sans: 'Segoe UI', Tahoma, Arial, sans-serif;
}
html:lang(ja) {
  --font-sans: 'Manrope', 'Yu Gothic UI', 'Meiryo', sans-serif;
}
html:lang(ko) {
  --font-sans: 'Manrope', 'Malgun Gothic', sans-serif;
}
html:lang(zh) {
  --font-sans: 'Manrope', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
.language-control {
  min-width: 0;
}
.language-control-compact {
  display: inline-flex;
}
.language-control .language-flag-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.language-control .language-flag-trigger:hover {
  background: var(--panel);
  border-color: var(--line);
}
.language-control img {
  display: block;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.language-label {
  margin: 0 0 10px;
  font-weight: 600;
}
dialog.language-picker {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 20px;
  overflow: auto;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 70px #0005;
  text-align: start;
}
dialog.language-picker::backdrop {
  background: #0008;
}
.language-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.language-picker-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}
.language-control .language-picker-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.language-flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.language-picker .language-flag-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.language-control button.language-flag-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 76px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  cursor: pointer;
}
.language-control button.language-flag-choice:hover {
  background: var(--panel-alt);
}
.language-control button.language-flag-choice[aria-pressed='true'] {
  border-color: var(--text);
  background: var(--panel-alt);
}
.language-selected {
  position: absolute;
  top: 5px;
  right: 5px;
  visibility: hidden;
}
.language-flag-choice[aria-pressed='true'] .language-selected {
  visibility: visible;
}
.language-control button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.language-control button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.language-save-error {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  max-width: 30rem;
}
.site-header-utilities {
  flex-wrap: wrap;
}
.site-header .site-public-links a,
.site-header .site-workspace-link,
.site-header .site-profile-link {
  white-space: normal;
  text-align: center;
  overflow-wrap: normal;
}
.site-header .site-more-links {
  left: auto;
  right: auto;
  inset-inline-end: 0;
}
button,
input,
select,
textarea {
  max-inline-size: 100%;
}
button {
  overflow-wrap: normal;
}
html[dir='rtl'] {
  text-align: start;
}
html[dir='rtl'] input[type='email'],
html[dir='rtl'] input[type='url'],
html[dir='rtl'] input[type='number'],
html[dir='rtl'] input[placeholder*='0x'],
html[dir='rtl'] input[placeholder*='ipfs'],
html[dir='rtl'] code,
html[dir='rtl'] .mono,
html[dir='rtl'] .monospace,
html[dir='rtl'] [data-identifier],
html[dir='rtl'] .wallet-address,
html[dir='rtl'] .contract-address,
html[dir='rtl'] .transaction-hash {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
html[dir='rtl'] .lucide-arrow-left,
html[dir='rtl'] .lucide-arrow-right,
html[dir='rtl'] .lucide-chevron-left,
html[dir='rtl'] .lucide-chevron-right {
  transform: scaleX(-1);
}
html[dir='rtl'] th,
html[dir='rtl'] td {
  text-align: start;
}
html[dir='rtl'] dialog,
html[dir='rtl'] [role='dialog'],
html[dir='rtl'] .profile-card {
  text-align: start;
}
@media (max-width: 760px) {
  .site-header-utilities {
    justify-content: flex-start;
    gap: 8px;
  }
  .site-header .site-more-links {
    inset-inline-start: 0;
    inset-inline-end: auto;
  }
  .site-header .site-workspace-link {
    max-inline-size: 12rem;
  }
}
