/* One cinematic canvas throughout Watch route, catalogue and access loading.
   Keep this in the eagerly loaded stylesheet so lazy route chunks cannot
   introduce a second layout when they arrive. */
.watch-loading { display: flex; flex-direction: column; min-height: 100svh; }
.watch-loading > header { flex-shrink: 0; }
.watch-loading__stage {
  position: relative; isolation: isolate; display: grid; place-items: center;
  flex: 1; min-height: min(32rem, calc(100svh - 4.25rem)); overflow: hidden;
  background: #101014;
}
.watch-loading__artwork {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: .5;
}
.watch-loading__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0a0a0a33, #0a0a0a66 50%, #0a0a0ae6);
}
.watch-loading__content {
  position: relative; width: 100%; max-width: 34rem; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: clamp(24px, 5svh, 56px) 24px; text-align: center;
}
.watch-loading__title {
  margin: 0; color: #fff; font-size: clamp(20px, 3vw, 28px);
  font-weight: 600; line-height: 1.25; overflow-wrap: anywhere;
}
@media (max-height: 480px) {
  .watch-loading__content { gap: 6px; padding: 12px 24px; }
  .watch-loading__content .mn-loading-frames--compact {
    margin: -16px auto; transform: scale(.65);
  }
  .watch-loading__title { font-size: 18px; }
}
.watch-content-reveal { animation: mn-watch-reveal 180ms ease-out; }
@keyframes mn-watch-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .watch-content-reveal { animation: none; }
}

/* Shared by the static first paint and React; no JavaScript is required for motion. */
.mn-loading-screen {
  min-height: 100dvh; display: grid; place-items: center; padding: 48px 24px;
  box-sizing: border-box; background: #0a0a0a; color: #f4f4f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.mn-loading-composition { width: 100%; max-width: 440px; text-align: center; }
.mn-loading-brand { display: block; width: 108px; height: 24px; object-fit: cover; object-position: center; margin: 0 auto; mix-blend-mode: screen; opacity: .8; }
.mn-loading-frames { position: relative; width: 264px; height: 184px; margin: 40px auto 32px; }
.mn-loading-frame { position: absolute; width: 232px; height: 146px; border: 1px solid rgba(200,155,255,.17); border-radius: 16px; box-sizing: border-box; }
.mn-loading-frame--back { left: 26px; top: 2px; transform: rotate(7deg); background: #121014; }
.mn-loading-frame--middle { left: 5px; top: 12px; transform: rotate(-5deg); background: #161219; }
.mn-loading-frame--front {
  left: 16px; top: 25px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, rgba(137,44,219,.19), transparent 72%), #141116;
  border-color: rgba(200,155,255,.27); box-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.mn-loading-frame--front::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(200,155,255,.07) 50%, transparent 75%); transform: translateX(-100%); animation: mn-loading-light 3.2s ease-in-out infinite; }
.mn-loading-frame img { width: 48px; height: 48px; object-fit: contain; margin-top: -12px; }
.mn-loading-track { position: absolute; bottom: 18px; display: flex; gap: 5px; align-items: center; height: 12px; }
.mn-loading-track i { width: 3px; height: 5px; border-radius: 2px; background: #c89bff; opacity: .35; animation: mn-loading-wave 1.8s ease-in-out infinite; }
.mn-loading-track i:nth-child(2n) { animation-delay: .2s; }
.mn-loading-track i:nth-child(3n) { animation-delay: .4s; }
.mn-loading-track i:nth-child(4n) { animation-delay: .6s; }
.mn-loading-copy { max-width: 360px; margin: 0 auto; }
.mn-loading-title { margin: 0; color: #f4f4f5; font-size: clamp(21px, 4vw, 26px); line-height: 1.3; font-weight: 600; letter-spacing: -.035em; overflow-wrap: anywhere; }
.mn-loading-helper { margin: 12px 0 0; color: #a1a1aa; font-size: 14px; line-height: 1.7; }
.mn-loading-rule { position: relative; width: 96px; height: 2px; margin: 28px auto 0; overflow: hidden; border-radius: 2px; background: #27232d; }
.mn-loading-rule span { display: block; width: 36px; height: 100%; border-radius: inherit; background: #c89bff; animation: mn-loading-pass 2.4s ease-in-out infinite alternate; }
.mn-loading-frames--compact { width: 184px; height: 128px; margin: 8px auto 20px; }
.mn-loading-frames--compact .mn-loading-frame { width: 160px; height: 100px; border-radius: 12px; }
.mn-loading-frames--compact .mn-loading-frame--back { left: 20px; }
.mn-loading-frames--compact .mn-loading-frame--middle { left: 2px; top: 8px; }
.mn-loading-frames--compact .mn-loading-frame--front { left: 12px; top: 18px; }
.mn-loading-frames--compact img { width: 32px; height: 32px; }
.mn-loading-frames--compact .mn-loading-track { bottom: 12px; }
.mn-loading-inline { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-block: 12px; color: #a1a1aa; font-size: 14px; line-height: 1.5; }
.mn-loading-signal { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 3px; width: 32px; height: 32px; border: 1px solid rgba(200,155,255,.15); border-radius: 10px; background: rgba(137,44,219,.07); }
.mn-loading-signal i { width: 3px; height: 8px; border-radius: 2px; background: #c89bff; animation: mn-loading-wave 1.8s ease-in-out infinite; }
.mn-loading-signal i:nth-child(2) { animation-delay: .2s; }
.mn-loading-signal i:nth-child(3) { animation-delay: .4s; }
.mn-skeleton { position: relative; overflow: hidden; background: linear-gradient(125deg, rgba(200,155,255,.045), rgba(255,255,255,.055)); }
.mn-skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.035) 50%, transparent 85%); transform: translateX(-100%); animation: mn-loading-light 3.2s ease-in-out infinite; }
@keyframes mn-loading-wave { 0%, 100% { transform: scaleY(.65); opacity: .35; } 50% { transform: scaleY(1.6); opacity: .9; } }
@keyframes mn-loading-light { to { transform: translateX(100%); } }
@keyframes mn-loading-pass { from { transform: translateX(0); } to { transform: translateX(60px); } }
@media (prefers-reduced-motion: reduce) {
  .mn-loading-frame--front::before, .mn-loading-track i, .mn-loading-signal i, .mn-loading-rule span, .mn-skeleton::after { animation: none; }
  .mn-skeleton::after, .mn-loading-frame--front::before { display: none; }
}
@media (max-height: 540px) {
  .mn-loading-screen { padding-block: 24px; }
  .mn-loading-frames { margin-top: 24px; margin-bottom: 20px; }
}

/* The saved workspace reserves the canvas and dock before the application loads. */
.mn-workspace-opening {
  box-sizing: border-box; height: 100dvh; display: flex; flex-direction: column;
  padding: 0 28px 20px; background: #0a0a0a; color: #f4f2f6;
  font-family: Inter, system-ui, sans-serif;
}
.mn-workspace-opening[hidden] { display: none; }
.mn-workspace-opening > header {
  width: 100%; max-width: 1560px; height: 64px; flex: 0 0 64px;
  display: flex; align-items: center; margin: 0 auto;
}
.mn-workspace-opening > header img { width: auto; height: 32px; }
.mn-workspace-opening-layout {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,400px);
  grid-template-rows: 48px minmax(0,1fr); gap: 16px 28px;
  flex: 1; min-height: 0; width: 100%; max-width: 1560px; margin: 0 auto;
}
.mn-workspace-opening-layout > h1 {
  grid-column: 1 / -1; align-self: center; margin: 0; font-size: 17px; font-weight: 550;
}
.mn-workspace-opening-canvas { border-radius: 16px; }
.mn-workspace-opening-dock {
  display: flex; align-items: end; padding: 12px; border-radius: 22px;
  border: 1px solid #ffffff0d; background: #131215;
}
.mn-workspace-opening-dock > div { width: 100%; height: 72px; border-radius: 16px; }
@media (max-width: 1023px) {
  .mn-workspace-opening { padding: 0 14px max(10px,env(safe-area-inset-bottom)); }
  .mn-workspace-opening > header { height: 56px; flex-basis: 56px; }
  .mn-workspace-opening-layout {
    grid-template-columns: minmax(0,1fr); grid-template-rows: 44px minmax(100px,38%) minmax(0,1fr); gap: 10px;
  }
  .mn-workspace-opening-layout > h1 { font-size: 14px; }
  .mn-workspace-opening-dock { border-radius: 18px; }
}
