/* ISOLATED CANDIDATE — NOT DEPLOYED.
 * Load after ALL existing stylesheet links, including draft-visual-refinements.css.
 * Reuses existing account anchors, native language select/change handler and menu.
 * No new locale state, account logic or DOM replacement.
 */
@media (max-width: 767px) {
  .dg-studio header.dg-compact-header > .dg-header-shell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)) !important;
    width: 100%;
    margin: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
  }
  .dg-studio header.dg-compact-header > .dg-header-shell > nav { display: none !important; }
  .dg-studio header.dg-compact-header .dg-header-actions {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
  }
  .dg-studio header.dg-compact-header .dg-account-entry {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
  .dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 62px;
    min-height: 44px;
    height: 44px;
    padding: 0 10px !important;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid #9b794d;
    border-radius: 4px !important;
    background: #161616;
    color: #F2F0EB !important;
  }
  .dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply[href*="mode=signup"] {
    background: #F0BF76;
    border-color: #F0BF76;
    color: #161616 !important;
    min-width: 74px;
  }
  .dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply::before,
  .dg-studio header.dg-compact-header .dg-account-entry .dg-nav-apply::after { content: none; }
  .dg-studio header.dg-compact-header #dg-language-switcher {
    display: flex;
    flex: 0 0 88px;
    width: 88px;
    min-width: 0;
    margin: 0;
  }
  .dg-studio header.dg-compact-header #dg-language-switcher .dg-language-inline { display: none !important; }
  .dg-studio header.dg-compact-header #dg-language-picker {
    display: block !important;
    box-sizing: border-box;
    width: 88px !important;
    min-width: 0 !important;
    max-width: 88px;
    height: 44px;
    padding: 0 22px 0 9px;
    border: 1px solid #9b794d;
    border-radius: 4px;
    color: #F0BF76;
    font: 13px/1 Arial, sans-serif;
    letter-spacing: 0;
  }
  .dg-studio header.dg-compact-header .dg-mobile-menu-toggle {
    display: flex !important;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px;
    align-items: center;
    justify-content: center;
  }
  .dg-studio header.dg-compact-header :is(a,button,select):focus-visible {
    outline: 2px solid #F2F0EB;
    outline-offset: 2px;
  }
}
@media (max-width: 359px) {
  .dg-studio header.dg-compact-header > .dg-header-shell,
  .dg-studio header.dg-compact-header .dg-header-actions,
  .dg-studio header.dg-compact-header .dg-account-entry { gap: 6px !important; }
}

@media(max-width:359px){.dg-studio header.dg-compact-header > .dg-header-shell{padding-left:max(8px, env(safe-area-inset-left)) !important;padding-right:max(8px, env(safe-area-inset-right)) !important;}}
