.site-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 780px);
  margin: 0 auto 24px;
  padding: 8px 12px;
  border-radius: 24px;
  background: #fffdf6;
  box-sizing: border-box;
}

.site-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #465136;
  text-decoration: none;
  font: 600 17px/1.6 Tahoma, Arial, sans-serif;
}
.site-brand img {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
}
.site-brand span { max-width: 220px; }
.site-toolbar .translate-button {
  flex-shrink: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid #637743;
  border-radius: 24px;
  background: #ffe3ea;
  color: #465136;
  font: 600 16px/1.5 Tahoma, Arial, sans-serif;
  cursor: pointer;
}
.site-toolbar a:focus-visible,
.site-toolbar button:focus-visible {
  outline: 3px solid #637743;
  outline-offset: 4px;
}
html[lang="fa"] body,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] select,
html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] summary {
  font-family: Tahoma, Arial, sans-serif;
}
html[dir="rtl"] .question-actions,
html[dir="rtl"] .garden-actions { text-align: start; }
html[dir="rtl"] #theme-panel {
  right: auto;
  left: 16px;
}
#question-text,
#answer-input,
#notes-input,
.messages .message p { unicode-bidi: plaintext; }
@media (max-width: 540px) {
  .site-toolbar { gap: 8px; padding: 8px; }
  .site-brand { flex-direction: column; align-items: start; gap: 4px; font-size: 14px; }
  .site-brand img { width: 96px; }
  .site-toolbar .translate-button { padding: 10px 12px; font-size: 14px; }
}

.file-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--border, #c3ccaf);
  border-radius: 18px;
  background: #fff;
}
.file-picker button { min-height: 44px; padding: 10px 16px; font-size: 16px; }
.file-picker span { min-width: 0; overflow-wrap: anywhere; }
.native-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
