﻿:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #071a33;
  --muted: #637083;
  --soft: #edf2f8;
  --line: #dde5ef;
  --blue: #0877ff;
  --blue-deep: #155ee8;
  --violet: #7438df;
  --orange: #f69a23;
  --danger: #ff4663;
  --shadow: 0 20px 56px rgba(19, 42, 74, 0.08);
}

.prompt-ideas {
  display: grid;
  gap: 8px;
  margin: -10px 0 18px;
}

.prompt-ideas[hidden] {
  display: none;
}

.prompt-ideas button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  color: #1d3048;
  background: #f7f9fc;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  text-align: left;
}

.prompt-ideas button:hover {
  background: #edf5ff;
  border-color: #b8d5ff;
}

.prompt-ideas strong {
  font-size: 13px;
}

.prompt-ideas span {
  display: -webkit-box;
  overflow: hidden;
  color: #66758a;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.primary-action:disabled,
.ai-write-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.generation-loading span {
  animation: generation-pulse 1.2s ease-in-out infinite;
}

.generation-error span {
  color: #d62f3b;
  background: #fff0f1;
}

.analysis-model {
  flex: 0 0 auto;
  color: #315f9d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.generator-hero .result-grid img {
  height: auto;
  object-fit: contain;
  background: #f2f5f9;
}

@keyframes generation-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  height: 100px;
  padding: 0 clamp(24px, 5vw, 96px);
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.top-nav a,
.nav-pill,
.user-btn,
.mode-chip,
.step,
.panel-title,
.segmented,
.counter,
.result-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
}

.brand-logo {
  width: 52px;
  height: 52px;
  overflow: hidden;
  padding: 4px;
  background: #11172f;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(13, 30, 78, 0.18);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.top-nav {
  justify-content: center;
  gap: 8px;
  color: #3f4c5e;
  white-space: nowrap;
}

.top-nav a {
  min-height: 48px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover {
  color: var(--blue);
  background: #edf5ff;
}

.top-nav .is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(8, 119, 255, 0.24);
}

.nav-icon {
  font-size: 19px;
}

.top-nav em,
.top-nav small {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  color: var(--orange);
  background: #fff2d8;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.top-nav small {
  color: #fff;
  background: var(--danger);
}

.user-btn {
  justify-content: center;
  width: auto;
  min-width: 48px;
  max-width: 180px;
  height: 48px;
  padding: 0 16px;
  overflow: hidden;
  color: var(--blue);
  background: #e6f2ff;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-btn.is-login-entry {
  width: auto;
  min-width: 86px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 800;
}

.user-menu {
  position: relative;
  justify-self: end;
}

.generator-hero {
  padding: 64px clamp(18px, 5vw, 96px) 56px;
  text-align: center;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  display: none;
  width: 280px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(19, 42, 74, 0.18);
}

.user-menu.is-open .user-dropdown {
  display: block;
}

.user-email {
  padding: 18px 20px;
  color: #0c1d2d;
  border-bottom: 1px solid #edf1f6;
  font-size: 18px;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: #0c1d2d;
  background: #fff;
  border: 0;
  text-align: left;
  font-size: 17px;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: #f7f9fc;
}

.user-dropdown .logout-btn {
  margin-top: 8px;
  color: #ff3b42;
  border-top: 1px solid #edf1f6;
}

.auth-open-btn,
.recharge-btn {
  font-weight: 800;
}

.recharge-btn {
  color: var(--blue) !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 19, 34, 0.28);
  backdrop-filter: blur(8px);
}

.auth-modal.is-open {
  display: grid;
}

.auth-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(19, 42, 74, 0.22);
}

.auth-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  color: #6b7788;
  background: #f4f6fa;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
}

.auth-dialog h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 28px;
}

.auth-dialog p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-dialog label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-dialog label span {
  color: #253a53;
  font-weight: 800;
}

.auth-dialog input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #f4f6fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.auth-actions button {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 900;
}

.auth-login {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border: 0;
}

.auth-register {
  color: var(--blue);
  background: #edf5ff;
  border: 1px solid #d5e5ff;
}

.auth-message {
  min-height: 22px;
  margin-top: 14px;
  color: var(--blue);
}

.auth-message.is-error {
  color: #ff3b42;
}

.recharge-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 19, 34, 0.32);
  backdrop-filter: blur(8px);
}

.recharge-modal.is-open {
  display: grid;
}

.recharge-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(19, 42, 74, 0.22);
}

.recharge-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  color: #6b7788;
  background: #f4f6fa;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
}

.recharge-dialog h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 28px;
}

.recharge-message {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.recharge-modal.is-insufficient .recharge-dialog {
  border-color: rgba(255, 70, 99, 0.28);
}

.recharge-modal.is-insufficient h2 {
  color: var(--danger);
}

.recharge-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recharge-options button {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 16px;
  text-align: left;
  background: #f7faff;
  border: 1px solid #dce8f7;
  border-radius: 16px;
}

.recharge-options strong {
  color: var(--ink);
  font-size: 20px;
}

.recharge-options span {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.recharge-status {
  min-height: 22px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 560px) {
  .recharge-options {
    grid-template-columns: 1fr;
  }
}

.mode-chip {
  width: max-content;
  min-height: 46px;
  gap: 9px;
  margin: 0 auto 28px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(19, 42, 74, 0.06);
  font-size: 18px;
}

.generator-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.15;
  letter-spacing: 0;
}

.generator-hero > p {
  margin: 0 auto;
  max-width: 900px;
  color: #3e526c;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.stepper {
  display: grid;
  grid-template-columns: auto 60px auto 60px auto 60px auto 60px auto;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 78px auto 50px;
}

.stepper i {
  display: block;
  height: 1px;
  background: var(--line);
}

.step {
  gap: 14px;
  min-width: 156px;
  min-height: 62px;
  padding: 9px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.step.is-current {
  background: #f0edff;
  border-color: #e2dcff;
  box-shadow: 0 16px 36px rgba(97, 80, 214, 0.16);
}

.step b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #8c98a8;
  background: #f4f7fb;
  border-radius: 16px;
  box-shadow: 0 9px 18px rgba(29, 46, 76, 0.08);
  font-size: 19px;
  font-style: italic;
}

.step.is-current b {
  color: #6252ff;
  background: #fff;
}

.step span {
  display: grid;
  gap: 2px;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}

.step strong {
  color: #8794a7;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.step.is-current strong {
  color: #6252ff;
}

.step.is-done b {
  color: #fff;
  background: var(--blue);
}

.studio-shell {
  display: grid;
  grid-template-columns: minmax(340px, 438px) minmax(520px, 1fr);
  gap: 40px;
  max-width: 1448px;
  margin: 0 auto;
  text-align: left;
}

.control-column {
  display: grid;
  align-content: start;
  gap: 26px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 2px 0 rgba(14, 31, 53, 0.02), var(--shadow);
}

.upload-panel {
  padding: 32px;
}

.panel-title {
  gap: 14px;
  margin-bottom: 22px;
}

.panel-title h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.panel-title p {
  margin: 0;
  color: #3b526c;
  font-size: 16px;
}

.panel-title > strong {
  margin-left: auto;
  font-weight: 500;
}

.round-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #4c5a6d;
  background: #f1f3f7;
  border-radius: 50%;
  font-size: 19px;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 144px;
  place-items: center;
  padding: 26px;
  border: 2px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-box:hover {
  background: #f8fbff;
  border-color: #bdd6ff;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  place-items: center;
  color: #4b5d73;
  background: #f0f2f7;
  border-radius: 50%;
  font-size: 28px;
}

.upload-box.has-preview {
  align-content: start;
  min-height: 118px;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.upload-preview-row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 12px;
}

.upload-preview-row figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 118px;
  height: 118px;
  background: #f3f6fb;
  border-radius: 14px;
}

.upload-preview-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-row figure button {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: rgba(7, 26, 51, 0.72);
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}

.upload-preview-row figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: rgba(7, 26, 51, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.add-upload-tile {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  color: #4b5d73;
  border: 2px dashed var(--line);
  border-radius: 14px;
  font-size: 34px;
}

.settings-panel {
  padding: 30px;
  border-radius: 28px;
}

.segmented {
  gap: 10px;
  margin-bottom: 26px;
}

.segmented button {
  position: relative;
  flex: 1;
  min-height: 40px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 800;
}

.segmented .is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(49, 95, 231, 0.2);
}

.segmented sup {
  position: absolute;
  right: -6px;
  top: -9px;
  padding: 2px 6px;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 11px;
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.field span {
  color: #243850;
  font-size: 16px;
}

.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: #f4f6fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.field select {
  height: 50px;
  padding: 0 16px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #728198 50%),
    linear-gradient(135deg, #728198 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 21px,
    calc(100% - 16px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  padding: 16px 16px 54px;
  color: #20364e;
  font-size: 18px;
  line-height: 1.55;
}

.field textarea::placeholder {
  color: #8a9ab0;
}

.prompt-field,
.has-ai-write {
  position: relative;
}

.ai-write-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #071a33;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(19, 42, 74, 0.08);
  font-weight: 800;
}

.has-ai-write textarea {
  padding-bottom: 54px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.field-grid .field {
  margin-bottom: 20px;
}

.counter {
  justify-content: space-between;
  height: 50px;
  padding: 0 10px;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.counter button {
  width: 34px;
  height: 34px;
  color: var(--blue);
  background: #e8f2ff;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
}

.counter button:disabled {
  color: #a8b4c4;
  background: #eef1f6;
  cursor: not-allowed;
}

.primary-action {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 100%;
  min-height: 70px;
  margin-top: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(49, 95, 231, 0.24);
  font-size: 22px;
  font-weight: 900;
}

.primary-action small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.result-panel {
  min-height: 540px;
  padding: 32px;
}

.result-title {
  align-items: flex-start;
}

.result-actions {
  gap: 10px;
  margin-left: auto;
}

.result-actions button {
  min-height: 36px;
  padding: 0 14px;
  color: #52627a;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.empty-result {
  display: grid;
  min-height: 420px;
  place-items: center;
}

.result-placeholder {
  max-width: 360px;
  color: var(--muted);
  text-align: center;
}

.result-placeholder span {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--blue);
  background: #edf5ff;
  border-radius: 22px;
  font-size: 28px;
}

.result-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.result-placeholder p {
  margin: 0;
  line-height: 1.8;
}

.analysis-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-bottom: 22px;
  padding: 18px 20px;
  background: #f6f9fe;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.analysis-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

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

.analysis-card button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  color: var(--blue);
  background: #e8f2ff;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.result-grid article {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.result-grid article input {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.result-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.result-grid span {
  display: block;
  padding: 12px 14px;
  color: #394a60;
  font-weight: 800;
}

.asset-download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.asset-download-bar button {
  min-height: 38px;
  padding: 0 14px;
  color: #155ee8;
  background: #edf5ff;
  border: 1px solid #d5e5ff;
  border-radius: 12px;
  font-weight: 900;
}

.uploaded-grid article {
  border-color: #cfe0ff;
}

.sample-section {
  padding: 72px clamp(18px, 5vw, 96px) 96px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.sample-grid article {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.sample-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sample-grid span {
  display: block;
  padding: 16px 18px;
  font-weight: 900;
}

.support-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  width: 74px;
  height: 74px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(8, 119, 255, 0.28);
  font-size: 36px;
}

.home-page {
  min-height: 100vh;
  background: #f8fafc;
}

.home-header {
  position: relative;
  background: transparent;
}

.home-hero {
  display: grid;
  min-height: 680px;
  place-items: center;
  padding: 90px clamp(20px, 6vw, 120px) 120px;
  text-align: center;
}

.home-brand-word {
  margin: 0 0 4px;
  color: #4f5df7;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
}

.home-hero h1 {
  max-width: 1180px;
  margin: 0 auto 24px;
  color: #0c1d2d;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.12;
  letter-spacing: 0;
}

.home-subtitle {
  max-width: 880px;
  margin: 0 auto;
  color: #34495f;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 52px;
}

.home-primary,
.home-demo {
  display: inline-flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
}

.home-primary {
  gap: 18px;
  min-width: 284px;
  padding: 0 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 999px;
  box-shadow: 0 22px 46px rgba(53, 89, 225, 0.24);
}

.home-primary span {
  font-size: 28px;
}

.home-demo {
  gap: 18px;
  color: #26394d;
}

.home-demo span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(19, 42, 74, 0.08);
}

.visual-matrix {
  padding: 40px clamp(20px, 6vw, 120px) 120px;
}

.matrix-copy {
  max-width: 900px;
}

.matrix-copy h2 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

.matrix-copy p {
  margin: 0 0 38px;
  color: #34495f;
  font-size: 24px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.matrix-grid article {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.matrix-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.matrix-grid strong {
  display: block;
  padding: 18px 20px;
  color: #0c1d2d;
  font-size: 20px;
}

.clone-hero {
  padding: 82px clamp(18px, 5vw, 96px) 72px;
  text-align: center;
}

.clone-hero h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.clone-hero > p {
  max-width: 820px;
  margin: 0 auto;
  color: #34495f;
  font-size: 21px;
  line-height: 1.55;
}

.clone-shell {
  display: grid;
  grid-template-columns: minmax(340px, 392px) minmax(560px, 1fr);
  gap: 36px;
  max-width: 1296px;
  margin: 58px auto 0;
  text-align: left;
}

.clone-control {
  display: grid;
  align-content: start;
  gap: 24px;
}

.clone-mode-pane {
  display: none;
  gap: 24px;
}

.clone-mode-pane.is-active {
  display: grid;
}

.clone-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #f0f2f6;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.clone-tabs button {
  flex: 1;
  min-height: 44px;
  color: #31445a;
  background: transparent;
  border: 0;
  border-radius: 22px;
  font-weight: 800;
}

.clone-tabs .is-selected {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(8, 119, 255, 0.22);
}

.clone-card {
  padding: 30px;
}

.clone-sku-tips {
  gap: 14px;
}

.clone-sku-tips strong {
  color: var(--ink);
  font-size: 18px;
}

.clone-sku-tips div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.clone-sku-tips span {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #155ee8;
  background: #edf5ff;
  border: 1px solid #d5e5ff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.clone-upload-box {
  min-height: 148px;
}

.clone-result-panel {
  min-height: 600px;
  padding: 32px;
}

.clone-result {
  min-height: 500px;
}

.clone-result-panel .clone-result {
  display: none;
}

.clone-result-panel .clone-result.is-active {
  display: grid;
}

.clone-action {
  margin-top: 0;
}

.clone-action small {
  display: block;
  margin-left: 10px;
  font-size: 13px;
  opacity: 0.78;
}

.clone-brief-card {
  padding-bottom: 18px;
}

.clone-brief textarea {
  min-height: 96px;
}

.clone-field-grid {
  gap: 12px;
}

.clone-field-grid .field {
  margin-bottom: 0;
}

.clone-plan-card {
  display: grid;
  gap: 16px;
}

.clone-plan-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.clone-plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.clone-strength {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.clone-strength button {
  min-height: 38px;
  color: #38506b;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 900;
}

.clone-strength .is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(8, 119, 255, 0.2);
}

.clone-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1296px;
  margin: 34px auto 0;
  text-align: left;
}

.clone-benefits article,
.clone-value-grid article,
.clone-scenario-grid article,
.clone-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(19, 42, 74, 0.05);
}

.clone-benefits article {
  padding: 22px 24px;
}

.clone-benefits strong,
.clone-benefits span {
  display: block;
}

.clone-benefits strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.clone-benefits span {
  color: var(--muted);
  line-height: 1.55;
}

.clone-showcase,
.clone-section,
.clone-compare,
.clone-faq {
  max-width: 1296px;
  margin: 0 auto;
  padding: 70px clamp(18px, 5vw, 96px);
}

.clone-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 44px;
  align-items: center;
  padding: 54px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.clone-showcase-copy {
  text-align: left;
}

.clone-showcase-copy > span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 12px;
  color: var(--blue);
  background: #edf5ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.clone-showcase-copy h2,
.section-heading h2,
.clone-compare h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.clone-showcase-copy h2 {
  max-width: 590px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.clone-showcase-copy p {
  max-width: 620px;
  margin: 22px 0 28px;
  color: #3b4e64;
  font-size: 18px;
  line-height: 1.8;
}

.clone-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clone-checks b {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #17314d;
  background: #f6f9fd;
  border: 1px solid #e8eef6;
  border-radius: 12px;
}

.clone-checks b::before {
  content: "✦";
  margin-right: 8px;
  color: var(--blue);
}

.clone-showcase-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(19, 42, 74, 0.18);
}

.clone-showcase-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.clone-showcase-image figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  font-size: 13px;
  font-weight: 800;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.clone-compare h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.clone-value-grid,
.clone-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.clone-value-grid article {
  min-height: 260px;
  padding: 34px;
  text-align: left;
}

.clone-value-grid span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 26px;
  color: var(--blue);
  background: #edf5ff;
  border-radius: 15px;
  font-weight: 900;
}

.clone-value-grid h3,
.clone-scenario-grid h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
}

.clone-value-grid p,
.clone-scenario-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.clone-scenario-grid article {
  overflow: hidden;
  text-align: left;
}

.clone-scenario-grid img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.clone-scenario-grid h3 {
  padding: 24px 24px 0;
}

.clone-scenario-grid p {
  padding: 0 24px 28px;
}

.clone-compare {
  text-align: center;
}

.compare-table {
  overflow: hidden;
  max-width: 960px;
  margin: 34px auto 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(19, 42, 74, 0.05);
}

.compare-table > div {
  display: grid;
  grid-template-columns: 0.75fr 1.1fr 1.3fr;
  min-height: 68px;
  border-bottom: 1px solid #edf1f6;
}

.compare-table > div:last-child {
  border-bottom: 0;
}

.compare-table strong,
.compare-table span {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  line-height: 1.55;
}

.compare-table strong {
  color: #17314d;
  background: #f7faff;
  font-weight: 900;
}

.compare-table span {
  color: #526276;
}

.compare-table span:last-child,
.compare-table strong:last-child {
  color: #155ee8;
  background: #eef6ff;
  font-weight: 900;
}

.clone-faq {
  max-width: 900px;
}

.clone-faq details {
  margin-bottom: 14px;
  padding: 0 24px;
  text-align: left;
}

.clone-faq summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.clone-faq summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-left: 16px;
  color: #66788d;
  background: #f2f5f9;
  border-radius: 999px;
}

.clone-faq details[open] summary::after {
  content: "-";
}

.clone-faq p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
  line-height: 1.75;
}

.clone-result .analysis-card {
  margin-bottom: 18px;
}

@media (max-width: 1180px) {
  .app-header {
    grid-template-columns: 180px 1fr 54px;
    padding-inline: 22px;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .studio-shell {
    grid-template-columns: 1fr;
  }

  .clone-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: 1fr 48px;
    height: auto;
    padding: 14px 16px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .top-nav {
    grid-column: 1 / -1;
    order: 3;
    padding-bottom: 4px;
  }

  .generator-hero {
    padding: 42px 16px;
  }

  .stepper {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 44px auto 32px;
  }

  .stepper i {
    width: 1px;
    height: 18px;
    margin: 0 auto;
  }

  .step {
    width: 100%;
  }

  .studio-shell {
    gap: 18px;
  }

  .panel,
  .upload-panel,
  .settings-panel,
  .result-panel {
    border-radius: 20px;
    padding: 20px;
  }

  .segmented {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .result-title {
    flex-wrap: wrap;
  }

  .result-actions {
    width: 100%;
    margin-left: 56px;
  }

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

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

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

  .support-btn {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .home-actions {
    align-items: center;
    flex-direction: column;
  }

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

  .clone-tabs {
    flex-direction: column;
  }
}

.pricing-hero{padding:86px clamp(18px,5vw,96px) 44px;text-align:center}.pricing-hero h1{margin:0 0 18px;color:var(--ink);font-size:clamp(42px,6vw,68px);line-height:1.08}.pricing-hero>p{max-width:780px;margin:0 auto;color:#34495f;font-size:21px;line-height:1.65}.billing-toggle{display:inline-flex;gap:8px;margin-top:34px;padding:6px;background:#eef2f7;border:1px solid var(--line);border-radius:999px}.billing-toggle button{min-height:44px;padding:0 22px;color:#34495f;background:transparent;border:0;border-radius:999px;font-weight:900}.billing-toggle .is-selected{color:#fff;background:var(--blue);box-shadow:0 12px 24px rgba(8,119,255,.22)}.billing-toggle span{margin-left:4px;color:var(--orange)}.pricing-plans{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;max-width:1320px;margin:0 auto;padding:34px clamp(18px,5vw,96px) 64px}.price-card{position:relative;display:grid;align-content:start;min-height:520px;padding:30px;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}.price-card h2{margin:0 0 10px;font-size:28px}.price-card p{margin:0 0 26px;color:var(--muted);line-height:1.7}.featured-plan{border-color:rgba(8,119,255,.42);box-shadow:0 28px 76px rgba(8,119,255,.16);transform:translateY(-10px)}.plan-badge{position:absolute;right:24px;top:22px;padding:6px 12px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));border-radius:999px;font-size:13px;font-weight:900}.plan-price{display:flex;align-items:end;gap:8px;margin-bottom:26px}.plan-price span{color:var(--ink);font-size:48px;font-weight:900;line-height:1}.plan-price small{color:var(--muted);font-size:16px}.plan-btn{display:inline-flex;min-height:52px;align-items:center;justify-content:center;margin-bottom:24px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));border-radius:16px;font-weight:900}.secondary-plan{color:var(--blue);background:#edf5ff;border:1px solid #d5e5ff}.price-card ul{display:grid;gap:12px;margin:0;padding:0;color:#34495f;list-style:none}.price-card li:before{content:"✓";margin-right:8px;color:var(--blue);font-weight:900}.credit-section,.pricing-faq{max-width:1320px;margin:0 auto;padding:10px clamp(18px,5vw,96px) 66px}.pricing-heading{max-width:720px;margin-bottom:24px}.pricing-heading h2{margin:0 0 12px;font-size:clamp(30px,4vw,46px)}.pricing-heading p{margin:0;color:var(--muted);font-size:18px;line-height:1.7}.credit-grid,.pricing-faq-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.credit-card,.pricing-faq-grid article{padding:24px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 14px 34px rgba(19,42,74,.06)}.credit-card strong,.credit-card span{display:block}.credit-card strong{margin-bottom:8px;color:var(--ink);font-size:24px}.credit-card span{color:var(--blue);font-size:28px;font-weight:900}.pricing-faq-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pricing-faq-grid h3{margin:0 0 10px}.pricing-faq-grid p{margin:0;color:var(--muted);line-height:1.7}@media (max-width:1180px){.pricing-plans,.credit-grid,.pricing-faq-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.pricing-plans,.credit-grid,.pricing-faq-grid{grid-template-columns:1fr}.featured-plan{transform:none}}
.credit-card.is-selected{border-color:rgba(8,119,255,.55);background:#edf5ff;box-shadow:0 18px 42px rgba(8,119,255,.16)}

.price-card li:before {
  content: "✓";
}

/* Compact density pass: closer to the reference site's information density. */
body{font-size:14px}.app-header{height:72px;padding:0 clamp(18px,4vw,72px);gap:16px}.brand{font-size:20px}.brand-logo{width:42px;height:42px;border-radius:14px}.brand-logo img{border-radius:10px}.top-nav{gap:4px;font-size:15px}.top-nav a{min-height:38px;gap:6px;padding:0 10px;border-radius:10px}.nav-icon{font-size:16px}.user-btn{width:auto;min-width:42px;max-width:180px;height:42px;padding:0 14px;overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.mode-chip{min-height:36px;margin-bottom:22px;padding:0 16px;font-size:15px}.generator-hero{padding:44px clamp(18px,5vw,76px) 42px}.generator-hero h1,.clone-hero h1{margin-bottom:12px;font-size:clamp(30px,4vw,42px);line-height:1.14}.generator-hero>p,.clone-hero>p{font-size:17px;line-height:1.55}.stepper{margin:46px auto 34px;grid-template-columns:auto 44px auto 44px auto 44px auto 44px auto}.step{min-width:132px;min-height:52px;gap:10px;padding:7px 15px;border-radius:16px}.step b{width:36px;height:36px;border-radius:13px;font-size:16px}.step span,.step strong{font-size:12px}.studio-shell{grid-template-columns:minmax(320px,390px) minmax(520px,1fr);gap:28px;max-width:1320px}.control-column{gap:18px}.panel{border-radius:22px}.upload-panel,.settings-panel,.clone-card,.result-panel,.clone-result-panel{padding:24px}.panel-title{gap:10px;margin-bottom:16px}.panel-title h2{font-size:17px}.panel-title p{font-size:13px}.round-icon{width:34px;height:34px;font-size:15px}.upload-box{min-height:118px;padding:20px;border-radius:16px;font-size:13px}.upload-icon{width:42px;height:42px;margin-bottom:10px;font-size:22px}.upload-preview-row figure,.add-upload-tile{width:96px;height:96px}.segmented{gap:8px;margin-bottom:20px}.segmented button{min-height:36px;border-radius:13px;font-size:14px}.field{gap:8px;margin-bottom:18px}.field span{font-size:14px}.field select{height:44px;padding:0 14px;font-size:14px;background-position:calc(100% - 20px) 18px,calc(100% - 14px) 18px}.field textarea{min-height:118px;padding:14px 14px 48px;font-size:15px}.ai-write-btn{min-height:32px;padding:0 12px;font-size:13px}.field-grid{column-gap:14px}.field-grid .field{margin-bottom:16px}.primary-action{min-height:56px;border-radius:16px;font-size:18px}.result-panel{min-height:450px}.empty-result{min-height:330px}.result-placeholder span{width:54px;height:54px;font-size:24px}.result-placeholder strong{font-size:17px}.analysis-card{padding:14px 16px}.analysis-card strong{font-size:16px}.result-grid{gap:12px;max-height:590px}.result-grid span{padding:10px 12px;font-size:13px}.support-btn{width:62px;height:62px;font-size:30px}.home-hero{min-height:560px;padding:58px clamp(20px,6vw,100px) 78px}.home-brand-word{font-size:clamp(38px,5vw,58px)}.home-hero h1{max-width:1040px;margin-bottom:18px;font-size:clamp(42px,5vw,62px);line-height:1.1}.home-subtitle{max-width:760px;font-size:clamp(17px,1.8vw,22px);line-height:1.45}.home-actions{gap:26px;margin-top:38px}.home-primary,.home-demo{min-height:64px;font-size:21px}.home-primary{min-width:230px;padding:0 34px}.home-demo span{width:58px;height:58px}.visual-matrix{padding:26px clamp(20px,6vw,100px) 86px}.matrix-copy h2{font-size:clamp(40px,6vw,64px)}.matrix-copy p{margin-bottom:28px;font-size:19px}.matrix-grid{gap:16px}.matrix-grid article{border-radius:18px}.matrix-grid strong{padding:14px 16px;font-size:16px}.clone-hero{padding:58px clamp(18px,5vw,76px) 52px}.clone-shell{grid-template-columns:minmax(320px,380px) minmax(540px,1fr);gap:28px;max-width:1240px;margin-top:40px}.clone-control{gap:18px}.clone-tabs{border-radius:22px}.clone-tabs button{min-height:38px;border-radius:18px;font-size:14px}.clone-upload-box{min-height:126px}.clone-result-panel{min-height:500px}.clone-result{min-height:400px}.pricing-hero{padding:58px clamp(18px,5vw,76px) 32px}.pricing-hero h1{font-size:clamp(36px,5vw,54px)}.pricing-hero>p{font-size:17px}.billing-toggle{margin-top:26px}.billing-toggle button{min-height:38px;padding:0 18px}.pricing-plans{gap:16px;padding:26px clamp(18px,5vw,76px) 48px}.price-card{min-height:440px;padding:24px;border-radius:22px}.price-card h2{font-size:23px}.price-card p{margin-bottom:20px}.plan-price{margin-bottom:20px}.plan-price span{font-size:38px}.plan-btn{min-height:46px;border-radius:14px}.price-card ul{gap:9px;font-size:13px}.credit-section,.pricing-faq{padding:8px clamp(18px,5vw,76px) 48px}.pricing-heading h2{font-size:clamp(26px,3vw,36px)}.pricing-heading p{font-size:15px}.credit-grid,.pricing-faq-grid{gap:14px}.credit-card,.pricing-faq-grid article{padding:20px;border-radius:18px}.credit-card strong{font-size:19px}.credit-card span{font-size:23px}@media (max-width:760px){.app-header{height:auto}.generator-hero,.clone-hero{padding-top:34px}.stepper{margin:32px auto 24px}.home-hero{min-height:auto;padding-top:42px}.home-primary,.home-demo{min-height:56px;font-size:18px}.support-btn{width:52px;height:52px;font-size:24px}}

/* Customer support floating entry and dialog. */
.support-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  color: #fff;
  background: #0877ff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(8, 119, 255, 0.32);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: width 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.support-btn:hover,
.support-btn:focus-visible {
  width: 132px;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(8, 119, 255, 0.38);
}

.support-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.support-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.support-text {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.2s ease, opacity 0.16s ease;
}

.support-btn:hover .support-text,
.support-btn:focus-visible .support-text {
  max-width: 72px;
  opacity: 1;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(5px);
}

.support-modal.is-open {
  display: flex;
}

.support-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 26px;
  color: #172033;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(20, 40, 80, 0.22);
}

.support-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: #7c889b;
  background: #f3f6fb;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.support-dialog h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 22px;
}

.support-greeting {
  margin-bottom: 16px;
  padding: 16px;
  background: #f7f9fd;
  border: 1px solid #edf1f7;
  border-radius: 14px;
}

.support-greeting strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.support-greeting p {
  margin: 0;
  color: #5d6a7d;
  font-size: 14px;
  line-height: 1.55;
}

.support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
}

.support-row span {
  display: block;
  margin-bottom: 4px;
  color: #7a8799;
  font-size: 13px;
}

.support-row strong {
  color: #182235;
  font-size: 15px;
}

.support-row button,
.support-row a {
  min-width: 64px;
  min-height: 34px;
  padding: 0 14px;
  color: #0877ff;
  background: #edf5ff;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  line-height: 34px;
  cursor: pointer;
}

.qr-card {
  display: grid;
  width: 178px;
  height: 178px;
  margin: 8px auto 10px;
  place-items: center;
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20, 40, 80, 0.08);
}

.qr-code {
  width: 136px;
  height: 136px;
  background:
    linear-gradient(#111 0 0) 10px 10px / 30px 30px no-repeat,
    linear-gradient(#111 0 0) 96px 10px / 30px 30px no-repeat,
    linear-gradient(#111 0 0) 10px 96px / 30px 30px no-repeat,
    repeating-linear-gradient(90deg, #111 0 7px, transparent 7px 14px),
    repeating-linear-gradient(0deg, transparent 0 7px, #111 7px 14px);
  border: 10px solid #fff;
  image-rendering: pixelated;
}

.qr-caption {
  margin: 0 0 12px;
  color: #5d6a7d;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .support-btn {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .support-btn:hover,
  .support-btn:focus-visible {
    width: 124px;
  }

  .support-dialog {
    padding: 22px;
  }
}

/* Standalone auth page. */
.auth-page {
  min-height: 100vh;
  color: #101d32;
  background:
    radial-gradient(circle at 18% 18%, rgba(8, 119, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #f7faff 0%, #eef5ff 48%, #f8fbff 100%);
}

.auth-topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 72px);
}

.auth-back {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  color: #0877ff;
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(20, 58, 110, 0.08);
}

.auth-page-shell {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 420px);
  gap: clamp(28px, 6vw, 76px);
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  align-items: center;
  margin: 0 auto;
  padding: 30px clamp(18px, 5vw, 72px) 72px;
}

.auth-showcase {
  max-width: 640px;
}

.auth-kicker {
  width: max-content;
  margin: 0 0 18px;
  padding: 8px 14px;
  color: #0877ff;
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.auth-showcase h1 {
  margin: 0 0 16px;
  color: #071a33;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.auth-showcase p {
  max-width: 560px;
  margin: 0;
  color: #52647a;
  font-size: 17px;
  line-height: 1.7;
}

.auth-preview-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: repeat(2, 150px);
  gap: 14px;
  max-width: 560px;
  margin-top: 34px;
}

.auth-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(20, 58, 110, 0.12);
}

.auth-preview-grid img:first-child {
  grid-row: 1 / 3;
}

.auth-page-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce8f7;
  border-radius: 24px;
  box-shadow: 0 28px 76px rgba(20, 58, 110, 0.16);
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  background: #eef4fb;
  border-radius: 999px;
}

.auth-mode-toggle button {
  min-height: 38px;
  color: #52647a;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.auth-mode-toggle .is-selected {
  color: #fff;
  background: #0877ff;
  box-shadow: 0 10px 22px rgba(8, 119, 255, 0.22);
}

.auth-page-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.auth-page-card p {
  margin: 0 0 22px;
  color: #66758a;
  font-size: 14px;
  line-height: 1.65;
}

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

.auth-page-form label {
  display: grid;
  gap: 8px;
}

.auth-page-form span {
  color: #24364f;
  font-size: 14px;
  font-weight: 900;
}

.auth-page-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: #101d32;
  background: #f7f9fd;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  outline: 0;
}

.auth-page-form input:focus {
  border-color: #0877ff;
  box-shadow: 0 0 0 4px rgba(8, 119, 255, 0.12);
}

.auth-code-row > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
}

.auth-page-code-btn {
  min-height: 46px;
  color: #fff;
  background: #0877ff;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
}

.auth-page-submit {
  min-height: 48px;
  color: #fff;
  background: linear-gradient(135deg, #0877ff, #6f44e8);
  border: 0;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(8, 119, 255, 0.24);
}

.auth-page-message {
  min-height: 20px;
  color: #0877ff;
  font-size: 13px;
}

.auth-page-message.is-error {
  color: #ff3b42;
}

@media (max-width: 900px) {
  .auth-page-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }

  .auth-showcase {
    max-width: none;
  }

  .auth-preview-grid {
    grid-template-rows: repeat(2, 120px);
  }
}

@media (max-width: 560px) {
  .auth-topbar {
    gap: 12px;
  }

  .auth-back {
    padding: 0 12px;
  }

  .auth-preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 120px);
  }

  .auth-preview-grid img:first-child {
    grid-row: auto;
  }

  .auth-page-card {
    padding: 20px;
  }

  .auth-code-row > div {
    grid-template-columns: 1fr;
  }
}

/* Admin backend page. */
.admin-page {
  min-height: 100vh;
  background: #f4f7fb;
}

.admin-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 42px 20px 70px;
}

.admin-login-card,
.admin-panel {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(20, 58, 110, 0.12);
}

.admin-login-card {
  max-width: 420px;
  margin: 80px auto 0;
  padding: 28px;
}

.admin-login-card h1,
.admin-panel h1 {
  margin: 0 0 8px;
  color: #071a33;
  font-size: 26px;
}

.admin-login-card p {
  margin: 0 0 22px;
  color: #66758a;
}

.admin-login-form {
  display: grid;
  gap: 16px;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
  color: #24364f;
  font-size: 14px;
  font-weight: 900;
}

.admin-login-form input,
.admin-points-input {
  height: 44px;
  padding: 0 12px;
  color: #101d32;
  background: #f7f9fd;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  outline: 0;
}

.admin-login-form button,
.admin-save-points,
.admin-logout {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: #0877ff;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}

.admin-message {
  min-height: 20px;
  color: #0877ff;
  font-size: 13px;
}

.admin-message.is-error {
  color: #ff3b42;
}

.admin-panel {
  display: none;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  padding: 0;
}

.admin-sidebar {
  padding: 24px;
  background: #f8fbff;
  border-right: 1px solid #dce8f7;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #071a33;
  font-size: 18px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button {
  min-height: 42px;
  padding: 0 14px;
  color: #40546d;
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-align: left;
  font-weight: 900;
}

.admin-nav button:hover {
  background: #edf5ff;
}

.admin-nav .is-active {
  color: #fff;
  background: #0877ff;
  box-shadow: 0 12px 24px rgba(8, 119, 255, 0.18);
}

.admin-content {
  position: relative;
  padding: 28px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stats article {
  padding: 18px;
  background: #f7f9fd;
  border: 1px solid #e5edf7;
  border-radius: 16px;
}

.admin-stats span {
  display: block;
  margin-bottom: 8px;
  color: #66758a;
}

.admin-stats strong {
  font-size: 30px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5edf7;
  text-align: left;
}

.admin-table th {
  color: #66758a;
  font-size: 13px;
}

.admin-points-input {
  width: 120px;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: block;
}

.admin-api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-api-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-api-grid span {
  color: #24364f;
  font-weight: 900;
}

.admin-api-grid h3 {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding-top: 18px;
  color: #071a33;
  border-top: 1px solid #dce5f0;
  font-size: 16px;
}

.admin-api-grid h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-api-grid .api-key-label-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.api-key-label-head button {
  min-height: 26px;
  padding: 0 9px;
  color: #66758a;
  background: transparent;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  font-size: 12px;
}

.api-key-label-head button.is-armed {
  color: #c62834;
  background: #fff0f1;
  border-color: #f1b9be;
}

.api-key-label-head button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-api-grid input,
.admin-api-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: #101d32;
  background: #f7f9fd;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  outline: 0;
}

.admin-ai-write-form {
  display: grid;
  gap: 16px;
}

.admin-api-form > button,
.admin-ai-write-form > button,
.admin-points-rule-form > button {
  justify-self: start;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: #0877ff;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .admin-api-grid {
    grid-template-columns: 1fr;
  }
}

.admin-section-head {
  margin-bottom: 18px;
}

.admin-section-head h2 {
  margin: 0 0 6px;
  color: #071a33;
  font-size: 22px;
}

.admin-section-head p {
  margin: 0;
  color: #66758a;
}

.admin-editor-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.admin-points-rule-form {
  display: grid;
  gap: 22px;
}

.admin-model-form {
  display: grid;
  gap: 22px;
}

.admin-model-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 18px;
}

.admin-model-head,
.admin-model-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-model-head h3,
.admin-model-row-head strong {
  margin: 0;
  color: #071a33;
}

.admin-model-head p {
  margin: 6px 0 0;
  color: #66758a;
}

.admin-model-list {
  display: grid;
  gap: 14px;
}

.admin-model-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #e2ebf6;
  border-radius: 16px;
}

.admin-model-enabled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #40546d;
  font-weight: 900;
}

.admin-add-model,
.admin-delete-model,
.admin-model-form > button {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: #0877ff;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}

.admin-delete-model {
  background: #ff4663;
}

.admin-model-form > button {
  justify-self: start;
}

.admin-model-empty {
  margin: 0;
  padding: 14px;
  color: #66758a;
  background: #f8fbff;
  border: 1px dashed #cbd8e8;
  border-radius: 14px;
}

.admin-rule-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 18px;
}

.admin-rule-group h3 {
  margin: 0;
  color: #071a33;
  font-size: 18px;
}

.admin-editor-form label {
  display: grid;
  gap: 8px;
}

.admin-editor-form span {
  color: #24364f;
  font-weight: 900;
}

.admin-editor-form input,
.admin-editor-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: #101d32;
  background: #f7f9fd;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  outline: 0;
}

.admin-editor-form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-editor-form button {
  justify-self: start;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: #0877ff;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}

.admin-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  display: none;
  padding: 12px 18px;
  color: #fff;
  background: #0877ff;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(8, 119, 255, 0.26);
  font-weight: 900;
}

.admin-toast.is-open {
  display: block;
}

.admin-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-image-field {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f7f9fd;
  border: 1px solid #dce5f0;
  border-radius: 16px;
}

.admin-image-field span {
  color: #24364f;
  font-weight: 900;
}

.admin-image-field img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef4fb;
  border-radius: 12px;
}

.admin-image-field input {
  width: 100%;
  color: #40546d;
  font-size: 13px;
}

@media (max-width: 720px) {
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dce8f7;
  }

  .admin-panel-head,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-upload-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Clone page completion pass. Kept late so it wins over compact density overrides. */
.clone-showcase {
  margin-top: 16px;
  margin-bottom: 10px;
}

.clone-section {
  padding-top: 64px;
  padding-bottom: 54px;
}

.clone-compare {
  padding-top: 56px;
  padding-bottom: 54px;
}

.clone-faq {
  padding-top: 48px;
  padding-bottom: 86px;
}

@media (max-width: 1180px) {
  .clone-shell,
  .clone-showcase {
    grid-template-columns: 1fr;
  }

  .clone-benefits,
  .clone-value-grid,
  .clone-scenario-grid {
    grid-template-columns: 1fr;
  }

  .clone-showcase {
    margin-inline: clamp(18px, 5vw, 76px);
  }
}

@media (max-width: 760px) {
  .clone-hero {
    padding-inline: 16px;
  }

  .clone-shell {
    gap: 18px;
  }

  .clone-benefits {
    gap: 12px;
  }

  .clone-benefits article,
  .clone-value-grid article {
    padding: 20px;
  }

  .clone-showcase,
  .clone-section,
  .clone-compare,
  .clone-faq {
    margin-inline: 16px;
    padding: 38px 0;
  }

  .clone-showcase {
    padding: 22px;
  }

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

  .clone-checks,
  .compare-table > div {
    grid-template-columns: 1fr;
  }

  .compare-table strong,
  .compare-table span {
    padding: 14px 18px;
  }

  .clone-faq details {
    padding-inline: 18px;
  }

  .clone-faq summary {
    align-items: flex-start;
    min-height: 58px;
    padding-block: 18px;
  }
}

/* Generator page completion pass. */
.gen-showcase,
.gen-section,
.gen-compare,
.gen-team,
.gen-faq {
  max-width: 1296px;
  margin: 0 auto;
  padding: 64px clamp(18px, 5vw, 76px);
}

.gen-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 44px;
  align-items: center;
  margin-top: 18px;
  padding: 54px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.gen-showcase-copy {
  text-align: left;
}

.gen-showcase-copy > span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 12px;
  color: var(--blue);
  background: #edf5ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.gen-showcase-copy h2,
.gen-compare h2,
.gen-team h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.gen-showcase-copy h2 {
  max-width: 620px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.gen-showcase-copy p {
  max-width: 630px;
  margin: 22px 0 28px;
  color: #3b4e64;
  font-size: 18px;
  line-height: 1.8;
}

.gen-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gen-checks b {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #17314d;
  background: #f6f9fd;
  border: 1px solid #e8eef6;
  border-radius: 12px;
}

.gen-checks b::before {
  content: "✦";
  margin-right: 8px;
  color: var(--blue);
}

.gen-showcase-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #081121;
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(19, 42, 74, 0.18);
}

.gen-showcase-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gen-showcase-image figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  font-size: 13px;
  font-weight: 800;
}

.gen-compare,
.gen-team {
  text-align: center;
}

.gen-compare h2,
.gen-team h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.gen-compare > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.gen-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gen-tech-card,
.gen-team-grid article,
.gen-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(19, 42, 74, 0.05);
}

.gen-tech-card {
  overflow: hidden;
  text-align: left;
}

.gen-tech-card.is-wide img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}

.gen-tech-card div,
.gen-tech-card:not(.is-wide) {
  padding: 28px;
}

.gen-tech-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue);
  background: #edf5ff;
  border-radius: 14px;
  font-weight: 900;
}

.gen-tech-card h3,
.gen-team-grid h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.gen-tech-card p,
.gen-team-grid p,
.gen-faq p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.gen-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.gen-team-grid article {
  min-height: 190px;
  padding: 30px;
}

.gen-team-grid span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--orange);
  background: #fff6e8;
  border-radius: 999px;
  font-weight: 900;
}

.gen-faq {
  max-width: 900px;
  padding-top: 48px;
  padding-bottom: 86px;
}

.gen-faq details {
  margin-bottom: 14px;
  padding: 0 24px;
  text-align: left;
}

.gen-faq summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.gen-faq summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-left: 16px;
  color: #66788d;
  background: #f2f5f9;
  border-radius: 999px;
}

.gen-faq details[open] summary::after {
  content: "-";
}

.gen-faq p {
  padding: 0 0 22px;
}

@media (max-width: 1180px) {
  .gen-showcase,
  .gen-tech-grid {
    grid-template-columns: 1fr;
  }

  .gen-team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .generator-hero {
    overflow-x: hidden;
  }

  .studio-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .stepper {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin: 32px auto 24px;
  }

  .stepper i {
    width: 1px;
    height: 18px;
    margin: 0 auto;
  }

  .step {
    width: 100%;
    min-width: 0;
  }

  .control-column,
  .result-panel {
    min-width: 0;
    width: 100%;
  }

  .gen-showcase,
  .gen-section,
  .gen-compare,
  .gen-team,
  .gen-faq {
    margin-inline: 16px;
    padding: 38px 0;
  }

  .gen-showcase {
    padding: 22px;
  }

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

  .gen-checks {
    grid-template-columns: 1fr;
  }

  .gen-tech-card div,
  .gen-tech-card:not(.is-wide),
  .gen-team-grid article {
    padding: 20px;
  }

  .gen-faq details {
    padding-inline: 18px;
  }

  .gen-faq summary {
    align-items: flex-start;
    min-height: 58px;
    padding-block: 18px;
  }
}

/* Model image generation page. */
.model-hero {
  padding: 58px clamp(18px, 5vw, 76px) 52px;
  text-align: center;
}

.model-hero h1 {
  max-width: 920px;
  margin: 0 auto 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}

.model-hero > p {
  max-width: 880px;
  margin: 0 auto;
  color: #3e526c;
  font-size: 17px;
  line-height: 1.55;
}

.model-shell {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(540px, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 40px auto 0;
  text-align: left;
}

.model-control {
  display: grid;
  align-content: start;
  gap: 18px;
}

.model-card,
.model-result-panel {
  padding: 24px;
}

.model-product-upload {
  min-height: 142px;
}

.model-description textarea {
  min-height: 128px;
}

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

.model-field-grid .field {
  margin-bottom: 0;
}

.model-action small {
  display: block;
  margin-left: 10px;
  font-size: 13px;
  opacity: 0.82;
}

.model-result-panel {
  min-height: 500px;
}

.model-download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.model-download-bar button,
.model-result-toolbar button {
  min-height: 38px;
  padding: 0 14px;
  color: #155ee8;
  background: #edf5ff;
  border: 1px solid #d5e5ff;
  border-radius: 12px;
  font-weight: 900;
}

.model-result {
  min-height: 400px;
}

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

.model-result-toolbar strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
}

.model-result-toolbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.model-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.model-result-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: #f7faff;
  border: 1px solid #e0e8f2;
  border-radius: 16px;
  cursor: pointer;
}

.model-result-card input {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.model-result-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.model-result-card span {
  padding: 10px 12px;
  color: #17314d;
  font-weight: 900;
}

.model-examples,
.model-why {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px clamp(18px, 5vw, 76px);
}

.model-example-grid,
.model-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.model-example-grid article,
.model-why-grid article {
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(19, 42, 74, 0.05);
}

.model-example-grid img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.model-example-grid h3,
.model-why-grid h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 21px;
}

.model-example-grid h3 {
  padding: 22px 22px 0;
}

.model-example-grid p,
.model-why-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.model-example-grid p {
  padding: 0 22px 26px;
}

.model-why {
  padding-top: 36px;
  padding-bottom: 86px;
}

.model-why-grid article {
  min-height: 220px;
  padding: 28px;
}

.model-why-grid span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 16px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .model-shell,
  .model-example-grid,
  .model-why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .model-hero {
    overflow-x: hidden;
    padding: 34px 16px 42px;
  }

  .model-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
  }

  .model-control,
  .model-result-panel {
    min-width: 0;
    width: 100%;
  }

  .model-field-grid,
  .model-result-grid {
    grid-template-columns: 1fr;
  }

  .model-result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-download-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .model-examples,
  .model-why {
    padding: 38px 16px;
  }
}

/* Video generation page. */
.video-hero {
  padding: 58px clamp(18px, 5vw, 76px) 52px;
  text-align: center;
}

.video-hero h1 {
  max-width: 920px;
  margin: 0 auto 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}

.video-hero > p {
  max-width: 880px;
  margin: 0 auto;
  color: #3e526c;
  font-size: 17px;
  line-height: 1.55;
}

.video-studio {
  display: grid;
  gap: 18px;
  max-width: 1240px;
  margin: 40px auto 0;
  text-align: left;
}

.video-prompt-card {
  position: relative;
  overflow: visible;
  padding: 24px;
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: 22px;
  box-shadow: 0 22px 58px rgba(26, 53, 90, 0.075);
}

.video-history {
  padding: 0;
}

.video-prompt {
  display: block;
}

.video-prompt.has-ai-write {
  position: relative;
}

.video-prompt textarea {
  min-height: 118px;
  width: 100%;
  padding: 0 0 48px;
  color: #20364e;
  background: transparent;
  border: 0;
  border-radius: 0;
  resize: vertical;
  outline: 0;
  font-size: 15px;
  line-height: 1.6;
}

.video-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.video-upload {
  position: relative;
  display: grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  border: 1px solid #d9e2ee;
  border-radius: 999px;
  cursor: pointer;
}

.video-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-upload span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #0a1d34;
  background: transparent;
  border-radius: 999px;
  font-size: 26px;
  font-weight: 900;
}

.video-upload strong,
.video-upload small {
  display: none;
}

.video-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.video-preview-strip figure {
  overflow: hidden;
  margin: 0;
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.video-preview-strip img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.video-control {
  position: relative;
}

.video-control-btn {
  min-height: 42px;
  padding: 0 14px;
  color: #0e2239;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}

.video-control-btn:hover,
.video-control.is-open > .video-control-btn,
.video-sound-toggle.is-on {
  color: #0a67e8;
  background: #f5f9ff;
  border-color: #c9defc;
}

.video-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: none;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(16, 35, 58, 0.16);
}

.video-control.is-open > .video-menu {
  display: block;
}

.video-menu-large {
  width: 360px;
}

.video-menu-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.video-menu-tabs button {
  min-height: 42px;
  color: #415269;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.video-menu-tabs .is-selected {
  color: #fff;
  background: #081d2f;
}

.video-menu-field {
  display: grid;
  gap: 8px;
  color: #53647a;
  font-weight: 800;
}

.video-menu-field.is-hidden {
  display: none;
}

.video-menu-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: #15263a;
  background: #f4f6fa;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  outline: 0;
  font-weight: 800;
}

.video-shot-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
}

.video-story-panel {
  display: none;
}

.video-story-panel.is-active {
  display: block;
}

.video-script-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 18px;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
}

.video-script-card > span {
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  place-items: center;
  color: #092138;
  background: #edf1f6;
  border-radius: 999px;
  font-weight: 900;
}

.video-script-card strong {
  display: block;
  margin-bottom: 4px;
  color: #0c2238;
  font-size: 17px;
}

.video-script-card p {
  margin: 0;
  color: #53647a;
  line-height: 1.55;
}

.video-shot-card strong {
  display: block;
  margin-bottom: 10px;
  color: #394c62;
}

.video-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
  border-radius: 12px;
}

.video-shot-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.video-menu-list {
  width: 150px;
  padding: 8px;
}

.video-menu-list button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #0f2135;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-weight: 800;
}

.video-menu-list button:hover {
  background: #f5f8fc;
}

.video-menu-list button.is-selected::after {
  content: "✓";
  font-weight: 900;
}

.video-menu-tall {
  max-height: 310px;
  overflow-y: auto;
}

.video-menu-voice {
  right: 0;
  left: auto;
  width: 340px;
}

.video-voice-control.is-hidden {
  display: none;
}

.video-model-control.is-hidden,
.video-quality-control.is-hidden {
  display: none;
}

.video-menu-model {
  width: 210px;
}

.video-action {
  display: flex;
  flex: 0 0 160px;
  min-width: 160px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  margin-left: auto;
  padding: 0 20px;
  background: #98a1aa;
  border-radius: 18px;
  box-shadow: none;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.video-action small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.video-action small::before {
  content: "◴";
  font-size: 14px;
  line-height: 1;
}

.video-history {
  min-height: 156px;
}

.video-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.video-history-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.video-history-head p {
  margin: 0;
  color: var(--muted);
}

.video-result {
  min-height: 110px;
  border: 1px dashed #d9e2ee;
  border-radius: 20px;
}

.video-result-grid {
  display: grid;
  gap: 14px;
}

.video-result-card {
  overflow: hidden;
  background: #f7faff;
  border: 1px solid #e0e8f2;
  border-radius: 16px;
}

.video-result-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-result-card div {
  padding: 14px;
}

.video-result-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.video-result-card span {
  color: var(--muted);
  font-size: 13px;
}

.video-task-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 132px;
  padding: 22px;
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 20px;
}

.video-task-card > span {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  color: #0b75ff;
  background: #eef6ff;
  border-radius: 16px;
  font-weight: 900;
}

.video-task-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 19px;
}

.video-task-card p {
  margin: 0 0 10px;
  color: #304660;
  line-height: 1.65;
}

.video-task-card small {
  color: var(--muted);
  font-weight: 800;
}

.video-task-body {
  min-width: 0;
  flex: 1;
}

.video-task-card video {
  display: block;
  width: min(100%, 760px);
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #07111f;
  border-radius: 8px;
}

.video-download-link {
  display: inline-flex;
  margin-top: 12px;
  color: #075fd8;
  font-weight: 800;
  text-decoration: none;
}

.video-cancel-button {
  display: block;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  color: #8f231c;
  background: #fff;
  border: 1px solid #e6b8b3;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.video-cancel-button:disabled {
  color: var(--muted);
  border-color: #d8e0e9;
  cursor: wait;
}

.video-task-card.is-failed > span {
  color: #b42318;
  background: #fff0ee;
}

.video-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px clamp(18px, 5vw, 76px) 88px;
}

.video-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.video-template-grid article {
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(19, 42, 74, 0.05);
}

.video-template-grid img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.video-template-grid h3 {
  margin: 0 0 10px;
  padding: 22px 22px 0;
  color: var(--ink);
  font-size: 21px;
}

.video-template-grid p {
  margin: 0;
  padding: 0 22px 24px;
  color: var(--muted);
  line-height: 1.75;
}

/* Project library page. */
.project-hero {
  padding: 58px clamp(18px, 5vw, 76px) 72px;
  text-align: center;
}

.project-hero h1 {
  max-width: 920px;
  margin: 0 auto 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}

.project-hero > p {
  max-width: 880px;
  margin: 0 auto;
  color: #3e526c;
  font-size: 17px;
  line-height: 1.55;
}

.project-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(540px, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 40px auto 0;
  text-align: left;
}

.project-sidebar,
.project-detail {
  min-height: 560px;
  padding: 24px;
}

.project-storage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-storage-card span,
.project-head span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.project-storage-card strong {
  color: var(--ink);
  font-size: 22px;
}

.storage-buy-btn,
.project-create-btn,
.project-save-btn,
.project-delete-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
}

.storage-buy-btn,
.project-create-btn,
.project-save-btn {
  color: #fff;
  background: var(--blue);
}

.project-delete-btn {
  color: #d83f4f;
  background: #fff2f4;
}

.storage-meter {
  overflow: hidden;
  height: 10px;
  margin: 18px 0 10px;
  background: #edf2f8;
  border-radius: 999px;
}

.storage-meter-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #22c55e);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.project-storage-note,
.project-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-create-form {
  margin: 24px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  font: inherit;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-list button {
  min-height: 58px;
  padding: 12px 14px;
  color: #18314d;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}

.project-list button.is-active {
  color: #fff;
  background: #0b75ff;
  border-color: #0b75ff;
}

.project-list strong,
.project-list span {
  display: block;
}

.project-list span {
  margin-top: 4px;
  opacity: 0.72;
  font-size: 13px;
}

.project-empty {
  display: grid;
  min-height: 510px;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.project-empty.is-hidden {
  display: none;
}

.project-empty span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--blue);
  background: #eef6ff;
  border-radius: 20px;
  font-size: 26px;
}

.project-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.project-empty p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-workspace.is-hidden {
  display: none;
}

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

.project-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.project-meta-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.project-meta-form .field:nth-child(2) {
  grid-row: span 2;
}

.project-meta-form textarea {
  min-height: 108px;
  padding: 14px;
}

.project-save-btn {
  align-self: end;
}

.project-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.project-upload-tile {
  position: relative;
  display: grid;
  min-height: 132px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: #f8fbff;
  border: 1px dashed #cfdceb;
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
}

.project-upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.project-upload-tile span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue);
  background: #edf5ff;
  border-radius: 15px;
  font-size: 20px;
}

.project-upload-tile strong {
  color: var(--ink);
}

.project-upload-tile small {
  color: var(--muted);
}

.project-assets-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.project-assets-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

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

.project-asset-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.project-asset-card img,
.project-asset-card video {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  background: #eef3f8;
}

.project-asset-card div {
  padding: 12px;
}

.project-asset-card strong,
.project-asset-card span {
  display: block;
}

.project-asset-card strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-asset-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.project-asset-card button {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  color: #d83f4f;
  background: #fff2f4;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
}

.tool-project-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 280px);
  gap: 14px;
  align-items: center;
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 18px 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(19, 42, 74, 0.05);
}

.tool-project-panel strong {
  color: var(--ink);
  font-size: 17px;
}

.tool-project-panel p {
  margin: 5px 0 0;
  color: var(--muted);
}

.tool-project-panel select {
  height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
}

.tool-project-assets {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-project-asset {
  display: inline-flex;
  max-width: 260px;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #f6f9fe;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.tool-project-asset input {
  accent-color: var(--blue);
}

.tool-project-asset span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.tool-project-asset strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .video-studio,
  .video-template-grid,
  .project-shell,
  .project-meta-form,
  .project-upload-grid,
  .project-asset-grid,
  .tool-project-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .video-hero {
    overflow-x: hidden;
    padding: 34px 16px 42px;
  }

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

  .video-prompt-card {
    padding: 20px;
  }

  .video-toolbar,
  .video-history-head {
    align-items: stretch;
    flex-direction: column;
  }

  .video-action {
    width: 100%;
    margin-left: 0;
  }

  .video-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-section {
    padding: 38px 16px;
  }

  .project-hero {
    padding: 34px 16px 42px;
  }

  .project-sidebar,
  .project-detail {
    min-height: auto;
    padding: 20px;
  }

  .project-head,
  .project-assets-head,
  .project-storage-card {
    align-items: stretch;
    flex-direction: column;
  }
}

