/* Scoped to the legacy frontend; new-origin pages retain their existing layout. */
.domain-migration-banner {
  --migration-accent: var(--system-blue, #0878f9);
  --migration-panel: var(--panel, #ffffff);
  --migration-ink: var(--ink, #151b26);
  --migration-muted: var(--muted, #596779);
  position: fixed;
  inset: 0 0 auto;
  z-index: 95;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 8px 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--migration-accent) 18%, var(--migration-panel));
  background: color-mix(in srgb, var(--migration-accent) 5%, var(--migration-panel));
  color: var(--migration-ink);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}
.domain-migration-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; min-width: 0; }
.domain-migration-copy strong { font-size: 13px; font-weight: 600; }
.domain-migration-copy strong > span { display: inline-block; margin-left: 6px; color: color-mix(in srgb, var(--migration-accent) 75%, var(--migration-ink)); font-weight: 700; }
.domain-migration-note { color: var(--migration-muted); }
.domain-migration-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: color-mix(in srgb, var(--migration-accent) 85%, #000);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.domain-migration-link:hover { background: color-mix(in srgb, var(--migration-accent) 75%, #000); }
.domain-migration-link:focus-visible { outline: 2px solid var(--migration-accent); outline-offset: 3px; }
body.has-domain-migration { padding-top: var(--domain-migration-height, 49px); }
.has-domain-migration .app-shell { height: calc(100dvh - var(--domain-migration-height)); }
.has-domain-migration .auth-shell,
.has-domain-migration .auth-brand-stage { min-height: calc(100dvh - var(--domain-migration-height)); }
body.has-domain-migration.recharge-landing-open .app-main,
body.has-domain-migration.recharge-landing-open .main,
body.has-domain-migration.recharge-landing-open .recharge-page { height: calc(100dvh - var(--domain-migration-height)); }
.has-domain-migration .asset-drawer { top: calc(var(--domain-migration-height) + 12px); }
.has-domain-migration .workspace-recovery-notice { top: calc(var(--domain-migration-height) + 76px); }
.has-domain-migration .toast-region { top: calc(var(--domain-migration-height) + var(--topbar-height) + 12px); }
.has-domain-migration .ecommerce-studio-modal,
.has-domain-migration .yz-skills { top: var(--domain-migration-height); }
.has-domain-migration .ecommerce-studio-card { height: calc(100dvh - var(--domain-migration-height)); }
@media (min-width: 701px) {
  .has-domain-migration .app-sidebar { height: calc(100dvh - var(--domain-migration-height)); }
}
@media (max-width: 760px) {
  .has-domain-migration .autosave-menu { top: calc(var(--domain-migration-height) + 68px); }
  .has-domain-migration .collaboration-panel { top: calc(var(--domain-migration-height) + 64px); }
}
[data-theme="dark"] .domain-migration-banner {
  --migration-accent: var(--system-blue, #0a84ff);
  --migration-panel: var(--panel, #18202b);
  --migration-ink: var(--ink, #f4f7fb);
  --migration-muted: var(--muted, #9fa9b6);
}
@media (max-width: 700px) {
  .has-domain-migration .toast-region { top: calc(var(--domain-migration-height) + 72px); }
  .has-domain-migration #saveControl #saveState.workspace-save-alert { top: calc(var(--domain-migration-height) + 54px); }
  .domain-migration-banner { gap: 10px; padding: 8px 12px; }
  .domain-migration-copy { display: block; }
  .domain-migration-copy strong { display: block; font-size: 12px; }
  .domain-migration-copy strong > span { display: block; margin: 1px 0; font-size: 13px; }
  .domain-migration-note { display: block; font-size: 11px; }
  .domain-migration-link { min-height: 36px; padding: 0 9px; }
}
