:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef3f7;
  --border: #d9e1ea;
  --text: #1b2533;
  --muted: #647386;
  --primary: #1769aa;
  --primary-strong: #0f4f86;
  --accent: #0f8f83;
  --amber: #c7791a;
  --danger: #b3261e;
  --shadow: 0 10px 30px rgba(30, 47, 70, 0.08);
  --shadow-strong: 0 26px 70px rgba(25, 39, 60, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 92px),
    radial-gradient(circle at 18% 20%, rgba(28, 132, 199, 0.32), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(15, 143, 131, 0.24), transparent 26%),
    radial-gradient(circle at 58% 88%, rgba(199, 121, 26, 0.18), transparent 30%),
    linear-gradient(135deg, #08111f 0%, #101d2f 46%, #0c2a2d 100%);
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), transparent 78%);
}

.auth-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
  width: min(1040px, 100%);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(174, 196, 216, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
  padding: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 18%, rgba(78, 166, 231, 0.28), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(31, 198, 174, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(9, 23, 42, 0.98), rgba(12, 64, 82, 0.94));
  color: #fff;
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(10deg);
}

.auth-hero::before {
  width: 440px;
  height: 440px;
  right: -180px;
  top: -130px;
}

.auth-hero::after {
  width: 360px;
  height: 360px;
  left: -190px;
  bottom: -170px;
}

.hero-brand,
.hero-copy,
.hero-preview {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-brand .eyebrow,
.auth-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.hero-brand h1,
.hero-copy h2 {
  margin: 0;
}

.hero-brand h1 {
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy h2 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 760;
}

.hero-copy p {
  max-width: 460px;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.75;
}

.hero-preview {
  width: min(390px, 92%);
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgba(174, 223, 232, 0.26);
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.48);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 46px rgba(31, 198, 174, 0.12);
  backdrop-filter: blur(14px);
}

.preview-bar {
  display: flex;
  gap: 7px;
  padding: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.preview-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.preview-poster {
  padding: 22px;
  min-height: 190px;
}

.poster-ribbon {
  width: 62px;
  height: 24px;
  border-radius: 999px;
  background: #f4b04f;
}

.poster-line {
  width: 66%;
  height: 14px;
  margin-top: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.poster-line.wide {
  width: 88%;
  height: 22px;
  margin-top: 20px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.poster-grid i {
  display: block;
  aspect-ratio: 1.35;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.shell {
  min-height: 100vh;
}

.dashboard-page {
  background:
    radial-gradient(circle at 16% 10%, rgba(28, 132, 199, 0.18), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(15, 143, 131, 0.16), transparent 24%),
    linear-gradient(135deg, #08111f 0%, #101d2f 48%, #102a2f 100%);
}

.dashboard-shell {
  color: #e8f0f7;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  background: rgba(8, 17, 31, 0.86);
  border-bottom: 1px solid rgba(174, 196, 216, 0.16);
  backdrop-filter: blur(18px);
}


.dashboard-brand h1,
.dashboard-brand p {
  color: #e8f0f7;
}

.dashboard-brand p {
  color: rgba(232, 240, 247, 0.68);
}

.dark-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e8f0f7;
  border-color: rgba(255, 255, 255, 0.16);
}

.dark-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.create-button {
  background: linear-gradient(135deg, #1c84c7, #0f8f83);
  box-shadow: 0 16px 34px rgba(15, 143, 131, 0.22);
}

.ai-generate-button {
  position: relative;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c84c7 0%, #0f8f83 52%, #d9a04c 100%);
  box-shadow: 0 18px 42px rgba(15, 143, 131, 0.26), 0 0 36px rgba(28, 132, 199, 0.18);
}

.ai-generate-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: ai-button-sheen 2.8s ease-in-out infinite;
}

.ai-generate-button span {
  position: relative;
  z-index: 1;
}

.ai-sparkles {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.ai-sparkles i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0% 50%, 38% 36%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
  animation: ai-sparkle 1.8s ease-in-out infinite;
}

.ai-sparkles i:nth-child(1) {
  width: 10px;
  height: 10px;
  transform: translate(-4px, -3px);
}

.ai-sparkles i:nth-child(2) {
  animation-delay: 0.35s;
  transform: translate(7px, 4px) scale(0.72);
}

.ai-sparkles i:nth-child(3) {
  animation-delay: 0.7s;
  transform: translate(2px, -9px) scale(0.52);
}

.ai-generate-button:hover {
  background: linear-gradient(135deg, #2a9be0 0%, #12a99b 54%, #e5ae55 100%);
  box-shadow: 0 20px 50px rgba(15, 143, 131, 0.34), 0 0 44px rgba(28, 132, 199, 0.24);
}

.ai-generate-button:disabled .ai-sparkles i {
  animation-duration: 0.8s;
}

@keyframes ai-button-sheen {
  0%, 42% { transform: translateX(-120%); }
  62%, 100% { transform: translateX(120%); }
}

@keyframes ai-sparkle {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1)); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.brand-mark.large {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ffffff, #79d7ca 52%, #d9a04c);
  box-shadow: 0 12px 30px rgba(31, 198, 174, 0.28);
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

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

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto;
}

.dashboard-container {
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 48px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  margin-bottom: 22px;
  border: 1px solid rgba(174, 196, 216, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(28, 132, 199, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.dashboard-hero h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.88;
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(232, 240, 247, 0.72);
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-metrics article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 126px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.38);
}

.hero-metrics span {
  color: #ffffff;
  font-size: 34px;
  font-weight: 780;
  line-height: 1;
}

.hero-metrics p {
  margin: 10px 0 0;
  color: rgba(232, 240, 247, 0.62);
  font-size: 13px;
}

.dashboard-toolbar {
  align-items: flex-end;
  padding: 0 2px;
}

.dashboard-toolbar h2 {
  color: #fff;
}

.dashboard-toolbar .subtitle,
.dashboard-toolbar .status {
  color: rgba(232, 240, 247, 0.66);
}

.create-container {
  margin-bottom: 56px;
}

.create-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
}

.create-flow {
  display: grid;
  gap: 10px;
}

.create-flow article {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.38);
}

.create-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(121, 215, 202, 0.13);
  color: #79d7ca;
  font-weight: 800;
}

.create-flow p {
  margin: 0;
  color: rgba(232, 240, 247, 0.78);
  font-size: 14px;
}

.create-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.create-panel {
  border-color: rgba(121, 156, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(24, 42, 62, 0.72), rgba(12, 26, 42, 0.62)),
    rgba(8, 18, 31, 0.58);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
}

.create-panel {
  padding: 26px;
}

.panel-head h2 {
  margin: 0;
  color: #dce9f3;
}

.panel-head .subtitle {
  max-width: 680px;
  color: rgba(194, 211, 225, 0.68);
  line-height: 1.65;
}

.create-panel label {
  color: rgba(194, 211, 225, 0.78);
}

.create-panel textarea {
  min-height: 340px;
  border-color: rgba(121, 156, 184, 0.24);
  background: linear-gradient(180deg, rgba(9, 22, 37, 0.84), rgba(11, 28, 45, 0.78));
  color: #dce9f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.create-panel textarea::placeholder {
  color: rgba(194, 211, 225, 0.42);
}

.create-panel textarea:focus {
  border-color: rgba(121, 215, 202, 0.58);
  box-shadow: 0 0 0 3px rgba(15, 143, 131, 0.18);
}

.create-submit-row {
  justify-content: flex-start;
}

.create-panel .status {
  color: rgba(232, 240, 247, 0.7);
}

.create-panel .status.error { color: #ffb4ab; }
.create-panel .status.success { color: #79d7ca; }

body.ai-loading-active {
  width: 100%;
  overflow: hidden;
}

.ai-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 24px;
  overflow: hidden;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.ai-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.ai-loading-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(28, 132, 199, 0.22), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(15, 143, 131, 0.18), transparent 26%),
    radial-gradient(circle at 54% 82%, rgba(217, 160, 76, 0.12), transparent 28%),
    rgba(3, 7, 13, 0.48);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.ai-loading-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 74%);
}

.ai-loading-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(174, 223, 232, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.052)),
    rgba(8, 18, 31, 0.7);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.48),
    0 0 72px rgba(15, 143, 131, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.ai-loading-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(121, 215, 202, 0.22) 34%, transparent 58%);
  transform: translateX(-80%);
  animation: ai-panel-sweep 3.8s ease-in-out infinite;
}

.ai-orbital-stage {
  position: relative;
  display: grid;
  width: 170px;
  height: 170px;
  margin: 0 auto 24px;
  place-items: center;
}

.ai-orbit {
  position: absolute;
  border: 1px solid rgba(121, 215, 202, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(15, 143, 131, 0.12);
}

.ai-orbit-one {
  width: 160px;
  height: 160px;
  animation: ai-orbit-spin 5.8s linear infinite;
}

.ai-orbit-two {
  width: 116px;
  height: 116px;
  border-color: rgba(217, 160, 76, 0.26);
  animation: ai-orbit-spin-reverse 7.2s linear infinite;
}

.ai-core {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(135deg, rgba(28, 132, 199, 0.92), rgba(15, 143, 131, 0.88) 58%, rgba(217, 160, 76, 0.72));
  box-shadow: 0 0 32px rgba(121, 215, 202, 0.42), 0 16px 42px rgba(0, 0, 0, 0.36);
  animation: ai-core-pulse 1.9s ease-in-out infinite;
}

.ai-core span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.82);
}

.ai-core span:nth-child(1) { transform: translate(-14px, -9px); }
.ai-core span:nth-child(2) { transform: translate(13px, 0); }
.ai-core span:nth-child(3) { transform: translate(-3px, 15px); }

.ai-scan-line {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(121, 215, 202, 0.95), transparent);
  filter: drop-shadow(0 0 10px rgba(121, 215, 202, 0.78));
  animation: ai-scan 2.2s ease-in-out infinite;
}

.ai-loading-kicker {
  margin: 0 0 10px;
  color: #79d7ca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ai-loading-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.ai-loading-message,
#ai-loading-message {
  max-width: 460px;
  margin: 14px auto 0;
  color: rgba(232, 240, 247, 0.74);
  font-size: 15px;
  line-height: 1.72;
}

.ai-thinking-steps {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.ai-thinking-steps span {
  padding: 8px 11px;
  border: 1px solid rgba(121, 215, 202, 0.18);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.42);
  color: rgba(232, 240, 247, 0.78);
  font-size: 12px;
  font-weight: 800;
  animation: ai-step-glow 2.4s ease-in-out infinite;
}

.ai-thinking-steps span:nth-child(2) { animation-delay: 0.34s; }
.ai-thinking-steps span:nth-child(3) { animation-delay: 0.68s; }

.ai-loading-progress {
  position: relative;
  height: 4px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-loading-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(28, 132, 199, 0), #79d7ca, #d9a04c);
  box-shadow: 0 0 18px rgba(121, 215, 202, 0.44);
  animation: ai-progress-run 1.45s ease-in-out infinite;
}

@keyframes ai-panel-sweep {
  0%, 38% { transform: translateX(-84%); opacity: 0; }
  52% { opacity: 1; }
  78%, 100% { transform: translateX(84%); opacity: 0; }
}

@keyframes ai-orbit-spin { to { transform: rotate(360deg); } }
@keyframes ai-orbit-spin-reverse { to { transform: rotate(-360deg); } }

@keyframes ai-core-pulse {
  0%, 100% { transform: scale(0.96); filter: saturate(0.92); }
  50% { transform: scale(1.04); filter: saturate(1.18); }
}

@keyframes ai-scan {
  0%, 100% { transform: translateY(-50px); opacity: 0; }
  16%, 82% { opacity: 1; }
  50% { transform: translateY(50px); }
}

@keyframes ai-step-glow {
  0%, 100% {
    border-color: rgba(121, 215, 202, 0.16);
    color: rgba(232, 240, 247, 0.64);
  }
  50% {
    border-color: rgba(121, 215, 202, 0.42);
    color: #fff;
    box-shadow: 0 0 22px rgba(15, 143, 131, 0.12);
  }
}

@keyframes ai-progress-run {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(260%); }
}

@media (max-width: 720px) {
  .ai-loading-overlay {
    padding: 16px;
  }

  .ai-loading-panel {
    max-height: calc(100dvh - 32px);
    padding: 26px 18px;
    border-radius: 12px;
  }

  .ai-orbital-stage {
    width: 142px;
    height: 142px;
    margin-bottom: 20px;
  }

  .ai-orbit-one {
    width: 134px;
    height: 134px;
  }

  .ai-orbit-two {
    width: 96px;
    height: 96px;
  }

  .ai-core {
    width: 60px;
    height: 60px;
    border-radius: 20px;
  }

  .ai-loading-panel h2 {
    font-size: 24px;
  }

  .ai-loading-message,
  #ai-loading-message {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-loading-overlay *,
  .ai-loading-overlay *::before,
  .ai-loading-overlay *::after {
    animation: none !important;
    transition: none !important;
  }

  .ai-loading-progress i {
    width: 100%;
    opacity: 0.72;
  }
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 48px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.auth-card-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
}

.auth-card-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-card form {
  margin-top: 28px;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 26px rgba(23, 105, 170, 0.22);
}

.auth-submit:hover {
  background: linear-gradient(135deg, var(--primary-strong), #0b766f);
}

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

.toolbar h2,
.auth-card h1,
.form-panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.auth-card .subtitle,
.toolbar .subtitle,
.form-panel .subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

label {
  color: #35455a;
  font-size: 14px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

input {
  height: 42px;
  padding: 0 12px;
}

.auth-card input {
  height: 48px;
  padding: 0 14px;
  background: #f8fafc;
}

textarea {
  min-height: 260px;
  resize: vertical;
  padding: 12px;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.dashboard-topbar .dashboard-actions {
  align-self: center;
  margin-top: 0;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover { background: var(--primary-strong); }
button:disabled { cursor: wait; opacity: 0.65; }

.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.secondary:hover { background: var(--surface-muted); }

.status {
  min-height: 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.status.error { color: var(--danger); }
.status.success { color: #176f42; }

.task-list {
  display: grid;
  gap: 12px;
}

.task-card,
.form-panel,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.task-card {
  padding: 18px;
}

.dashboard-task-list .task-card {
  padding: 20px;
  border-color: rgba(174, 196, 216, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.108), rgba(255, 255, 255, 0.06));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.dashboard-task-list .task-card:hover {
  border-color: rgba(121, 215, 202, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 42px rgba(15, 143, 131, 0.08);
}

.task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.task-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.task-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.dashboard-task-list .task-title {
  color: #ffffff;
  font-size: 18px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-task-list .task-meta {
  color: rgba(232, 240, 247, 0.6);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf7f3;
  color: #0d6f63;
  font-size: 12px;
  font-weight: 700;
}

.task-requirement {
  margin: 14px 0 0;
  color: #35455a;
  line-height: 1.6;
}

.dashboard-task-list .task-requirement {
  color: rgba(232, 240, 247, 0.78);
}

.dashboard-task-list summary {
  color: #79d7ca;
}

.dashboard-empty {
  border-color: rgba(174, 196, 216, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 240, 247, 0.7);
}

.details-block {
  margin-top: 14px;
}

summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 650;
}

pre {
  overflow: auto;
  margin: 10px 0 0;
  padding: 14px;
  max-height: 420px;
  border-radius: 8px;
  background: #111827;
  color: #e5eef8;
  font-size: 12px;
  line-height: 1.5;
}

.form-panel {
  padding: 24px;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .dashboard-hero,
  .create-hero,
  .create-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-hero h2 {
    font-size: 28px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-hero {
    min-height: 360px;
    padding: 30px;
  }

  .hero-copy h2 {
    font-size: 30px;
  }

  .hero-preview {
    display: none;
  }

  .auth-card {
    padding: 34px 28px;
  }
}

@media (max-width: 720px) {
  .auth-page { padding: 16px; }
  .topbar { padding: 0 16px; }
  .container { width: calc(100% - 24px); margin: 18px auto; }
  .toolbar,
  .task-head,
  .actions { align-items: stretch; flex-direction: column; }
  button,
  .button { width: 100%; }
}

.editor-container {
  width: min(1360px, calc(100% - 40px));
}

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(340px, 420px);
  gap: 22px;
  align-items: start;
}

.editor-stage,
.editor-inspector {
  border: 1px solid rgba(174, 196, 216, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 42, 62, 0.72), rgba(12, 26, 42, 0.62));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
}

.editor-stage {
  position: relative;
  min-height: 760px;
  padding: 26px;
}

.editor-inspector {
  position: sticky;
  top: 94px;
  padding: 24px;
}

.editor-stage .panel-head h2,
.editor-inspector .panel-head h2 {
  margin: 0;
  color: #dce9f3;
}

.editor-stage .subtitle,
.editor-inspector .subtitle {
  color: rgba(194, 211, 225, 0.68);
  line-height: 1.65;
}

.poster-canvas {
  display: grid;
  min-height: 650px;
  margin-top: 24px;
  place-items: center;
}

.preview-download-button {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 36px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(121, 215, 202, 0.32);
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.64);
  color: #dce9f3;
  box-shadow: none;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

.preview-download-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
}

.preview-download-button:hover {
  background: rgba(15, 143, 131, 0.34);
}

.editor-mode-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(174, 196, 216, 0.18);
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.42);
}

.editor-mode-tab {
  width: auto;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: rgba(220, 233, 243, 0.72);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

.editor-mode-tab.active {
  color: #08111f;
  background: #dce9f3;
}

.poster-preview-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #08111f;
}

.poster-preview-shell {
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  background: #08111f;
}

.poster-preview-status {
  padding: 18px;
  color: #dce9f3;
  font-size: 14px;
  text-align: center;
}

.poster-preview-status.error {
  color: #ffd7d7;
}

.poster-public-preview {
  width: 800px;
  transform-origin: top left;
}

.poster-preview-page .travel-guide-preview {
  width: 800px;
  max-width: none;
  border-radius: 0;
}

.travel-guide-preview {
  --guide-color-a: #f4d9c3;
  --guide-color-a-rgb: 244, 217, 195;
  --guide-color-b: #9f3f2e;
  position: relative;
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid rgba(150, 62, 42, 0.18);
  border-radius: 12px;
  color: #4d2a1f;
  background: var(--guide-color-b);
  box-shadow: 0 28px 78px rgba(70, 24, 16, 0.26);
}

.guide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-rows: 360px minmax(0, 1fr);
  overflow: hidden;
}

.guide-bg-cover {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}

.guide-bg-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.guide-bg-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.66) 0%, rgba(255, 250, 240, 0.22) 46%, rgba(var(--guide-color-a-rgb), 0.2) 100%),
    linear-gradient(90deg, rgba(255, 251, 240, 0.78) 0%, rgba(255, 251, 240, 0.28) 48%, rgba(64, 22, 12, 0.14) 100%);
}

.guide-bg-fade {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, rgba(var(--guide-color-a-rgb), 0) 0%, rgba(var(--guide-color-a-rgb), 0.5) 50%, var(--guide-color-a) 100%);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.guide-bg-bottom {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  background: linear-gradient(180deg, var(--guide-color-a) 0%, var(--guide-color-b) 100%);
}

.guide-layer {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.guide-cover-head p,
.guide-food-card p,
.guide-notes-card p,
.guide-section-head p,
.guide-primary-hotel-copy p {
  margin: 0 0 8px;
  color: #a74530;
  font-size: 12px;
  font-weight: 800;
}

.guide-cover-head h2 {
  margin: 0;
  color: #5a261b;
  font-size: 34px;
  line-height: 1.18;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.guide-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(153, 65, 42, 0.26);
  border-radius: 999px;
  color: #7b2f20;
  background: rgba(255, 248, 237, 0.58);
  font-size: 12px;
  font-weight: 800;
}

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

.guide-meta-grid article,
.guide-food-card,
.guide-notes-card {
  border: 1px solid rgba(255, 230, 202, 0.48);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.68);
  box-shadow: 0 12px 30px rgba(102, 31, 19, 0.12);
}

.guide-meta-grid article {
  padding: 16px;
}

.guide-meta-grid h3,
.guide-day-head h3 {
  margin: 0;
}

.guide-meta-grid ul,
.guide-notes-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(82, 34, 24, 0.76);
  line-height: 1.65;
}

.guide-notes-card ul {
  font-size: 12px;
  line-height: 1.55;
}

.guide-days {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.guide-day-card {
  padding: 18px;
  border: 1px solid rgba(255, 230, 202, 0.46);
  border-radius: 10px;
  background: rgba(255, 250, 241, 0.5);
  box-shadow: 0 18px 42px rgba(102, 31, 19, 0.16);
}

.guide-hotel-section,
.guide-budget-section,
.guide-booking-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 230, 202, 0.46);
  border-radius: 10px;
  background: rgba(255, 250, 241, 0.54);
  box-shadow: 0 18px 42px rgba(102, 31, 19, 0.16);
}

.guide-section-head h3 {
  margin: 0;
  color: #5a261b;
  font-size: 22px;
  line-height: 1.2;
}

.guide-primary-hotel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.guide-primary-hotel-image,
.guide-hotel-option-image {
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 230, 202, 0.5);
  border-radius: 8px;
  background: rgba(167, 69, 48, 0.16);
  color: #a74530;
  font-size: 13px;
  font-weight: 900;
}

.guide-primary-hotel-image {
  min-height: 160px;
}

.guide-primary-hotel-image img,
.guide-hotel-option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-primary-hotel-copy {
  min-width: 0;
}

.guide-primary-hotel-copy h4,
.guide-hotel-option h4 {
  margin: 0;
  color: #5a261b;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guide-primary-hotel-copy h4 {
  font-size: 22px;
}

.guide-primary-hotel-copy strong,
.guide-primary-hotel-copy span {
  display: block;
  margin-top: 9px;
  color: rgba(82, 34, 24, 0.76);
  line-height: 1.55;
}

.guide-primary-hotel-copy strong {
  color: #a74530;
  font-size: 14px;
}

.guide-hotel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.guide-hotel-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(153, 65, 42, 0.26);
  border-radius: 999px;
  color: #7b2f20;
  background: rgba(255, 248, 237, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.guide-hotel-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.guide-hotel-option {
  padding: 12px;
  border: 1px solid rgba(255, 230, 202, 0.42);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.42);
}

.guide-hotel-option-image {
  aspect-ratio: 4 / 3;
}

.guide-hotel-option h4 {
  margin-top: 10px;
  font-size: 14px;
}

.guide-hotel-option p {
  margin: 6px 0 0;
  color: rgba(82, 34, 24, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.guide-budget-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.guide-budget-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(110px, auto);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 230, 202, 0.42);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.42);
}

.guide-budget-row span {
  color: #a74530;
  font-size: 12px;
  font-weight: 900;
}

.guide-budget-row strong,
.guide-budget-row b {
  color: #5a261b;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.guide-budget-row b {
  text-align: right;
}

.guide-budget-row em {
  grid-column: 2 / 4;
  color: rgba(82, 34, 24, 0.72);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.guide-empty-row {
  grid-template-columns: minmax(0, 1fr);
}

.guide-empty-row em {
  grid-column: 1;
}

.guide-booking-section ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(82, 34, 24, 0.78);
  line-height: 1.55;
}

.guide-day-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.guide-day-head > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff6e7;
  background: #a74530;
  font-size: 13px;
  font-weight: 900;
}

.guide-day-head h3 {
  color: #5a261b;
}

.guide-day-head p {
  margin: 6px 0 0;
  color: rgba(82, 34, 24, 0.72);
  line-height: 1.5;
}

.guide-day-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) minmax(0, 3fr);
  gap: 14px;
  margin-top: 16px;
}

.guide-day-side {
  display: grid;
  gap: 10px;
}

.guide-time-blocks {
  --timeline-x: 8px;
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 24px;
}

.guide-time-blocks::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: var(--timeline-x);
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(167, 69, 48, 0.2), rgba(167, 69, 48, 0.78), rgba(167, 69, 48, 0.18));
}

.guide-food-card,
.guide-notes-card {
  padding: 13px;
}

.guide-time-block {
  position: relative;
  padding: 2px 0 4px;
}

.guide-time-block::before {
  content: "";
  position: absolute;
  left: calc((var(--timeline-x) - 24px) - 7px);
  top: 5px;
  width: 10px;
  height: 10px;
  border: 3px solid rgba(255, 246, 232, 0.95);
  border-radius: 50%;
  background: #a74530;
  box-shadow: 0 0 0 3px rgba(167, 69, 48, 0.16);
}

.guide-time-block strong {
  display: block;
  color: #a74530;
  font-size: 13px;
}

.guide-time-block p,
.guide-time-block span {
  display: block;
  margin: 7px 0 0;
  color: rgba(82, 34, 24, 0.78);
  line-height: 1.55;
}

.guide-time-block p {
  font-size: 12px;
}

.guide-food-list {
  display: grid;
  gap: 8px;
}

.guide-food-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
}

.guide-food-item img,
.guide-food-item span {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.guide-food-item img {
  object-fit: cover;
}

.guide-food-item span {
  display: grid;
  place-items: center;
  color: #fff6e7;
  background: #a74530;
  font-size: 13px;
  font-weight: 900;
}

.guide-food-item strong {
  min-width: 0;
  color: rgba(82, 34, 24, 0.86);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.guide-photo-panel {
  min-height: 260px;
}

.guide-photo-grid {
  display: grid;
  height: 100%;
  min-height: 260px;
  gap: 8px;
}

.guide-photo-grid.count-1,
.guide-photo-grid.count-2,
.guide-photo-grid.count-3 {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.guide-photo-grid.count-4,
.guide-photo-grid.count-6 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.guide-photo-grid.count-5 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.guide-photo-grid.count-5 .guide-scene-card:nth-child(-n + 2) {
  grid-column: span 3;
}

.guide-photo-grid.count-5 .guide-scene-card:nth-child(n + 3) {
  grid-column: span 2;
}

.guide-scene-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  min-height: 0;
}

.guide-scene-image {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 230, 202, 0.44);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(102, 31, 19, 0.14);
}

.guide-scene-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform: scale(1.08);
}

.guide-scene-card strong {
  color: rgba(82, 34, 24, 0.86);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.guide-photo-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed rgba(153, 65, 42, 0.28);
  border-radius: 10px;
  color: rgba(82, 34, 24, 0.58);
}

.poster-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  min-height: 610px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38), 0 0 60px rgba(15, 143, 131, 0.12);
}

.poster-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.poster-cover.theme-blue {
  background:
    radial-gradient(circle at 18% 18%, rgba(78, 166, 231, 0.5), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(15, 143, 131, 0.42), transparent 30%),
    linear-gradient(160deg, #07111f 0%, #0d2d4a 52%, #092f34 100%);
}

.poster-cover.theme-green {
  background:
    radial-gradient(circle at 20% 18%, rgba(121, 215, 202, 0.42), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(217, 160, 76, 0.26), transparent 28%),
    linear-gradient(160deg, #071915 0%, #124534 54%, #102a2f 100%);
}

.poster-cover.theme-amber {
  background:
    radial-gradient(circle at 22% 18%, rgba(217, 160, 76, 0.48), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(28, 132, 199, 0.28), transparent 28%),
    linear-gradient(160deg, #1d1409 0%, #58320e 50%, #102a2f 100%);
}

.poster-cover.theme-dark {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(217, 160, 76, 0.3), transparent 28%),
    linear-gradient(160deg, #03070d 0%, #121827 54%, #211a0d 100%);
}

.poster-orbit {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -155px;
  top: -120px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(15deg);
}

.poster-topline,
.poster-main-copy,
.poster-visual,
.poster-tags,
.poster-highlights,
.poster-footer {
  position: relative;
  z-index: 1;
}

.poster-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poster-main-copy {
  margin-top: 54px;
}

.poster-kicker {
  margin: 0 0 12px;
  color: #79d7ca;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.poster-title {
  max-width: 340px;
  margin: 0;
  font-size: 48px;
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.poster-subtitle {
  max-width: 320px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
}

.poster-overview {
  max-width: 340px;
  margin: 18px 0 0;
  color: rgba(232, 240, 247, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

.poster-visual {
  display: grid;
  min-height: 150px;
  margin: 28px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 1px 38px),
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(8, 18, 31, 0.22));
  background-size: auto, auto, auto;
}

.poster-visual span,
.poster-visual i,
.poster-visual b {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.poster-visual span {
  width: 168px;
  height: 168px;
  right: -36px;
  bottom: -70px;
  background: rgba(217, 160, 76, 0.5);
}

.poster-visual i {
  width: 118px;
  height: 118px;
  left: 30px;
  bottom: -58px;
  background: rgba(121, 215, 202, 0.26);
}

.poster-visual b {
  width: 78px;
  height: 78px;
  left: 128px;
  top: 30px;
  background: rgba(255, 255, 255, 0.18);
}

.poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.poster-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.poster-highlights {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.poster-highlights li {
  padding: 10px 12px;
  border-left: 3px solid #79d7ca;
  background: rgba(8, 18, 31, 0.28);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.poster-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
}

.poster-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0d2d4a;
  font-size: 13px;
}

.poster-qr {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 92px;
  padding: 8px 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(20, 35, 52, 0.78);
  box-shadow: 0 14px 34px rgba(88, 24, 16, 0.18);
  font-size: 11px;
  font-weight: 800;
}

.poster-qr-code {
  display: grid;
  width: 82px;
  height: 82px;
  padding: 4px;
  place-items: center;
  border-radius: 4px;
  background: #ffffff;
}

.poster-qr-code canvas,
.poster-qr-code img {
  display: block;
  width: 74px;
  height: 74px;
}

.inspector-mode-panel {
  display: none;
}

.inspector-mode-panel.active {
  display: block;
}

.inspector-group {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.guide-days-editor {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.guide-day-editor {
  padding: 14px;
  border: 1px solid rgba(174, 196, 216, 0.14);
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.34);
}

.guide-day-editor h3 {
  margin: 0 0 12px;
  color: #dce9f3;
  font-size: 15px;
}

.editor-inspector label {
  color: rgba(194, 211, 225, 0.78);
}

.editor-inspector input,
.editor-inspector textarea,
.editor-inspector select {
  width: 100%;
  border: 1px solid rgba(121, 156, 184, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 22, 37, 0.84), rgba(11, 28, 45, 0.78));
  color: #dce9f3;
  font: inherit;
  outline: none;
}

.editor-inspector input,
.editor-inspector select {
  height: 42px;
  padding: 0 12px;
}

.editor-inspector textarea {
  min-height: 112px;
  padding: 12px;
}

.editor-inspector input:focus,
.editor-inspector textarea:focus,
.editor-inspector select:focus {
  border-color: rgba(121, 215, 202, 0.58);
  box-shadow: 0 0 0 3px rgba(15, 143, 131, 0.18);
}

.editor-actions {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .editor-inspector {
    position: static;
  }

  .editor-stage {
    min-height: auto;
  }

  .preview-download-button {
    top: 18px;
    right: 18px;
  }

  .guide-day-layout,
  .guide-primary-hotel,
  .guide-hotel-options {
    grid-template-columns: 1fr;
  }

  .guide-primary-hotel-image {
    min-height: 220px;
  }

  .guide-photo-panel,
  .guide-photo-grid,
  .guide-photo-empty {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .editor-container {
    width: calc(100% - 24px);
  }

  .editor-stage,
  .editor-inspector {
    padding: 18px;
  }

  .poster-canvas {
    min-height: 560px;
  }

  .guide-layer {
    padding: 18px;
  }

  .guide-bg {
    grid-template-rows: 300px minmax(0, 1fr);
  }

  .guide-cover-head h2 {
    font-size: 28px;
  }

  .guide-meta-grid,
  .guide-budget-row {
    grid-template-columns: 1fr;
  }

  .guide-budget-row b {
    text-align: left;
  }

  .guide-budget-row em {
    grid-column: 1;
  }

  .guide-photo-grid.count-2,
  .guide-photo-grid.count-3,
  .guide-photo-grid.count-4,
  .guide-photo-grid.count-5,
  .guide-photo-grid.count-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .guide-photo-grid.count-5 .guide-scene-card:nth-child(-n + 2),
  .guide-photo-grid.count-5 .guide-scene-card:nth-child(n + 3) {
    grid-column: auto;
  }

  .poster-cover {
    min-height: 560px;
    padding: 22px;
  }

  .poster-title {
    font-size: 38px;
  }
}

.poster-preview-page .guide-layer {
  padding: 28px;
}

.poster-preview-page .guide-bg {
  grid-template-rows: 360px minmax(0, 1fr);
}

.poster-preview-page .guide-cover-head h2 {
  font-size: 34px;
}

.poster-preview-page .guide-day-layout {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) minmax(0, 3fr);
}

.poster-preview-page .guide-primary-hotel {
  grid-template-columns: 230px minmax(0, 1fr);
}

.poster-preview-page .guide-hotel-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poster-preview-page .guide-primary-hotel-image {
  min-height: 160px;
}

.poster-preview-page .guide-photo-panel,
.poster-preview-page .guide-photo-grid,
.poster-preview-page .guide-photo-empty {
  min-height: 260px;
}

.poster-preview-page .guide-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poster-preview-page .guide-budget-row {
  grid-template-columns: 76px minmax(0, 1fr) minmax(110px, auto);
}

.poster-preview-page .guide-budget-row b {
  text-align: right;
}

.poster-preview-page .guide-budget-row em {
  grid-column: 2 / 4;
}

.poster-preview-page .guide-photo-grid.count-1,
.poster-preview-page .guide-photo-grid.count-2,
.poster-preview-page .guide-photo-grid.count-3 {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.poster-preview-page .guide-photo-grid.count-4,
.poster-preview-page .guide-photo-grid.count-6 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.poster-preview-page .guide-photo-grid.count-5 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.poster-preview-page .guide-photo-grid.count-5 .guide-scene-card:nth-child(-n + 2) {
  grid-column: span 3;
}

.poster-preview-page .guide-photo-grid.count-5 .guide-scene-card:nth-child(n + 3) {
  grid-column: span 2;
}

.poster-cover.demo-poster {
  --demo-color-a: #f4d9c3;
  --demo-color-a-rgb: 244, 217, 195;
  --demo-color-b: #9f3f2e;
  position: relative;
  width: min(430px, 100%);
  min-height: 1220px;
  isolation: isolate;
  padding: 0;
  border-radius: 10px;
  background: var(--demo-color-b);
  color: #ffffff;
}

.poster-cover.demo-poster::before {
  content: none;
}

.poster-cover.demo-poster.theme-green {
  --demo-color-a: #dce8d0;
  --demo-color-a-rgb: 220, 232, 208;
  --demo-color-b: #28533f;
}

.poster-cover.demo-poster.theme-amber {
  --demo-color-a: #f3c99a;
  --demo-color-a-rgb: 243, 201, 154;
  --demo-color-b: #8f3a25;
}

.poster-cover.demo-poster.theme-dark {
  --demo-color-a: #3b3833;
  --demo-color-a-rgb: 59, 56, 51;
  --demo-color-b: #120e0b;
}

.demo-poster-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-rows: 620px minmax(0, 1fr);
  overflow: hidden;
  pointer-events: none;
}

.demo-bg-cover {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}

.demo-bg-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.demo-bg-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.18) 0%, rgba(255, 250, 240, 0.08) 32%, rgba(var(--demo-color-a-rgb), 0.34) 100%),
    linear-gradient(90deg, rgba(255, 251, 240, 0.64) 0%, rgba(255, 251, 240, 0.18) 46%, rgba(64, 22, 12, 0.18) 100%);
}

.demo-bg-fade {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, rgba(var(--demo-color-a-rgb), 0) 0%, rgba(var(--demo-color-a-rgb), 0.5) 50%, var(--demo-color-a) 100%);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.demo-bg-bottom {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  background: linear-gradient(180deg, var(--demo-color-a) 0%, var(--demo-color-b) 100%);
}

.demo-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 30%, rgba(86, 20, 14, 0.18));
  pointer-events: none;
}

.demo-poster-layer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 1220px;
  padding: 0 30px 28px;
}

.demo-poster-head,
.demo-hero-copy,
.demo-overview-card,
.cover-scene-strip,
.cover-hotel-card,
.demo-step-grid,
.demo-footer {
  position: relative;
  z-index: 1;
}

.demo-cover-hero {
  min-height: 620px;
  margin: 0 -30px;
  padding: 30px;
}

.demo-poster-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.demo-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5a261b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.8);
}

.demo-logo i {
  width: 28px;
  height: 28px;
  border: 7px solid rgba(90, 38, 27, 0.86);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(217, 126, 71, 0.46), 0 0 18px rgba(255, 255, 255, 0.74);
}

.demo-compass {
  display: grid;
  gap: 4px;
  justify-items: center;
  color: #5a261b;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.8);
}

.demo-compass i {
  width: 1px;
  height: 46px;
  background: rgba(90, 38, 27, 0.72);
}

.demo-hero-copy {
  margin-top: 42px;
}

.demo-hero-copy .poster-kicker {
  color: #9f3f2e;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.85);
}

.demo-hero-copy .poster-title {
  max-width: 340px;
  color: #5a261b;
  font-size: 52px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.58), 0 18px 40px rgba(121, 48, 27, 0.22);
}

.demo-hero-copy .poster-subtitle {
  color: rgba(82, 34, 24, 0.84);
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.8);
}

.demo-hero-copy .poster-tags {
  margin-top: 18px;
}

.demo-hero-copy .poster-tags span {
  border-color: rgba(153, 65, 42, 0.32);
  background: rgba(255, 248, 237, 0.58);
  color: #7b2f20;
  font-weight: 800;
}

.cover-scene-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 26px;
}

.cover-scene-card {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 238, 0.66);
  border-radius: 7px;
  background: rgba(255, 248, 237, 0.5);
  box-shadow: 0 18px 42px rgba(82, 30, 19, 0.22);
}

.cover-scene-card img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.cover-scene-card span {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  overflow: hidden;
  color: #fff8ef;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(35, 12, 8, 0.78);
}

.demo-overview-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.18);
  color: #4d2a1f;
  box-shadow: 0 18px 42px rgba(102, 31, 19, 0.14);
  backdrop-filter: blur(18px);
}

.demo-overview-card h3 {
  margin: 0 0 8px;
  color: #a74530;
  font-size: 18px;
}

.demo-overview-card p {
  margin: 0;
  color: #5f4338;
  font-size: 13px;
  line-height: 1.65;
}

.demo-step-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.demo-step-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 72px;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 248, 237, 0.46), rgba(255, 248, 237, 0.18));
  color: #573125;
  box-shadow: 0 14px 30px rgba(88, 24, 16, 0.1);
  backdrop-filter: blur(12px);
}

.demo-step-card::before,
.demo-step-card::after {
  content: "";
  position: absolute;
  left: 54px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--demo-color-b);
  transform: translateX(-50%);
}

.demo-step-card::before {
  top: -8px;
}

.demo-step-card::after {
  bottom: -8px;
}

.demo-step-card span {
  display: grid;
  position: relative;
  place-items: center;
  color: #a74530;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.demo-step-card span::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  border-right: 1px dashed rgba(167, 69, 48, 0.5);
}

.demo-step-card p {
  align-self: center;
  margin: 0;
  padding: 12px 14px;
  color: #573125;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.cover-hotel-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 233, 205, 0.24);
  border-radius: 7px;
  background: rgba(255, 248, 237, 0.14);
  color: #fff4e5;
  box-shadow: 0 14px 34px rgba(88, 24, 16, 0.1);
  backdrop-filter: blur(12px);
}

.cover-hotel-card img,
.cover-hotel-mark {
  display: grid;
  width: 86px;
  height: 70px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 248, 237, 0.18);
  object-fit: cover;
}

.cover-hotel-mark {
  color: #a74530;
  font-size: 24px;
  font-weight: 900;
}

.cover-hotel-card p,
.cover-hotel-card strong,
.cover-hotel-card em {
  display: block;
  margin: 0;
}

.cover-hotel-card p {
  color: #ffe2c6;
  font-size: 12px;
  font-weight: 900;
}

.cover-hotel-card strong {
  margin-top: 5px;
  color: #fff8ef;
  font-size: 16px;
  line-height: 1.25;
}

.cover-hotel-card em {
  margin-top: 5px;
  color: rgba(255, 242, 224, 0.72);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.demo-footer {
  margin-top: 24px;
}

.demo-footer .poster-cta {
  color: #a74530;
}

@media (max-width: 720px) {
  .poster-cover.demo-poster {
    min-height: 1260px;
    padding: 0;
  }

  .demo-poster-bg {
    grid-template-rows: 590px minmax(0, 1fr);
  }

  .demo-poster-layer {
    min-height: 1260px;
    padding: 0 22px 24px;
  }

  .demo-cover-hero {
    min-height: 590px;
    margin: 0 -22px;
    padding: 26px 22px;
  }

  .demo-hero-copy {
    margin-top: 42px;
  }

  .demo-hero-copy .poster-title {
    font-size: 40px;
  }

  .cover-scene-strip {
    gap: 6px;
    margin-top: 20px;
  }

  .cover-scene-card,
  .cover-scene-card img {
    min-height: 92px;
    height: 92px;
  }

  .cover-hotel-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cover-hotel-card img,
  .cover-hotel-mark {
    width: 72px;
    height: 64px;
  }

}
