:root {
  --bg: #0a0f1f;
  --bg-accent: #101936;
  --surface: rgba(14, 23, 48, 0.76);
  --surface-strong: rgba(20, 31, 63, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7ff;
  --muted: #98a7cc;
  --cyan: #73e0ff;
  --teal: #4cf2c6;
  --gold: #ffc46b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(115, 224, 255, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(76, 242, 198, 0.18), transparent 22%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 52%, #060913 100%);
  overflow: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  pointer-events: none;
  opacity: 0.32;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hidden {
  display: none !important;
}

.hero-card {
  width: min(100%, 960px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  animation: rise 0.7s ease;
}

.project-shell {
  width: min(100%, 1120px);
  display: grid;
  gap: 18px;
}

.project-topbar {
  display: block;
}

.project-headings {
  flex: 1;
}

.project-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-topbar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 18, 39, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(115, 224, 255, 0.24);
  background: rgba(18, 30, 60, 0.9);
}

.pipeline-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    rgba(10, 18, 39, 0.78);
  box-shadow: var(--shadow);
}

.upload-card,
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pipeline-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pipeline-copy h2,
.step-box h3 {
  margin: 0;
  font-size: 28px;
}

.pipeline-copy p,
.step-box p,
.pipeline-meta {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.pipeline-meta {
  width: 100%;
  max-width: 320px;
  text-align: left;
}

.video-status-label,
.video-status-meta {
  display: block;
}

.video-file-name {
  display: block;
  margin-top: 2px;
  color: var(--text);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.video-status-meta {
  margin-top: 4px;
}

.video-upload-progress-card {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(7, 13, 29, 0.46);
}

.video-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-upload-progress-head strong {
  font-size: 15px;
}

.video-upload-progress-head span {
  color: var(--cyan);
  font-weight: 800;
}

.video-upload-progress-bar {
  position: relative;
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.video-upload-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(115, 224, 255, 0.92), rgba(76, 242, 198, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
  box-shadow: 0 0 18px rgba(115, 224, 255, 0.22);
  transition: width 0.25s ease;
}

.video-upload-progress-card .video-file-name {
  margin-top: 10px;
}

.video-upload-progress-card .video-status-meta {
  color: var(--muted);
}

.pipeline-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: 280px;
}

.hidden-file-input {
  display: none;
}

.action-button {
  min-width: 210px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.action-button:hover {
  transform: translateY(-2px);
}

.primary-action {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #03111c;
}

.muted-action {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.download-action {
  background: linear-gradient(135deg, var(--gold), #ff8f5a);
  color: #1f1007;
}

.render-log-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 13, 29, 0.72);
  overflow-anchor: none;
}

.render-log-status {
  font-weight: 800;
  color: var(--text);
}

.render-log-text {
  margin: 10px 0 0;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
  font: inherit;
  line-height: 1.55;
  overflow-anchor: none;
}

.step-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 28, 58, 0.7);
}

.template-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(115, 224, 255, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(115, 224, 255, 0.16), transparent 28%),
    rgba(18, 28, 58, 0.88);
}

.template-selector-button {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  min-height: 172px;
  padding: 18px;
  border: 1px solid rgba(115, 224, 255, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 46%),
    rgba(7, 13, 29, 0.36);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.template-selector-copy {
  flex: 1;
  display: grid;
  gap: 10px;
}

.template-selector-empty {
  border: 1px dashed rgba(115, 224, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 46%),
    rgba(7, 13, 29, 0.28);
}

.template-selector-arrow {
  flex-shrink: 0;
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  font-size: 24px;
  font-weight: 800;
}

.template-support-note {
  color: var(--gold);
  line-height: 1.55;
}

.template-card h3 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.template-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.template-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.template-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(115, 224, 255, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.template-flow span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.template-picker-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.template-picker-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(9, 16, 34, 0.82);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.template-picker-card:hover {
  transform: translateY(-1px);
  border-color: rgba(115, 224, 255, 0.26);
}

.template-picker-card.active-template-option {
  border-color: rgba(115, 224, 255, 0.38);
  box-shadow: 0 16px 36px rgba(115, 224, 255, 0.12);
}

.template-picker-card h3 {
  margin: 0;
  font-size: 24px;
}

.template-picker-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.template-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.template-picker-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auto-progress-card {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 13, 29, 0.58);
}

.auto-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-progress-head strong {
  font-size: 15px;
}

.auto-progress-head span {
  color: var(--cyan);
  font-weight: 800;
}

.auto-progress-bar {
  position: relative;
  height: 12px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.auto-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(115, 224, 255, 0.92), rgba(76, 242, 198, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
  box-shadow: 0 0 24px rgba(115, 224, 255, 0.24);
  transition: width 0.35s ease;
}

.auto-progress-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.advanced-steps {
  display: grid;
  gap: 18px;
}

.mode-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.mode-chip {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.mode-chip:hover {
  transform: translateY(-1px);
}

.mode-chip:disabled {
  transform: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.active-mode {
  background: linear-gradient(135deg, rgba(115, 224, 255, 0.22), rgba(76, 242, 198, 0.18));
  box-shadow: 0 10px 24px rgba(115, 224, 255, 0.14);
}

.mode-description {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.step-generate-button {
  margin-top: 16px;
}

.prompt-plan-container {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.cycle-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 18, 39, 0.64);
}

.cycle-title {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(115, 224, 255, 0.12);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prompt-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.prompt-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(24, 37, 74, 0.72);
}

.prompt-card h4 {
  margin: 0 0 10px;
  font-size: 20px;
}

.prompt-card textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 10, 25, 0.72);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.prompt-card textarea[readonly] {
  outline: none;
}

.prompt-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.dual-prompt-grid {
  display: grid;
  gap: 10px;
}

.dual-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.asset-status-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.asset-result-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(7, 13, 29, 0.72);
}

.asset-status-completed {
  border-color: rgba(76, 242, 198, 0.28);
}

.asset-status-failed {
  border-color: rgba(255, 107, 107, 0.35);
}

.asset-result-copy {
  display: grid;
  gap: 4px;
}

.asset-result-copy strong {
  font-size: 14px;
}

.asset-result-copy span {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.asset-result-preview {
  display: grid;
  gap: 10px;
}

.asset-preview-image,
.asset-preview-video {
  width: 100%;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
}

.asset-open-link {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(115, 224, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  appearance: none;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(115, 224, 255, 0.14);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 0.95;
}

.hero-copy {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.status-panel > div,
.hint-box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.status-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 26px;
  border: 1px solid transparent;
  border-radius: 26px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
}

.menu-card.primary {
  background:
    radial-gradient(circle at top right, rgba(255, 196, 107, 0.22), transparent 25%),
    linear-gradient(160deg, rgba(115, 224, 255, 0.18), rgba(9, 17, 36, 0.95));
}

.menu-card.secondary {
  background:
    radial-gradient(circle at top right, rgba(76, 242, 198, 0.2), transparent 25%),
    linear-gradient(160deg, rgba(76, 242, 198, 0.12), rgba(9, 17, 36, 0.95));
}

.menu-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  font-weight: 700;
}

.menu-title {
  font-size: 24px;
  font-weight: 800;
}

.menu-description {
  max-width: 300px;
  color: var(--muted);
  line-height: 1.6;
}

.hint-box {
  margin-top: 18px;
  color: var(--gold);
}

.pages-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 13, 29, 0.72);
}

.pages-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pages-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.page-item,
.empty-pages {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.page-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
  animation: cardIn 0.45s ease both;
}

.page-item-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.page-item::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -20%;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: translateX(-220%) rotate(12deg);
  transition: transform 0.7s ease;
}

.page-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(115, 224, 255, 0.24);
  box-shadow: 0 18px 40px rgba(2, 10, 24, 0.38);
  background:
    radial-gradient(circle at top right, rgba(115, 224, 255, 0.12), transparent 32%),
    var(--surface-strong);
}

.page-item:hover::before {
  transform: translateX(420%) rotate(12deg);
}

.page-item strong {
  display: block;
  font-size: 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-item-subtitle {
  display: -webkit-box;
  margin-top: 6px;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-item-owner {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  color: rgba(115, 224, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.empty-pages {
  color: var(--muted);
}

.empty-pages {
  text-align: center;
}

.page-badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(115, 224, 255, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(115, 224, 255, 0.08);
  animation: badgePulse 2.2s ease-in-out infinite;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(2, 6, 16, 0.7);
  backdrop-filter: blur(10px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(100%, 520px);
  padding: 28px;
  max-height: min(88vh, 920px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 107, 0.14), transparent 25%),
    rgba(13, 22, 46, 0.96);
  box-shadow: var(--shadow);
}

.settings-modal-card {
  width: min(100%, 860px);
}

.modal-card h2 {
  margin: 10px 0 10px;
  font-size: 30px;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-name-input {
  width: 100%;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.settings-textarea {
  width: 100%;
  min-height: 320px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  resize: vertical;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}

.settings-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.settings-section-head {
  display: grid;
  gap: 6px;
}

.settings-section-head strong {
  font-size: 16px;
}

.settings-section-head span {
  color: var(--muted);
  line-height: 1.5;
}

.font-picker-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.font-picker-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(9, 16, 34, 0.78);
  cursor: pointer;
}

.active-font-card {
  border-color: rgba(115, 224, 255, 0.35);
  box-shadow: 0 16px 36px rgba(115, 224, 255, 0.12);
}

.font-picker-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
}

.font-picker-head {
  display: grid;
  gap: 4px;
}

.font-picker-head span {
  color: var(--muted);
  font-size: 12px;
}

.font-preview {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.page-name-input:focus {
  border-color: rgba(115, 224, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(115, 224, 255, 0.12);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.modal-button {
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.modal-button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.modal-button.solid {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #03111c;
}

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

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(115, 224, 255, 0.08),
      0 0 0 rgba(115, 224, 255, 0);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(115, 224, 255, 0.18),
      0 0 24px rgba(115, 224, 255, 0.14);
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .hero-card {
    padding: 22px;
    border-radius: 24px;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: start;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 22px 18px;
    border-radius: 20px;
  }

  .modal-card h2 {
    font-size: 22px;
  }

  .modal-copy {
    font-size: 15px;
  }

  .upload-card,
  .download-card {
    flex-direction: column;
    align-items: stretch;
  }

  .project-heading-row {
    align-items: center;
    gap: 12px;
  }

  .project-topbar-actions {
    width: auto;
    flex-direction: row;
    gap: 8px;
  }

  .status-panel,
  .actions-grid,
  .pipeline-row {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 180px;
  }

  .pipeline-actions {
    justify-items: stretch;
    min-width: 0;
  }

  .action-button {
    min-width: 0;
    width: 100%;
  }

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

  .template-selector-button {
    flex-direction: column;
  }

  .template-selector-arrow {
    align-self: flex-start;
  }

  .template-picker-head {
    flex-direction: column;
  }

  .page-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .font-picker-card {
    padding: 12px;
    border-radius: 16px;
  }

  .font-preview {
    font-size: 17px;
    line-height: 1.18;
  }
}
