.app-header {
  gap: 20px;
  min-height: 76px;
  padding-block: 16px;
}
.wordmark picture { display: flex; }
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
  width: min(620px, calc(100% - 280px));
}
.header-controls .account { margin-left: 0; flex: 0 0 auto; align-self: center; }
.workspace-switcher { flex: 1; min-width: 0; }
.workspace-switcher form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.workspace-switcher label { min-width: 0; }
.workspace-switcher select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
}
.workspace-switcher .workspace-switch-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--rl-orange-surface);
  border-color: transparent;
  color: var(--rl-orange);
}
.workspace-switcher .workspace-switch-button:hover { background: var(--rl-orange); color: white; }
.workspace-switch-button svg { width: 20px; height: 20px; }
.workspace-switcher .local-feedback:empty { display: none; }
.workspace-switcher .local-feedback:not(:empty) {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--rl-border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 6px 18px #142d3b15;
}
.nav-bar nav { flex-wrap: wrap; }
@media (max-width: 900px) {
  .app-header { gap: 16px; }
  .app-header .wordmark { max-width: 200px; }
  .header-controls { width: calc(100% - 216px); gap: 8px; }
  .workspace-switcher form { gap: 8px; }
}
@media (max-width: 600px) {
  .app-header { flex-wrap: nowrap; padding: 12px; gap: 10px; min-height: 68px; }
  .app-header.has-workspace .wordmark { width: 30px; }
  .app-header.has-workspace .wordmark img { width: 30px; height: 30px; }
  .header-controls { width: auto; flex: 1; gap: 6px; }
  .workspace-switcher form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 36px; gap: 6px; }
  .workspace-switcher select { height: 40px; min-height: 40px; font-size: 12px; padding: 7px 5px; border-radius: 8px; }
  .workspace-switcher .workspace-switch-button { width: 36px; height: 36px; }
  .workspace-switch-button svg { width: 18px; height: 18px; }
}
@media print { .app-header { display: none; } }
