/* Restore v90's small gold flag glyphs and unframed, right-aligned controls.
   Keep the existing fifth locale and the separate, working account links. */
.dg-studio header.dg-compact-header { border-bottom: 0; }
.dg-studio header.dg-compact-header > .dg-header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
}
.dg-studio header.dg-compact-header > .dg-header-shell > nav { flex: 1 1 auto; min-width: 0; width: auto !important; }
.dg-studio header.dg-compact-header nav > ul { justify-content: center !important; flex-wrap: wrap !important; }
.dg-compact-header .dg-header-actions { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; gap: 18px; margin-left: auto; }
.dg-compact-header .dg-account-entry { display: flex; align-items: center; gap: 10px; }
/* A 28px-high square-edged face sits inside an unchanged 44px touch target. */
.dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply {
  position: relative;
  isolation: isolate;
  font: 600 12px/1.35 'Inter Tight', Arial, sans-serif;
  color: #161616 !important;
  min-width: 56px;
  min-height: 44px;
  padding: 8px 6px !important;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
}
.dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply::before {
  content: '';
  position: absolute;
  inset: 8px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, #F0BF76 28%, #FFE0AD 46%, #F0BF76 64%);
  background-size: 220% 100%;
  animation: dg-compact-entry-shine 7s ease-in-out infinite;
}
.dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply::after { content: none; }
.dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply:hover::before { filter: brightness(1.06); }
@keyframes dg-compact-entry-shine { 0%, 35%, 100% { background-position: 100% 0; } 70% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply::before { animation: none; }
}
/* Remove the repeated name without leaving its previous spacer above the title. */
.dg-studio #top .dg-hero-copy > h1 { margin-top: 14px !important; }
.dg-studio header.dg-compact-header #dg-language-switcher { margin: 0; }
.dg-studio header.dg-compact-header #dg-language-switcher .dg-language-inline { gap: 4px; }
.dg-studio header.dg-compact-header #dg-language-switcher button {
  min-width: 38px;
  min-height: 44px;
  padding: 5px 2px;
  color: var(--dg-gold, #F0BF76);
  background: transparent;
  border-radius: 0;
}
.dg-compact-header #dg-language-switcher svg { display: block; width: 30px; height: 18px; }
.dg-studio header.dg-compact-header #dg-language-switcher button:focus-visible { outline: 2px solid #EEE9E1; outline-offset: 2px; }
@media (max-width: 1100px) {
  .dg-studio header.dg-compact-header > .dg-header-shell > nav { display: none !important; }
  .dg-studio header.dg-compact-header .dg-mobile-menu-toggle { display: flex !important; flex: none; width: 44px; height: 44px; margin-left: 0 !important; }
}
@media (max-width: 600px) {
  .dg-studio header.dg-compact-header > .dg-header-shell { gap: 10px !important; }
  .dg-compact-header .dg-header-actions { flex-direction: column-reverse; align-items: flex-end; gap: 2px; }
  .dg-compact-header .dg-account-entry { justify-content: flex-end; gap: 10px; }
  .dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply { padding: 8px 6px !important; }
  .dg-studio header.dg-compact-header #dg-language-switcher button { min-width: 34px; }
}
@media (forced-colors: active) {
  .dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply { color: ButtonText !important; }
  .dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply::before { background: ButtonFace; border: 1px solid ButtonText; animation: none; }
  .dg-studio header.dg-compact-header #dg-language-switcher button { color: ButtonText; }
  .dg-studio header.dg-compact-header #dg-language-switcher button[aria-pressed="true"] { outline: 2px solid Highlight; }
}
