@supports (view-transition-name: root) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: pageFadeOut 0.22s cubic-bezier(0.4, 0, 1, 1);
  }

  ::view-transition-new(root) {
    animation: pageFadeIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 20px 64px;
}

body.landing-mode .shell,
body.dashboard-mode .shell,
body.admin-surface-mode .shell,
body.task-new-mode .shell {
  max-width: none;
  width: 100%;
}

body.workspace-mode .shell {
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 10px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shell-shadow);
}

body.workspace-mode .nav {
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  backdrop-filter: none;
}

body.dashboard-mode .nav,
body.admin-surface-mode .nav,
body.task-new-mode .nav {
  position: sticky;
  top: 14px;
  z-index: 24;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Satoshi", "Noto Sans SC", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(24, 28, 38, 0.12));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: min(520px, 46vw);
}

.brand-wordmark {
  display: block;
  line-height: 1;
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.35;
  margin-top: 3px;
  font-weight: 500;
}

body.workspace-mode .brand {
  font-size: 16px;
  letter-spacing: 0.01em;
}

body.workspace-mode .brand-mark {
  width: 28px;
  height: 28px;
  filter: none;
}

body.workspace-mode .brand small {
  display: none;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

p,
li {
  line-height: 1.7;
}

.lede {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.82;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.page-stack {
  display: grid;
  gap: 22px;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.page-hero-copy {
  max-width: 760px;
}

.page-kicker {
  color: rgba(23, 25, 32, 0.54);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-hero-actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.stacked-panels {
  display: grid;
  gap: 18px;
}

.split-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(12px) scale(0.992);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(18px) scale(0.992);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 14px 12px 36px;
  }

  body.workspace-mode .shell {
    padding: 12px 12px 20px;
  }

  .panel,
  .support-card,
  .info-card {
    padding: 20px;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  body.workspace-mode .nav {
    align-items: stretch;
  }

  .page-hero,
  .split-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: start;
  }

  .kv {
    grid-template-columns: 1fr;
  }
}
