:root { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

/* Let the brand mark and action icons carry the compact top-bar controls. */
.mg-shell-bar { gap: var(--space-2); }
.mg-shell-desktop,
.mg-shell-actions { gap: var(--space-2); }
.mg-shell-actions .mg-icon-btn {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.mg-shell-actions .mg-icon { width: 20px; height: 20px; }
.mg-shell-actions .mg-icon-btn:hover { background: var(--surface-raised); }
.mg-shell-actions .mg-icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mg-shell-actions .mg-shell-cta {
  min-height: 40px;
  padding-inline: var(--space-3);
  font-size: var(--mg-type-small);
}

.mg-shell-theme-toggle { color-scheme: inherit; }
.mg-shell-theme-icon::before { content: "☾"; }
[data-theme="light"] .mg-shell-theme-icon::before { content: "☼"; }
.mg-shell-theme-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1250px) {
  .mg-shell-bar { gap: var(--space-2); }
  .mg-shell-actions { gap: var(--space-1); }
}

@media (max-width: 900px) {
  .mg-shell-actions .mg-icon-btn {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .mg-shell-logo img { width: 108px; }
}
