:root {
  --blue: #071f67;
  --blue-deep: #02113c;
  --blue-soft: #123ea8;
  --gold: #c9aa24;
  --gold-soft: #ebd164;
  --gold-pale: #fff1a8;
  --panel: linear-gradient(145deg, rgba(255, 249, 224, 0.98), rgba(231, 203, 93, 0.9));
  --panel-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 244, 191, 0.2));
  --text: #072569;
  --text-strong: #03174a;
  --muted: #6276ab;
  --shadow: 0 24px 56px rgba(0, 16, 58, 0.22);
  --shadow-soft: 0 16px 34px rgba(0, 20, 75, 0.09);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Bahnschrift", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,0.08), transparent 18%),
    linear-gradient(180deg, #001853 0%, #001234 100%);
}

.page {
  width: min(1120px, calc(100% - 220px));
  margin: 34px auto 46px;
}

.landing,
.account-panel,
.hero,
.work-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.44);
  box-shadow: var(--shadow);
}

.hero::before,
.work-panel::before,
.landing::before,
.account-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.1), transparent 26%, transparent 74%, rgba(0,28,99,0.04));
}

.landing {
  min-height: 74vh;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 20%),
    linear-gradient(180deg, rgba(255, 247, 213, 0.1), rgba(0, 25, 84, 0) 30%),
    linear-gradient(180deg, #001957 0%, #001233 100%);
  border: 1px solid rgba(255,255,255,0.12);
}

.landing-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: gridPulse 6s ease-in-out infinite;
}

.landing-grid-pulsefield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-grid-pulse {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  opacity: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.78), rgba(235, 209, 100, 0.18));
  box-shadow:
    0 0 18px rgba(235, 209, 100, 0.32),
    0 0 34px rgba(92, 150, 255, 0.18);
  animation: gridPulseNode 6.8s ease-in-out infinite;
}

.pulse-a { top: 18%; left: 22%; animation-delay: -0.6s; }
.pulse-b { top: 24%; left: 68%; animation-delay: -2.3s; }
.pulse-c { top: 44%; left: 54%; animation-delay: -4.4s; }
.pulse-d { top: 58%; left: 18%; animation-delay: -1.9s; }
.pulse-e { top: 72%; left: 74%; animation-delay: -5.1s; }
.pulse-f { top: 81%; left: 38%; animation-delay: -3.2s; }

.landing-grid::before,
.landing-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-grid::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(235, 209, 100, 0.38) 0, rgba(235, 209, 100, 0.14) 10px, transparent 22px),
    radial-gradient(circle at 74% 28%, rgba(92, 150, 255, 0.30) 0, rgba(92, 150, 255, 0.12) 12px, transparent 24px),
    radial-gradient(circle at 28% 72%, rgba(235, 209, 100, 0.30) 0, rgba(235, 209, 100, 0.10) 10px, transparent 22px),
    radial-gradient(circle at 82% 76%, rgba(92, 150, 255, 0.26) 0, rgba(92, 150, 255, 0.10) 10px, transparent 22px);
  opacity: 0.5;
  animation: gridHotspots 8s ease-in-out infinite alternate;
}

.landing-grid::after {
  background:
    radial-gradient(circle at 34% 16%, rgba(255,255,255,0.52) 0, transparent 16px),
    radial-gradient(circle at 62% 58%, rgba(235, 209, 100, 0.40) 0, transparent 14px),
    radial-gradient(circle at 12% 64%, rgba(255,255,255,0.38) 0, transparent 12px),
    radial-gradient(circle at 88% 38%, rgba(92, 150, 255, 0.34) 0, transparent 16px);
  opacity: 0;
  animation: gridBlink 5.6s steps(1, end) infinite;
}

.landing-starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-star,
.landing-meteor {
  position: absolute;
  display: block;
}

.landing-star {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 10px rgba(255,255,255,0.38);
  animation: starTwinkle 4.8s ease-in-out infinite;
}

.star-a { top: 14%; left: 18%; animation-delay: -0.8s; }
.star-b { top: 20%; left: 72%; width: 3px; height: 3px; animation-delay: -2.4s; }
.star-c { top: 34%; left: 86%; width: 5px; height: 5px; animation-delay: -1.2s; }
.star-d { top: 58%; left: 12%; width: 3px; height: 3px; animation-delay: -3.1s; }
.star-e { top: 66%; left: 68%; animation-delay: -1.9s; }
.star-f { top: 78%; left: 42%; width: 3px; height: 3px; animation-delay: -0.3s; }

.landing-meteor {
  width: 310px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(228,243,255,0.94) 8%, rgba(182,219,255,0.62) 20%, rgba(255,255,255,0.24) 48%, rgba(255,255,255,0.08) 72%, rgba(255,255,255,0) 100%);
  box-shadow: 0 0 12px rgba(185, 223, 255, 0.18), 0 0 26px rgba(255,255,255,0.1);
  transform: rotate(-24deg);
  opacity: 0;
  filter: saturate(122%);
  will-change: transform, opacity;
}

.landing-meteor::before {
  content: "";
  position: absolute;
  inset: -8px 0 -8px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(218,240,255,0.18) 0%, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0.04) 56%, rgba(255,255,255,0) 100%);
  filter: blur(7px);
  opacity: 0.9;
}

.landing-meteor::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 0 12px rgba(201, 232, 255, 0.36), 0 0 24px rgba(255,255,255,0.28);
}

.meteor-a { top: 8%; right: -18%; animation: meteorFallA 13.5s linear infinite; }
.meteor-b { top: 18%; right: -26%; width: 240px; animation: meteorFallB 16.5s linear infinite; animation-delay: -4.4s; }
.meteor-c { top: 3%; right: 16%; width: 220px; animation: meteorFallC 15.2s linear infinite; animation-delay: -8.6s; }
.meteor-d { top: 28%; right: -20%; width: 270px; animation: meteorFallD 14.4s linear infinite; animation-delay: -2.6s; }
.meteor-e { top: 12%; right: 30%; width: 230px; animation: meteorFallE 17.8s linear infinite; animation-delay: -10.8s; }
.meteor-f { top: 24%; right: 10%; width: 280px; animation: meteorFallF 18.6s linear infinite; animation-delay: -12.4s; }

.landing-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
}

.landing-glow-a {
  width: 340px;
  height: 340px;
  left: 10%;
  top: 12%;
  background: rgba(255, 241, 168, 0.18);
  animation: floatGlow 12s ease-in-out infinite;
}

.landing-glow-b {
  width: 420px;
  height: 420px;
  right: 8%;
  bottom: 8%;
  background: rgba(39, 105, 255, 0.22);
  animation: floatGlow 14s ease-in-out infinite reverse;
}

.landing-inner {
  position: relative;
  z-index: 1;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 16px 28px;
}

.landing-status-btn {
  display: none;
}

.landing-orbit-shell {
  position: relative;
  width: min(560px, 49vw);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-motion {
  position: absolute;
  inset: 0;
  transform-origin: center;
}

.orbit-ring {
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0deg 306deg, rgba(235, 209, 100, 0.04) 320deg, rgba(255,255,255,0.4) 342deg, rgba(235, 209, 100, 0.12) 354deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  opacity: 0.72;
  pointer-events: none;
  animation: orbitRingScan 11s linear infinite;
}

.orbit-ring-a { width: 32%; height: 32%; border-color: rgba(235, 209, 100, 0.32); }
.orbit-ring-a::after { animation-duration: 8.6s; }
.orbit-ring-b { width: 58%; height: 58%; }
.orbit-ring-b::after { animation-duration: 12.8s; animation-delay: -2.4s; }
.orbit-ring-c { width: 82%; height: 82%; }
.orbit-ring-c::after { animation-duration: 16.4s; animation-delay: -5.2s; }

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
}

.orbit-node-top {
  animation: orbitNodeTop 28s linear infinite;
}

.orbit-node-left {
  animation: orbitNodeLeft 28s linear infinite;
}

.orbit-node-right {
  animation: orbitNodeRight 28s linear infinite;
}

.landing-orbit-shell:hover .orbit-node,
.landing-orbit-shell:focus-within .orbit-node,
.landing-orbit-shell.is-paused .orbit-node {
  animation-play-state: paused;
}

.landing-orbit-shell:hover .orbit-ring::after,
.landing-orbit-shell:focus-within .orbit-ring::after,
.landing-orbit-shell.is-paused .orbit-ring::after {
  animation-play-state: paused;
}

.brand-core {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0,17,58,0.96), rgba(18,62,168,0.88));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 26px 56px rgba(0,0,0,0.24),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 0 60px rgba(235, 209, 100, 0.14);
}

.brand-core::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 1px solid rgba(235, 209, 100, 0.22);
}

.brand-core::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 38px;
  border: 1px solid rgba(235, 209, 100, 0.12);
  box-shadow:
    0 0 0 1px rgba(235, 209, 100, 0.05),
    0 0 34px rgba(235, 209, 100, 0.08),
    0 0 60px rgba(235, 209, 100, 0.06);
  opacity: 0.38;
  animation: brandCoreBreath 4.8s ease-in-out infinite;
}

.brand-core-badge {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #f9f0bd;
  text-shadow: 0 0 24px rgba(235, 209, 100, 0.18);
}

.brand-core-badge strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--gold-soft);
}

.brand-core-badge span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff4bf;
}

.orbit-link {
  position: relative;
  pointer-events: auto;
  width: auto;
  min-width: 164px;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fffef6;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 26px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.orbit-link::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 24%, rgba(235, 209, 100, 0.08) 46%, rgba(255,255,255,0.42) 50%, rgba(235, 209, 100, 0.10) 54%, transparent 76%);
  transform: translateX(-155%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.orbit-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(242, 212, 93, 0);
  box-shadow: 0 0 0 rgba(242, 212, 93, 0);
  opacity: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.orbit-node:hover .orbit-link {
  transform: scale(1.08);
  box-shadow:
    0 20px 34px rgba(0,0,0,0.18),
    0 0 0 1px rgba(242, 212, 93, 0.08);
  border-color: rgba(235, 209, 100, 0.34);
}

.orbit-node:hover .orbit-link::before {
  opacity: 1;
  animation: orbitSweep 1s ease forwards;
}

.orbit-node:hover .orbit-link::after {
  opacity: 1;
  border-color: rgba(242, 212, 93, 0.32);
  box-shadow:
    0 0 18px rgba(242, 212, 93, 0.12),
    inset 0 0 18px rgba(255,255,255,0.03);
}

.orbit-link-label {
  display: inline-block;
}

.hero-copy {
  display: none;
}

.account-panel {
  padding: 18px;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.account-modal.open {
  display: flex;
}

.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 50, 0.56);
  backdrop-filter: blur(10px);
}

.account-modal-panel {
  position: relative;
  z-index: 1;
  width: min(500px, 90vw);
  max-height: 90vh;
  overflow: auto;
  margin: 0;
  padding: 14px;
}

.workspace-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.workspace-modal.open {
  display: flex;
  opacity: 1;
}

.workspace-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 50, 0.56);
  backdrop-filter: blur(10px);
}

.workspace-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 88vw);
  max-height: 90vh;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,250,228,0.985), rgba(231,203,93,0.94));
  border: 1px solid rgba(255,255,255,0.52);
  box-shadow:
    0 36px 82px rgba(0, 18, 68, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.24);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
}

.workspace-modal.open .workspace-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.workspace-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 28, 99, 0.08);
}

.workspace-close-btn {
  width: auto;
  min-width: 92px;
  padding: 11px 14px;
  border-radius: 14px;
}

.workspace-modal .workspace-columns {
  grid-template-columns: 1fr;
  gap: 0;
}

.workspace-modal .work-panel {
  margin: 0;
}

.account-close-btn {
  width: auto;
  min-width: 92px;
  padding: 11px 14px;
  border-radius: 14px;
}

.account-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 6px;
}

.auth-card,
.account-status-card,
.admin-panel {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.56);
  background: var(--panel-soft);
  box-shadow: var(--shadow-soft);
}

.auth-card,
.account-status-card {
  padding: 14px;
}

.auth-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-tab {
  width: 100%;
  min-width: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--text-strong);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.58);
  padding: 12px 12px;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,28,99,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--text-strong);
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.compact-action-btn {
  min-height: 50px;
  font-size: 15px;
}

.auth-form[hidden],
.auth-card[hidden],
.account-status-card[hidden],
.account-logged-card[hidden],
.admin-panel[hidden],
.control-grid[hidden],
.action-control-row[hidden],
.action-control-group[hidden],
.svg-prompt-wrap[hidden] {
  display: none !important;
}

.account-logged-card strong {
  display: block;
  color: var(--text-strong);
  font-size: 22px;
  margin-bottom: 8px;
}

.account-identity {
  display: block;
  margin-bottom: 4px;
  color: rgba(3,23,74,0.7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.account-logged-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.account-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.account-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.54);
}

.account-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.account-stat strong {
  margin: 0;
  font-size: 20px;
}

.account-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.admin-panel {
  position: relative;
  z-index: 1;
  padding: 16px;
  margin-top: 16px;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-head strong {
  display: block;
  color: var(--text-strong);
  font-size: 22px;
  margin-bottom: 5px;
}

.admin-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-users-wrap,
.admin-usage-wrap {
  display: grid;
  gap: 12px;
}

.admin-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.56);
}

.admin-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-user-top strong {
  color: var(--text-strong);
  font-size: 16px;
}

.admin-user-meta,
.admin-log-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
}

.admin-actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.credit-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 160px;
  gap: 8px;
}

.credit-row input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(0,28,99,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--text-strong);
}

.hero {
  display: none;
}

.hero-mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffef6;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(142deg, var(--gold) 0%, var(--gold-soft) 36%, var(--blue-soft) 36%, var(--blue-deep) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 30px rgba(0,0,0,0.2);
}

.hero h1 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero::before {
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 26%, transparent 74%, rgba(255,255,255,0.04)),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.hero-marquee-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 22px 16px;
  padding: 7px 14px 9px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0,25,87,0.98), rgba(0,18,51,0.99));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 18px 34px rgba(0, 13, 44, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-marquee-shell::before,
.hero-marquee-shell::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1px;
  pointer-events: none;
}

.hero-marquee-shell::before {
  top: 8px;
  background: linear-gradient(90deg, transparent, rgba(242, 212, 93, 0.45), transparent);
}

.hero-marquee-shell::after {
  bottom: 8px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.landing > .hero-marquee-shell {
  display: block;
}

.hero-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  min-width: max-content;
  animation: heroMarquee 24s linear infinite;
  will-change: transform;
}

.hero-marquee-text {
  display: inline-block;
  color: rgba(243, 232, 181, 0.82);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.hero-marquee-accent {
  color: #f2d45d;
  font-weight: 900;
  font-size: 1.12em;
}

.hidden-settings {
  display: none !important;
}

.workspace-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.work-panel {
  padding: 18px;
}

.panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-heading h2 {
  margin: 4px 0 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.15;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 800;
}

.panel-top > button {
  width: auto;
  min-width: 0;
}

.mode-tab-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mode-tab {
  width: auto;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  color: var(--text-strong);
  box-shadow: none;
  font-size: 13px;
}

.mode-tab:hover {
  transform: translateY(-1px) scale(1.02);
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--blue);
  box-shadow: 0 12px 20px rgba(201,170,36,0.22);
}

.composer-pane {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: var(--shadow-soft);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.action-control-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}

.action-control-group {
  display: contents;
}

.control-item {
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.52);
}

.hidden-timeout-select {
  display: none !important;
}

.control-item label,
.input-stage label,
.stage-title-row label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

select,
textarea,
button,
input[type="text"] {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
}

select {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-strong);
  appearance: none;
  border: 1px solid rgba(201,170,36,0.24);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,246,202,0.92)),
    linear-gradient(45deg, transparent 50%, #8d720c 50%),
    linear-gradient(135deg, #8d720c 50%, transparent 50%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 6px 6px, 6px 6px;
  background-position: 0 0, calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38);
}

select option {
  background: #fff8dc;
  color: #03174a;
}

.input-stage {
  margin-bottom: 14px;
}

.media-stage {
  display: grid;
  width: min(100%, 600px);
  grid-template-columns: minmax(0, 200px);
  gap: 14px 16px;
  align-items: start;
}

.media-stage.has-upload {
  width: 100%;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
}

.media-stage > label,
.media-stage > .stage-title-row,
.media-stage > .upload-slot-row {
  grid-column: 1 / -1;
}

.compact-stage {
  margin-top: -2px;
  margin-bottom: 10px;
}

.main-prompt,
textarea {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0,28,99,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  resize: vertical;
}

.main-prompt {
  min-height: 220px;
}

textarea::placeholder,
input::placeholder {
  color: #7488bc;
}

.stage-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mini-note,
.drop-hint {
  display: block;
  color: rgba(3,23,74,0.68);
  font-size: 11px;
  line-height: 1.45;
}

.svg-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.svg-mode-btn {
  width: auto;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  color: var(--text-strong);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: none;
  font-size: 13px;
}

.svg-mode-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--blue);
  box-shadow: 0 10px 18px rgba(201,170,36,0.18);
}

.svg-mode-btn[data-svg-mode="prompt"],
#auto_svg_prompt_wrap,
#manual_svg_prompt_wrap,
#auto_svg_prompt_controls,
#manual_svg_prompt_controls {
  display: none !important;
}

.svg-prompt-wrap {
  margin-top: 4px;
  margin-bottom: 10px;
}

.svg-helper-note {
  margin: 2px 0 10px;
  color: rgba(3,23,74,0.68);
  font-size: 11px;
  line-height: 1.45;
}

.control-pricing-note {
  margin-top: 8px;
  color: rgba(3,23,74,0.72);
  font-size: 11px;
  line-height: 1.55;
}

.control-pricing-note strong {
  color: var(--text-strong);
  font-weight: 900;
}

.upload-slot-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.upload-slot-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
}

.manual-chat-stage {
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,244,194,0.24));
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 14px 28px rgba(0,28,99,0.06);
}

.manual-chat-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.manual-chat-head > label {
  margin-bottom: 0;
}

.manual-chat-attach-wrap {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.54), rgba(255,247,212,0.28));
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.manual-chat-attach-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 18px;
  margin-bottom: 8px;
}

.manual-chat-attach-head .upload-slot-row {
  margin-bottom: 0;
}

.manual-chat-attach-body {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.chat-drop-zone {
  min-height: 122px;
  padding: 12px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,0.34), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,243,193,0.38));
  border-color: rgba(0, 28, 99, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.24),
    0 12px 24px rgba(0,28,99,0.05);
}

.chat-drop-plus {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.chat-drop-zone .drop-title {
  font-size: 14px;
  line-height: 1.2;
}

.chat-drop-zone .drop-hint {
  color: rgba(3,23,74,0.62);
  font-size: 10px;
  line-height: 1.4;
}

.chat-drop-zone .drop-file {
  margin-top: 2px;
  font-size: 11px;
}

.manual-chat-stage:not(.has-upload) .chat-upload-stack {
  display: none;
}

.chat-upload-stack {
  min-height: 122px;
  margin-top: 0;
  align-content: start;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,247,211,0.18));
  border: 1px solid rgba(255,255,255,0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.manual-chat-stage .upload-card {
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.74);
  border-color: rgba(255,255,255,0.82);
}

.manual-chat-stage .upload-card img {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0,17,58,0.12);
}

.manual-chat-stage .upload-meta strong {
  font-size: 12px;
  line-height: 1.4;
}

.manual-chat-stage .upload-meta span {
  font-size: 11px;
}

.manual-chat-stage .delete-btn {
  min-width: 104px;
  align-self: center;
}

.manual-chat-stage textarea {
  margin: 0;
  min-height: 188px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,236,0.92));
  border-color: rgba(0,28,99,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 10px 22px rgba(0,28,99,0.04);
}

.drop-zone {
  padding: 20px 16px;
  border-radius: 22px;
  border: 1px dashed rgba(0,28,99,0.22);
  background: rgba(255,255,255,0.34);
  text-align: center;
  cursor: pointer;
  transition: 0.18s ease;
}

.drop-zone.dragover,
.drop-zone:hover {
  border-color: rgba(0,28,99,0.4);
  background: rgba(255,249,216,0.9);
  box-shadow: 0 0 0 4px rgba(201,170,36,0.08);
}

.focus-drop-zone {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.media-stage .drop-zone {
  width: 100%;
  margin: 0;
}

.media-stage .focus-drop-zone {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 2 / 1;
  min-height: 124px;
  padding: 12px 12px;
  border-color: rgba(0, 28, 99, 0.18);
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.34), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.44), rgba(255,243,193,0.36));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.24),
    0 16px 28px rgba(0, 29, 99, 0.06);
}

.media-stage .focus-drop-zone::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.34);
  pointer-events: none;
}

.media-stage:not(.has-upload) .upload-card-stack {
  display: none;
}

.media-stage .upload-card-stack {
  min-height: 100%;
  margin-top: 0;
  align-content: start;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,247,211,0.2));
  border: 1px solid rgba(255,255,255,0.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 14px 26px rgba(0, 29, 99, 0.05);
}

.media-stage .upload-card {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.76);
}

.media-stage .upload-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  flex: 0 0 112px;
  border-radius: 16px;
  box-shadow: 0 14px 22px rgba(0, 17, 58, 0.14);
}

.media-stage .delete-btn {
  width: auto;
  min-width: 110px;
  align-self: center;
}

.media-stage .upload-meta strong {
  font-size: 12px;
  line-height: 1.45;
}

.media-stage .upload-meta span {
  font-size: 11px;
}

.media-stage .drop-title {
  font-size: 15px;
  line-height: 1.32;
}

.media-stage .drop-hint {
  font-size: 10px;
  line-height: 1.4;
}

.media-stage .drop-file {
  margin-top: 4px;
  font-size: 11px;
}

.drop-zone input {
  display: none;
}

.drop-title {
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 900;
}

.drop-file {
  margin-top: 10px;
  color: var(--text);
  font-size: 13px;
  word-break: break-all;
}

.upload-card-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.upload-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(255,255,255,0.58);
}

.upload-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

.upload-meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.upload-meta strong {
  display: block;
  color: var(--text-strong);
  font-size: 13px;
  margin-bottom: 4px;
  word-break: break-all;
}

.upload-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

button,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--blue);
  box-shadow: 0 16px 26px rgba(201,170,36,0.22);
}

button:hover,
.action-link:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.64;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-action-btn {
  min-height: 66px;
  border-radius: 20px;
  font-size: 18px;
}

.control-submit-slot {
  display: flex;
}

.action-control-row > .control-submit-slot:first-child:last-child {
  grid-column: 5 / 6;
}

.inline-submit-btn {
  min-height: 100%;
  height: auto;
  padding: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-submit-btn > span:last-child {
  display: none;
}

.inline-submit-btn .btn-icon {
  width: 38px;
  height: 38px;
  font-size: 20px;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.42);
  white-space: nowrap;
  line-height: 1;
  padding: 0;
}

.inline-submit-btn .btn-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.secondary-btn {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-soft));
  color: #fffef5;
  box-shadow: 0 16px 26px rgba(0,28,99,0.22);
}

.delete-btn {
  width: auto;
  min-width: 118px;
  padding: 10px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #052660, #1b47b3);
  color: #fffef5;
  box-shadow: none;
  flex: 0 0 auto;
}

.btn-icon,
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.28);
  color: currentColor;
  flex: 0 0 22px;
}

.result-wrap {
  margin-top: 14px;
  min-height: 36px;
  text-align: center;
}

.empty-state {
  padding: 24px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,242,170,0.18));
  border: 1px dashed rgba(0,28,99,0.18);
}

.empty-state strong {
  display: block;
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.result-box {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.44), rgba(255,239,157,0.2));
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-soft);
}

.result-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-head strong {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
  margin-bottom: 4px;
}

.result-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.result-icon,
.empty-icon,
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--blue);
  box-shadow: 0 10px 18px rgba(201,170,36,0.18);
  flex: 0 0 34px;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.54);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
}

.art-stage {
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(0,17,58,0.96), rgba(21,61,158,0.9));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 26px rgba(0,17,58,0.18);
}

.art-stage img {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  cursor: zoom-in;
}

.asset-stage {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #fff7db;
}

.asset-stage p {
  margin: 0;
  max-width: 360px;
  color: rgba(255,247,219,0.76);
  line-height: 1.6;
}

.asset-badge {
  min-width: 82px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(228,191,63,0.96), rgba(255,234,158,0.92));
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(226,190,63,0.22);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.action-link {
  min-width: 142px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
}

.preview-btn,
.open-btn {
  background: linear-gradient(135deg, #052a73, #1d46b8);
  color: #fffef5;
}

.copy-btn {
  background: linear-gradient(135deg, #fff0b0, #fff8d6);
  color: var(--text-strong);
}

.download-btn,
.vectorize-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--blue);
}

.result-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.status-box {
  padding: 16px;
  border-radius: 20px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}

.status-box.loading {
  background: rgba(255,248,214,0.92);
  border: 1px solid rgba(0,28,99,0.1);
}

.status-box.warning {
  background: rgba(255,242,194,0.92);
  border: 1px solid rgba(201,170,36,0.24);
}

.status-box.error {
  background: rgba(255,232,229,0.92);
  border: 1px solid rgba(172,60,60,0.18);
  color: #892727;
}

.status-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-strong);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255,249,220,0.96);
  border: 1px solid rgba(255,255,255,0.66);
  color: var(--text-strong);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  box-shadow: 0 18px 42px rgba(0,17,58,0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,17,58,0.5);
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.modal.open {
  display: flex;
}

.modal-inner {
  position: relative;
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,249,220,0.98), rgba(231,203,93,0.94));
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 28px 80px rgba(0,17,58,0.28);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0,28,99,0.92);
  color: #fff;
  font-size: 22px;
  border: none;
  cursor: pointer;
  box-shadow: none;
}

.modal img {
  display: block;
  max-width: min(1120px, 88vw);
  max-height: 78vh;
  border-radius: 16px;
  margin-top: 20px;
}

.modal-caption {
  margin-top: 12px;
  color: var(--text-strong);
  text-align: center;
  font-size: 13px;
}

@keyframes orbitNodeTop {
  from { transform: translate(-50%, -50%) rotate(0deg) translateY(-228px) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateY(-228px) rotate(-360deg); }
}

@keyframes orbitNodeLeft {
  from { transform: translate(-50%, -50%) rotate(-120deg) translateY(-228px) rotate(120deg); }
  to { transform: translate(-50%, -50%) rotate(240deg) translateY(-228px) rotate(-240deg); }
}

@keyframes orbitNodeRight {
  from { transform: translate(-50%, -50%) rotate(120deg) translateY(-228px) rotate(-120deg); }
  to { transform: translate(-50%, -50%) rotate(480deg) translateY(-228px) rotate(-480deg); }
}

@keyframes heroMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 36px)); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.42; }
}

@keyframes gridPulseNode {
  0%, 16%, 28%, 46%, 62%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  10% {
    opacity: 0.86;
    transform: scale(1.08);
  }
  22% {
    opacity: 0.22;
    transform: scale(0.94);
  }
  52% {
    opacity: 0.78;
    transform: scale(1);
  }
  70% {
    opacity: 0.14;
    transform: scale(0.9);
  }
}

@keyframes gridHotspots {
  0% {
    opacity: 0.18;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
  35% {
    opacity: 0.44;
    transform: translate3d(8px, -10px, 0);
  }
  68% {
    opacity: 0.2;
    transform: translate3d(-10px, 12px, 0);
  }
  100% {
    opacity: 0.38;
    transform: translate3d(12px, 6px, 0);
    filter: blur(1px);
  }
}

@keyframes gridBlink {
  0%, 12%, 28%, 42%, 58%, 74%, 88%, 100% { opacity: 0; }
  8%, 36%, 66%, 82% { opacity: 0.52; }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  25% { opacity: 0.7; transform: scale(1.25); }
  55% { opacity: 0.32; transform: scale(0.96); }
  78% { opacity: 0.95; transform: scale(1.08); }
}

@keyframes meteorFallA {
  0%, 16% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  18% { opacity: 0.98; }
  33% { opacity: 0; transform: translate3d(-700px, 380px, 0) rotate(-24deg); }
  100% { opacity: 0; transform: translate3d(-700px, 380px, 0) rotate(-24deg); }
}

@keyframes meteorFallB {
  0%, 38% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  41% { opacity: 0.86; }
  58% { opacity: 0; transform: translate3d(-760px, 420px, 0) rotate(-24deg); }
  100% { opacity: 0; transform: translate3d(-760px, 420px, 0) rotate(-24deg); }
}

@keyframes meteorFallC {
  0%, 60% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  63% { opacity: 0.88; }
  79% { opacity: 0; transform: translate3d(-620px, 340px, 0) rotate(-24deg); }
  100% { opacity: 0; transform: translate3d(-620px, 340px, 0) rotate(-24deg); }
}

@keyframes meteorFallD {
  0%, 30% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  33% { opacity: 0.9; }
  49% { opacity: 0; transform: translate3d(-760px, 410px, 0) rotate(-24deg); }
  100% { opacity: 0; transform: translate3d(-760px, 410px, 0) rotate(-24deg); }
}

@keyframes meteorFallE {
  0%, 68% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  71% { opacity: 0.78; }
  86% { opacity: 0; transform: translate3d(-560px, 320px, 0) rotate(-24deg); }
  100% { opacity: 0; transform: translate3d(-560px, 320px, 0) rotate(-24deg); }
}

@keyframes meteorFallF {
  0%, 76% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  79% { opacity: 0.8; }
  94% { opacity: 0; transform: translate3d(-720px, 400px, 0) rotate(-24deg); }
  100% { opacity: 0; transform: translate3d(-720px, 400px, 0) rotate(-24deg); }
}

@keyframes brandCoreBreath {
  0%, 100% {
    opacity: 0.22;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.46;
    transform: scale(1.03);
  }
}

@keyframes orbitSweep {
  0% { transform: translateX(-155%); }
  100% { transform: translateX(155%); }
}

@keyframes orbitRingScan {
  0% { transform: rotate(0deg); opacity: 0.42; }
  50% { opacity: 0.82; }
  100% { transform: rotate(360deg); opacity: 0.42; }
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -14px, 0) scale(1.06); }
}

@media (max-width: 1480px) {
  .page {
    width: min(1120px, calc(100% - 120px));
  }

  .control-grid,
  .action-control-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .landing {
    min-height: 72vh;
  }

  .landing-orbit-shell {
    width: min(580px, 80vw);
  }

  .account-grid,
  .workspace-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 16px, 100%);
  }

  .hero {
    padding: 12px 0;
  }

  .landing-inner {
    min-height: auto;
    padding: 28px 16px 34px;
  }

  .landing-status-btn {
    position: static;
    min-width: 0;
    width: 100%;
    margin-bottom: 20px;
  }

  .landing-orbit-shell {
    width: 100%;
    aspect-ratio: auto;
    min-height: 460px;
  }

  .orbit-link {
    position: static;
    min-width: 0;
    width: 100%;
  }

  .landing-orbit-shell {
    display: grid;
    justify-items: center;
    gap: 14px;
  }

  .orbit-motion {
    position: static;
    inset: auto;
    display: grid;
    justify-items: center;
    gap: 14px;
    animation: none;
  }

  .orbit-ring {
    display: none;
  }

  .brand-core {
    width: 170px;
    height: 170px;
    margin-bottom: 6px;
  }

  .brand-core-badge strong {
    font-size: 42px;
  }

  .brand-core-badge span {
    font-size: 18px;
  }

  .work-panel {
    padding: 16px;
  }

  .panel-top {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-top > button {
    width: 100%;
  }

  .control-grid,
  .action-control-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-control-row > .control-submit-slot:first-child:last-child {
    grid-column: auto;
  }

  .media-stage {
    grid-template-columns: 1fr;
  }

  .media-stage.has-upload {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .media-stage > label,
  .media-stage > .stage-title-row,
  .media-stage > .upload-slot-row {
    grid-column: auto;
  }

  .focus-drop-zone {
    min-height: 210px;
  }

  .media-stage .focus-drop-zone {
    aspect-ratio: auto;
    min-height: 180px;
  }

  .media-stage .upload-card {
    flex-direction: column;
    align-items: stretch;
  }

  .media-stage .upload-card img {
    width: 100%;
    height: auto;
    flex-basis: auto;
  }

  .media-stage .delete-btn {
    width: 100%;
    min-width: 0;
  }

  .manual-chat-attach-body {
    grid-template-columns: 1fr;
  }

  .chat-upload-stack {
    min-height: 0;
  }

  .manual-chat-stage .upload-card {
    flex-direction: column;
    align-items: stretch;
  }

  .manual-chat-stage .upload-card img {
    width: 100%;
    height: auto;
    flex-basis: auto;
  }

  .manual-chat-stage .delete-btn {
    width: 100%;
    min-width: 0;
  }

  .stage-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-actions,
  .admin-head {
    flex-direction: column;
    align-items: stretch;
  }

  .account-stats,
  .admin-actions-row,
  .credit-row {
    grid-template-columns: 1fr;
  }

  .account-modal {
    padding: 12px;
  }

  .workspace-modal {
    padding: 12px;
  }

  .workspace-modal-panel {
    width: min(100%, 96vw);
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero-marquee-text {
    font-size: 16px;
    letter-spacing: 0.05em;
  }

  .mode-tab-row {
    gap: 8px;
  }

  .mode-tab {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .control-grid,
  .action-control-row {
    grid-template-columns: 1fr;
  }

  .focus-drop-zone {
    min-height: 180px;
  }

  .media-stage .focus-drop-zone {
    min-height: 160px;
  }

  .media-stage .upload-card img {
    border-radius: 14px;
  }

  .upload-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .delete-btn,
  .action-link {
    width: 100%;
  }
}
