:root {
  --bg: #020403;
  --panel: #151719;
  --panel-2: #0d1111;
  --line: #23282b;
  --muted: #878d8b;
  --text: #f3f8ed;
  --lime: #a6ff00;
  --lime-2: #78b800;
  --green-dim: #162601;
  --cyan: #18caf0;
  --danger: #ff5572;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body, .sidebar, .main, .queue-drawer, .modal, .prompt-template-textarea, .new-prompt {
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 255, 0, .42) rgba(8, 12, 9, .38);
}
body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.main::-webkit-scrollbar,
.queue-drawer::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.prompt-template-textarea::-webkit-scrollbar,
.new-prompt::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track,
.queue-drawer::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track,
.prompt-template-textarea::-webkit-scrollbar-track,
.new-prompt::-webkit-scrollbar-track {
  background: rgba(8, 12, 9, .55);
}
body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb,
.queue-drawer::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb,
.prompt-template-textarea::-webkit-scrollbar-thumb,
.new-prompt::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 12, 9, .78);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(166, 255, 0, .72), rgba(53, 116, 0, .72));
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 62% 24%, rgba(139, 255, 0, .16), transparent 24rem),
    radial-gradient(circle at 74% 74%, rgba(92, 184, 0, .12), transparent 30rem),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: transparent; color: inherit; }
.hidden { display: none !important; }

.shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 300px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  background: rgba(10, 13, 14, .95);
  border-right: 1px solid rgba(166, 255, 0, .10);
  box-shadow: inset -1px 0 rgba(255, 255, 255, .025);
  padding: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0; margin-bottom: 32px; }
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 26px;
  border-radius: 6px;
  background: var(--lime);
  color: #061000;
  font-weight: 900;
  font-size: 13px;
}
.brand-title { font-weight: 800; line-height: 1.05; }
.brand-title, .brand-sub { display: block; white-space: nowrap; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 500; }
.collapse { margin-left: auto; color: #d9dfda; opacity: .8; }
.side-nav { padding: 0; display: grid; gap: 2px; }
.account-pill {
  height: 66px;
  width: 244px;
  margin: 0 0 20px;
  border-radius: 16px;
  border: 1px solid #242832;
  background: #0d0d12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #f3f5ef;
}
.account-pill span { color: var(--lime); font-weight: 900; }
.account-pill b { font-size: 14px; text-align: left; }
.account-pill em { color: var(--lime); font-style: normal; font-weight: 900; }
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 244px;
  min-height: 37px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #dfe8da;
  font-weight: 650;
  background: transparent;
  text-align: left;
}
.side-link:hover { background: #111a0a; color: var(--lime); }
.side-link.active { color: var(--lime); background: #1b3006; }
.side-link.outline { border: 1px solid #26301c; color: #eff7eb; margin-top: 18px; min-height: 86px; align-items: center; background: #0f1112; }
.side-link small { margin-left: auto; color: var(--lime); font-size: 11px; }
.side-section { color: #79827d; font-size: 12px; margin: 18px 0 8px; text-transform: uppercase; }
.subnav { display: grid; gap: 4px; margin: -4px 0 4px 32px; }
.subnav a { color: #9fa8a3; padding: 8px 10px; border-radius: 6px; }
.subnav a:hover { background: #111a0a; color: var(--lime); }
.subnav a.active { background: #142706; color: var(--lime); font-weight: 700; }
.project-card.failed-card { border-color: rgba(255, 82, 82, .55); background: linear-gradient(180deg, rgba(38, 15, 15, .92), rgba(14, 18, 15, .96)); }
.project-card.failed-card .status-line { color: #ff6b6b; }
.failure-detail { border: 1px solid rgba(255, 82, 82, .35); background: rgba(65, 18, 18, .28); color: #f4f8ef; }
.optimized-result-panel {
  margin: 10px 16px 0 92px;
  padding: 10px;
  border: 1px solid rgba(143, 255, 0, .35);
  border-radius: 12px;
  background: rgba(9, 18, 11, .88);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.optimized-result-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.optimized-result-head strong {
  color: var(--lime);
  font-size: 15px;
}
.optimized-result-head span {
  color: #8f9d93;
  font-size: 12px;
}
.optimized-result-text {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid rgba(143, 255, 0, .25);
  border-radius: 10px;
  background: rgba(15, 24, 19, .95);
  color: #d7ded6;
  font: 500 13px/1.65 inherit;
  padding: 12px;
  outline: none;
}
.optimized-result-text:focus { border-color: var(--lime); }
.optimized-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.searchbox {
  width: 100%;
  margin: 12px 0 8px;
  border: 1px solid #2b3033;
  background: #171b1d;
  color: #dbe5da;
  border-radius: 6px;
  padding: 13px 14px;
}
.recent-title { color: #99a19d; font-size: 14px; margin: 18px 6px 10px; }
.recent-item {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 16px 14px;
  margin: 8px 6px;
  background: #101415;
  color: #bac8be;
  border-radius: 6px;
}

.main { flex: 1; min-width: 0; position: relative; overflow-x: hidden; }
.page-back-btn {
  position: fixed;
  top: 22px;
  left: 292px;
  z-index: 35;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(166,255,0,.32);
  background: rgba(13, 18, 15, .88);
  color: var(--lime);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.page-back-btn:hover {
  background: var(--lime);
  color: #061000;
}
.topbar {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 20;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 32px;
  color: #f4f8ef;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  background: #073344;
  color: #eafcff;
  font-size: 12px;
}
.credit-btn {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #426708;
  background: #122004;
  color: var(--lime);
  font-weight: 900;
}

.dashboard {
  width: min(calc(100% - clamp(32px, 6vw, 96px)), 1280px);
  max-width: none;
  margin: 40px auto 0;
  padding: 40px 0 60px;
}
.new-dashboard {
  position: relative;
  max-width: none;
  padding-top: 76px;
}
.aurora-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  pointer-events: none;
  background:
    radial-gradient(circle at 42% 10%, rgba(130, 255, 0, .22), transparent 30rem),
    radial-gradient(circle at 62% 0%, rgba(22, 120, 38, .22), transparent 28rem);
  opacity: .8;
}
.hero-title {
  margin: 8px 0 8px;
  text-align: center;
  color: var(--lime);
  font-size: clamp(34px, 3.35vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.hero-sub { text-align: center; color: #8b908d; margin-bottom: 30px; }
.new-hero-title {
  color: transparent;
  background: linear-gradient(90deg, #b7ff18, #39ff88);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(42px, 5vw, 64px);
}
.sparkles {
  height: 34px;
  position: absolute;
  inset: 146px 300px auto 330px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--lime) 0 3px, transparent 4px) 8% 10%/120px 40px,
    radial-gradient(circle, var(--lime) 0 3px, transparent 4px) 42% 80%/240px 50px,
    radial-gradient(circle, var(--lime) 0 3px, transparent 4px) 76% 40%/190px 44px;
  opacity: .42;
  z-index: 0;
}

.composer {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: 232px;
  border: 1px solid #252b2f;
  background: linear-gradient(180deg, #1a1c1f, #121416);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 52px 1fr;
  overflow: hidden;
}
.new-composer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 247px;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(166, 255, 0, .42);
  background: #0d120f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 24px 90px rgba(111, 255, 0, .12);
}
.composer-rail { background: #111517; border-right: 1px solid #252a2d; display: grid; align-content: start; gap: 3px; padding: 10px 7px; }
.rail-btn {
  height: 44px;
  border-radius: 6px;
  color: #8d9694;
  background: transparent;
  font-size: 12px;
}
.rail-btn.active { color: var(--lime); background: #203503; font-weight: 800; }
.composer-body { display: grid; grid-template-rows: minmax(128px, 1fr) auto; padding: 20px 16px 0; min-width: 0; }
.prompt-area { display: flex; align-items: flex-start; gap: 12px; min-height: 116px; }
.new-composer .prompt-area { min-height: 128px; position: relative; }
.upload-card {
  width: 64px;
  height: 78px;
  border: 1px solid #303840;
  background: #20252a;
  color: #b9c1bd;
  border-radius: 4px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  transform: rotate(-4deg);
}
.prompt-input {
  flex: 1;
  min-width: 0;
  min-height: 104px;
  resize: none;
  border: 0;
  outline: 0;
  color: #ecf4ef;
  background: transparent;
}
.new-prompt {
  min-height: 148px;
  max-height: 210px;
  overflow: auto;
  padding-right: clamp(150px, 22vw, 230px);
  color: #f5f5fb;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 650;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.new-prompt::placeholder { color: rgba(255,255,255,.82); }
.prompt-tools {
  position: absolute;
  right: 10px;
  top: 12px;
  display: grid;
  gap: 8px;
  justify-items: end;
  z-index: 2;
}
.ai-optimize-btn,
.prompt-template-btn {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(166, 255, 0, .32);
  background: rgba(31, 58, 8, .52);
  color: var(--lime);
  padding: 0 16px;
  font-weight: 800;
}
.prompt-template-btn {
  border-color: rgba(255,255,255,.12);
  background: rgba(16, 22, 17, .86);
  color: #edf7ec;
}
.template-note {
  width: min(760px, 78vw);
  min-height: 420px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(166,255,0,.28);
  background: #0b0f0d;
  color: #eef7ed;
  padding: 18px;
  font-size: 14px;
  line-height: 1.72;
  outline: none;
}
.composer-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.new-composer .composer-actions {
  border-top: 1px solid #25301e;
  margin: 0 -16px 0;
  padding: 14px 16px;
  background: #121812;
  border-radius: 0 0 22px 22px;
  flex-wrap: wrap;
}
.uploaded-preview-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin-top: -6px;
}
.upload-preview-card {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  border-radius: 10px;
  border: 1px solid rgba(166,255,0,.3);
  background: #0b100d;
  overflow: hidden;
  color: #dfe9dc;
  text-align: left;
}
.upload-preview-card img,
.upload-preview-card video {
  width: 96px;
  height: 72px;
  display: block;
  object-fit: cover;
  background: #050706;
}
.upload-preview-card b {
  display: block;
  padding: 6px 7px 7px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-type {
  position: absolute;
  margin: 6px 0 0 -42px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.68);
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
}
.select, .small-input {
  min-width: 170px;
  max-width: 100%;
  flex: 0 1 210px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #41464b;
  color: #f4f8f0;
  padding: 0 12px;
}
.auto-btn, .primary-btn, .ghost-btn, .icon-btn, .dark-btn {
  border-radius: 7px;
  font-weight: 800;
}
.auto-btn { height: 34px; padding: 0 22px; color: var(--lime); background: #35461d; }
.hint { color: #868c89; flex: 1 1 180px; min-width: 140px; margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #091100;
  background: var(--lime);
  font-size: 20px;
}
.primary-btn {
  min-height: 40px;
  padding: 0 24px;
  color: #061100;
  background: var(--lime);
}
.ghost-btn {
  min-height: 40px;
  padding: 0 22px;
  color: var(--lime);
  background: #1d3304;
  border: 1px solid #416800;
}
.dark-btn {
  min-height: 40px;
  padding: 0 18px;
  color: #e7eee8;
  background: #1a1e20;
  border: 1px solid #2c3335;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.config-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 7px;
  color: #dbe7d8;
  background: #22272a;
  border: 1px solid #333b3e;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 100%;
}
.generate-gradient {
  margin-left: auto;
  min-height: 48px;
  min-width: 178px;
  flex: 0 0 auto;
  padding: 0 28px;
  border-radius: 16px;
  color: #071100;
  background: linear-gradient(100deg, #a6ff00, #31d66c);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(97, 255, 0, .24);
}
.config-panel {
  margin-top: 12px;
  border: 1px solid #303a2a;
  background: #0d120c;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.option-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid #2b332d;
  background: #151a18;
  color: #edf7ec;
  border-radius: 8px;
  padding: 10px 12px;
}
.option-row span, .option-row em { color: #98a39e; font-style: normal; }
.option-row.selected, .option-group button.selected { border-color: var(--lime); color: var(--lime); background: #172406; }
.option-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #cdd7d0; }
.modal-options { align-items: stretch; margin-top: 18px; }
.modal-options button { min-width: 120px; }
.option-group b { min-width: 72px; }
.option-group button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #303a2a;
  background: #171c19;
  color: #dfe9dd;
}

.tabs { display: flex; gap: 26px; align-items: center; margin: 14px 0 20px; overflow-x: auto; }
.tab { white-space: nowrap; color: #777f7b; font-size: 18px; font-weight: 900; background: transparent; padding: 0; }
.tab.active { color: var(--lime); }
.template-grid { display: grid; grid-template-columns: repeat(3, 232px); gap: 18px; }
.template-card {
  height: 362px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #8c6b50, #222 40%, #1b2d1a);
}
.template-card:nth-child(2) { background: radial-gradient(circle at 56% 28%, #92e887 0 18%, transparent 19%), repeating-linear-gradient(32deg, #c2c1b7 0 7px, #9c9c94 8px 16px); }
.template-card:nth-child(3) { background: radial-gradient(circle at 48% 23%, #e4c1a2 0 18%, transparent 19%), linear-gradient(150deg, #2b2a2d, #111); }
.template-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 44%, rgba(0,0,0,.82)); }
.duration {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: rgba(0,0,0,.55);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}
.card-title { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 62px; font-weight: 900; }
.card-btn { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 16px; height: 38px; border-radius: 6px; border: 1px solid var(--lime); color: var(--lime); background: rgba(0,0,0,.45); font-weight: 900; }
.template-card.has-media { background: #0b0f0d; border: 1px solid rgba(166,255,0,.18); }
.template-card.has-media:hover { border-color: rgba(166,255,0,.78); box-shadow: 0 0 0 1px rgba(166,255,0,.16); }
.template-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080a09;
}
.blank-media {
  display: block;
  background:
    radial-gradient(circle at 50% 26%, rgba(166,255,0,.18), transparent 26%),
    linear-gradient(160deg, #141817, #070908);
}
.template-open {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.pager { text-align: right; color: #9da49f; margin-top: 20px; }
.pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 28px; border: 1px solid #31430e; border-radius: 999px; margin-left: 7px; color: #d8e5d3; background: #101807; }

.site { min-height: 100vh; background: var(--bg); }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 6vw;
  border-bottom: 1px solid #172012;
  background: rgba(2,4,3,.82);
  backdrop-filter: blur(14px);
}
.site-links { display: flex; gap: 24px; color: #dce7d7; font-weight: 700; }
.site-links button { color: #dce7d7; font-weight: 700; }
.site-links button:hover, .site-links a:hover { color: var(--lime); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-main { overflow: hidden; }
.landing-hero {
  min-height: calc(100vh - 72px);
  padding: 94px 6vw 50px;
  display: grid;
  align-items: center;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
}
.kicker { color: var(--lime); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.site h1 { font-size: clamp(44px, 6vw, 86px); line-height: .96; margin: 18px 0; color: #f6fff0; letter-spacing: 0; }
.lead { color: #a8b2ad; font-size: 19px; line-height: 1.7; max-width: 730px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; }
.metric { border: 1px solid #243217; background: #0d1308; border-radius: 8px; padding: 18px; }
.metric strong { color: var(--lime); font-size: 25px; display: block; }
.hero-preview { min-height: 520px; position: relative; }
.phone {
  position: absolute;
  width: 210px;
  height: 380px;
  border-radius: 24px;
  border: 1px solid #3b433e;
  background: linear-gradient(160deg, #24282b, #070808);
  box-shadow: 0 20px 80px rgba(150,255,0,.14);
}
.phone.one { left: 12%; top: 38px; transform: rotate(-8deg); }
.phone.two { left: 38%; top: 92px; transform: rotate(6deg); background: linear-gradient(160deg, #45382f, #111); }
.phone.three { right: 6%; top: 8px; transform: rotate(11deg); background: linear-gradient(160deg, #30343a, #141414); }
.phone::before { content: "5s"; position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,.55); border-radius: 4px; padding: 4px 8px; font-weight: 900; }
.phone::after { content: "Make Same"; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 42px; border: 1px solid var(--lime); border-radius: 6px; display: grid; place-items: center; color: var(--lime); font-weight: 900; }
.section { padding: 88px 6vw; }
.section h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.08; margin: 0 0 12px; }
.section-sub { color: #9ba49e; margin-bottom: 32px; font-size: 18px; }
.feature-grid, .model-grid, .use-grid, .plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.creative-tools { position: relative; z-index: 1; margin-top: 72px; }
.creative-tools h2 { display: flex; align-items: center; gap: 10px; color: #d8d8e2; font-size: 20px; }
.creative-tools h2 span { width: 8px; height: 28px; border-radius: 999px; background: linear-gradient(#a6ff00, #24d969); }
.big-tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1088px;
  margin-left: auto;
  margin-right: auto;
}
.mini-tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1088px;
  margin: 16px auto 0;
}
.creative-tools h2 { max-width: 1088px; margin-left: auto; margin-right: auto; }
.feature-card, .model-card, .use-card, .plan-card, .faq-item, .step-card, .tool-card {
  border: 1px solid #24301d;
  background: linear-gradient(180deg, #141817, #0a0d0d);
  border-radius: 8px;
  padding: 24px;
  color: #eef7ed;
}
.tool-card { min-height: 168px; text-align: left; display: grid; align-content: center; justify-items: stretch; overflow: hidden; }
.big-tool-grid .tool-card {
  min-height: 220px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 42%);
  align-items: center;
  gap: 18px;
  border-radius: 20px;
  border-color: rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(22,22,28,.9), rgba(10,10,14,.9));
}
.mini-tool-grid .tool-card {
  min-height: 116px;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  text-align: left;
  align-content: center;
  border-radius: 20px;
  border-color: rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(22,22,28,.9), rgba(10,10,14,.9));
}
.mini-tool-grid .tool-card .badge { grid-column: 1 / -1; }
.mini-tool-grid .tool-card h3 { font-size: 20px; margin: 0 0 4px; }
.mini-tool-grid .tool-card p { margin: 0; font-size: 14px; }
.tool-card h3 {
  word-break: keep-all;
  overflow-wrap: normal;
}
.tool-card-copy { min-width: 0; position: relative; z-index: 1; }
.tool-card-media-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 86px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #050706;
}
.big-tool-grid .tool-card-media-wrap { aspect-ratio: 16 / 10; }
.tool-card-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.tool-card:hover { border-color: #4d7a09; background: linear-gradient(180deg, #182015, #0b0f0e); }
.feature-card h3, .tool-card h3, .plan-card h3 { margin-top: 0; font-size: 24px; }
.feature-card p, .tool-card p, .plan-card p, .use-card p, .faq-item p { color: #a0aaa4; line-height: 1.6; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 9px; color: #091100; background: var(--lime); font-weight: 900; font-size: 12px; }
.model-card { min-height: 120px; display: grid; align-content: end; color: #f8fff1; font-size: 22px; font-weight: 900; background: radial-gradient(circle at 20% 15%, rgba(166,255,0,.22), transparent 38%), #111414; }
.brands { display: flex; gap: 28px; flex-wrap: wrap; color: #d7e1d4; font-weight: 900; opacity: .86; }
.faq-list { display: grid; gap: 12px; }
.faq-item summary { cursor: pointer; font-weight: 900; font-size: 18px; }
.footer { padding: 44px 6vw; border-top: 1px solid #172012; display: grid; grid-template-columns: 1.1fr repeat(3, .7fr); gap: 24px; color: #a6aea8; }
.footer h4 { color: #eff9ed; margin: 0 0 14px; }
.footer a { display: block; margin: 9px 0; color: #a6aea8; }

.app-page { padding: 96px 6vw 70px; }
.projects-v2 { padding-top: 88px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(40px, 5vw, 76px); line-height: 1; margin: 0; color: #f7fff1; }
.replica-page {
  padding: 136px 32px 70px;
  max-width: 1218px;
}
.replica-head h1 {
  margin: 0;
  min-height: 48px;
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  color: #f7fff1;
}
.replica-head p {
  margin: 16px 0 38px;
  color: #9ca3af;
  font-size: 18px;
}
.replica-search-row {
  display: grid;
  grid-template-columns: 1fr 156px;
  gap: 12px;
  margin: 0 24px;
}
.replica-search-row input {
  height: 60px;
  border-radius: 14px;
  border: 1px solid #26301e;
  background: #111416;
  color: #f5fbf2;
  padding: 0 20px;
  font-weight: 700;
}
.replica-search-row .primary-btn {
  height: 60px;
  border-radius: 14px;
  font-size: 18px;
}
.replica-sort-top {
  float: right;
  width: 140px;
  height: 36px;
  margin: 36px 12px 0 0;
  border-radius: 999px;
  border: 1px solid #2d3336;
  background: #15181a;
  color: #f4f8f0;
  font-weight: 800;
}
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.step-number { color: var(--lime); font-size: 38px; font-weight: 900; }
.work-panel { border: 1px solid #25301e; border-radius: 8px; background: #111514; padding: 24px; }
.work-row { display: flex; gap: 12px; flex-wrap: wrap; }
.work-row input, .work-row textarea, .work-row select {
  flex: 1;
  min-width: 220px;
  min-height: 44px;
  border: 1px solid #30383a;
  background: #191d1f;
  color: #f4fff0;
  border-radius: 7px;
  padding: 12px;
}
.mini-config { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mini-config button {
  min-height: 36px;
  border-radius: 7px;
  background: #202629;
  color: #dfe9dd;
  border: 1px solid #31393c;
  padding: 0 14px;
  font-weight: 800;
}
.replica-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
  padding: 14px;
  border: 1px solid #24301d;
  background: #0d110d;
  border-radius: 12px;
}
.replica-filter-bar button {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 14px;
  border: 1px solid #2f3a2d;
  background: #171d19;
  color: #dfe9dd;
  font-weight: 800;
}
.replica-filter-bar button:hover,
.replica-filter-bar .sort-btn {
  color: var(--lime);
  border-color: #5e8f08;
  background: #142204;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.choice-grid button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #2f3a2d;
  background: #151a18;
  color: #e7efe5;
  font-weight: 800;
}
.choice-grid button.selected {
  color: #091100;
  border-color: var(--lime);
  background: var(--lime);
}
.large-textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  margin-top: 16px;
  border: 1px solid #30383a;
  background: #191d1f;
  color: #f4fff0;
  border-radius: 8px;
  padding: 14px;
}
.upload-zone {
  min-height: 116px;
  border: 1px dashed #44502d;
  border-radius: 8px;
  background: #0c110a;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--lime);
  font-weight: 900;
}
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.result-box { margin-top: 18px; border: 1px solid #2c3b18; background: #0b1108; border-radius: 8px; padding: 18px; color: #dce9d8; white-space: pre-wrap; line-height: 1.65; }
.flow-page .replica-head {
  margin-bottom: 26px;
}
.flow-console {
  border: 1px solid rgba(166,255,0,.28);
  background: #101312;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 70px rgba(28, 82, 0, .16);
}
.flow-input-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 156px;
  gap: 12px;
  align-items: center;
}
.flow-input-row input {
  height: 60px;
  border-radius: 12px;
  border: 1px solid #30383a;
  background: #090b0c;
  color: #f4fff0;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 800;
}
.flow-submit {
  height: 60px;
  border-radius: 12px;
}
.flow-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.flow-console .mini-config {
  margin-top: 8px;
}
.flow-steps {
  margin-top: 28px;
}
.flow-framework {
  margin-top: 22px;
}
.sample-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sample { height: 280px; border-radius: 8px; border: 1px solid #303634; background: linear-gradient(150deg, #32383d, #141515); display: grid; align-content: end; padding: 18px; font-weight: 900; }
.sample.has-media {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: left;
  align-content: initial;
}
.sample.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 46%, rgba(0,0,0,.86));
}
.sample-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sample.has-media span {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 72px;
  bottom: 16px;
  color: #fff;
}
.sample-play {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--lime);
  color: #071000;
  font-weight: 900;
}
.price { font-size: 42px; color: var(--lime); font-weight: 900; }
.old-price { color: #737c75; text-decoration: line-through; font-size: 22px; margin-right: 6px; }
.plan-card.popular { border-color: var(--lime); box-shadow: 0 0 0 1px rgba(166,255,0,.32); }
.pricing-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.pricing-controls button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid #2f3a2d;
  background: #151a18;
  color: #dfe9dd;
  font-weight: 900;
}
.pricing-controls button.active {
  color: #091100;
  background: var(--lime);
  border-color: var(--lime);
}
.stat-card {
  text-align: left;
  cursor: pointer;
}
.stat-card.active {
  background: linear-gradient(135deg, rgba(166,255,0,.18), rgba(12,18,14,.96));
  border-color: var(--lime) !important;
  box-shadow: 0 0 0 1px rgba(166,255,0,.18), 0 14px 34px rgba(76, 190, 0, .12);
}
.project-filter-bar button {
  cursor: pointer;
}
.comparison { width: 100%; border-collapse: collapse; margin-top: 26px; overflow: hidden; border-radius: 8px; }
.comparison th, .comparison td { border: 1px solid #26301f; padding: 16px; text-align: left; background: #0f1312; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #182406;
  border: 1px solid var(--lime);
  color: var(--lime);
  padding: 14px 18px;
  border-radius: 8px;
  z-index: 20;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.category-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin: 18px 0;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-row::-webkit-scrollbar { display: none; }
.template-stats { position: absolute; z-index: 1; left: 14px; top: 40px; color: #dce8d7; font-size: 12px; font-weight: 800; }
.queue-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: min(420px, 100vw);
  height: 100vh;
  z-index: 30;
  background: #0c1010;
  border-left: 1px solid #293126;
  box-shadow: -20px 0 70px rgba(0,0,0,.45);
  padding: 18px;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head h3 { margin: 0; font-size: 22px; }
.drawer-head button { width: 34px; height: 34px; border-radius: 999px; background: #202629; color: #dfe9dd; }
.queue-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.queue-tabs button { min-height: 38px; border-radius: 7px; background: #172006; color: var(--lime); font-weight: 900; }
.queue-list { display: grid; gap: 10px; }
.queue-item, .empty-state {
  border: 1px solid #28331d;
  background: #111615;
  border-radius: 8px;
  padding: 16px;
}
.queue-item { display: grid; gap: 8px; }
.queue-item span, .empty-state { color: #9fa8a3; line-height: 1.6; }
.project-grid, .asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card, .asset-card {
  border: 1px solid #25301e;
  background: #101514;
  border-radius: 8px;
  padding: 16px;
}
.project-card h3, .asset-card h3 { margin-bottom: 6px; }
.project-card p, .asset-card p { color: #9fa8a3; }
.status-line { color: var(--lime) !important; font-weight: 800; }
.guide-grid { grid-template-columns: repeat(3, 1fr); }
.guide-card { min-height: 180px; }
.step-no { display: inline-flex; color: var(--lime); font-size: 28px; font-weight: 1000; margin-bottom: 14px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.avatar-choice {
  min-height: 96px;
  max-height: 112px;
  padding: 14px 16px;
  overflow: hidden;
  text-align: left;
}
.avatar-choice h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
}
.avatar-choice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.avatar-choice .primary-chip {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .projects-v2,
  .assets-v2 {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .projects-v2 .project-grid,
  .projects-v2 .compact-project-grid,
  .assets-v2 .asset-grid,
  .assets-v2 .asset-wall {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr !important;
  }
  .projects-v2 .project-card,
  .publish-page .project-card,
  .assets-v2 .asset-card,
  .assets-v2 .compact-asset-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .projects-v2 .video-thumb {
    position: relative;
    overflow: hidden;
  }
  .projects-v2 .project-thumb-video,
  .publish-page .project-thumb-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .projects-v2 .video-thumb span {
    position: relative;
    z-index: 1;
  }
  .publish-page .project-grid,
  .publish-page .compact-project-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr !important;
  }
  .publish-page .video-thumb {
    position: relative;
    overflow: hidden;
  }
  .publish-page .video-thumb span {
    position: relative;
    z-index: 1;
  }
  .projects-v2 .project-card .work-row,
  .publish-page .project-card .work-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .projects-v2 .project-card .work-row > *,
  .publish-page .project-card .work-row > * {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    max-height: 42px;
    padding: 0 8px;
    line-height: 34px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.video-thumb, .asset-thumb {
  height: 220px;
  border-radius: 8px;
  background: radial-gradient(circle at 40% 20%, rgba(166,255,0,.22), transparent 28%), linear-gradient(150deg, #2c3337, #090b0b);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: var(--lime);
  font-size: 42px;
  font-weight: 900;
}
.local-asset-card { display: grid; gap: 10px; }
.asset-preview {
  width: 100%;
  aspect-ratio: 9 / 12;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2f3d25;
  background: #070909;
}
.asset-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.generated-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.generated-image-card {
  border: 1px solid #2d3d1d;
  background: #101514;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
.generated-image-preview {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid #34421e;
}
.generated-image-card h3 {
  margin: 10px 0 4px;
  font-size: 18px;
}
.generated-image-card p {
  color: #9fa8a3;
  min-height: 42px;
  line-height: 1.45;
}
.card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.card-actions button {
  min-width: 0;
  padding: 0 8px;
  font-size: 13px;
}
.modal-image-preview {
  width: min(420px, 100%);
  max-height: 72vh;
  object-fit: contain;
  display: block;
  margin: 14px auto;
  border-radius: 8px;
  border: 1px solid #34421e;
}
.modal-media-preview {
  width: min(420px, 100%);
  max-height: 72vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  display: block;
  margin: 14px auto;
  border-radius: 8px;
  background: #050606;
  border: 1px solid #34421e;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.72);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: min(720px, 100%);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid #34421e;
  background: #111615;
  border-radius: 8px;
  padding: 20px;
}
.modal input, .modal textarea {
  width: 100%;
  min-height: 44px;
  margin: 10px 0;
  border: 1px solid #30383a;
  background: #191d1f;
  color: #f4fff0;
  border-radius: 7px;
  padding: 12px;
}
.modal textarea { min-height: 120px; }
.modal pre {
  white-space: pre-wrap;
  color: #dce9d8;
  background: #0b1108;
  border-radius: 8px;
  padding: 16px;
}
.preview-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0;
  border-radius: 8px;
  background: #050606;
  border: 1px solid #34421e;
  object-fit: cover;
}
.publish-head {
  margin-bottom: 24px;
  align-items: end;
}
.publish-head h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: .95;
}
.publish-head .lead {
  max-width: 760px;
  margin-top: 14px;
}
.publish-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr); gap: 18px; align-items: start; }
.publish-upload, .publish-form { min-height: 0; }
.drop-zone {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed #52721d;
  border-radius: 16px;
  background: linear-gradient(180deg, #10170d, #080d08);
  color: #f1f9ec;
  margin-bottom: 16px;
  cursor: pointer;
}
.drop-zone.dragging {
  border-color: var(--lime);
  background: linear-gradient(180deg, rgba(166,255,0,.13), #080d08);
}
.drop-zone strong { font-size: 18px; }
.drop-zone span { color: #9fa8a3; font-size: 14px; }
.upload-action {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.publish-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.publish-preview .dark-btn {
  min-height: 36px;
  padding: 0 14px;
}
.publish-empty {
  margin-top: 12px;
  padding: 12px;
}
.publish-form { display: grid; gap: 10px; }
.publish-form label { color: #dfe9dd; font-weight: 800; }
.publish-form input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #30383a;
  background: #191d1f;
  color: #f4fff0;
  padding: 0 14px;
}
.publish-select { width: 100%; min-height: 44px; justify-content: flex-start; text-align: left; }
.publish-switch { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border: 1px solid #30383a; border-radius: 10px; padding: 0 14px; background: #111615; }
.schedule-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schedule-box input { grid-column: 1 / -1; }
.publish-coupon { color: var(--lime); font-weight: 900; padding: 10px 0; }
.section-lite { margin-top: 34px; }
.trial-tip {
  position: fixed;
  right: 42px;
  bottom: 32px;
  z-index: 25;
  width: min(320px, calc(100vw - 40px));
  border: 1px solid rgba(255, 62, 157, .55);
  border-radius: 16px;
  background: #070708;
  color: white;
  padding: 22px 18px 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.trial-tip h3 { margin: 0 0 12px; }
.trial-tip p { color: #d8d8df; line-height: 1.6; }
.trial-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--lime);
  color: var(--lime);
}
.promo-banner {
  width: min(904px, 100%);
  margin: 0 auto 36px;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, #65c900, #2bd86f);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-weight: 900;
}
.promo-banner button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}
.account-select {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid #272331;
  background: #0f0d14;
  color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 24px 0 36px; }
.stat-card {
  min-height: 116px;
  border-radius: 18px;
  padding: 24px;
  background: #0b0a10;
}
.stat-card span { display: block; color: #fff; margin-bottom: 12px; font-weight: 800; }
.stat-card strong { font-size: 44px; color: #fff; }
.stat-card.purple { border: 1px solid #65a400; box-shadow: 0 30px 80px rgba(111, 255, 0, .14); }
.stat-card.cyan { border: 1px solid #0d4c50; }
.stat-card.red { border: 1px solid #592023; }
.stat-card.amber { border: 1px solid #61410c; }
.project-filter-bar {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 8px;
  margin-bottom: 28px;
  border: 1px solid #211f28;
  border-radius: 18px;
  background: #0c0b10;
}
.project-filter-bar button {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 16px;
  color: #8f93a0;
  font-weight: 800;
}
.project-filter-bar button.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

@media (max-width: 980px) {
  .shell { display: block; }
  .sidebar { position: static; width: auto; min-height: 0; }
  .topbar {
    position: sticky;
    top: 0;
    right: auto;
    height: auto;
    min-height: 58px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(14px);
  }
  .app-page,
  .projects-v2 { padding-top: 24px; }
  .dashboard { padding: 20px; }
  .hero-title { white-space: normal; font-size: clamp(32px, 10vw, 44px); }
  .composer { grid-template-columns: 1fr; }
  .composer-rail { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .composer-body { padding: 14px; }
  .prompt-area { flex-direction: column; gap: 12px; }
  .upload-card { width: 100%; height: 58px; transform: none; }
  .new-prompt {
    width: 100%;
    max-height: none;
    min-height: 160px;
    padding-right: 0;
    font-size: 16px;
  }
  .template-grid, .feature-grid, .model-grid, .use-grid, .plan-grid, .step-grid, .sample-grid, .landing-hero, .tool-grid, .project-grid, .asset-grid, .generated-image-grid { grid-template-columns: 1fr; }
  .composer-actions { align-items: stretch; flex-direction: column; }
  .new-composer .composer-actions { padding: 12px; }
  .select, .small-input, .config-btn, .generate-gradient, .ai-optimize-btn, .prompt-template-btn {
    width: 100%;
    max-width: 100%;
  }
  .flow-input-row { grid-template-columns: 1fr; }
  .flow-submit { width: 100%; }
  .flow-toolbar .dark-btn { flex: 1 1 140px; }
  .hint { margin: 0; }
  .work-row { flex-direction: column; }
  .work-row > * { width: 100%; }
  .projects-v2 .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
  }
  .projects-v2 .stat-card {
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .projects-v2 .stat-card span {
    margin-bottom: 5px;
    font-size: 12px;
  }
  .projects-v2 .stat-card strong {
    font-size: 24px;
    line-height: 1;
  }
  .projects-v2 .project-filter-bar {
    gap: 8px;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 10px;
  }
  .projects-v2 .project-filter-bar button {
    width: auto;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
  }
  .projects-v2 .project-card .work-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .projects-v2 .project-card .work-row > * {
    width: 100%;
    min-height: 34px;
    max-height: 42px;
    padding: 0 8px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
    line-height: 34px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .publish-layout { grid-template-columns: 1fr; }
  .generated-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big-tool-grid .tool-card,
  .mini-tool-grid .tool-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tool-card-media-wrap {
    min-height: 120px;
  }
  .schedule-box { grid-template-columns: 1fr; }
  .page-head { align-items: stretch; flex-direction: column; }
  .topbar { overflow-x: auto; justify-content: flex-start; }
  .option-row { grid-template-columns: 1fr; }
  .site-nav { padding: 0 18px; gap: 12px; }
  .site-links { display: none; }
  .footer { grid-template-columns: 1fr; }
  .hero-preview { min-height: 320px; }
  .phone { width: 150px; height: 270px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .new-composer .composer-actions { margin: 0; border-radius: 0 0 18px 18px; }
  .prompt-tools { position: static; width: 100%; justify-items: stretch; }
  .ai-optimize-btn { position: static; align-self: flex-start; }
  .generate-gradient { margin-left: 0; width: 100%; }
  .replica-page { padding: 28px 20px 60px; max-width: none; }
  .replica-head h1 { width: 100%; font-size: 40px; min-height: 0; }
  .replica-search-row { grid-template-columns: 1fr; margin: 0; }
  .replica-sort-top { float: none; margin: 16px 0 0; width: 100%; }
  .replica-filter-bar { margin-left: 0; margin-right: 0; max-width: 100%; overflow-x: auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .promo-banner { border-radius: 18px; padding: 10px 14px; text-align: center; }
  .trial-tip { right: 20px; bottom: 20px; }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .dashboard { padding: 24px 32px 56px; }
  .hero-title { white-space: normal; }
  .new-prompt { padding-right: 170px; }
  .prompt-tools {
    width: 154px;
  }
  .ai-optimize-btn,
  .prompt-template-btn {
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big-tool-grid .tool-card,
  .mini-tool-grid .tool-card {
    grid-template-columns: 1fr;
  }
  .tool-card-media-wrap {
    min-height: 128px;
  }
  .template-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .publish-layout { grid-template-columns: 1fr; }
  .composer-actions { flex-wrap: wrap; }
  .new-composer .composer-actions { margin: 0; }
  .new-composer .generate-gradient {
    width: 100%;
    margin-left: 0;
  }
  .hint { order: 8; width: 100%; margin: 0; }
}

/* Oumomo-style workspace sizing pass: tighter text, centered work area, compact controls. */
@media (min-width: 981px) {
  .sidebar {
    width: 272px;
    padding: 18px;
  }
  .page-back-btn {
    left: 290px;
  }
  .brand {
    height: 38px;
    margin-bottom: 26px;
  }
  .account-pill,
  .side-link {
    width: 236px;
  }
  .account-pill {
    height: 60px;
    border-radius: 15px;
    margin-bottom: 18px;
  }
  .side-link {
    min-height: 36px;
    font-size: 14px;
  }
  .topbar {
    top: 25px;
    right: 28px;
    padding: 0;
  }
  .dashboard {
    width: min(calc(100% - 64px), 960px);
    margin: 0 auto;
    padding: 58px 0 64px;
  }
  .new-dashboard {
    padding-top: 52px;
  }
  .aurora-bg {
    height: 392px;
    background:
      radial-gradient(circle at 42% 10%, rgba(130, 255, 0, .18), transparent 27rem),
      radial-gradient(circle at 62% 0%, rgba(22, 120, 38, .18), transparent 25rem);
  }
  .hero-title,
  .new-hero-title {
    margin: 0 0 10px;
    min-height: 64px;
    font-size: clamp(42px, 3.8vw, 52px);
    line-height: 1.12;
    letter-spacing: 0;
  }
  .hero-sub {
    margin: 0 0 34px;
    font-size: 16px;
  }
  .new-composer {
    width: min(100%, 960px);
    min-height: 238px;
    border-radius: 20px;
  }
  .composer {
    grid-template-columns: 52px 1fr;
  }
  .composer-rail {
    padding: 10px 7px;
  }
  .rail-btn {
    height: 44px;
    font-size: 12px;
  }
  .composer-body {
    grid-template-rows: minmax(156px, auto) auto;
    padding: 18px 16px 0;
  }
  .new-composer .prompt-area {
    min-height: 156px;
  }
  .upload-card {
    width: 66px;
    height: 76px;
    font-size: 11px;
  }
  .new-prompt {
    min-height: 146px;
    max-height: 196px;
    padding-right: clamp(150px, 18vw, 210px);
    font-size: 16px;
    line-height: 1.58;
    font-weight: 650;
  }
  .prompt-tools {
    min-height: 36px;
    top: 17px;
    right: 14px;
  }
  .ai-optimize-btn,
  .prompt-template-btn {
    min-height: 36px;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
  }
  .new-composer .composer-actions {
    min-height: 78px;
    padding: 13px 14px;
    margin: 0 -16px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .select,
  .small-input {
    min-width: 188px;
    height: 36px;
    font-size: 14px;
  }
  .hint {
    flex: 1 1 170px;
    min-width: 120px;
    font-size: 13px;
    line-height: 1.3;
    order: initial;
    width: auto;
  }
  .config-btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
  }
  .generate-gradient,
  .new-composer .generate-gradient {
    width: auto;
    min-width: 178px;
    min-height: 54px;
    margin-left: auto;
    padding: 0 26px;
    border-radius: 16px;
    font-size: 17px;
    white-space: nowrap;
  }
  .creative-tools {
    width: min(100%, 960px);
    margin: 48px auto 0;
  }
  .creative-tools h2 {
    max-width: none;
    margin: 0 0 18px;
    font-size: 19px;
  }
  .big-tool-grid,
  .mini-tool-grid {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
  }
  .big-tool-grid .tool-card,
  .mini-tool-grid .tool-card {
    min-height: 150px;
    padding: 22px;
  }
  .tool-card h3,
  .feature-card h3,
  .plan-card h3 {
    font-size: 24px;
  }
  .tool-card p {
    font-size: 14px;
    line-height: 1.55;
  }
}

@media (min-width: 981px) and (max-width: 1600px) {
  .dashboard {
    width: min(calc(100% - 54px), 960px);
    padding-top: 50px;
  }
  .new-hero-title {
    font-size: clamp(40px, 3.8vw, 52px);
  }
  .hero-sub {
    margin-bottom: 32px;
    font-size: 15px;
  }
  .new-composer,
  .creative-tools {
    width: min(100%, 960px);
  }
  .new-composer .composer-actions {
    flex-wrap: nowrap;
  }
  .select {
    min-width: 166px;
    flex-basis: 176px;
  }
  .config-btn {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .new-composer .generate-gradient {
    width: 88px;
    min-width: 88px;
    min-height: 88px;
    padding: 0 10px;
    white-space: normal;
    line-height: 1.2;
  }
}

/* Visual clone red-light fix: match reference creation/template sections. */
@media (min-width: 981px) {
  .creative-tools {
    margin-top: 52px;
  }
  .creative-tools h2 {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 900;
  }
  .creative-tools h2 span {
    width: 7px;
    height: 26px;
  }
  .big-tool-grid,
  .mini-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 22px;
  }
  .big-tool-grid .tool-card,
  .mini-tool-grid .tool-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: stretch;
    gap: 18px;
    min-height: 318px;
    height: 318px;
    padding: 28px 28px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(20,21,27,.96), rgba(9,10,13,.98));
    box-shadow: none;
  }
  .mini-tool-grid .tool-card {
    min-height: 318px;
    height: 318px;
  }
  .tool-card-copy {
    display: grid;
    align-content: start;
    gap: 10px;
  }
  .tool-card h3,
  .mini-tool-grid .tool-card h3 {
    margin: 0;
    font-size: 25px;
    line-height: 1.12;
    font-weight: 900;
    color: #f4f7f3;
  }
  .tool-card p,
  .mini-tool-grid .tool-card p {
    margin: 0;
    max-width: 84%;
    color: #9ba3a0;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 520;
  }
  .tool-card .badge {
    position: static;
    justify-self: start;
    z-index: 2;
    padding: 4px 12px;
    font-size: 12px;
  }
  .tool-card .badge + h3 {
    margin-top: 0;
  }
  .tool-card-media-wrap,
  .big-tool-grid .tool-card-media-wrap,
  .mini-tool-grid .tool-card-media-wrap {
    align-self: end;
    width: 100%;
    min-height: 0;
    height: 158px;
    aspect-ratio: auto;
    border-radius: 10px;
    border: 0;
    background: #050605;
    overflow: hidden;
  }
  .tool-card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mini-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mini-tool-grid .tool-card:nth-child(3) {
    grid-column: 1 / 2;
  }
  .category-row {
    width: min(100%, 960px);
    margin: 46px auto 18px;
    gap: 22px;
    padding: 0 0 4px;
    white-space: nowrap;
  }
  .category-row .tab {
    min-height: 28px;
    border-radius: 0;
    padding: 0;
    color: #8f9693;
    font-size: 17px;
    font-weight: 900;
    background: transparent;
  }
  .category-row .tab.active {
    color: var(--lime);
  }
  .template-grid {
    width: min(100%, 960px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
  .template-card {
    height: 360px;
    border-radius: 10px;
    border: 1px solid rgba(166,255,0,.22);
    background: #080a08;
  }
  .template-card.has-media {
    border-color: rgba(166,255,0,.24);
  }
  .template-card::after {
    background: linear-gradient(180deg, rgba(0,0,0,.22), transparent 32%, rgba(0,0,0,.84) 74%);
  }
  .template-media {
    object-fit: cover;
  }
  .template-open {
    top: 12px;
    left: 12px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 4px;
  }
  .template-stats {
    top: 44px;
    left: 16px;
    font-size: 12px;
  }
  .card-title {
    left: 18px;
    right: 18px;
    bottom: 72px;
    font-size: 17px;
  }
  .card-btn {
    left: 18px;
    right: 18px;
    bottom: 18px;
    height: 38px;
    border-radius: 6px;
    font-size: 14px;
  }
}

@media (min-width: 981px) and (max-width: 1600px) {
  .big-tool-grid .tool-card,
  .mini-tool-grid .tool-card {
    min-height: 306px;
    height: 306px;
    padding: 26px 26px 20px;
  }
  .tool-card h3,
  .mini-tool-grid .tool-card h3 {
    font-size: 24px;
  }
  .tool-card p,
  .mini-tool-grid .tool-card p {
    font-size: 14px;
  }
}

/* Oumomo compact creation-tool card pass: primary cards use left copy + right thumbnail. */
@media (min-width: 981px) {
  .creative-tools {
    width: min(100%, 960px);
    margin: 48px auto 0;
  }
  .creative-tools h2 {
    width: 100%;
    max-width: none;
    margin: 0 0 30px;
    font-size: 22px;
    line-height: 1.1;
  }
  .creative-tools h2 span {
    width: 7px;
    height: 26px;
    border-radius: 99px;
  }
  .big-tool-grid {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 28px;
    margin: 0 0 28px;
  }
  .big-tool-grid .tool-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 152px;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 18px;
    min-height: 224px;
    height: 224px;
    padding: 34px 26px 26px;
    overflow: visible;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.12);
    background:
      radial-gradient(circle at 18% 100%, rgba(90,112,210,.2), transparent 54%),
      linear-gradient(180deg, rgba(19,20,28,.96), rgba(9,10,14,.98));
  }
  .big-tool-grid .tool-card:hover {
    border-color: rgba(166,255,0,.34);
    background:
      radial-gradient(circle at 18% 100%, rgba(76,125,31,.2), transparent 54%),
      linear-gradient(180deg, rgba(20,22,27,.98), rgba(8,10,12,.98));
  }
  .big-tool-grid .tool-card-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
    height: 100%;
  }
  .big-tool-grid .tool-card .badge {
    position: absolute;
    top: -15px;
    left: 26px;
    justify-self: auto;
    z-index: 3;
    height: 32px;
    padding: 0 18px;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    line-height: 32px;
    box-shadow: 0 8px 20px rgba(0,0,0,.24);
  }
  .big-tool-grid .tool-card h3 {
    margin: 0;
    max-width: 230px;
    color: #f8fbf7;
    font-size: 28px;
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: 0;
  }
  .big-tool-grid .tool-card p {
    margin: 0;
    max-width: 230px;
    color: #a8b0ad;
    font-size: 16px;
    line-height: 1.58;
    font-weight: 520;
  }
  .big-tool-grid .tool-card-media-wrap {
    justify-self: end;
    align-self: center;
    width: 148px;
    height: 102px;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #050605;
    box-shadow: 0 14px 30px rgba(0,0,0,.25);
  }
  .big-tool-grid .tool-card-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  .big-tool-grid .tool-video-replica .tool-card-media-wrap,
  .big-tool-grid .tool-video-script .tool-card-media-wrap {
    width: 132px;
    height: 112px;
    transform: rotate(0deg);
  }
  .big-tool-grid .tool-url-to-video .tool-card-media-wrap::after {
    content: "▶";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #050505;
    background: rgba(255,255,255,.92);
    font-size: 20px;
    font-weight: 900;
  }
  .mini-tool-grid {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
  }
  .mini-tool-grid .tool-card {
    position: relative;
    display: block;
    min-height: 96px;
    height: 96px;
    padding: 20px 58px 18px 72px;
    overflow: visible;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background:
      radial-gradient(circle at 20% 100%, rgba(55,75,150,.16), transparent 58%),
      linear-gradient(180deg, rgba(20,21,28,.94), rgba(9,10,13,.98));
  }
  .mini-tool-grid .tool-card::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 50%;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border-radius: 12px;
    border: 1px solid rgba(166,255,0,.16);
    background: rgba(12,16,15,.84);
  }
  .mini-tool-grid .tool-card::after {
    content: "›";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #061000;
    background: var(--lime);
    font-size: 24px;
    font-weight: 900;
  }
  .mini-tool-grid .tool-card-copy {
    display: grid;
    gap: 5px;
    align-content: center;
    height: 100%;
  }
  .mini-tool-grid .tool-card .badge {
    position: absolute;
    top: -12px;
    left: 22px;
    z-index: 3;
    height: 24px;
    padding: 0 11px;
    align-items: center;
    font-size: 11px;
    line-height: 24px;
  }
  .mini-tool-grid .tool-card h3 {
    margin: 0;
    color: #f8fbf7;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 900;
  }
  .mini-tool-grid .tool-card p {
    display: -webkit-box;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    color: #9fa8a4;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 520;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .mini-tool-grid .tool-card-media-wrap {
    display: none;
  }
  .mini-tool-grid .tool-card:nth-child(3) {
    grid-column: 1 / 2;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .creative-tools {
    width: min(100%, 860px);
  }
  .big-tool-grid .tool-card {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 14px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .big-tool-grid .tool-card h3 {
    font-size: 25px;
  }
  .big-tool-grid .tool-card p {
    font-size: 14px;
  }
  .big-tool-grid .tool-card-media-wrap {
    width: 126px;
    height: 92px;
  }
}

@media (max-width: 980px) {
  .big-tool-grid,
  .mini-tool-grid {
    grid-template-columns: 1fr;
  }
  .big-tool-grid .tool-card,
  .mini-tool-grid .tool-card {
    min-height: 180px;
    height: auto;
    grid-template-columns: 1fr;
  }
}

/* Prompt input and template editor usability pass. */
@media (min-width: 981px) {
  .new-composer {
    min-height: 308px;
  }
  .composer-body {
    grid-template-rows: minmax(218px, auto) auto;
  }
  .new-composer .prompt-area {
    min-height: 218px;
  }
  .new-prompt {
    min-height: 212px;
    max-height: 300px;
    padding-right: clamp(170px, 20vw, 238px);
    font-size: 17px;
    line-height: 1.68;
    font-weight: 650;
  }
  .prompt-tools {
    top: 18px;
    right: 20px;
    width: 154px;
    gap: 10px;
  }
  .ai-optimize-btn,
  .prompt-template-btn {
    width: 154px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }
  .ai-optimize-btn span,
  .prompt-template-btn span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0;
  }
  .prompt-template-btn {
    border-color: rgba(255,255,255,.16);
    background: rgba(17, 24, 22, .94);
    color: #eaf4ea;
  }
  .prompt-template-btn span {
    color: #061000;
    background: #d8f7cc;
  }
  .ai-optimize-btn {
    border-color: rgba(166,255,0,.48);
    background: rgba(25, 56, 5, .7);
    color: var(--lime);
  }
  .ai-optimize-btn span {
    color: #061000;
    background: var(--lime);
  }
  .modal {
    width: min(860px, calc(100vw - 48px));
    border-radius: 12px;
    padding: 22px 24px 24px;
  }
  .modal h2,
  .modal h3 {
    font-size: 26px;
    line-height: 1.2;
    margin-top: 0;
  }
  .template-note,
  .modal .template-note {
    width: 100%;
    min-height: 520px;
    max-height: 62vh;
    margin: 12px 0 16px;
    border-radius: 12px;
    border-color: rgba(166,255,0,.34);
    background: #101615;
    color: #f3fff1;
    padding: 20px 22px;
    font-size: 16px;
    line-height: 1.82;
    font-weight: 560;
  }
  .modal .work-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
  }
  .modal .work-row button {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    font-size: 16px;
  }
}

@media (max-width: 980px) {
  .page-back-btn {
    position: sticky;
    top: 10px;
    left: 12px;
    margin: 10px 0 0 12px;
  }
  .prompt-tools {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
  .ai-optimize-btn,
  .prompt-template-btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .template-note,
  .modal .template-note {
    min-height: 420px;
    font-size: 15px;
    line-height: 1.72;
  }
}

/* Viral template exploration header and tighter category tabs. */
@media (min-width: 981px) {
  .viral-template-explore {
    width: min(100%, 960px);
    margin: 52px auto 0;
  }
  .template-explore-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 44px;
    margin-bottom: 24px;
  }
  .template-explore-head h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #f2f6f1;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
  }
  .template-explore-head h2 span {
    width: 7px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #27a8ff, #24d969);
  }
  .template-more-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(24, 25, 32, .86);
    color: #f2f6f1;
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
  }
  .template-more-btn:hover {
    border-color: rgba(166,255,0,.42);
    color: var(--lime);
    background: rgba(22, 33, 13, .9);
  }
  .category-row {
    width: min(100%, 960px);
    margin: 0 auto 18px;
    gap: 12px;
    padding: 0 0 4px;
    white-space: nowrap;
  }
  .category-row .tab {
    min-height: 32px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(7, 8, 11, .72);
    color: #8f9693;
    font-size: 14px;
    line-height: 32px;
    font-weight: 850;
  }
  .category-row .tab.active {
    border-color: rgba(166,255,0,.45);
    background: linear-gradient(100deg, #a6ff00, #2ed76c);
    color: #061000;
  }
}

@media (max-width: 980px) {
  .viral-template-explore {
    margin: 34px 0 0;
  }
  .template-explore-head {
    display: grid;
    gap: 12px;
  }
  .template-explore-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 20px;
  }
  .template-explore-head h2 span {
    width: 7px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #27a8ff, #24d969);
  }
  .template-more-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    background: #1a1f20;
    color: #f2f6f1;
    font-weight: 850;
  }
  .category-row .tab {
    font-size: 14px;
  }
}

/* Tool-card alignment fix: keep badges, icons and video play controls from colliding. */
@media (min-width: 981px) {
  .big-tool-grid .tool-card-media-wrap {
    position: relative;
  }
  .big-tool-grid .tool-url-to-video .tool-card-media-wrap::after {
    pointer-events: none;
  }
  .mini-tool-grid .tool-card {
    padding: 22px 58px 18px 82px;
  }
  .mini-tool-grid .tool-card::before {
    display: grid;
    place-items: center;
    color: var(--lime);
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
  }
  .mini-tool-grid .tool-dedup::before {
    content: "✂";
  }
  .mini-tool-grid .tool-precheck::before {
    content: "✓";
  }
  .mini-tool-grid .tool-publish::before {
    content: "↗";
  }
  .mini-tool-grid .tool-card .badge {
    top: -14px;
    left: 76px;
  }
  .mini-tool-grid .tool-card.has-badge .tool-card-copy {
    padding-top: 6px;
  }
  .mini-tool-grid .tool-card h3 {
    font-size: 19px;
    line-height: 1.12;
  }
  .mini-tool-grid .tool-card p {
    font-size: 12.5px;
    line-height: 1.42;
  }
}

@media (min-width: 981px) {
  .mini-tool-grid .tool-card-copy {
    position: static;
  }
  .mini-tool-grid .tool-dedup::before {
    content: "AI";
    font-size: 13px;
    letter-spacing: 0;
  }
  .mini-tool-grid .tool-precheck::before {
    content: "QC";
    font-size: 13px;
    letter-spacing: 0;
  }
  .mini-tool-grid .tool-publish::before {
    content: "TK";
    font-size: 13px;
    letter-spacing: 0;
  }
  .mini-tool-grid .tool-card .badge {
    top: -13px;
    left: 82px;
  }
  .mini-tool-grid .tool-card.has-badge .tool-card-copy {
    padding-top: 10px;
  }
}

/* Prompt body text density: match the compact sidebar scale instead of oversized display text. */
@media (min-width: 981px) {
  .new-prompt {
    font-size: 15px;
    line-height: 1.62;
    font-weight: 650;
  }
  .modal .template-note {
    font-size: 15px;
    line-height: 1.68;
    font-weight: 650;
  }
}

@media (max-width: 980px) {
  .new-prompt,
  .modal .template-note {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* Prompt body visual weight: keep placement, reduce text prominence. */
.new-composer .new-prompt {
  color: rgba(214, 225, 216, .78);
  font-size: 13px;
  line-height: 1.58;
  font-weight: 520;
  text-shadow: none;
}

.new-composer .new-prompt::placeholder {
  color: rgba(190, 202, 193, .58);
}

@media (min-width: 981px) {
  .new-composer .new-prompt {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 520;
  }
}

@media (max-width: 980px) {
  .new-composer .new-prompt {
    font-size: 13px;
    line-height: 1.62;
    font-weight: 520;
  }
}

/* Responsive composer controls and 6-column viral template wall. */
@media (min-width: 981px) {
  .new-composer {
    overflow: hidden;
  }
  .new-composer .composer-actions {
    display: grid;
    grid-template-columns: minmax(150px, 214px) minmax(132px, 1fr) minmax(150px, 190px) minmax(90px, 112px) minmax(132px, 170px) minmax(132px, 170px);
    align-items: center;
    gap: 10px;
    flex-wrap: initial;
    min-width: 0;
  }
  .new-composer .composer-actions > * {
    min-width: 0;
  }
  .new-composer .select,
  .new-composer .config-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .new-composer .hint {
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .new-composer .generate-gradient {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin-left: 0;
    padding: 0 12px;
    white-space: normal;
    line-height: 1.15;
  }
  .viral-template-explore,
  .category-row,
  .template-grid,
  .template-pager {
    width: min(100%, 1210px);
  }
  .template-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }
  .template-card,
  .template-card.has-media {
    height: clamp(238px, 18vw, 286px);
    border-radius: 8px;
  }
  .template-open {
    top: 8px;
    left: 8px;
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }
  .template-stats {
    top: 36px;
    left: 10px;
    right: 10px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-title {
    left: 10px;
    right: 10px;
    bottom: 48px;
    font-size: 14px;
    line-height: 1.25;
    display: -webkit-box;
    max-height: 36px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .card-btn {
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 30px;
    border-radius: 6px;
    font-size: 12px;
  }
  .template-pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 16px auto 0;
  }
  .template-pager button {
    min-height: 34px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(166,255,0,.35);
    background: rgba(23, 40, 7, .78);
    color: var(--lime);
    font-weight: 850;
  }
}

@media (min-width: 981px) and (max-width: 1360px) {
  .new-composer .composer-actions {
    grid-template-columns: minmax(138px, 190px) minmax(120px, 1fr) minmax(130px, 170px) minmax(76px, 96px) minmax(120px, 152px) minmax(116px, 150px);
    gap: 8px;
  }
  .new-composer .config-btn {
    padding: 0 10px;
    font-size: 12px;
  }
  .new-composer .generate-gradient {
    font-size: 14px;
  }
  .template-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  .template-card,
  .template-card.has-media {
    height: 230px;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .new-composer .composer-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .new-composer .generate-gradient {
    min-height: 44px;
  }
  .template-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Projects page: latest-first compact video wall, 6 columns by 5 rows before loading more. */
@media (min-width: 981px) {
  .projects-v2 .project-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }
  .projects-v2 .project-card {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
  }
  .projects-v2 .video-thumb {
    position: relative;
    height: clamp(170px, 16vw, 238px);
    margin: -2px -2px 10px;
    overflow: hidden;
  }
  .project-thumb-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
  }
  .projects-v2 .video-thumb span {
    position: relative;
    z-index: 1;
    font-size: 28px;
  }
  .projects-v2 .project-card h3 {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #f5faf4;
    font-size: 14px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .projects-v2 .project-card p {
    margin: 0 0 5px;
    overflow: hidden;
    color: #9fa8a3;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .projects-v2 .status-line {
    color: var(--lime) !important;
    font-size: 12px !important;
  }
  .projects-v2 .project-card .work-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }
  .projects-v2 .project-card .work-row > * {
    min-height: 30px;
    padding: 0 6px;
    border-radius: 7px;
    overflow: hidden;
    font-size: 11px;
    line-height: 30px;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .project-pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
  }
  .project-pager button {
    min-height: 34px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(166,255,0,.35);
    background: rgba(23, 40, 7, .78);
    color: var(--lime);
    font-weight: 850;
  }
}

@media (min-width: 981px) and (max-width: 1360px) {
  .projects-v2 .project-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  .projects-v2 .video-thumb {
    height: 160px;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .projects-v2 .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Lightweight project management layout: less hero weight, denser admin spacing. */
@media (min-width: 981px) {
  .projects-v2 {
    padding: 58px 5vw 56px;
  }
  .projects-v2 .promo-banner {
    width: min(640px, 58%);
    min-height: 34px;
    margin: 0 auto 22px;
    padding: 0 14px 0 22px;
    font-size: 13px;
    line-height: 1.2;
  }
  .projects-v2 .promo-banner button {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .projects-v2 .page-head {
    align-items: end;
    margin-bottom: 20px;
  }
  .projects-v2 .page-head h1 {
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: .98;
    letter-spacing: 0;
  }
  .projects-v2 .page-head .lead {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
  }
  .projects-v2 .account-select {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
  }
  .projects-v2 .stats-grid {
    gap: 12px;
    margin: 18px 0 18px;
  }
  .projects-v2 .stat-card {
    min-height: 78px;
    padding: 14px 18px;
    border-radius: 12px;
  }
  .projects-v2 .stat-card span {
    margin-bottom: 8px;
    font-size: 13px;
  }
  .projects-v2 .stat-card strong {
    font-size: 30px;
    line-height: 1;
  }
  .projects-v2 .project-filter-bar {
    gap: 10px 14px;
    padding: 8px 10px;
    margin-bottom: 18px;
    border-radius: 12px;
  }
  .projects-v2 .project-filter-bar button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 13px;
  }
}

@media (min-width: 981px) and (max-width: 1360px) {
  .projects-v2 {
    padding: 46px 4vw 52px;
  }
  .projects-v2 .page-head h1 {
    font-size: clamp(32px, 3.4vw, 46px);
  }
  .projects-v2 .stat-card {
    min-height: 70px;
    padding: 12px 14px;
  }
  .projects-v2 .stat-card strong {
    font-size: 28px;
  }
}

/* Local dashboard polish pass: compact uploads, tool cards, and template paging. */
.upload-card {
  position: relative;
  gap: 4px;
  padding: 6px;
  overflow: hidden;
}
.upload-card.dragging {
  border-color: var(--lime);
  background: rgba(166,255,0,.12);
  box-shadow: 0 0 0 2px rgba(166,255,0,.18);
}
.upload-plus {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.upload-label {
  display: block;
  max-width: 100%;
  color: #cbd4cf;
  font-size: 10px;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-card-thumb {
  position: relative;
  width: 100%;
  height: 42px;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #060807;
}
.upload-card-thumb img,
.upload-card-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.upload-card-stack {
  overflow: visible;
}
.upload-stack-item {
  position: absolute;
  left: calc(2px + var(--stack) * 11px);
  top: calc(2px + var(--stack) * 3px);
  width: 40px;
  height: 36px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(166,255,0,.42);
  border-radius: 6px;
  background: #060807;
  box-shadow: 0 6px 14px rgba(0,0,0,.34);
}
.upload-stack-item img,
.upload-stack-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-card-thumb em {
  position: absolute;
  right: 3px;
  bottom: 3px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(166,255,0,.92);
  color: #061000;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.assets-page {
  padding-top: 58px;
}
.assets-head {
  min-height: 0;
  margin-bottom: 16px;
  align-items: end;
}
.assets-head h1 {
  font-size: clamp(48px, 5vw, 76px);
  line-height: .92;
}
.assets-head .lead {
  margin-top: 12px;
  max-width: 680px;
}
.asset-tabs {
  margin: 10px 0 16px;
  gap: 10px;
}
.asset-tabs .tab {
  min-height: 34px;
  padding: 0 16px;
  font-size: 13px;
}
.asset-wall {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.compact-asset-card {
  padding: 10px;
  display: grid;
  gap: 8px;
}
.compact-asset-card .asset-preview {
  aspect-ratio: 9 / 10;
  border-radius: 8px;
}
.compact-asset-card h3 {
  margin: 0;
  color: #f2f8ef;
  font-size: 14px;
  line-height: 1.2;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compact-asset-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
}
.asset-path {
  color: rgba(190,202,193,.62) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.asset-actions button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 6px;
}
.asset-pager {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.asset-page-size {
  display: inline-flex;
  gap: 7px;
}
.asset-page-size button {
  min-width: 38px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(166,255,0,.32);
  background: rgba(15,22,12,.95);
  color: #d8e5d3;
  font-weight: 850;
}
.asset-page-size button.active {
  background: var(--lime);
  color: #061000;
}

@media (min-width: 981px) {
  .sample-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .sample.has-media {
    height: clamp(238px, 18vw, 286px);
  }

  .sample-pager,
  .project-pager,
  .template-pager,
  .asset-pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
  }

  .sample-page-size,
  .project-page-size,
  .template-page-size,
  .asset-page-size {
    display: inline-flex;
    gap: 7px;
  }

  .sample-page-size button,
  .project-page-size button,
  .template-page-size button,
  .asset-page-size button {
    min-width: 38px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(166,255,0,.35);
    background: rgba(15,22,12,.95);
    color: #d8e5d3;
    font-weight: 850;
  }

  .sample-page-size button.active,
  .project-page-size button.active,
  .template-page-size button.active,
  .asset-page-size button.active {
    background: var(--lime);
    color: #061000;
  }
}

.ai-create-placeholder {
  max-width: 720px;
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 12px;
  border-color: rgba(166, 255, 0, .26);
  background: linear-gradient(135deg, rgba(166, 255, 0, .08), rgba(14, 18, 22, .95));
}

.ai-create-placeholder strong {
  color: var(--lime);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}

.ai-create-placeholder p {
  margin: 0;
  color: rgba(220, 232, 216, .68);
  font-size: 15px;
}
.uploaded-preview-strip {
  gap: 8px;
  padding: 0 0 8px;
  margin-top: -4px;
}
.upload-preview-card {
  flex: 0 0 76px;
  width: 76px;
  border-radius: 8px;
}
.upload-preview-open {
  width: 100%;
  display: block;
  text-align: left;
}
.upload-preview-card img,
.upload-preview-card video {
  width: 76px;
  height: 58px;
}
.upload-preview-card b {
  padding: 5px 6px 6px;
  font-size: 10px;
}
.upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #f4fff0;
  border: 1px solid rgba(255,255,255,.24);
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
}
.upload-remove:hover {
  background: var(--lime);
  color: #061000;
}

@media (min-width: 981px) {
  .prompt-tools {
    width: 128px;
    right: 16px;
    gap: 8px;
  }
  .ai-optimize-btn,
  .prompt-template-btn {
    width: 128px;
    min-height: 34px;
    border-radius: 12px;
    padding: 0 10px;
    font-size: 12px;
    gap: 6px;
  }
  .ai-optimize-btn span,
  .prompt-template-btn span {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 10px;
  }
  .new-prompt {
    padding-right: 158px;
  }
  .big-tool-grid,
  .mini-tool-grid {
    gap: 18px 20px;
  }
  .big-tool-grid .tool-card,
  .mini-tool-grid .tool-card {
    min-height: 222px;
    height: 222px;
    padding: 22px 24px 18px;
    gap: 12px;
  }
  .tool-card h3,
  .mini-tool-grid .tool-card h3 {
    font-size: 22px;
    line-height: 1.15;
  }
  .tool-card p,
  .mini-tool-grid .tool-card p {
    max-width: 72%;
    font-size: 13px;
    line-height: 1.45;
  }
  .tool-card-media-wrap,
  .big-tool-grid .tool-card-media-wrap,
  .mini-tool-grid .tool-card-media-wrap {
    height: 108px;
  }
}

.template-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.template-page-size {
  display: inline-flex;
  gap: 6px;
}
.template-page-size button {
  min-width: 42px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(166,255,0,.34);
  background: rgba(12,18,14,.9);
  color: #aeb8b1;
  font-size: 12px;
  font-weight: 850;
}
.template-page-size button.active {
  background: var(--lime);
  color: #061000;
  border-color: var(--lime);
}
