/* First-run welcome stays independent of the studio's spotlight tutorial. */
#welcome-dialog {
  --welcome-muted: #afa3bb;
  --welcome-edge: #ffffff16;
  position: fixed;
  inset: 0;
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffff24;
  border-radius: 26px;
  color: #faf5f9;
  background: radial-gradient(ellipse at 0 0, #ff52980b, transparent 58%), linear-gradient(145deg, #211a28, #131017 70%);
  box-shadow: 0 32px 100px #000b, 0 0 0 1px #0004, inset 0 1px 0 #ffffff0c;
  scrollbar-color: #66566e #15111b;
  scrollbar-width: thin;
}
#welcome-dialog::backdrop { background: #08060dcb; backdrop-filter: blur(10px); }
#welcome-dialog[open] { animation: welcome-enter .24s ease-out both; }
.welcome-shell { position: relative; padding: 22px 26px 18px; }
.welcome-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.welcome-brand { color: #d9c9dd; font-size: 10px; font-weight: 600; letter-spacing: .21em; }
.welcome-close { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #ffffff18; border-radius: 50%; color: #c0b1c8; background: #ffffff05; transition: background .16s, border-color .16s; }
.welcome-close:hover { color: #fff0fb; border-color: #f28dc06b; background: #f56eb51a; }
.welcome-progress { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 9px 0 16px; }
.welcome-progress button { position: relative; flex: 1; height: 24px; max-width: 44px; padding: 0; border-radius: 8px; }
.welcome-progress button::after { content: ""; display: block; height: 3px; margin: 0 2px; border-radius: 6px; background: #423548; transition: background .18s, box-shadow .18s; }
.welcome-progress button:hover::after { background: #907888; }
.welcome-progress button[aria-current="step"]::after { background: #ff80b5; box-shadow: 0 0 12px #ff65bb24; }
.welcome-progress button.is-complete::after { background: #af628d; }
.welcome-heading { text-align: center; }
.welcome-kicker { color: #f994bf; font-size: 10px; font-weight: 500; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.welcome-heading h2 { margin: 11px 0 12px; font-size: clamp(24px, 5vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.welcome-heading > p:last-child { max-width: 385px; margin: auto; color: var(--welcome-muted); font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.welcome-stage { min-width: 0; margin-top: 24px; }
.welcome-stage > * { min-width: 0; }
.welcome-note { margin: 17px auto 0; color: var(--welcome-muted); font-size: 11px; line-height: 1.65; text-align: center; text-wrap: pretty; }
.welcome-note:empty { display: none; }
.welcome-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 23px; }
.welcome-footer > button { min-width: 0; }
.welcome-back,.welcome-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px; color: #c9b9d1; font-size: 12px; line-height: 1.4; border-radius: 8px; }
.welcome-back:hover,.welcome-link:hover { color: #ffd4ed; }
#welcome-dialog .welcome-next { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 11px 20px; margin-left: auto; border-radius: 12px; font-size: 13px; font-weight: 500; line-height: 1.2; color: #290d20; background: var(--action-fill); border: 1px solid #ffb8df70; box-shadow: inset 0 1px 0 #ffffff40, 0 4px 16px #f44fa315; }
#welcome-dialog .welcome-next:hover { background: var(--action-hover); }
.welcome-skip { display: block; margin: 9px auto 0; padding: 8px 12px; border-radius: 8px; color: #a99bb4; font-size: 11px; }
.welcome-skip:hover { color: #f6d8ea; }
#welcome-dialog button:focus-visible { outline: 2px solid #ff9cd7; outline-offset: 3px; }
#welcome-dialog button:disabled { opacity: .45; cursor: default; }

/* The preview is an example, not a counterfeit generated track. */
.welcome-record { position: relative; display: flex; align-items: center; gap: 17px; padding: 17px; overflow: hidden; border: 1px solid #ffffff1c; border-radius: 20px; background: radial-gradient(ellipse at 100% 0, #ff52980c, transparent 65%), #19131f; box-shadow: inset 0 1px 0 #fff0f013; }
.welcome-record > img { position: relative; z-index: 1; width: 104px; height: 112px; flex-shrink: 0; object-fit: cover; object-position: 44% center; border: 1px solid #efb9db3d; border-radius: 14px; filter: saturate(.82); }
.welcome-record-copy { position: relative; z-index: 1; min-width: 0; }
.welcome-record-copy > span { display: block; color: #f49fcf; font-size: 9px; line-height: 1.5; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.welcome-record-copy > strong { display: block; margin-top: 8px; font-size: 22px; line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
.welcome-record-copy > p { margin-top: 9px; color: #b9a9c3; font-size: 11px; line-height: 1.6; }
.welcome-disc { position: absolute; width: 170px; height: 170px; right: -73px; bottom: -78px; border-radius: 50%; opacity: .4; background: repeating-radial-gradient(circle, #cc8eaf20 0 1px, transparent 1px 5px), radial-gradient(circle, #f18abc 0 4%, #622650 4% 18%, #16111c 19%); box-shadow: 0 0 40px #e957b018; }
.welcome-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 48px; margin: 12px 5px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent); }
.welcome-wave i { display: block; flex: 1 1 3px; max-width: 5px; min-width: 2px; height: var(--h, 40%); border-radius: 6px; background: linear-gradient(#ffabd9, #f259af 65%, #ad4d9b); opacity: .86; transform-origin: center; animation: welcome-wave 2.6s ease-in-out infinite alternate; }
.welcome-wave i:nth-child(3n) { animation-delay: -.8s; }
.welcome-wave i:nth-child(3n+1) { animation-delay: -1.6s; }
.welcome-prompt { padding: 16px 18px; border: 1px solid var(--welcome-edge); border-radius: 16px; background: #0d0b12a6; text-align: left; }
.welcome-prompt-label { display: block; margin-bottom: 7px; color: #ab9bb8; font-size: 10px; line-height: 1.5; }
.welcome-prompt p { color: #eee5f0; font-size: 13px; line-height: 1.7; }
.welcome-flow { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; color: #f8a8d4; font-size: 11px; }
.welcome-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.welcome-tags button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 9px 14px; border: 1px solid #ffffff1a; border-radius: 12px; background: #ffffff05; color: #c9bdd3; font-size: 12px; line-height: 1.4; transition: border-color .16s, background .16s; }
.welcome-tags button:hover { border-color: #ef95c67d; background: #ffffff08; }
.welcome-tags button[aria-pressed="true"] { border-color: #ff83b470; color: #ffdaed; background: linear-gradient(130deg, #ff5f9e14, #ffffff03); box-shadow: inset 0 1px 0 #ffd8eb17; }
.welcome-genre-caption { min-height: 51px; margin: 17px 0 0; padding: 13px 16px; border-radius: 13px; color: #c7b7d0; background: #ffffff04; font-size: 12px; line-height: 1.65; text-align: center; }
.welcome-editor { position: relative; overflow: hidden; padding: 19px 18px; border: 1px solid var(--welcome-edge); border-radius: 18px; background: #0e0b14; }
.welcome-editor > p { color: #b7a4c2; font-size: 11px; line-height: 1.6; }
.welcome-timeline { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; height: 77px; margin: 12px 0; border-bottom: 1px solid #eac1e52b; }
.welcome-timeline > i { display: block; flex: 1; max-width: 7px; height: var(--h, 40%); border-radius: 4px; background: #b878b3; }
.welcome-selection { position: absolute; inset: 2px 32% 3px 38%; display: flex; align-items: flex-end; justify-content: center; padding: 4px; border: 1px solid #ff8ec7; border-radius: 6px; background: #ed5fa83b; color: #ffecf8; font-size: 9px; box-shadow: 0 0 20px #f967ab17; }
.welcome-selection::before,.welcome-selection::after { content: ""; position: absolute; top: 50%; width: 3px; height: 15px; background: #ffb7df; border-radius: 4px; transform: translateY(-50%); }
.welcome-selection::before { left: -2px; }.welcome-selection::after { right: -2px; }
.welcome-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.welcome-tool { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 9px; row-gap: 3px; padding: 13px 12px; border: 1px solid #ffffff12; border-radius: 14px; background: #ffffff04; }
.welcome-tool > svg { grid-row: 1 / 3; color: #ffa5d5; }
.welcome-tool > span { min-width: 0; color: #e9deed; font-size: 11px; line-height: 1.4; }
.welcome-tool > small { min-width: 0; color: #ad9bb9; font-size: 10px; line-height: 1.5; }
.welcome-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.welcome-gifts > button { min-width: 0; padding: 16px 8px; border: 1px solid #ffffff17; border-radius: 15px; background: #ffffff04; color: #d8c9df; font-size: 11px; line-height: 1.5; }
.welcome-gifts > button svg { display: block; margin: 0 auto 10px; color: #f3a1d2; }
.welcome-gifts > button:hover { border-color: #f08ec283; }
.welcome-gifts > button[aria-pressed="true"],.welcome-gifts > button.selected { border-color: #ff8ccba6; color: #ffe0f3; background: linear-gradient(145deg, #ff5c9c15, #ffffff03); }
.welcome-gifts + .welcome-prompt { margin-top: 12px; }
.welcome-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.welcome-plan { min-width: 0; padding: 15px 11px; border: 1px solid #ffffff15; border-radius: 15px; background: #ffffff04; text-align: center; overflow-wrap: break-word; }
.welcome-plan.featured { border-color: #ff89bb52; background: linear-gradient(145deg, #ff5f9e10, #ffffff03); box-shadow: inset 0 1px 0 #f9c6e617; }
.welcome-plan h3 { min-height: 32px; color: #ded0e4; font-size: 12px; line-height: 1.35; font-weight: 500; }
.welcome-plan > strong { display: block; margin-top: 9px; color: #fff5fa; font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.welcome-plan > span { display: block; margin-top: 4px; color: #f3a8d3; font-size: 10px; line-height: 1.5; }
.welcome-plan > small { display: block; margin-top: 9px; color: #a99bb4; font-size: 10px; line-height: 1.6; }
.welcome-ready { padding: 22px 20px; border: 1px solid #ffffff1b; border-radius: 20px; background: radial-gradient(ellipse at 50% 0, #ff4f9815, transparent 72%), #19131f; text-align: center; }
.welcome-ready > svg,.welcome-ready > span:first-child { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 15px; padding: 13px; border: 1px solid #ff95cb59; border-radius: 17px; color: #ffb2db; background: #f35aaa18; box-shadow: inset 0 1px 0 #ffe1f113, 0 0 32px #f354b014; }
.welcome-ready h3 { font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.03em; }
.welcome-ready p { margin-top: 9px; color: #b4a3c0; font-size: 12px; line-height: 1.7; }
.welcome-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 17px; padding: 13px 0 0; border-top: 1px solid #ffffff12; text-align: center; }
.welcome-summary > div { min-width: 0; padding: 0 7px; }
.welcome-summary > div + div { border-left: 1px solid #ffffff10; }
.welcome-summary strong { display: block; color: #f1deed; font-size: 16px; font-weight: 500; }
.welcome-summary small { display: block; margin-top: 4px; color: #af9cbd; font-size: 10px; line-height: 1.5; }

@keyframes welcome-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes welcome-wave { from { transform: scaleY(.65); opacity: .65; } to { transform: scaleY(1); opacity: .95; } }
@media (max-width: 420px) {
  #welcome-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; }
  .welcome-shell { padding: 17px 18px 12px; }
  .welcome-progress { margin: 7px 0 13px; gap: 2px; }
  .welcome-heading h2 { font-size: 25px; margin-top: 9px; }
  .welcome-heading > p:last-child { font-size: 12px; }
  .welcome-stage { margin-top: 19px; }
  .welcome-record { gap: 12px; padding: 12px; border-radius: 16px; }
  .welcome-record > img { width: 82px; height: 102px; border-radius: 12px; }
  .welcome-record-copy > strong { font-size: 20px; }
  .welcome-record-copy > p { font-size: 10px; }
  .welcome-tools { gap: 7px; }
  .welcome-tool { grid-template-columns: 21px 1fr; gap: 3px 7px; padding: 11px 8px; }
  .welcome-tool > svg { max-width: 20px; }
  .welcome-gifts,.welcome-plan-grid { gap: 6px; }
  .welcome-gifts > button { padding: 13px 6px; font-size: 10px; }
  .welcome-plan { padding: 13px 6px; border-radius: 12px; }
  .welcome-plan h3 { font-size: 11px; }
  .welcome-plan > strong { font-size: 20px; }
  .welcome-plan > small,.welcome-plan > span { font-size: 9px; }
  .welcome-footer { margin-top: 18px; gap: 8px; }
  #welcome-dialog .welcome-next { padding: 11px 15px; font-size: 12px; }
  .welcome-back,.welcome-link { font-size: 11px; }
}
@media (max-height: 650px) {
  .welcome-shell { padding-top: 14px; padding-bottom: 10px; }
  .welcome-progress { margin: 3px 0 9px; }
  .welcome-heading h2 { margin: 8px 0 9px; }
  .welcome-stage { margin-top: 17px; }
  .welcome-note { margin-top: 12px; }
  .welcome-footer { margin-top: 15px; }
  .welcome-wave { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  #welcome-dialog[open],.welcome-wave i { animation: none; }
  #welcome-dialog * { scroll-behavior: auto; transition: none; }
}
@media (forced-colors: active) {
  #welcome-dialog { background: Canvas; color: CanvasText; border: 2px solid CanvasText; box-shadow: none; }
  #welcome-dialog::backdrop { background: Canvas; opacity: .85; backdrop-filter: none; }
  .welcome-disc,.welcome-wave { display: none; }
  .welcome-progress button::after { background: ButtonText; }
  .welcome-progress button[aria-current="step"] { outline: 2px solid Highlight; }
  .welcome-tags button[aria-pressed="true"],.welcome-gifts button[aria-pressed="true"],.welcome-plan.featured { border-color: Highlight; outline: 1px solid Highlight; }
  #welcome-dialog .welcome-next { background: ButtonFace; color: ButtonText; border-color: ButtonText; box-shadow: none; }
  #welcome-dialog button:focus-visible { outline-color: Highlight; }
  .welcome-selection { border-color: Highlight; background: Canvas; }
  .welcome-record,.welcome-prompt,.welcome-tool,.welcome-editor,.welcome-plan,.welcome-ready { background: Canvas; border-color: CanvasText; box-shadow: none; }
}
