:root {
  --app-bg: #090b16;
  --app-bg-deep: #070812;
  --app-panel: #101426;
  --app-panel-raised: #151a30;
  --app-panel-soft: #1a2039;
  --app-ink: #f3f6ff;
  --app-muted: #9aa3c0;
  --app-subtle: #69718d;
  --app-border: rgba(178, 191, 255, 0.16);
  --app-border-strong: rgba(178, 191, 255, 0.28);
  --app-cyan: #8be8ff;
  --app-indigo: #9e8cff;
  --app-lime: #caff66;
  --app-danger: #ff8f9e;
  --app-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app-body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 2%, rgba(111, 95, 220, 0.14), transparent 30rem),
    radial-gradient(circle at 4% 42%, rgba(61, 191, 226, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--app-bg) 0%, var(--app-bg-deep) 100%);
}

.app-ambient,
.app-grid {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.app-ambient {
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.65;
}

.app-ambient-one {
  top: 10rem;
  right: -17rem;
  background: rgba(131, 105, 255, 0.18);
}

.app-ambient-two {
  bottom: -13rem;
  left: -14rem;
  background: rgba(49, 187, 221, 0.12);
}

.app-grid {
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(160, 174, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 174, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

.app-container {
  width: min(100% - 40px, 1220px);
  margin-inline: auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(175, 187, 255, 0.11);
  background: rgba(9, 11, 22, 0.78);
  backdrop-filter: blur(18px);
}

.app-nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--app-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.app-brand strong {
  color: var(--app-cyan);
  font-weight: 700;
}

.app-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--app-lime);
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.app-brand-mark svg {
  width: 20px;
  height: 20px;
}

.app-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.app-nav-link {
  position: relative;
  color: var(--app-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.app-nav-link::after {
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--app-cyan);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-nav-link:hover,
.app-nav-link.active {
  color: var(--app-ink);
}

.app-nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.app-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(202, 255, 102, 0.42);
  border-radius: 13px;
  color: var(--app-ink);
  background: rgba(202, 255, 102, 0.08);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.app-nav-download::after {
  display: none;
}

.app-nav-download svg {
  width: 16px;
  height: 16px;
  color: var(--app-lime);
}

.app-nav-download:hover {
  border-color: rgba(202, 255, 102, 0.78);
  color: var(--app-ink);
  background: rgba(202, 255, 102, 0.15);
  transform: translateY(-1px);
}

.app-header-download-row {
  display: flex;
  width: 90%;
  margin-inline: auto;
  padding: 0 0 12px;
}

.app-header-download {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 22px;
  border: 1px solid rgba(202, 255, 102, 0.42);
  border-radius: 15px;
  color: var(--app-ink);
  background: rgba(202, 255, 102, 0.08);
  box-shadow: none;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.app-header-download small {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 650;
}

.app-header-download svg {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: var(--app-lime);
}

.app-header-download:hover {
  background: rgba(202, 255, 102, 0.15);
  transform: translateY(-1px);
}

.app-history-button,
.app-outline-button,
.paste-button,
.clear-input,
.close-drawer,
.text-danger-button,
.format-option,
.quality-option {
  border: 0;
  color: inherit;
  background: transparent;
}

.app-history-button {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--app-border);
  border-radius: 13px;
  color: var(--app-muted);
  font-size: 13px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-history-button:hover,
.app-history-button[aria-expanded="true"] {
  border-color: rgba(139, 232, 255, 0.42);
  color: var(--app-cyan);
  background: rgba(139, 232, 255, 0.08);
}

.app-history-button svg {
  width: 18px;
  height: 18px;
}

.history-count {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  place-items: center;
  border-radius: 999px;
  color: var(--app-bg);
  background: var(--app-lime);
  font-size: 11px;
  font-weight: 800;
}

.app-main {
  position: relative;
  padding-top: 68px;
  padding-bottom: 62px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 104px);
  min-height: 690px;
}

.workspace-copy {
  padding: 22px 0 28px;
}

.app-eyebrow,
.section-kicker,
.state-kicker {
  margin: 0;
  color: var(--app-lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.app-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-eyebrow span,
.panel-status span,
.stage-badge-top span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-lime);
  box-shadow: 0 0 0 5px rgba(202, 255, 102, 0.1), 0 0 18px rgba(202, 255, 102, 0.65);
}

.workspace-copy h1 {
  max-width: 630px;
  margin: 21px 0 23px;
  color: var(--app-ink);
  font-size: clamp(58px, 7vw, 101px);
  font-weight: 700;
  letter-spacing: -0.085em;
  line-height: 0.88;
}

.workspace-copy h1 em {
  color: var(--app-cyan);
  font-style: normal;
  background: linear-gradient(100deg, var(--app-cyan), var(--app-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.workspace-lead {
  max-width: 510px;
  margin: 0 0 34px;
  color: var(--app-muted);
  font-size: 17px;
  line-height: 1.65;
}

.link-form {
  width: min(100%, 570px);
}

.link-form > label {
  display: block;
  margin-bottom: 9px;
  color: var(--app-ink);
  font-size: 13px;
  font-weight: 700;
}

.url-shell {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 9px 0 17px;
  border: 1px solid var(--app-border-strong);
  border-radius: 16px;
  background: rgba(20, 25, 47, 0.8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.url-shell:focus-within {
  border-color: rgba(139, 232, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(139, 232, 255, 0.1), 0 15px 40px rgba(0, 0, 0, 0.16);
}

.url-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 11px;
  color: var(--app-cyan);
}

.url-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--app-ink);
  background: transparent;
  font-size: 15px;
}

.url-shell input::placeholder {
  color: var(--app-subtle);
}

.paste-button {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--app-lime);
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.paste-button:hover {
  color: var(--app-bg);
  background: var(--app-lime);
}

.clear-input {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: 2px;
  border-radius: 50%;
  color: var(--app-muted);
  font-size: 22px;
  line-height: 1;
}

.clear-input:hover {
  color: var(--app-ink);
  background: rgba(255, 255, 255, 0.08);
}

.app-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(202, 255, 102, 0.55);
  border-radius: 14px;
  color: #10130b;
  background: var(--app-lime);
  box-shadow: 0 10px 28px rgba(202, 255, 102, 0.13);
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.app-primary-button svg {
  width: 19px;
  height: 19px;
}

.app-primary-button:hover:not(:disabled) {
  background: #d6ff8b;
  box-shadow: 0 14px 34px rgba(202, 255, 102, 0.22);
  transform: translateY(-2px);
}

.app-primary-button:active:not(:disabled) {
  transform: translateY(0);
}

.app-primary-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.analyze-button {
  width: 100%;
  margin-top: 13px;
}

.form-hint {
  min-height: 21px;
  margin: 10px 0 0;
  color: var(--app-subtle);
  font-size: 12px;
}

.form-hint.error {
  color: var(--app-danger);
}

.source-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
}

.source-pills > span:not(.source-label) {
  padding: 6px 9px;
  border: 1px solid rgba(178, 191, 255, 0.14);
  border-radius: 999px;
  color: var(--app-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 700;
}

.source-label {
  margin-right: 4px;
  color: var(--app-subtle);
  font-size: 12px;
  font-weight: 700;
}

.workspace-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}

.stage-orbit {
  position: absolute;
  border: 1px solid rgba(139, 232, 255, 0.15);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.stage-orbit-one {
  width: 690px;
  height: 300px;
}

.stage-orbit-two {
  width: 520px;
  height: 250px;
  border-color: rgba(158, 140, 255, 0.16);
  transform: rotate(35deg);
}

.stage-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(178, 191, 255, 0.2);
  border-radius: 12px;
  color: var(--app-muted);
  background: rgba(19, 24, 46, 0.9);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.24);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.stage-badge-top {
  top: 12px;
  right: -8px;
}

.stage-badge-bottom {
  bottom: 18px;
  left: -10px;
}

.stage-badge-bottom span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  color: var(--app-cyan);
  background: rgba(139, 232, 255, 0.12);
  font-size: 13px;
}

.stage-badge-bottom span svg,
.floating-app-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

.download-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(179, 194, 255, 0.22);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(23, 29, 54, 0.98), rgba(12, 16, 31, 0.98));
  box-shadow: var(--app-shadow), 0 0 80px rgba(109, 92, 238, 0.12);
}

.panel-topbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(179, 194, 255, 0.13);
  background: rgba(10, 13, 27, 0.5);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-subtle);
}

.window-dots span:first-child {
  background: var(--app-cyan);
}

.panel-title {
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 800;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--app-subtle);
  font-size: 11px;
}

.panel-status span {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 12px rgba(202, 255, 102, 0.6);
}

.panel-content {
  display: flex;
  min-height: 535px;
  flex-direction: column;
  padding: 34px 30px 30px;
}

.panel-state {
  display: flex;
  min-height: 470px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 23px;
  place-items: center;
  border: 1px solid rgba(139, 232, 255, 0.26);
  border-radius: 19px;
  color: var(--app-cyan);
  background: linear-gradient(145deg, rgba(139, 232, 255, 0.14), rgba(158, 140, 255, 0.1));
}

.state-icon svg {
  width: 28px;
  height: 28px;
}

.state-icon-error {
  border-color: rgba(255, 143, 158, 0.32);
  color: var(--app-danger);
  background: rgba(255, 143, 158, 0.1);
  font-size: 26px;
  font-weight: 800;
}

.panel-state h2,
.result-heading h2 {
  margin: 11px 0 13px;
  color: var(--app-ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.panel-state h2 span,
.result-heading h2 span,
.how-heading-row h2 span {
  color: var(--app-cyan);
}

.panel-state > p:not(.state-kicker),
.result-state p,
.loading-state > p:not(.state-kicker),
.error-state > p:not(.state-kicker) {
  max-width: 360px;
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.65;
}

.state-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 9px 12px;
  border: 1px solid rgba(202, 255, 102, 0.2);
  border-radius: 11px;
  color: var(--app-lime);
  background: rgba(202, 255, 102, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.state-note span {
  color: var(--app-subtle);
  font-size: 11px;
}

.loading-state,
.error-state {
  align-items: center;
  text-align: center;
}

.loading-ring {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border: 2px solid rgba(139, 232, 255, 0.18);
  border-top-color: var(--app-cyan);
  border-right-color: var(--app-indigo);
  border-radius: 50%;
  animation: app-spin 850ms linear infinite;
}

.loading-line {
  width: min(100%, 260px);
  height: 5px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(178, 191, 255, 0.12);
}

.loading-line span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-cyan), var(--app-indigo));
  animation: app-loading 1.35s ease-in-out infinite;
}

.app-outline-button {
  min-height: 46px;
  margin-top: 27px;
  padding: 0 18px;
  border: 1px solid var(--app-border-strong);
  border-radius: 12px;
  color: var(--app-ink);
  font-size: 13px;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease;
}

.app-outline-button:hover {
  border-color: var(--app-cyan);
  background: rgba(139, 232, 255, 0.09);
}

.result-state {
  width: 100%;
}

.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.result-heading h2 {
  font-size: clamp(30px, 3vw, 39px);
}

.platform-tag {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(139, 232, 255, 0.3);
  border-radius: 999px;
  color: var(--app-cyan);
  background: rgba(139, 232, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.media-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 9px 0 24px;
  padding: 10px;
  border: 1px solid rgba(178, 191, 255, 0.13);
  border-radius: 16px;
  background: rgba(9, 12, 25, 0.4);
}

.media-thumb-wrap {
  position: relative;
  width: 100px;
  height: 68px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 232, 255, 0.2), rgba(158, 140, 255, 0.25));
}

.media-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--app-cyan);
  font-size: 20px;
}

.media-copy {
  min-width: 0;
}

.media-copy h3 {
  overflow: hidden;
  margin: 0 0 3px;
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-copy p {
  overflow: hidden;
  margin: 0 0 5px;
  color: var(--app-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-duration {
  color: var(--app-subtle);
  font-size: 11px;
}

.format-section,
.quality-section {
  margin-top: 18px;
}

.format-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 800;
}

.format-caption {
  color: var(--app-subtle);
  font-size: 11px;
  font-weight: 600;
}

.format-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(178, 191, 255, 0.13);
  border-radius: 13px;
  background: rgba(7, 9, 19, 0.42);
}

.format-switch.suno-options {
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 7px;
}

.format-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.format-switch.suno-options .format-option {
  justify-content: flex-start;
  min-height: 46px;
  padding: 0 14px;
  border-color: rgba(178, 191, 255, 0.1);
  background: rgba(17, 22, 43, 0.48);
}

.format-switch.suno-options .format-option small {
  margin-left: auto;
}

.format-switch.suno-options .format-option.active {
  border-color: rgba(139, 232, 255, 0.3);
  background: linear-gradient(90deg, rgba(139, 232, 255, 0.13), rgba(202, 255, 102, 0.06));
}

.format-option[hidden],
.quality-section[hidden],
.format-availability-note[hidden] {
  display: none;
}

.format-availability-note {
  margin: 9px 2px 0;
  color: var(--app-subtle);
  font-size: 11px;
  line-height: 1.5;
}

.format-option small {
  color: var(--app-subtle);
  font-size: 10px;
  font-weight: 700;
}

.format-option.active {
  border-color: rgba(139, 232, 255, 0.24);
  color: var(--app-cyan);
  background: rgba(139, 232, 255, 0.11);
}

.format-option.active small {
  color: var(--app-cyan);
  opacity: 0.7;
}

.format-option:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.format-symbol {
  color: var(--app-lime);
  font-size: 14px;
}

.quality-list {
  display: grid;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 3px;
}

.quality-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  min-height: 47px;
  padding: 7px 10px;
  border: 1px solid rgba(178, 191, 255, 0.12);
  border-radius: 11px;
  color: var(--app-muted);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.quality-option:hover,
.quality-option.active {
  border-color: rgba(202, 255, 102, 0.4);
  color: var(--app-ink);
  background: rgba(202, 255, 102, 0.07);
}

.quality-radio {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(178, 191, 255, 0.32);
  border-radius: 50%;
}

.quality-option.active .quality-radio {
  border-color: var(--app-lime);
}

.quality-option.active .quality-radio::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-lime);
  content: "";
}

.quality-copy {
  min-width: 0;
}

.quality-copy strong,
.quality-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-copy strong {
  color: inherit;
  font-size: 12px;
}

.quality-copy span {
  margin-top: 1px;
  color: var(--app-subtle);
  font-size: 10px;
}

.download-now-button {
  width: 100%;
  min-height: 49px;
  margin-top: 21px;
  font-size: 13px;
}

.download-status {
  min-height: 18px;
  margin: 9px 0 0 !important;
  color: var(--app-lime) !important;
  font-size: 11px !important;
  text-align: center;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(178, 191, 255, 0.15);
  border-radius: 18px;
  background: rgba(178, 191, 255, 0.1);
}

.quick-strip > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 90px;
  padding: 17px 21px;
  background: rgba(14, 18, 36, 0.72);
}

.quick-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(139, 232, 255, 0.22);
  border-radius: 10px;
  color: var(--app-cyan);
  background: rgba(139, 232, 255, 0.08);
  font-size: 17px;
  font-weight: 800;
}

.quick-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

.quick-strip strong,
.quick-strip small {
  display: block;
}

.quick-strip strong {
  color: var(--app-ink);
  font-size: 13px;
}

.quick-strip small {
  margin-top: 3px;
  color: var(--app-subtle);
  font-size: 11px;
}

.how-section-app {
  margin-top: 105px;
  padding: 42px 0 24px;
  border-top: 1px solid rgba(178, 191, 255, 0.12);
}

.how-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 14px 0 31px;
}

.how-heading-row h2 {
  margin: 0;
  color: var(--app-ink);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.how-heading-row p {
  max-width: 300px;
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.6;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.how-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  min-height: 150px;
  padding: 21px;
  border: 1px solid rgba(178, 191, 255, 0.14);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(22, 27, 51, 0.85), rgba(13, 16, 31, 0.75));
}

.how-steps article > span {
  color: var(--app-lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.how-steps h3 {
  margin: 0 0 7px;
  color: var(--app-ink);
  font-size: 15px;
}

.how-steps p {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.55;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 23px;
  padding-bottom: 34px;
  border-top: 1px solid rgba(178, 191, 255, 0.1);
  color: var(--app-subtle);
  font-size: 12px;
}

.app-footer a {
  color: var(--app-cyan);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

/* Keep the working surface balanced on tablets and compact desktop windows. */
@media (min-width: 721px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(390px, 1fr);
    gap: 24px;
  }

  .workspace-copy h1 {
    font-size: clamp(52px, 7vw, 72px);
  }

  .workspace-lead {
    font-size: 15px;
  }

  .download-panel {
    min-height: 560px;
  }

  .panel-content {
    min-height: 505px;
    padding: 28px 24px 24px;
  }

  .panel-state {
    min-height: 440px;
  }
}

@media (min-width: 721px) {
  .workspace-grid {
    min-height: 625px;
  }

  .workspace-stage {
    min-height: 600px;
  }
}

.floating-app-download {
  display: inline-flex;
  position: fixed;
  z-index: 15;
  right: 22px;
  bottom: max(20px, env(safe-area-inset-bottom));
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(202, 255, 102, 0.45);
  border-radius: 17px;
  color: var(--app-ink);
  background: rgba(16, 20, 38, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 34px rgba(202, 255, 102, 0.1);
  backdrop-filter: blur(17px);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.floating-app-download:hover {
  border-color: rgba(202, 255, 102, 0.8);
  background: rgba(24, 31, 52, 0.96);
  transform: translateY(-3px);
}

.floating-app-phone {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(139, 232, 255, 0.32);
  border-radius: 12px;
  color: var(--app-cyan);
  background: linear-gradient(145deg, rgba(139, 232, 255, 0.17), rgba(158, 140, 255, 0.16));
}

.floating-app-phone svg {
  width: 22px;
  height: 22px;
}

.floating-app-copy {
  display: grid;
  gap: 1px;
  padding-right: 5px;
}

.floating-app-copy strong {
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 850;
}

.floating-app-copy small {
  color: var(--app-muted);
  font-size: 10px;
}

.floating-app-arrow {
  display: grid;
  place-items: center;
  color: var(--app-lime);
  font-weight: 700;
}

.history-panel {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  display: flex;
  width: min(100%, 430px);
  height: 100dvh;
  flex-direction: column;
  border-left: 1px solid rgba(178, 191, 255, 0.2);
  background: #0d1121;
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.34);
  transform: translateX(102%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 260ms ease;
}

.history-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(4, 6, 13, 0.7);
  backdrop-filter: blur(4px);
}

.history-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 31px 27px 24px;
  border-bottom: 1px solid rgba(178, 191, 255, 0.12);
}

.history-panel-header h2 {
  margin: 7px 0 0;
  color: var(--app-ink);
  font-size: 28px;
  letter-spacing: -0.05em;
}

.close-drawer {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: var(--app-muted);
  font-size: 23px;
  line-height: 1;
}

.close-drawer:hover {
  color: var(--app-ink);
  background: rgba(255, 255, 255, 0.07);
}

.history-panel-body {
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  padding: 22px 27px;
}

.history-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--app-subtle);
  font-size: 13px;
  text-align: center;
}

.history-empty span {
  display: block;
  margin-bottom: 8px;
  color: var(--app-cyan);
  font-size: 30px;
}

.history-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(178, 191, 255, 0.13);
  border-radius: 14px;
  background: rgba(23, 29, 54, 0.65);
}

.history-item-thumb {
  display: grid;
  width: 58px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  color: var(--app-cyan);
  background: linear-gradient(135deg, rgba(139, 232, 255, 0.15), rgba(158, 140, 255, 0.2));
  font-size: 16px;
}

.history-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-item-copy {
  min-width: 0;
}

.history-item-copy strong,
.history-item-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-copy strong {
  color: var(--app-ink);
  font-size: 12px;
}

.history-item-copy span {
  margin-top: 4px;
  color: var(--app-subtle);
  font-size: 10px;
}

.history-item a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--app-cyan);
  text-decoration: none;
  font-size: 16px;
}

.history-item a:hover {
  background: rgba(139, 232, 255, 0.1);
}

.history-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 27px 27px;
  border-top: 1px solid rgba(178, 191, 255, 0.12);
  color: var(--app-subtle);
  font-size: 11px;
}

.text-danger-button {
  color: var(--app-danger);
  font-size: 12px;
  font-weight: 800;
}

.text-danger-button:hover {
  text-decoration: underline;
}

.app-skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--app-bg);
  background: var(--app-lime);
  transform: translateY(-150%);
}

.app-skip-link:focus {
  transform: translateY(0);
}

@keyframes app-spin {
  to { transform: rotate(360deg); }
}

@keyframes app-loading {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(260%); }
}

@media (max-width: 1060px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1fr);
    gap: 42px;
  }

  .workspace-copy h1 {
    font-size: clamp(58px, 7vw, 82px);
  }

  .workspace-lead {
    font-size: 16px;
  }

  .stage-badge-top {
    right: -4px;
  }

  .stage-badge-bottom {
    left: -4px;
  }
}

@media (max-width: 720px) {
  .app-header {
    position: relative;
  }

  .app-nav-wrap {
    min-height: 70px;
  }

  .app-nav {
    gap: 18px;
  }

  .app-nav-link {
    font-size: 13px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
  }

  .workspace-copy {
    padding-top: 25px;
  }

  .workspace-copy h1 {
    max-width: 650px;
    font-size: clamp(60px, 13vw, 94px);
  }

  .workspace-lead {
    max-width: 600px;
  }

  .link-form {
    max-width: 600px;
  }

  .workspace-stage {
    min-height: 640px;
  }

  .quick-strip {
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  .app-container {
    width: min(100% - 28px, 1220px);
  }

  .app-nav-wrap {
    gap: 12px;
  }

  .app-brand {
    font-size: 13px;
  }

  .app-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 0;
  }

  .app-nav {
    gap: 0;
  }

  .app-nav-link:not(.active) {
    display: none;
  }

  .app-nav-link.active {
    margin-right: 4px;
    color: var(--app-cyan);
    font-size: 12px;
  }

  .app-history-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }

  .app-history-button svg {
    width: 16px;
    height: 16px;
  }

  .app-main {
    padding-top: 33px;
    padding-bottom: 40px;
  }

  .workspace-copy h1 {
    margin-top: 17px;
    margin-bottom: 20px;
    font-size: clamp(55px, 16vw, 76px);
  }

  .workspace-lead {
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 1.55;
  }

  .url-shell {
    min-height: 58px;
    padding-left: 13px;
  }

  .url-icon {
    width: 19px;
    height: 19px;
    margin-right: 8px;
  }

  .url-shell input {
    font-size: 14px;
  }

  .paste-button {
    padding-inline: 9px;
    font-size: 12px;
  }

  .source-pills {
    margin-top: 28px;
  }

  .source-label {
    width: 100%;
    margin-bottom: 1px;
  }

  .workspace-stage {
    min-height: 0;
    padding-top: 35px;
    padding-bottom: 30px;
  }

  .download-panel {
    min-height: 555px;
    border-radius: 22px;
  }

  .panel-topbar {
    padding-inline: 16px;
  }

  .panel-content {
    min-height: 500px;
    padding: 27px 20px 22px;
  }

  .panel-state {
    min-height: 460px;
  }

  .panel-state h2,
  .result-heading h2 {
    font-size: 36px;
  }

  .stage-orbit-one {
    width: 510px;
    height: 220px;
  }

  .stage-orbit-two {
    width: 400px;
    height: 190px;
  }

  .stage-badge {
    font-size: 10px;
  }

  .stage-badge-top {
    top: 12px;
    right: -2px;
  }

  .stage-badge-bottom {
    bottom: 5px;
    left: -2px;
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }

  .quick-strip > div {
    min-height: 72px;
  }

  .how-section-app {
    margin-top: 55px;
    padding-top: 32px;
  }

  .how-heading-row {
    display: block;
    margin-top: 11px;
  }

  .how-heading-row h2 {
    margin-bottom: 16px;
    font-size: 46px;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .how-steps article {
    min-height: 0;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 25px;
  }

  .history-panel-header,
  .history-panel-body,
  .history-panel-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .floating-app-download {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 5px 8px 5px 6px;
    border-radius: 15px;
  }

  .floating-app-phone {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .floating-app-copy small {
    display: none;
  }
}

/* The main workspace uses the exact phone treatment from the APK download page. */
.workspace-floating-phone {
  position: absolute;
  z-index: 4;
  top: 34px;
  right: -180px;
  width: 306px;
  height: 590px;
  pointer-events: none;
  filter: drop-shadow(15px 22px 28px rgba(0, 0, 0, 0.35));
}

.workspace-floating-phone .phone {
  position: relative;
  z-index: 2;
  width: 286px;
  padding: 9px;
  border: 1px solid rgba(206, 214, 255, 0.29);
  border-radius: 39px;
  background: linear-gradient(145deg, #303a61, #11162b 34%, #080b18 90%);
  box-shadow: 22px 28px 62px rgba(0, 0, 0, 0.5), -10px -14px 40px rgba(161, 142, 255, 0.12);
  transform: rotate(5deg);
  animation: workspace-phone-float 7s ease-in-out infinite;
}

.workspace-floating-phone .phone::after {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  pointer-events: none;
  content: "";
}

.workspace-floating-phone .phone-speaker {
  position: absolute;
  z-index: 4;
  top: 17px;
  left: 50%;
  width: 66px;
  height: 5px;
  border-radius: 20px;
  background: rgba(2, 5, 12, 0.82);
  transform: translateX(-50%);
}

.workspace-floating-phone .phone-screen {
  position: relative;
  min-height: 548px;
  overflow: hidden;
  padding: 5px;
  border-radius: 31px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 232, 255, 0.11), transparent 35%),
    linear-gradient(165deg, #121a35, #0d1123 62%, #0b0e1c);
}

.workspace-floating-phone .phone-flow-video {
  display: block;
  width: 100%;
  height: 538px;
  border-radius: 26px;
  object-fit: contain;
}

.workspace-floating-phone .phone-header,
.workspace-floating-phone .phone-brand,
.workspace-floating-phone .phone-input,
.workspace-floating-phone .format-row,
.workspace-floating-phone .download-preview,
.workspace-floating-phone .phone-footer,
.workspace-floating-phone .footer-item {
  display: flex;
}

.workspace-floating-phone .phone-header {
  align-items: center;
  justify-content: space-between;
  color: #b9c3de;
  font-size: 0.63rem;
}

.workspace-floating-phone .phone-brand {
  align-items: center;
  gap: 5px;
  font-weight: 760;
}

.workspace-floating-phone .tiny-mark {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(202, 255, 102, 0.44);
  border-radius: 6px;
  color: var(--app-lime);
  font-size: 0.72rem;
  line-height: 1;
}

.workspace-floating-phone .phone-time {
  color: #737e9c;
}

.workspace-floating-phone .phone-greeting {
  margin-top: 48px;
  color: #a4aecb;
  font-size: 0.82rem;
  line-height: 1.28;
}

.workspace-floating-phone .phone-greeting strong {
  color: #f6f8ff;
  font-size: 1.28rem;
  letter-spacing: -0.05em;
}

.workspace-floating-phone .phone-input {
  min-height: 48px;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 0 10px;
  border: 1px solid rgba(139, 232, 255, 0.2);
  border-radius: 13px;
  color: #7582a5;
  background: rgba(8, 11, 26, 0.55);
  font-size: 0.65rem;
}

.workspace-floating-phone .play-glyph {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--app-cyan);
  background: rgba(139, 232, 255, 0.14);
  font-size: 0.55rem;
}

.workspace-floating-phone .paste-label {
  margin-left: auto;
  color: var(--app-lime);
  font-size: 0.6rem;
  font-weight: 800;
}

.workspace-floating-phone .phone-section-label {
  margin-top: 28px;
  color: #717d9f;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-floating-phone .format-row {
  gap: 5px;
  margin-top: 10px;
}

.workspace-floating-phone .format-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.59rem;
  font-weight: 780;
}

.workspace-floating-phone .format-chip span {
  font-size: 0.66rem;
}

.workspace-floating-phone .format-video {
  color: var(--app-lime);
  background: rgba(202, 255, 102, 0.12);
}

.workspace-floating-phone .format-audio {
  color: #c9beff;
  background: rgba(158, 140, 255, 0.15);
}

.workspace-floating-phone .format-wave {
  color: var(--app-cyan);
  background: rgba(139, 232, 255, 0.12);
}

.workspace-floating-phone .download-preview {
  align-items: center;
  gap: 9px;
  margin-top: 29px;
  padding: 9px;
  border: 1px solid rgba(186, 199, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.workspace-floating-phone .preview-thumb {
  display: grid;
  width: 45px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #e4e9ff;
  background: linear-gradient(145deg, rgba(139, 232, 255, 0.22), transparent), linear-gradient(135deg, #313a78, #1b2447);
  font-size: 0.68rem;
}

.workspace-floating-phone .preview-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-floating-phone .preview-copy strong {
  overflow: hidden;
  color: #e8ecff;
  font-size: 0.61rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-floating-phone .preview-copy span {
  color: #7581a0;
  font-size: 0.55rem;
}

.workspace-floating-phone .preview-arrow {
  margin-left: auto;
  color: var(--app-lime);
  font-size: 1rem;
}

.workspace-floating-phone .phone-footer {
  position: absolute;
  right: 15px;
  bottom: 18px;
  left: 15px;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid rgba(186, 199, 255, 0.1);
}

.workspace-floating-phone .footer-item {
  align-items: center;
  flex-direction: column;
  gap: 2px;
  color: #65708d;
  font-size: 0.54rem;
}

.workspace-floating-phone .footer-item > span {
  font-size: 0.82rem;
}

.workspace-floating-phone .footer-item.active {
  color: var(--app-lime);
}

@keyframes workspace-phone-float {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-13px) rotate(3deg); }
}

@media (min-width: 721px) and (max-width: 980px) {
  .workspace-floating-phone {
    top: 34px;
    right: 28px;
    width: 306px;
    height: 590px;
    transform: none;
  }

  .workspace-floating-phone .phone {
    width: 286px;
  }
}

@media (max-width: 720px) {
  .workspace-stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .workspace-stage .stage-orbit,
  .workspace-stage .stage-badge {
    display: none;
  }

  .workspace-stage .download-panel {
    order: 1;
  }

  .workspace-floating-phone {
    position: relative;
    top: auto;
    right: auto;
    display: grid;
    width: 100%;
    height: 520px;
    order: 2;
    place-items: start center;
    transform: none;
  }

  .workspace-floating-phone .phone {
    width: 255px;
  }

  .workspace-floating-phone .phone-screen {
    min-height: 485px;
  }
}

@media (max-width: 720px) {
  .workspace-grid {
    gap: 10px;
  }

  .workspace-copy {
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .workspace-copy h1 {
    margin-top: 14px;
    margin-bottom: 16px;
    font-size: clamp(50px, 14vw, 64px);
  }

  .workspace-lead {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.48;
  }

  .source-pills {
    margin-top: 19px;
  }

  .workspace-stage {
    padding-top: 17px;
    padding-bottom: 18px;
  }

  .download-panel {
    min-height: 455px;
  }

  .panel-content {
    min-height: 400px;
    padding: 22px 18px 18px;
  }

  .panel-state {
    min-height: 355px;
  }

  .panel-state h2,
  .result-heading h2 {
    font-size: 32px;
  }
}

/* Keep every desktop/tablet width in the same form-first workspace layout.
   This also covers Chrome's "Desktop site" viewport and wide PC screens. */
@media (min-width: 721px) {
  .app-container {
    width: 90%;
    max-width: none;
  }

  .app-nav-wrap {
    min-height: 68px;
  }

  .workspace-grid {
    display: block;
    min-height: 0;
  }

  .workspace-copy {
    display: flex;
    flex-direction: column;
    padding: 26px 0 13px;
  }

  .link-form {
    order: 3;
    width: 100%;
    max-width: none;
    margin: 0 0 27px;
  }

  .link-form > label {
    margin-bottom: 8px;
  }

  .url-shell,
  .analyze-button {
    width: 100%;
  }

  .url-shell {
    min-height: 64px;
  }

  .analyze-button {
    min-height: 58px;
    margin-top: 12px;
  }

  .app-eyebrow {
    order: 0;
  }

  .workspace-copy h1 {
    order: 1;
    max-width: 700px;
    margin-top: 16px;
    font-size: clamp(56px, 8vw, 78px);
  }

  .workspace-lead {
    order: 2;
    max-width: 620px;
    margin-bottom: 20px;
  }

  .source-pills {
    order: 4;
    margin-top: 15px;
  }

  .workspace-stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 22px 0 30px;
  }

  .workspace-stage .stage-orbit,
  .workspace-stage .stage-badge {
    display: none;
  }

  .download-panel {
    order: 1;
    width: 100%;
    min-height: 520px;
  }

  .workspace-floating-phone {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    display: grid;
    width: 100%;
    height: 590px;
    order: 2;
    place-items: start center;
    transform: none;
  }

  .workspace-floating-phone .phone {
    width: 286px;
  }

  .app-download-promo {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* App promotion: a compact product moment below the working surface. */
.app-download-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  min-height: 410px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(178, 191, 255, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 45%, rgba(139, 232, 255, 0.22), transparent 14rem),
    radial-gradient(circle at 61% 0%, rgba(158, 140, 255, 0.28), transparent 20rem),
    linear-gradient(118deg, #151a31 0%, #1c1d44 57%, #10283a 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28), 0 0 90px rgba(125, 111, 255, 0.09);
}

.app-download-promo::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(178, 191, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(178, 191, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(90deg, black, transparent 75%);
  opacity: 0.42;
  pointer-events: none;
}

.promo-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 50px 46px;
}

.promo-copy h2 {
  max-width: 520px;
  margin: 17px 0 15px;
  color: var(--app-ink);
  font-size: clamp(38px, 5vw, 65px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.promo-copy h2 span {
  background: linear-gradient(100deg, var(--app-cyan), var(--app-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-copy > p:not(.app-eyebrow) {
  max-width: 430px;
  margin: 0 0 25px;
  color: #b5bed9;
  font-size: 15px;
  line-height: 1.6;
}

.promo-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 61px;
  padding: 8px 15px 8px 9px;
  border: 1px solid rgba(202, 255, 102, 0.72);
  border-radius: 15px;
  color: #10130b;
  background: var(--app-lime);
  box-shadow: 0 13px 28px rgba(202, 255, 102, 0.16);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.promo-button:hover {
  background: #d6ff8b;
  box-shadow: 0 16px 34px rgba(202, 255, 102, 0.24);
  transform: translateY(-2px);
}

.promo-button > svg {
  width: 18px;
  height: 18px;
  margin-left: 4px;
}

.promo-button-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: var(--app-lime);
  background: #121827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.promo-button-icon svg {
  width: 22px;
  height: 22px;
}

.promo-button-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.promo-button-copy strong {
  font-size: 13px;
  font-weight: 850;
}

.promo-button-copy small {
  color: rgba(16, 19, 11, 0.65);
  font-size: 11px;
  font-weight: 700;
}

.promo-phone-art {
  position: relative;
  min-height: 410px;
}

.promo-art-orbit {
  position: absolute;
  border: 1px solid rgba(139, 232, 255, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.promo-art-orbit-one {
  top: 58px;
  right: -84px;
  width: 590px;
  height: 220px;
  transform: rotate(-23deg);
}

.promo-art-orbit-two {
  top: 97px;
  right: 8px;
  width: 425px;
  height: 190px;
  border-color: rgba(202, 255, 102, 0.21);
  transform: rotate(30deg);
}

.promo-phone-device {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 112px;
  width: 214px;
  height: 388px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 34px;
  background: linear-gradient(145deg, #b7c5dc, #36405e 30%, #10172a 70%, #596780);
  box-shadow: 21px 29px 40px rgba(2, 6, 16, 0.42), -6px -5px 28px rgba(139, 232, 255, 0.16);
  transform: rotate(7deg);
}

.promo-phone-device::after {
  position: absolute;
  top: 110px;
  right: -4px;
  width: 3px;
  height: 55px;
  border-radius: 999px;
  background: #8c9ab4;
  content: "";
}

.promo-phone-camera {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  width: 64px;
  height: 17px;
  border-radius: 0 0 12px 12px;
  background: #101522;
  transform: translateX(-50%);
}

.promo-phone-screen {
  display: flex;
  position: relative;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 25px 15px 13px;
  border-radius: 27px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 232, 255, 0.19), transparent 10rem),
    linear-gradient(160deg, #111a31 0%, #0b0f1f 65%);
}

.promo-screen-top,
.promo-screen-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-screen-top {
  color: #aab5d2;
  font-size: 8px;
  font-weight: 800;
}

.promo-screen-top span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f2f6ff;
  font-size: 9px;
}

.promo-screen-top i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(202, 255, 102, 0.75);
  border-radius: 4px;
  background: rgba(202, 255, 102, 0.18);
}

.promo-screen-greeting {
  margin: 40px 0 17px;
  color: #f2f6ff;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.promo-screen-greeting strong {
  color: var(--app-cyan);
  font-weight: 750;
}

.promo-screen-input {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 35px;
  padding: 0 8px;
  border: 1px solid rgba(139, 232, 255, 0.28);
  border-radius: 9px;
  color: #8e99b7;
  background: rgba(27, 36, 65, 0.75);
  font-size: 8px;
  white-space: nowrap;
}

.promo-screen-input > span {
  color: var(--app-cyan);
  font-size: 11px;
}

.promo-screen-input b {
  margin-left: auto;
  color: var(--app-lime);
  font-size: 8px;
}

.promo-screen-label {
  margin: 27px 0 8px;
  color: #6f7b9d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-screen-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(178, 191, 255, 0.17);
  border-radius: 10px;
  background: rgba(23, 30, 57, 0.8);
}

.promo-screen-thumb {
  display: grid;
  width: 35px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  color: var(--app-cyan);
  background: linear-gradient(135deg, rgba(139, 232, 255, 0.2), rgba(158, 140, 255, 0.26));
  font-size: 11px;
}

.promo-screen-item > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.promo-screen-item strong {
  overflow: hidden;
  color: #f2f6ff;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-screen-item small {
  color: #7b87a9;
  font-size: 7px;
}

.promo-screen-item > b {
  margin-left: auto;
  color: var(--app-lime);
  font-size: 13px;
}

.promo-screen-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(178, 191, 255, 0.1);
  color: #65708d;
  font-size: 8px;
  font-weight: 700;
}

.promo-screen-bottom .active {
  color: var(--app-cyan);
}

.promo-float-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(178, 191, 255, 0.2);
  border-radius: 10px;
  color: #bdc7df;
  background: rgba(12, 17, 34, 0.87);
  box-shadow: 0 15px 30px rgba(2, 6, 16, 0.3);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.promo-float-label span {
  color: var(--app-lime);
  font-size: 10px;
}

.promo-float-label-top {
  top: 54px;
  right: 43px;
}

.promo-float-label-bottom {
  right: 233px;
  bottom: 62px;
}

.promo-float-label-bottom span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  color: var(--app-bg);
  background: var(--app-lime);
  font-size: 11px;
}

@media (max-width: 720px) {
  .app-download-promo {
    grid-template-columns: 1fr 0.85fr;
  }

  .promo-copy {
    padding: 38px 30px;
  }

  .promo-phone-device {
    right: 56px;
    transform: rotate(6deg) scale(0.9);
    transform-origin: bottom right;
  }

  .promo-float-label-top {
    right: 12px;
  }

  .promo-float-label-bottom {
    right: 156px;
  }
}

@media (max-width: 620px) {
  .app-download-promo {
    display: block;
    min-height: 660px;
    margin-top: 31px;
    border-radius: 24px;
  }

  .promo-copy {
    padding: 31px 23px 0;
  }

  .promo-copy h2 {
    font-size: 46px;
  }

  .promo-copy > p:not(.app-eyebrow) {
    font-size: 14px;
  }

  .promo-button {
    width: 100%;
  }

  .promo-phone-art {
    min-height: 365px;
  }

  .promo-phone-device {
    top: 4px;
    right: 50%;
    width: 184px;
    height: 333px;
    transform: translateX(50%) rotate(6deg);
  }

  .promo-phone-screen {
    padding: 23px 13px 11px;
  }

  .promo-screen-greeting {
    margin-top: 33px;
    font-size: 21px;
  }

  .promo-float-label-top {
    top: 17px;
    right: 14px;
  }

  .promo-float-label-bottom {
    right: auto;
    bottom: 25px;
    left: 14px;
  }

  .promo-art-orbit-one {
    top: 53px;
    right: -210px;
    width: 500px;
    height: 190px;
  }

  .promo-art-orbit-two {
    top: 74px;
    right: -120px;
    width: 390px;
    height: 170px;
  }
}

/* Keep the download promotion's phone inside its own card. */
.app-download-promo {
  min-height: 620px;
}

.app-download-promo .promo-phone-art {
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: hidden;
}

.app-download-promo .promo-phone-art .workspace-floating-phone {
  position: relative;
  top: auto;
  right: auto;
  display: grid;
  width: 100%;
  height: 620px;
  place-items: center;
  transform: none;
}

.app-download-promo .promo-phone-art .workspace-floating-phone .phone {
  width: 286px;
}

.app-download-promo .promo-float-label-top {
  top: 77px;
  right: 38px;
}

.app-download-promo .promo-float-label-bottom {
  right: 222px;
  bottom: 78px;
}

@media (max-width: 720px) {
  .app-download-promo {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-download-promo .promo-phone-art {
    min-height: 590px;
  }

  .app-download-promo .promo-phone-art .workspace-floating-phone {
    height: 590px;
  }

  .app-download-promo .promo-phone-art .workspace-floating-phone .phone {
    width: 255px;
  }

  .app-download-promo .promo-phone-art .workspace-floating-phone .phone-screen {
    min-height: 485px;
  }

  .app-download-promo .promo-phone-art .workspace-floating-phone .phone-flow-video {
    height: 475px;
  }

  .app-download-promo .promo-float-label-top {
    top: 33px;
    right: 14px;
  }

  .app-download-promo .promo-float-label-bottom {
    right: auto;
    bottom: 36px;
    left: 14px;
  }
}

@media (max-width: 620px) {
  .app-header-download-row {
    width: 90%;
    padding-bottom: 10px;
  }

  .app-header-download {
    min-height: 44px;
  }

  .app-header-download small {
    display: none;
  }

  .app-nav-link.app-nav-download {
    display: inline-flex;
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }

  .app-nav-link.app-nav-download svg {
    width: 14px;
    height: 14px;
  }

  .app-download-promo {
    min-height: 0;
  }

  .app-download-promo .promo-phone-art {
    min-height: 540px;
  }

  .app-download-promo .promo-phone-art .workspace-floating-phone {
    height: 540px;
  }
}
