html:has(#studioWelcome[open]) { scrollbar-gutter: auto; }
body:has(#studioWelcome[open]) { overflow: hidden; }
#studioWelcome {
  position: fixed; inset: 0; margin: 0; padding: 0;
  width: 100%; height: 100%; max-width: none; max-height: none; overflow: auto; scrollbar-gutter: stable both-edges;
  color: #fafafa; color-scheme: dark; border: 0; border-radius: 0;
  isolation: isolate; backdrop-filter: none; -webkit-backdrop-filter: none;
  background: var(--studio-backdrop);
}
#studioWelcome::backdrop { background: transparent; backdrop-filter: none; }
.welcomeStage {
  --mark-width: min(48vw, 580px);
  --reveal-scale: 1.78;
  --logo-clearance: clamp(24px, 4.6svh, 46px);
  --lift: calc(clamp(56px, 10svh, 100px) + var(--logo-clearance));
  width: min(100%, 1600px); min-height: 100%; margin-inline: auto; position: relative;
  padding: 0 clamp(20px, 5vw, 80px) clamp(24px, 4vh, 56px);
}
.welcomeMast {
  position: absolute; top: clamp(14px, 2.6vh, 32px); inset-inline: clamp(20px, 5vw, 80px);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: var(--type-ui); font-variant-numeric: tabular-nums;
}
.welcomeMast > :first-child { font-weight: 650; }
.welcomeMast > :last-child { color: #cacaca; text-align: right; }
.welcomeHero {
  display: grid; justify-items: center; text-align: center;
  gap: calc(clamp(10px, 1.8svh, 22px) + var(--logo-clearance));
  /* The mark is 880 by 205. Anchor its centre independently of the task count. */
  padding-top: calc(50svh - var(--lift) - var(--mark-width) * 205 / 1760);
}
.welcomeLogoStage { width: var(--mark-width); }
.welcomeLogo { display: block; width: 100%; height: auto; color: #fafafa; }
[data-theme='day'] .welcomeLogo { color: #202020; }
#welcomeGreeting {
  min-width: 0; max-width: 100%; margin: 0; font-size: clamp(46px, 6.7vw, 102px);
  font-weight: 500; line-height: 1.04; letter-spacing: -.062em; overflow-wrap: anywhere;
}
#welcomeGreeting em {
  display: inline-block; max-width: 100%; font: italic 1.04em/1.02 Georgia, serif;
  letter-spacing: -.055em; text-transform: uppercase; color: var(--butter);
}
.welcomeContent {
  display: grid; justify-items: center; gap: clamp(14px, 2.1vh, 24px);
  margin: clamp(20px, 3svh, 42px) auto 0; max-width: 1000px;
}
.welcomeBrief {
  width: 100%; min-width: 0;
  padding: clamp(14px, 1.3vw, 20px); border-radius: 22px; border: 1px solid var(--edge);
  background: var(--pane); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
}
.welcomeBrief:not(:has(li:nth-child(2))) { max-width: 760px; }
#welcomeBriefTitle {
  display: flex; gap: 12px; align-items: center; margin: 0; padding-bottom: 12px;
  border-bottom: 1px solid var(--edge); font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 560; letter-spacing: -.045em; line-height: 1.1;
}
.welcomeCount {
  padding: 3px 9px; border: 1px solid var(--edge); border-radius: 20px;
  font-size: var(--type-body); font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.welcomeBrief ul {
  display: grid; column-gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 0;
  max-height: clamp(94px, 15svh, 174px); overflow-y: auto;
}
.welcomeBrief ul:has(li:nth-child(2)) { grid-template-columns: repeat(2, minmax(0,1fr)); }
.welcomeItem, .welcomeEmpty {
  display: flex; align-items: center; gap: 12px; margin: 0; min-width: 0; padding: 12px 8px;
}
.welcomeBrief li { display: flex; min-width: 0; }
.welcomeItem {
  width: 100%; color: inherit; background: transparent; font: inherit; text-align: start;
  cursor: pointer; border: 0; border-radius: 9px;
}
#welcomeBriefTitle + ul .welcomeItem:focus-visible { outline-offset: -2px; }
.welcomeItem:is(:hover, :focus-visible, .isOpening) {
  background: color-mix(in srgb, currentColor 9%, transparent);
  box-shadow: inset 3px 0 currentColor;
}
.welcomeBrief li:nth-child(n+3) { border-top: 1px solid var(--edge); }
.welcomeEmpty { font-size: 17px; }
.welcomeIcon {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px;
  border-radius: 50%; background: var(--lilac); color: #302a31;
}
.welcomeBrief li:nth-child(2) .welcomeIcon { background: var(--apricot); }
.welcomeBrief li:nth-child(3) .welcomeIcon { background: var(--ice); }
.welcomeSubject { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.welcomeSubject b, .welcomeSubject small { display: block; }
.welcomeSubject b { font-size: clamp(16px, 1.35vw, 21px); line-height: 1.22; }
.welcomeSubject small { margin-top: 3px; font-size: var(--type-ui); color: #cecece; }
.welcomeDue { max-width: 38%; font-size: var(--type-ui); font-weight: 600; color: var(--butter); text-align: right; }
.welcomeDue.late { color: #ffb5a8; }
.enterWorkspace {
  --entry-paper: #efefef; --entry-ink: #202020;
  display: inline-grid; place-items: center; min-height: 52px; min-width: 200px;
  padding: 10px 32px; border: 1px solid var(--entry-paper); border-radius: 100px;
  background: var(--entry-paper); color: var(--entry-ink); cursor: pointer;
  font: 600 19px/1.35 DM, sans-serif; letter-spacing: -.045em;
}
[data-theme="day"] .enterWorkspace { --entry-paper: #262626; --entry-ink: #fafafa; }
.enterWorkspace:is(:hover, .isOpening) { background: var(--studio-backdrop); color: var(--entry-paper); }
#studioWelcome button.enterWorkspace:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.entryLabel { display: inline-block; overflow: hidden; white-space: nowrap; }
.entryWord { display: inline-block; position: relative; }
#app:has(.deskOverview) { overflow-x: clip; }
#studioWelcome :focus-visible { outline: 2px solid var(--butter); outline-offset: 3px; }
@media (max-width: 700px) {
  .welcomeStage { --mark-width: 62vw; --reveal-scale: 1.42; padding-inline: 16px; }
  .welcomeMast { font-size: var(--type-small); inset-inline: 16px; }
  #welcomeGreeting { font-size: clamp(38px, 9.4vw, 64px); }
  #welcomeGreeting em { display: block; }
  .welcomeBrief ul:has(li:nth-child(2)) { grid-template-columns: minmax(0,1fr); }
  .welcomeBrief li + li { border-top: 1px solid var(--edge); }
  .welcomeBrief ul { max-height: clamp(115px, 20svh, 185px); }
  .welcomeBrief { padding: 14px; border-radius: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  #studioWelcome { --settle: cubic-bezier(.22,.7,.16,1); --dock-at: 1.9s; }
  .welcomeLogoStage > .welcomeLogo { animation: welcomeExposure 1.38s cubic-bezier(.31,.03,.19,1) backwards; }
  @keyframes welcomeExposure {
    from { clip-path: inset(48% 0 48%); opacity: 0; }
    24% { opacity: 1; }
    to { clip-path: inset(0); }
  }
  .welcomeLogoStage { animation: welcomeDock 1.22s var(--dock-at) var(--settle) backwards; }
  @keyframes welcomeDock {
    from { transform: translateY(var(--lift)) scale(var(--reveal-scale)); }
    to { transform: none; }
  }
  #welcomeGreeting { animation: greetingRise 1s calc(var(--dock-at) + .16s) var(--settle) backwards; }
  @keyframes greetingRise { from { opacity: 0; transform: translateY(40px); } }
  .welcomeBrief { animation: welcomeBriefIn .8s calc(var(--dock-at) + .43s) var(--settle) backwards; }
  @keyframes welcomeBriefIn { from { opacity: 0; transform: translateY(12px); } }
  .welcomeItem { transition: background-color .18s ease, box-shadow .18s ease; }
  .welcomeItem :is(.welcomeSubject, .welcomeIcon) { transition: transform .22s var(--settle); }
  .welcomeItem:is(:hover, :focus-visible) .welcomeSubject { transform: translateX(3px); }
  .welcomeItem:is(:hover, :focus-visible) .welcomeIcon { transform: scale(1.06) rotate(-5deg); }
  .enterWorkspace {
    animation: entryPulse 2.8s ease-in-out infinite;
    transition: background-color .24s, color .24s, transform .2s var(--settle);
  }
  @keyframes entryPulse { 0%, 100% { scale: 1; } 50% { scale: 1.045; } }
  .enterWorkspace:is(:hover,.isOpening) { animation-play-state: paused; }
  .entryWord { transition: transform .42s cubic-bezier(.25,.8,.22,1); }
  .entryWord + .entryWord { transition-delay: 45ms; }
  .entryWord::after {
    content: attr(data-word); position: absolute; top: 100%; left: 0; width: 100%;
    font-family: Georgia, serif; font-style: italic; font-weight: 500;
  }
  .enterWorkspace:is(:hover,.isOpening) .entryWord { transform: translateY(-100%); }
  .enterWorkspace:is(:active,.isOpening) { transform: scale(.965); }
}
