:root {
  --bg: #050505;
  --panel: #0c0c0e;
  --panel-border: rgba(255, 255, 255, 0.06);
  --ink: #f5f5f5;
  --muted: #6f6f76;
  --muted-soft: #4a4a52;
  --accent: #2dd4bf;
  --accent-dim: rgba(45, 212, 191, 0.14);
  --accent-glow: rgba(45, 212, 191, 0.22);
  --live: #34d399;
  --beta: #fbbf24;
  --soon: #71717a;
  --radius-panel: 28px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --radius-input: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Kode Mono", ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 0% 100%, var(--accent-glow), transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(16, 185, 129, 0.1), transparent 52%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%),
    var(--bg);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1800px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.panel {
  padding: 28px 28px 24px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 18%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 28px 80px rgba(0, 0, 0, 0.55);
}

header.topbar {
  margin-bottom: 28px;
}

.topbar-rail {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 6px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
    #101012;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  overflow: hidden;
}

.topbar-accent {
  flex: 0 0 5px;
  align-self: stretch;
  min-height: 52px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #6ee7b7 0%, #34d399 100%);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.45);
}

.topbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 8px 14px 8px 12px;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #17171a 0%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.topbar-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.topbar-brand img {
  width: 18px;
  height: 18px;
}

.topbar-date {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-date span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.topbar-date span:last-child {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.1;
}

.topbar-time {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 4px 0 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: left;
  color: var(--ink);
  white-space: nowrap;
}

.topbar-trailing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.topbar-sep {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 28px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.1);
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(220px, 28vw);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #1a1a1e 0%, #141418 100%);
  color: var(--ink);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.topbar-user:hover {
  background: linear-gradient(180deg, #202024 0%, #18181c 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.topbar-user.is-logged-in {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.22);
}

#topbar-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-soft);
  box-shadow: none;
}

.topbar-user.is-logged-in .topbar-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fx-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 -4px 22px;
  padding: clamp(1rem, 2.5vw, 1.5rem) 0 clamp(1.5rem, 4vh, 2.5rem);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: #070708;
  --hero-dot-step: 24px;
  --hero-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='0.75' fill='%23ffffff' fill-opacity='0.2'/%3E%3C/svg%3E");
  background-image: var(--hero-dot);
  background-size: var(--hero-dot-step) var(--hero-dot-step);
  background-position: 0 0;
}

.fx-hero::before {
  content: none;
}

.fx-hero__layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.fx-hero-click {
  position: relative;
  z-index: 1;
  cursor: default;
}

.fx-hero-click__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  will-change: transform;
}

.fx-hero-click__badge::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.fx-hero-click.is-on .fx-hero-click__badge {
  opacity: 1;
  visibility: visible;
}

@media (hover: none), (pointer: coarse) {
  .fx-hero-click__badge {
    display: none;
  }
}

.fx-hero__xis {
  position: relative;
  width: 100%;
  height: clamp(12rem, 38vw, 28rem);
  margin: 0;
  border-radius: 12px;
  background-color: transparent;
}

.fx-hero__xis::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--hero-dot);
  background-size: var(--hero-dot-step) var(--hero-dot-step);
  background-position: 0 0;
}

.fx-hero__xis-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.apps-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.apps-toolbar .search {
  margin-top: 0;
  flex: 0 1 320px;
}

.search {
  position: relative;
  margin-top: 8px;
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-input);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  outline: none;
}

.search input::placeholder {
  color: var(--muted-soft);
}

.search input:focus {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: var(--muted);
}

.section-title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: lowercase;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 300px;
  padding: 0;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  animation: appCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--card-delay, 0s);
  transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

@keyframes appCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.app-card:hover .app-card-body,
.app-card:focus-visible .app-card-body {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.app-card.is-soon {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-card.is-soon:hover {
  transform: none;
}

.app-card.tone-white {
  background: #101015;
  color: #f5f5f5;
  box-shadow: none;
}

.app-card.tone-dark {
  background: #101015;
  box-shadow: none;
}

.app-card.tone-teal {
  background: #101015;
  box-shadow: none;
}

.app-card.tone-blue {
  background: #101015;
  box-shadow: none;
}

.app-card-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 148px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.app-card.tone-white .app-card-stage {
  background: rgba(0, 0, 0, 0.05);
}

.app-card.tone-blue .app-card-stage {
  background: #0061ff;
}

.app-card-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.app-card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  font-weight: 600;
}

.app-card-upload {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 14px 12px;
}

.app-card-upload-scene {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 118px;
}

.app-card-upload-zone,
.app-card-upload-file,
.app-card-upload-progress,
.app-card-upload-done {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
}

.app-card-upload-zone {
  padding: 10px;
  border: 1.5px dashed rgba(163, 255, 18, 0.35);
  border-radius: 12px;
  background: rgba(163, 255, 18, 0.04);
  animation:
    uploadZoneShow 7s ease-in-out infinite,
    uploadZonePulse 2.4s ease-in-out infinite;
}

.app-card-upload-zone-icon {
  width: 22px;
  height: 22px;
  color: rgba(163, 255, 18, 0.75);
}

.app-card-upload-zone-text {
  font-size: 0.58rem;
  font-weight: 600;
  color: #d4d4d8;
}

.app-card-upload-zone-ext {
  font-size: 0.5rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.app-card-upload-file {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  justify-self: center;
  width: fit-content;
  max-width: calc(100% - 8px);
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a2240 0%, #1a1528 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(36px, -42px) scale(0.88) rotate(4deg);
  animation: uploadFileDrag 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.app-card-upload-file-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(167, 139, 250, 0.22);
  color: #c4b5fd;
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.app-card-upload-file-name {
  font-size: 0.52rem;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card-upload-progress {
  gap: 8px;
  align-content: center;
  padding: 0 4px;
  opacity: 0;
  animation: uploadProgressShow 7s ease-in-out infinite;
}

.app-card-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.52rem;
  font-weight: 600;
  color: #a1a1aa;
}

.app-card-upload-pct {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: inherit;
}

.app-card-upload-pct::after {
  content: "0%";
  animation: uploadPctText 7s linear infinite;
}

@keyframes uploadPctText {
  0%,
  42% {
    content: "0%";
  }
  46% {
    content: "18%";
  }
  52% {
    content: "36%";
  }
  58% {
    content: "54%";
  }
  64% {
    content: "72%";
  }
  70%,
  100% {
    content: "100%";
  }
}

.app-card-upload-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.app-card-upload-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf 0%, #a3ff12 100%);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.45);
  animation: uploadBarFill 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.app-card-upload-done {
  gap: 5px;
  opacity: 0;
  transform: scale(0.94);
  animation: uploadDoneShow 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.app-card-upload-check {
  width: 28px;
  height: 28px;
  color: #34d399;
}

.app-card-upload-done-label {
  font-size: 0.54rem;
  font-weight: 600;
  color: #86efac;
}

.app-card-upload-preview {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #fafafa;
  letter-spacing: -0.03em;
}

@keyframes uploadZoneShow {
  0%,
  16% {
    opacity: 1;
  }
  38%,
  100% {
    opacity: 0;
  }
}

@keyframes uploadZonePulse {
  0%,
  100% {
    border-color: rgba(163, 255, 18, 0.28);
    background: rgba(163, 255, 18, 0.03);
  }
  50% {
    border-color: rgba(163, 255, 18, 0.58);
    background: rgba(163, 255, 18, 0.07);
  }
}

@keyframes uploadFileDrag {
  0%,
  14% {
    opacity: 0;
    transform: translate(40px, -48px) scale(0.82) rotate(6deg);
  }
  20% {
    opacity: 1;
  }
  32% {
    opacity: 1;
    transform: translate(0, 2px) scale(1) rotate(0deg);
  }
  36%,
  40% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  44%,
  100% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.94) rotate(-2deg);
  }
}

@keyframes uploadProgressShow {
  0%,
  40% {
    opacity: 0;
    transform: translateY(6px);
  }
  44%,
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  78%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes uploadBarFill {
  0%,
  42% {
    width: 0%;
  }
  72% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

@keyframes uploadDoneShow {
  0%,
  70% {
    opacity: 0;
    transform: scale(0.92);
  }
  76%,
  90% {
    opacity: 1;
    transform: scale(1);
  }
  96%,
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

.app-card-motion-flow {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 14px 12px;
}

.app-card-motion-scene {
  position: relative;
  width: 100%;
  max-width: 210px;
  height: 128px;
}

.motion-upload-zone,
.motion-upload-file,
.motion-upload-progress,
.motion-preview-stage,
.motion-export,
.motion-export-done {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
}

.motion-upload-zone {
  padding: 10px;
  border: 1.5px dashed rgba(45, 212, 191, 0.38);
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.05);
  animation:
    motionUploadZoneShow 9s ease-in-out infinite,
    motionUploadZonePulse 2.4s ease-in-out infinite;
}

.motion-upload-icon {
  width: 20px;
  height: 20px;
  color: rgba(45, 212, 191, 0.85);
}

.motion-upload-text {
  font-size: 0.54rem;
  font-weight: 600;
  color: #d4d4d8;
}

.motion-upload-file {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: calc(100% - 8px);
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2e2b 0%, #101816 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(34px, -40px) scale(0.88) rotate(5deg);
  animation: motionUploadFileDrag 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.motion-upload-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(45, 212, 191, 0.2);
  color: #5eead4;
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.motion-upload-name {
  font-size: 0.5rem;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.motion-upload-progress {
  gap: 8px;
  align-content: center;
  padding: 0 6px;
  opacity: 0;
  animation: motionUploadProgressShow 9s ease-in-out infinite;
}

.motion-upload-progress-head,
.motion-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.5rem;
  font-weight: 600;
  color: #a1a1aa;
}

.motion-upload-pct::after,
.motion-export-pct::after {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.motion-upload-pct::after {
  content: "0%";
  animation: motionUploadPctText 9s linear infinite;
}

.motion-upload-track,
.motion-export-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.motion-upload-bar,
.motion-export-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf 0%, #a3ff12 100%);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.35);
}

.motion-upload-bar {
  animation: motionUploadBarFill 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.motion-preview-stage {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  opacity: 0;
  animation: motionPreviewShow 9s ease-in-out infinite;
}

.motion-preview-stage .app-card-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 128px;
}

.motion-preview-stage .app-card-fallback {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.motion-export {
  gap: 8px;
  align-content: center;
  padding: 0 6px;
  opacity: 0;
  animation: motionExportShow 9s ease-in-out infinite;
}

.motion-export-pct::after {
  content: "0%";
  animation: motionExportPctText 9s linear infinite;
}

.motion-export-bar {
  animation: motionExportBarFill 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.motion-export-done {
  gap: 5px;
  opacity: 0;
  transform: scale(0.94);
  animation: motionExportDoneShow 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.motion-export-check {
  width: 26px;
  height: 26px;
  color: #34d399;
}

.motion-export-label {
  font-size: 0.52rem;
  font-weight: 600;
  color: #86efac;
}

.motion-export-file {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fafafa;
}

@keyframes motionUploadZoneShow {
  0%,
  14% {
    opacity: 1;
  }
  32%,
  100% {
    opacity: 0;
  }
}

@keyframes motionUploadZonePulse {
  0%,
  100% {
    border-color: rgba(45, 212, 191, 0.28);
    background: rgba(45, 212, 191, 0.04);
  }
  50% {
    border-color: rgba(45, 212, 191, 0.55);
    background: rgba(45, 212, 191, 0.08);
  }
}

@keyframes motionUploadFileDrag {
  0%,
  12% {
    opacity: 0;
    transform: translate(36px, -44px) scale(0.82) rotate(6deg);
  }
  18% {
    opacity: 1;
  }
  28% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  34%,
  100% {
    opacity: 0;
    transform: translate(0, 8px) scale(0.94);
  }
}

@keyframes motionUploadProgressShow {
  0%,
  28% {
    opacity: 0;
    transform: translateY(6px);
  }
  32%,
  38% {
    opacity: 1;
    transform: translateY(0);
  }
  44%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes motionUploadPctText {
  0%,
  32% {
    content: "0%";
  }
  38% {
    content: "100%";
  }
  100% {
    content: "100%";
  }
}

@keyframes motionUploadBarFill {
  0%,
  32% {
    width: 0%;
  }
  38% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

@keyframes motionPreviewShow {
  0%,
  38% {
    opacity: 0;
    transform: scale(0.96);
  }
  44%,
  56% {
    opacity: 1;
    transform: scale(1);
  }
  62%,
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes motionExportShow {
  0%,
  56% {
    opacity: 0;
    transform: translateY(6px);
  }
  60%,
  76% {
    opacity: 1;
    transform: translateY(0);
  }
  82%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes motionExportPctText {
  0%,
  60% {
    content: "0%";
  }
  66% {
    content: "24%";
  }
  70% {
    content: "48%";
  }
  74% {
    content: "72%";
  }
  78%,
  100% {
    content: "100%";
  }
}

@keyframes motionExportBarFill {
  0%,
  60% {
    width: 0%;
  }
  78% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

@keyframes motionExportDoneShow {
  0%,
  76% {
    opacity: 0;
    transform: scale(0.92);
  }
  82%,
  94% {
    opacity: 1;
    transform: scale(1);
  }
  98%,
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

.app-card-preview-flow {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 14px 12px;
}

.app-card-preview-scene {
  position: relative;
  width: 100%;
  max-width: 210px;
  height: 128px;
}

.preview-upload-zone,
.preview-upload-file,
.preview-specimen-stage,
.preview-specimen-lines {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
}

.preview-upload-zone {
  padding: 10px;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  animation:
    previewUploadZoneShow 8s ease-in-out infinite,
    previewUploadZonePulse 2.4s ease-in-out infinite;
}

.preview-upload-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.preview-upload-text {
  font-size: 0.54rem;
  font-weight: 600;
  color: #d4d4d8;
}

.preview-upload-ext {
  font-size: 0.48rem;
  color: var(--muted);
}

.preview-upload-file {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: calc(100% - 8px);
  padding: 6px 8px;
  border-radius: 0;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translate(34px, -40px) scale(0.88) rotate(5deg);
  animation: previewUploadFileDrag 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.preview-upload-badge {
  padding: 2px 5px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fafafa;
  font-size: 0.44rem;
  font-weight: 700;
}

.preview-upload-name {
  font-size: 0.5rem;
  font-weight: 600;
  color: #f4f4f5;
}

.preview-specimen-stage {
  border-radius: 0;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  opacity: 0;
  animation: previewSpecimenAaShow 8s ease-in-out infinite;
}

.preview-specimen-stage .app-card-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 128px;
}

.preview-specimen-lines {
  gap: 8px;
  padding: 10px 12px;
  align-content: center;
  opacity: 0;
  animation: previewSpecimenLinesShow 8s ease-in-out infinite;
}

.preview-line {
  margin: 0;
  width: 100%;
  font-size: 0.54rem;
  line-height: 1.3;
  color: #d4d4d8;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
}

.preview-line.line-1 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  animation: previewLineIn 8s ease-in-out infinite;
}

.preview-line.line-2 {
  animation: previewLineIn 8s ease-in-out 0.12s infinite;
}

.preview-line.line-3 {
  color: var(--muted);
  animation: previewLineIn 8s ease-in-out 0.24s infinite;
}

@keyframes previewUploadZoneShow {
  0%,
  14% { opacity: 1; }
  30%,
  100% { opacity: 0; }
}

@keyframes previewUploadZonePulse {
  0%,
  100% { border-color: rgba(255, 255, 255, 0.18); }
  50% { border-color: rgba(255, 255, 255, 0.38); }
}

@keyframes previewUploadFileDrag {
  0%,
  12% { opacity: 0; transform: translate(36px, -44px) scale(0.82) rotate(6deg); }
  18% { opacity: 1; }
  28% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  34%,
  100% { opacity: 0; transform: translate(0, 8px) scale(0.94); }
}

@keyframes previewSpecimenAaShow {
  0%,
  32% { opacity: 0; transform: scale(0.96); }
  38%,
  52% { opacity: 1; transform: scale(1); }
  58%,
  100% { opacity: 0; transform: scale(0.98); }
}

@keyframes previewSpecimenLinesShow {
  0%,
  52% { opacity: 0; }
  58%,
  88% { opacity: 1; }
  94%,
  100% { opacity: 0; }
}

@keyframes previewLineIn {
  0%,
  56% { opacity: 0; transform: translateY(8px); }
  64%,
  84% { opacity: 1; transform: translateY(0); }
  92%,
  100% { opacity: 0; transform: translateY(-4px); }
}

.app-card-fx {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 14px 12px;
}

.app-card-fx-stage {
  width: 100%;
  max-width: 200px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0b;
  overflow: hidden;
}

.app-card-fx-stage--dither {
  padding: 0;
  background: #0a0a0b;
}

.app-card-fx--full {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.app-card-fx--full .app-card-fx-stage--dither {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 148px;
  border: 0;
}

.app-card-fx-stage--dither .app-card-dither-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.app-card-fx-stage--halftone {
  background-image: radial-gradient(circle, #fafafa 18%, transparent 20%);
  background-size: 10px 10px;
  animation: fxHalftoneZoom 3s ease-in-out infinite;
}

.app-card-fx-stage--palette {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1, #5f27cd, #ff9ff3);
  animation: fxPaletteSlide 4s ease-in-out infinite;
}

.app-card-fx-stage--grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  animation: fxGridPulse 2.4s ease-in-out infinite;
}

.app-card-fx-stage--font-script {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a0a0b;
}

.font-script-soon-mark {
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(250, 250, 250, 0.42);
}

.app-card-fx-stage--motion-text {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a0a0b;
}

.motion-text-fade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.03em;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fafafa;
}

.motion-text-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: motionTextFadeUp 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.09s);
}

@keyframes motionTextFadeUp {
  0%,
  100% {
    opacity: 0;
    transform: translateY(12px);
  }

  14%,
  52% {
    opacity: 1;
    transform: translateY(0);
  }

  66% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.app-card-fx-stage--kinetic {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fafafa;
}

.app-card-fx-stage--kinetic::after {
  content: "Aa";
  animation: fxKinetic 2.8s ease-in-out infinite;
}

.app-card-fx-title {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes fxHalftoneZoom {
  0%, 100% { background-size: 10px 10px; opacity: 0.75; }
  50% { background-size: 14px 14px; opacity: 1; }
}

@keyframes fxPaletteSlide {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(35deg); }
}

@keyframes fxGridPulse {
  0%, 100% { opacity: 0.65; background-size: 16px 16px; }
  50% { opacity: 1; background-size: 18px 18px; }
}

@keyframes fxKinetic {
  0%, 100% { transform: translateX(-8px) scaleX(0.9); letter-spacing: -0.05em; }
  50% { transform: translateX(8px) scaleX(1.1); letter-spacing: 0.12em; }
}

.app-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.app-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.app-card-body h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.app-card-body p {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card.tone-white .app-card-body p {
  color: #5c5c62;
}

.app-card.tone-teal .app-card-body p {
  color: #8ebdb5;
}

@media (prefers-reduced-motion: reduce) {
  .app-card {
    animation: none;
  }

  .app-card-upload-zone,
  .app-card-upload-file,
  .app-card-upload-progress,
  .app-card-upload-done,
  .app-card-upload-bar,
  .app-card-upload-pct::after,
  .motion-upload-zone,
  .motion-upload-file,
  .motion-upload-progress,
  .motion-upload-bar,
  .motion-upload-pct::after,
  .motion-preview-stage,
  .motion-export,
  .motion-export-bar,
  .motion-export-pct::after,
  .motion-export-done {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .motion-text-char {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preview-upload-zone,
  .preview-upload-file,
  .preview-specimen-stage,
  .preview-specimen-lines,
  .preview-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preview-upload-zone,
  .preview-upload-file,
  .preview-specimen-stage {
    display: none;
  }

  .preview-specimen-lines {
    display: grid;
  }

  .app-card-upload-zone {
    display: none;
  }

  .app-card-upload-file {
    display: none;
  }

  .app-card-upload-progress {
    display: grid;
  }

  .app-card-upload-bar {
    width: 100%;
  }

  .app-card-upload-done {
    display: none;
  }

  .app-card-upload-pct::after {
    content: "100%";
  }

  .motion-upload-zone,
  .motion-upload-file,
  .motion-upload-progress,
  .motion-preview-stage,
  .motion-export {
    display: none;
  }

  .motion-export-done {
    display: grid;
  }

  .motion-export-file {
    display: inline-block;
  }
}

.app-card-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-card.tone-white .app-card-meta {
  background: #0a0a0a;
  color: #f5f5f5;
}

.app-card.tone-dark .app-card-meta,
.app-card.tone-teal .app-card-meta {
  background: rgba(255, 255, 255, 0.92);
  color: #0a0a0a;
}

.app-card-meta.beta {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

.app-card.tone-white .app-card-meta.beta,
.app-card.tone-dark .app-card-meta.beta,
.app-card.tone-teal .app-card-meta.beta {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

.app-card-meta.soon {
  background: rgba(113, 113, 122, 0.2);
  color: var(--soon);
}

.app-card.tone-white .app-card-meta.soon,
.app-card.tone-dark .app-card-meta.soon,
.app-card.tone-teal .app-card-meta.soon {
  background: rgba(113, 113, 122, 0.2);
  color: var(--soon);
}

.empty {
  display: none;
  padding: 36px 8px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.empty.is-visible {
  display: block;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.68rem;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1800px, calc(100% - 20px));
    padding-top: 16px;
  }

  .panel {
    padding: 20px 16px 18px;
    border-radius: 22px;
  }

  .topbar-rail {
    padding: 5px;
    border-radius: 16px;
  }

  .topbar-bar {
    gap: 10px;
    padding: 8px 10px;
    min-height: 48px;
  }

  .topbar-leading {
    gap: 8px;
  }

  .topbar-date span:last-child {
    display: none;
  }

  .topbar-time {
    font-size: 1.15rem;
    padding: 0 2px 0 0;
  }

  .topbar-user {
    max-width: min(160px, 34vw);
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .apps-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .apps-toolbar .search {
    flex: 1 1 auto;
    width: 100%;
  }

  .fx-hero__xis {
    height: clamp(10rem, 42vw, 16rem);
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app-card-body {
    padding: 14px;
  }

  footer {
    flex-direction: column;
  }
}
