.app-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: max(20px, 4vw);
  min-height: 64px;
  height: auto;
  padding-block: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #0b1321;
  color: #f5f7fc;
}
.app-header-brand, .app-header-nav, .app-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.app-header nav { margin: 0; }
.app-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: inherit;
  text-decoration: none;
  font: 850 36px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.04em;
}
.app-brand-mark { display: block; width: 52px; height: 52px; flex: none; }
.app-header-context { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-header-nav a, .app-header-nav button.link {
  color: inherit;
  font: inherit;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.app-header :focus-visible { outline: 2px solid #75e6df; outline-offset: 4px; }
.app-header #app-header-context { color: #c2cbd9; }
.app-header .status {
  margin: 0;
  padding: 4px 10px;
  border-radius: 20px;
  color: #b5f1ec;
  background: #17343d;
}
.app-header .language-picker { position: relative; display: flex; align-items: center; }
.app-header .language-flag {
  position: absolute;
  left: 11px;
  width: 24px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3);
  pointer-events: none;
}
.app-header .language-picker select {
  width: 140px;
  height: 36px;
  padding: 0 28px 0 43px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  color: #fff;
  background: #111d31;
  font: 700 12px/1 Arial, "Segoe UI", sans-serif;
  cursor: pointer;
}
@media (max-width: 680px) {
  .app-header-nav { order: 1; width: 100%; }
  .app-header .brand { font-size: 30px; }
  .app-brand-mark { width: 44px; height: 44px; }
  .app-header-context { font-size: 13px; }
}

.app-brand-caption {
  display: grid;
  gap: 4px;
  margin-inline-start: 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .045em;
  white-space: nowrap;
}
.app-brand-caption strong { color: #f3f7ff; font-size: 12px; text-transform: uppercase; }
.app-brand-caption small { color: #75e6df; font-size: 10px; font-weight: 750; }
@media (max-width: 680px) {
  .app-brand-caption strong { font-size: 10px; }
  .app-brand-caption small { font-size: 9px; }
}
