:root {
  --bg: #f7f2e8;
  --panel: #fffdf8;
  --panel-2: #fff7ea;
  --text: #151412;
  --muted: #756d61;
  --line: rgba(21, 20, 18, 0.12);
  --brand: #ff4d30;
  --brand-2: #0f8f86;
  --dark: #151412;
  --shadow: 0 24px 70px rgba(45, 34, 20, 0.14);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 77, 48, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(15, 143, 134, 0.18), transparent 22rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image: linear-gradient(rgba(21, 20, 18, 0.035) 1px, transparent 1px);
  background-size: 100% 32px;
}

button,
select,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.82);
  backdrop-filter: blur(18px);
}

.logo,
.topbar nav,
.badges {
  display: flex;
  align-items: center;
}

.logo {
  gap: 10px;
  font-weight: 900;
}

.logo span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(255, 77, 48, 0.26);
}

.topbar nav {
  justify-self: center;
  gap: 8px;
  padding: 5px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.topbar nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.topbar nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.top-action {
  justify-self: end;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--dark);
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 18px;
}

.hero-copy {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy.is-compact {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy > p {
  margin: 0 auto 18px;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-copy.is-compact h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.08;
}

.hero-copy.is-compact > p {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
}

.hero-copy.is-compact .eyebrow {
  margin-bottom: 8px;
}

.badges {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badges span {
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.seo-overview {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 16px;
}

.answer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 2.5vw, 26px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 247, 234, 0.86)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(45, 34, 20, 0.08);
}

.answer-copy {
  min-width: 0;
}

.answer-copy .eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
  color: #fff;
  background: #151412;
  border-radius: 999px;
  font-size: 11px;
}

.answer-panel h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
}

.answer-panel p:last-child {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.answer-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.answer-tags span {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  overflow: hidden;
  color: #2b251e;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(45, 34, 20, 0.05);
}

.answer-tags span:nth-child(3n + 1) {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.answer-tags span:nth-child(3n + 2) {
  background: #eef8f5;
  border-color: rgba(15, 143, 134, 0.18);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.use-case-grid article {
  min-height: 188px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.use-case-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--brand);
  font-weight: 900;
}

.use-case-grid h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.use-case-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.prompt-studio,
.scale-atlas {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 18px;
}

.builder-shell,
.atlas-shell {
  padding: 16px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(45, 34, 20, 0.08);
}

.builder-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.builder-controls .wide-field {
  grid-column: 1 / -1;
}

.builder-controls textarea {
  min-height: 104px;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.builder-actions button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--dark);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.builder-actions button:nth-child(2) {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.builder-actions span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.atlas-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.atlas-categories button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  color: var(--text);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
}

.atlas-categories button span {
  color: var(--muted);
  font-size: 12px;
}

.atlas-categories button.active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.atlas-categories button.active span {
  color: rgba(255, 255, 255, 0.72);
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.atlas-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.atlas-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(45, 34, 20, 0.12);
}

.atlas-card img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f5efe4;
  border-bottom: 1px solid var(--line);
}

.atlas-card span {
  padding: 12px 14px 0;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
}

.atlas-card strong {
  padding: 8px 14px 0;
  font-size: 16px;
  line-height: 1.35;
}

.atlas-card p {
  padding: 8px 14px 14px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quick-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ratio-icons {
  display: flex;
  gap: 6px;
}

.ratio-icons button {
  min-width: 48px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.ratio-icons button.active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.style-select-wrap select {
  min-height: 40px;
  padding: 0 32px 0 12px;
  font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23756d61' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
}

.advanced-row {
  margin-top: 0;
}

.adv-panel {
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.adv-panel summary {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  color: var(--muted);
}

.adv-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
}

.adv-grid label {
  font-size: 13px;
}

.adv-grid select,
.adv-grid input {
  min-height: 38px;
  margin-top: 4px;
  font-size: 13px;
}

.neg-field {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.code-field input {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
}

.mode-btns {
  display: flex;
  gap: 6px;
  flex: 1;
}

.mode-btns button {
  flex: 1;
  min-height: 44px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.mode-btns button span {
  display: block;
  color: var(--brand);
  font-size: 11px;
  text-transform: uppercase;
}

.mode-btns button em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  margin-top: 2px;
}

.mode-btns button.active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.mode-btns button.active span {
  color: #ffb7a8;
}

.mode-btns button.active em {
  color: rgba(255, 255, 255, 0.7);
}

.action-row .generate {
  min-height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

@media (max-width: 760px) {
  .quick-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .ratio-icons {
    justify-content: center;
  }

  .style-select-wrap {
    width: 100%;
  }

  .action-row {
    flex-direction: column;
  }

  .code-field,
  .mode-btns,
  .action-row .generate {
    width: 100%;
  }

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

@media (max-width: 980px) {
  .studio {
    grid-template-columns: 1fr !important;
  }

  .result {
    position: static !important;
    max-height: none !important;
  }
}

.creator,
.result {
  min-width: 0;
  padding: clamp(16px, 2.6vw, 28px);
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.creator {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 247, 234, 0.88)),
    var(--panel);
}

.creator > * {
  grid-column: 1 / -1;
}

.result {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.creator-head,
.prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.creator-head {
  margin-bottom: 0;
}

.creator h2,
.result h2,
.section-title h2 {
  margin-bottom: 4px;
  font-size: 25px;
  line-height: 1.1;
}

.creator-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.creator-head button,
.prompt-meta button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--brand);
  background: #fff1eb;
  border: 1px solid #ffd1c4;
  border-radius: 999px;
  font-weight: 800;
}

label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.prompt-field {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.76), rgba(255, 255, 255, 0.92)),
    #fff;
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 18px;
}

.prompt-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.prompt-hints span {
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

textarea {
  width: 100%;
  min-height: 188px;
  margin-top: 8px;
  padding: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  resize: vertical;
  line-height: 1.65;
}

.prompt-field textarea {
  min-height: 178px;
  margin-top: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(21, 20, 18, 0.045) 32px);
  border-radius: 14px;
}

textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 77, 48, 0.1);
}

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

.prompt-meta button {
  min-height: auto;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.inspiration-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.inspiration-strip button {
  min-width: 190px;
  flex: 0 0 190px;
  min-height: 64px;
  padding: 10px;
  text-align: left;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.inspiration-strip button:hover {
  border-color: rgba(255, 77, 48, 0.38);
  box-shadow: 0 10px 24px rgba(45, 34, 20, 0.08);
}

.inspiration-strip span,
.inspiration-strip strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspiration-strip span {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 900;
}

.inspiration-strip strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.controls,
.generator-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.tuning-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mode-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mode-panel button {
  min-width: 0;
  min-height: 86px;
  padding: 13px;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 234, 0.88)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.mode-panel button span,
.mode-panel button strong,
.mode-panel button em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-panel button span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-panel button strong {
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.2;
}

.mode-panel button em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.mode-panel button.active {
  color: #fff;
  background: linear-gradient(135deg, #151412, #2b2a24);
  border-color: var(--dark);
  box-shadow: 0 14px 26px rgba(21, 20, 18, 0.18);
}

.mode-panel button.active span {
  color: #ffb7a8;
}

.mode-panel button.active em {
  color: rgba(255, 255, 255, 0.72);
}

.size-control {
  grid-column: 1 / -1;
  min-width: 0;
}

.negative-panel {
  margin-top: 10px;
  padding: 0 12px 12px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.negative-panel summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.negative-panel input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.ratio-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.social-ratios {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.ratio-group button {
  min-height: 46px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
}

.social-ratios button {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  min-width: 178px;
  min-height: 94px;
  flex: 0 0 178px;
  gap: 3px 10px;
  align-items: center;
  padding: 12px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 234, 0.86)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  scroll-snap-align: start;
}

.social-ratios button i {
  grid-row: 1 / 4;
  display: block;
  justify-self: center;
  width: 24px;
  height: 32px;
  background:
    linear-gradient(135deg, rgba(255, 77, 48, 0.12), rgba(15, 143, 134, 0.16)),
    #fff;
  border: 2px solid rgba(21, 20, 18, 0.18);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(45, 34, 20, 0.08);
}

.social-ratios button[data-ratio="9:16"] i {
  width: 20px;
  height: 36px;
}

.social-ratios button[data-ratio="4:5"] i,
.social-ratios button[data-ratio="3:4"] i {
  width: 24px;
  height: 34px;
}

.social-ratios button[data-ratio="1:1"] i {
  width: 30px;
  height: 30px;
}

.social-ratios button[data-ratio="16:9"] i {
  width: 36px;
  height: 21px;
}

.social-ratios strong,
.social-ratios em,
.social-ratios span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-ratios strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.2;
}

.social-ratios em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
}

.social-ratios span {
  grid-column: 2;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 8px;
  color: var(--muted);
  background: #f7f2e8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.ratio-group button.active {
  color: #fff;
  background:
    linear-gradient(135deg, #151412, #2b2a24);
  border-color: var(--dark);
  box-shadow: 0 14px 26px rgba(21, 20, 18, 0.18);
}

.social-ratios button.active i {
  background:
    linear-gradient(135deg, rgba(255, 77, 48, 0.94), rgba(15, 143, 134, 0.9));
  border-color: rgba(255, 255, 255, 0.75);
}

.social-ratios button.active em {
  color: rgba(255, 255, 255, 0.72);
}

.ratio-group button.active span {
  color: var(--dark);
  background: #fff;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.tuning-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.activation-field {
  grid-column: 1 / 6;
  margin-top: 0;
}

.activation-field input,
.builder-controls input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.activation-field input:focus,
.builder-controls input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 77, 48, 0.1);
}

.generate {
  grid-column: 6 / -1;
  width: 100%;
  min-height: 56px;
  margin-top: 0;
  align-self: end;
  color: #fff;
  background: linear-gradient(135deg, var(--dark), #30302a);
  border: 0;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease;
}

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

.generate.is-loading {
  background: linear-gradient(135deg, var(--brand), #ff795f);
}

.result {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 234, 0.82)),
    var(--panel);
}

.result-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.preview-title-block {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-title-block h2 {
  margin: 0;
  white-space: nowrap;
}

.preview-actions {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.result-head button {
  min-width: 38px;
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border-color: var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #32d583;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(50, 213, 131, 0.14);
}

.preview-stage {
  display: flex;
  flex: 1;
  min-height: clamp(340px, 44vw, 660px);
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 22px);
  overflow: auto;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.98), transparent 26rem),
    linear-gradient(180deg, #f9f4ea, #ece3d5);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.preview-stage.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.image-viewer {
  position: relative;
  display: flex;
  width: min(100%, calc(72vh * var(--image-ratio, 1)));
  max-width: 100%;
  aspect-ratio: var(--image-aspect, 1 / 1);
  margin: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(21, 20, 18, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(21, 20, 18, 0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(21, 20, 18, 0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(21, 20, 18, 0.045) 75%),
    #ffffff;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  border: 1px solid rgba(21, 20, 18, 0.12);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 20px 48px rgba(21, 20, 18, 0.14);
}

.image-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(21, 20, 18, 0.18);
}

.image-viewer.is-portrait {
  width: min(100%, calc(76vh * var(--image-ratio, 0.7)));
}

.image-viewer.is-wide {
  width: 100%;
}

.image-viewer.is-zoomed {
  width: var(--zoom-width, 100%);
  max-width: none;
}

.image-viewer.is-zoomed img {
  object-fit: contain;
}

.preview-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.preview-meta span,
.preview-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.preview-meta span:nth-child(2) {
  display: block;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 800;
}

.preview-meta strong {
  font-weight: 800;
}

.library,
.features {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.library {
  padding: 34px 0 18px;
}

.section-title {
  margin-bottom: 18px;
}

.section-title p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.section-title a {
  color: var(--brand);
  font-weight: 900;
}

.library-shell {
  padding: 16px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.library-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.library-tools input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.library-tools input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 77, 48, 0.1);
}

.library-tools span {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.style-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.style-tabs button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.style-tabs button.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.prompt-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.prompt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(45, 34, 20, 0.12);
}

.prompt-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(21, 20, 18, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(21, 20, 18, 0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(21, 20, 18, 0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(21, 20, 18, 0.045) 75%),
    #faf7ef;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  border-bottom: 1px solid var(--line);
}

.prompt-card span {
  display: block;
  padding: 12px 14px 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.prompt-card strong {
  display: block;
  padding: 8px 14px 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.prompt-card p {
  padding: 8px 14px 14px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pagination {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pagination button,
.pagination select {
  min-height: 40px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.pagination button {
  padding: 0 14px;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.page-numbers button {
  min-width: 40px;
  padding: 0 10px;
}

.page-numbers button.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.pagination label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.pagination select {
  padding: 0 10px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 34px 0 64px;
}

.features article {
  padding: 20px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.features span {
  display: block;
  margin-bottom: 18px;
  color: var(--brand-2);
  font-weight: 900;
}

.features strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.features p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-grid article {
  padding: 20px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(16px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer strong {
  color: var(--text);
}

/* Pro generator console redesign */
.studio {
  width: min(1060px, 100%);
  gap: 12px;
}

.creator {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
  padding: clamp(18px, 2.4vw, 26px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 238, 0.9)),
    var(--panel);
  border-radius: 22px;
  box-shadow: 0 22px 64px rgba(45, 34, 20, 0.13);
}

.creator-head {
  order: 1;
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.creator-head h2 {
  font-size: 20px;
}

.creator-head p {
  font-size: 14px;
}

.creator-head button {
  min-height: 38px;
  color: #fff;
  background: var(--dark);
  border: 0;
}

.prompt-field {
  order: 2;
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
}

.prompt-label-row {
  padding: 12px 14px 0;
}

.prompt-hints span {
  padding: 4px 7px;
  font-size: 11px;
}

.prompt-field textarea {
  min-height: 184px;
  margin-top: 6px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  resize: vertical;
}

.prompt-meta {
  margin: 0;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--line);
}

.inspiration-strip {
  padding: 0 14px 12px;
}

.inspiration-strip button {
  min-width: 168px;
  min-height: 48px;
  flex-basis: 168px;
  padding: 8px 10px;
}

.generator-toolbar {
  order: 3;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.generator-toolbar > label,
.size-control {
  min-width: 0;
  padding: 10px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.size-control {
  grid-column: 1 / -1;
}

.social-ratios {
  gap: 7px;
  padding: 0;
}

.social-ratios button {
  display: inline-flex;
  min-width: 116px;
  min-height: 42px;
  flex: 0 0 116px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 9px;
  text-align: center;
  border-radius: 999px;
}

.social-ratios button i,
.social-ratios button em {
  display: none;
}

.social-ratios strong {
  max-width: 70px;
  font-size: 12px;
}

.social-ratios span {
  grid-column: auto;
  margin: 0;
  padding: 2px 6px;
  font-size: 11px;
}

.negative-panel {
  order: 4;
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 0 10px 10px;
  background: rgba(255, 253, 248, 0.68);
}

.mode-panel {
  order: 5;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.mode-panel button {
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
}

.mode-panel button strong {
  font-size: 15px;
}

.mode-panel button em {
  margin-top: 4px;
}

.activation-field {
  order: 6;
  grid-column: 1 / 8;
  margin-top: 0;
}

.generate {
  order: 6;
  grid-column: 8 / -1;
  min-height: 46px;
  margin-top: 28px;
  border-radius: 14px;
}

.result {
  padding: 16px;
  box-shadow: 0 14px 42px rgba(45, 34, 20, 0.1);
}

.preview-stage {
  min-height: clamp(300px, 36vw, 520px);
}

@media (max-width: 760px) {
  .creator,
  .generator-toolbar,
  .mode-panel {
    grid-template-columns: 1fr;
  }

  .activation-field,
  .generate {
    grid-column: 1 / -1;
  }

  .generate {
    margin-top: 0;
  }
}

/* Desktop generator UX: input and preview stay in the same viewport */
@media (min-width: 981px) {
  .studio {
    width: min(1180px, 100%);
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.9fr);
    gap: 16px;
    align-items: start;
  }

  .creator {
    min-height: 0;
  }

  .result {
    position: sticky;
    top: 82px;
    min-height: min(760px, calc(100vh - 108px));
    max-height: calc(100vh - 108px);
    overflow: hidden;
  }

  .preview-stage {
    min-height: 0;
    height: clamp(420px, calc(100vh - 280px), 620px);
  }

  .prompt-field textarea {
    min-height: clamp(160px, 24vh, 230px);
  }
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a,
.related-links a,
.static-hero a {
  color: var(--brand);
  font-weight: 900;
}

.static-hero,
.prompt-hero,
.prompt-text-block,
.related-links {
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(45, 34, 20, 0.08);
}

.static-hero h1,
.prompt-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 64px);
}

.static-hero p,
.prompt-hero p,
.prompt-text-block p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.primary-page-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  padding: 0 16px;
  color: #fff !important;
  background: var(--dark);
  border-radius: 999px;
}

.prompt-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: center;
}

.prompt-image {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.prompt-image img {
  max-height: 520px;
  object-fit: contain;
  background: #faf7ef;
}

.prompt-text-block pre {
  overflow: auto;
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  line-height: 1.65;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.related-links h2 {
  width: 100%;
}

.static-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.static-prompt-link {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.static-prompt-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(45, 34, 20, 0.12);
}

.static-prompt-link img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #faf7ef;
  border-bottom: 1px solid var(--line);
}

.static-prompt-link span {
  padding: 12px 14px 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.static-prompt-link strong {
  padding: 8px 14px 14px;
  line-height: 1.35;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(14px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topbar nav {
    display: none;
  }

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

  .prompt-hero {
    grid-template-columns: 1fr;
  }

  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .answer-panel {
    grid-template-columns: 1fr;
  }

  .answer-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-stage {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 12px 14px;
  }

  .top-action {
    min-height: 36px;
    padding: 0 13px;
    font-size: 14px;
  }

  .hero {
    width: min(100% - 24px, 1160px);
    padding-top: 34px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy.is-compact h1 {
    font-size: 34px;
  }

  .hero-copy.is-compact > p {
    font-size: 16px;
  }

  .creator,
  .result {
    padding: 14px;
    border-radius: 18px;
  }

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

  .creator-head {
    align-items: flex-start;
  }

  .preview-actions {
    margin-right: -4px;
  }

  .controls,
  .generator-toolbar,
  .tuning-panel,
  .mode-panel,
  .builder-controls,
  .library-tools,
  .prompt-grid,
  .pagination,
  .use-case-grid,
  .features,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .page-numbers {
    justify-content: flex-start;
  }

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

  .answer-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-label-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-hints {
    justify-content: flex-start;
  }

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

  .ratio-group {
    grid-template-columns: 1fr;
  }

  .activation-field,
  .generate {
    grid-column: 1 / -1;
  }

  .social-ratios button {
    min-width: 116px;
    min-height: 42px;
    flex-basis: 116px;
  }

  .preview-stage {
    min-height: 340px;
  }

  .preview-meta {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

footer {
    flex-direction: column;
  }
}

/* hongshu.me production studio */
.hero {
  padding-top: 18px;
}

.hero-copy.is-compact {
  display: flex;
  width: min(1240px, 100%);
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto 10px;
  padding: 0 4px;
  text-align: left;
}

.hero-copy.is-compact .eyebrow,
.hero-copy.is-compact > p,
.hero-copy.is-compact .badges {
  display: none;
}

.hero-copy.is-compact h1 {
  margin: 0;
  color: rgba(21, 20, 18, 0.74);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  font-weight: 900;
  text-wrap: auto;
}

.hero-copy.is-compact::after {
  content: "GPT Image 2 · prompt to image";
  flex: 0 0 auto;
  padding: 6px 10px;
  color: rgba(21, 20, 18, 0.58);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(21, 20, 18, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

html[lang="zh-CN"] .hero-copy.is-compact::after {
  content: "GPT Image 2 · 提示词生图";
}

.studio {
  position: relative;
  gap: 14px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 77, 48, 0.16), transparent 36%),
    linear-gradient(160deg, #171411, #262016 62%, #10100f);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(21, 20, 18, 0.28);
}

.creator,
.result {
  border-radius: 22px;
}

.creator {
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(249, 242, 229, 0.96)),
    #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.creator-head {
  order: 1;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.creator-head h2 {
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0;
}

.creator-head p {
  max-width: 520px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.creator-head button {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: #151412;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(21, 20, 18, 0.18);
}

.creation-modes {
  order: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.creation-modes button {
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.creation-modes button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 77, 48, 0.34);
}

.creation-modes button.active {
  color: #fff;
  background: linear-gradient(135deg, #151412, #41301e);
  border-color: rgba(255, 255, 255, 0.12);
}

.creation-modes span,
.creation-modes strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creation-modes span {
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.creation-modes button.active span {
  color: #ffd0c6;
}

.creation-modes strong {
  font-size: 14px;
}

.prompt-field {
  order: 3;
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.prompt-label-row {
  padding: 13px 14px 0;
}

.prompt-label-row label {
  font-size: 15px;
}

.prompt-hints {
  gap: 6px;
}

.prompt-hints span {
  color: #5f574d;
  background: #f6efe3;
  border-color: rgba(21, 20, 18, 0.08);
}

.prompt-field textarea {
  min-height: 168px;
  color: #151412;
  background: transparent;
  font-size: 16px;
  line-height: 1.7;
}

.prompt-field textarea:focus {
  outline: 0;
}

.inspiration-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.inspiration-strip button {
  min-width: 0;
  min-height: 52px;
  flex-basis: auto;
  border-radius: 13px;
}

.generator-toolbar {
  order: 4;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.generator-toolbar > label,
.size-control {
  padding: 10px;
  background: #fffaf2;
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 15px;
}

.size-control {
  grid-column: 1 / -1;
}

.control-label {
  display: block;
  margin-bottom: 7px;
  color: #756d61;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.social-ratios {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.social-ratios button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 82px;
  flex: none;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 3px 8px;
  align-items: center;
  justify-content: stretch;
  padding: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 14px;
}

.social-ratios button i {
  display: block;
  grid-row: 1 / 4;
  justify-self: center;
  width: 22px;
  height: 30px;
  background: #f2eadc;
  border: 2px solid #151412;
  border-radius: 7px;
}

.social-ratios button[data-ratio="1:1"] i {
  width: 25px;
  height: 25px;
}

.social-ratios button[data-ratio="16:9"] i {
  width: 30px;
  height: 18px;
  border-radius: 6px;
}

.social-ratios button[data-ratio="9:16"] i {
  width: 18px;
  height: 32px;
}

.social-ratios strong,
.social-ratios em,
.social-ratios span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-ratios strong {
  max-width: none;
  color: #151412;
  font-size: 13px;
}

.social-ratios em {
  display: block;
  color: #756d61;
  font-size: 11px;
}

.social-ratios span {
  justify-self: start;
  margin: 0;
  padding: 2px 7px;
  color: #151412;
  background: #f5eee2;
  font-size: 11px;
  border-radius: 999px;
}

.social-ratios button.active {
  background: #151412;
  border-color: #151412;
  box-shadow: 0 12px 26px rgba(21, 20, 18, 0.18);
}

.social-ratios button.active i {
  background: #ff6a4f;
  border-color: #fff;
}

.social-ratios button.active strong,
.social-ratios button.active em {
  color: #fff;
}

.social-ratios button.active span {
  color: #151412;
  background: #fff;
}

.negative-panel {
  order: 5;
  grid-column: 1 / -1;
  background: #fffaf2;
  border-color: rgba(21, 20, 18, 0.1);
  border-radius: 14px;
}

.mode-panel {
  order: 6;
  gap: 8px;
}

.mode-panel button {
  min-height: 66px;
  background: #fff;
  border-radius: 15px;
}

.mode-panel button.active {
  background: linear-gradient(135deg, #ff4d30, #ff7659);
}

.activation-field {
  order: 7;
}

.generate {
  order: 7;
  min-height: 52px;
  margin-top: 25px;
  color: #fff;
  background: linear-gradient(135deg, #151412, #3c2b1b);
  border-radius: 15px;
  box-shadow: 0 15px 34px rgba(21, 20, 18, 0.22);
}

.result {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    #11100e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.preview-title-block {
  align-items: flex-start;
}

.preview-title-block h2 {
  color: #fff;
  font-size: 22px;
}

.status {
  color: rgba(255, 255, 255, 0.72);
}

.preview-actions {
  gap: 6px;
}

.result-head button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.result-head button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.preview-stage {
  padding: 14px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    #27221b;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.preview-stage.is-fit .image-viewer {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  background: #f8f2e8;
  border-color: rgba(255, 255, 255, 0.18);
}

.preview-stage.is-fit .image-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f2e8;
}

.image-viewer.is-zoomed {
  background: #f8f2e8;
}

.preview-meta {
  color: rgba(255, 255, 255, 0.7);
}

.preview-meta span,
.preview-meta strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

@media (min-width: 981px) {
  .hero {
    padding-top: 18px;
  }

  .hero-copy.is-compact {
    max-width: none;
    margin-bottom: 10px;
  }

  .studio {
    width: min(1240px, 100%);
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.9fr);
    align-items: stretch;
  }

  .creator {
    min-height: calc(100vh - 156px);
  }

  .result {
    top: 76px;
    min-height: calc(100vh - 102px);
    max-height: calc(100vh - 102px);
  }

  .preview-stage {
    height: clamp(460px, calc(100vh - 268px), 720px);
  }
}

@media (max-width: 980px) {
  .creation-modes,
  .social-ratios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generator-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result {
    min-height: 560px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 18px;
  }

  .hero-copy.is-compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }

  .hero-copy.is-compact h1 {
    font-size: 18px;
  }

  .hero-copy.is-compact::after {
    padding: 4px 8px;
    font-size: 11px;
  }

  .studio {
    width: min(100%, calc(100vw - 20px));
    padding: 8px;
    border-radius: 22px;
  }

  .creator,
  .result {
    padding: 12px;
    border-radius: 18px;
  }

  .creator-head {
    gap: 10px;
  }

  .creation-modes,
  .generator-toolbar,
  .social-ratios,
  .mode-panel {
    grid-template-columns: 1fr;
  }

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

  .social-ratios button {
    min-height: 68px;
  }

  .activation-field,
  .generate {
    grid-column: 1 / -1;
  }

  .generate {
    margin-top: 0;
  }

  .result-head {
    gap: 8px;
  }

  .preview-stage {
    min-height: 390px;
  }
}

/* 2026 ultra-premium dark UI refresh */
:root {
  --bg: #07080f;
  --panel: rgba(15, 18, 31, 0.78);
  --panel-2: rgba(24, 28, 48, 0.72);
  --text: #f6f8ff;
  --muted: #9aa6c2;
  --line: rgba(193, 210, 255, 0.16);
  --brand: #8b5cf6;
  --brand-2: #22d3ee;
  --dark: #05060b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

html {
  background: #07080f;
}

body {
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(139, 92, 246, 0.18), transparent 34rem),
    linear-gradient(240deg, rgba(34, 211, 238, 0.16), transparent 38rem),
    linear-gradient(180deg, #07080f 0%, #0d1020 54%, #08090f 100%);
}

body::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(193, 210, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 210, 255, 0.032) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 86%);
}

.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 13px clamp(16px, 4vw, 42px);
  background: rgba(7, 8, 15, 0.76);
  border-bottom: 1px solid rgba(193, 210, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.logo span {
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  border-radius: 14px;
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.48);
}

.logo strong {
  font-size: 17px;
  background: linear-gradient(90deg, #fff, #a5f3fc 42%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar nav {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(193, 210, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.topbar nav a {
  color: rgba(246, 248, 255, 0.72);
}

.topbar nav a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
}

.top-action {
  background: linear-gradient(135deg, #8b5cf6, #2563eb 54%, #06b6d4);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.36);
}

.side-rail {
  position: fixed;
  top: 74px;
  left: 14px;
  z-index: 9;
  display: grid;
  gap: 8px;
  width: 58px;
  padding: 10px 7px;
  background: rgba(8, 10, 20, 0.72);
  border: 1px solid rgba(193, 210, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.side-rail a {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: rgba(246, 248, 255, 0.66);
  border-radius: 14px;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.side-rail a:hover,
.side-rail a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(34, 211, 238, 0.72));
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.35);
}

.side-rail span {
  font-size: 13px;
  font-weight: 950;
}

.side-rail em {
  position: absolute;
  left: 52px;
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(7, 8, 15, 0.94);
  border: 1px solid rgba(193, 210, 255, 0.14);
  border-radius: 10px;
  font-size: 12px;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.side-rail a:hover em {
  opacity: 1;
  transform: translateX(0);
}

.hero {
  position: relative;
  width: min(1360px, calc(100% - 28px));
  padding: 34px 0 36px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 420px;
  background:
    linear-gradient(180deg, rgba(7, 8, 15, 0.34), #07080f 86%),
    linear-gradient(90deg, rgba(7, 8, 15, 0.88), rgba(7, 8, 15, 0.32) 52%, rgba(7, 8, 15, 0.9)),
    url("https://images.unsplash.com/photo-1618005198919-d3d4b5a92ead?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  border-radius: 34px;
  opacity: 0.82;
}

.hero-copy.is-compact {
  display: block;
  width: min(980px, 100%);
  margin: 0 auto 22px;
  padding: 18px 0 0;
  text-align: center;
}

.hero-copy.is-compact .eyebrow,
.hero-copy.is-compact > p,
.hero-copy.is-compact .badges {
  display: flex;
}

.hero-copy.is-compact .eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(193, 210, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-copy.is-compact h1 {
  max-width: 920px;
  margin: 0 auto 12px;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.hero-copy.is-compact > p {
  max-width: 760px;
  margin: 0 auto 18px;
  justify-content: center;
  color: rgba(236, 244, 255, 0.78);
  font-size: clamp(16px, 1.55vw, 20px);
}

.hero-copy.is-compact .badges {
  gap: 8px;
}

.hero-copy.is-compact .badges span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(193, 210, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-copy.is-compact::after {
  display: none;
}

.studio {
  width: min(1240px, 100%);
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.08) 42%, rgba(255, 255, 255, 0.04)),
    rgba(8, 10, 20, 0.86);
  border-color: rgba(193, 210, 255, 0.16);
  border-radius: 30px;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.creator,
.result,
.answer-panel,
.builder-shell,
.atlas-shell,
.library-toolbar,
.prompt-card,
.feature-card,
.faq-grid details,
.use-case-grid article,
.static-hero,
.prompt-hero,
.prompt-text-block,
.related-links {
  color: var(--text);
  background: rgba(13, 16, 31, 0.78);
  border-color: rgba(193, 210, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.creator {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(10, 13, 27, 0.82);
}

.creator-head h2,
.result h2,
.section-title h2,
.answer-panel h2,
.use-case-grid h3,
.features h3,
.prompt-card h3,
.faq-grid summary,
.builder-shell h3 {
  color: #fff;
}

.creator-head p,
.section-title p,
.answer-panel p,
.use-case-grid p,
.features p,
.prompt-card p,
.builder-actions span {
  color: rgba(226, 232, 255, 0.7);
}

.creator-head button,
.creation-modes button,
.generator-toolbar > label,
.size-control,
.negative-panel,
.mode-panel button,
.activation-field,
.prompt-field {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(193, 210, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.creator-head button {
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.creation-modes button {
  color: rgba(246, 248, 255, 0.74);
}

.creation-modes button.active,
.social-ratios button.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.94), rgba(37, 99, 235, 0.88) 54%, rgba(6, 182, 212, 0.78));
  border-color: rgba(196, 181, 253, 0.42);
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.32);
}

.creation-modes span {
  color: #67e8f9;
}

.prompt-label-row label,
.control-label,
.prompt-meta,
.prompt-meta button {
  color: rgba(226, 232, 255, 0.68);
}

.prompt-hints span {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.22);
}

.prompt-field textarea,
.negative-panel input,
.activation-field input,
.builder-controls input,
.builder-controls textarea,
.builder-controls select,
.generator-toolbar select,
.library-toolbar input,
.library-toolbar select {
  color: #fff;
  background: rgba(3, 5, 12, 0.45);
  border-color: rgba(193, 210, 255, 0.13);
}

.prompt-field textarea::placeholder,
.negative-panel input::placeholder,
.activation-field input::placeholder {
  color: rgba(226, 232, 255, 0.42);
}

.prompt-field {
  border-radius: 22px;
}

.prompt-field textarea {
  min-height: 206px;
  font-size: 17px;
}

.inspiration-strip button {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(193, 210, 255, 0.13);
}

.social-ratios button {
  color: rgba(246, 248, 255, 0.74);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(193, 210, 255, 0.13);
}

.social-ratios button i {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(226, 232, 255, 0.68);
}

.social-ratios strong {
  color: #fff;
}

.social-ratios em {
  color: rgba(226, 232, 255, 0.58);
}

.social-ratios span {
  color: #cffafe;
  background: rgba(34, 211, 238, 0.13);
}

.mode-panel button {
  position: relative;
  overflow: hidden;
  color: rgba(246, 248, 255, 0.72);
}

.mode-panel button::after {
  content: "";
  display: block;
  width: 62%;
  height: 4px;
  margin-top: 9px;
  background: rgba(193, 210, 255, 0.16);
  border-radius: 999px;
}

.mode-panel button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(6, 182, 212, 0.75));
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.34);
}

.mode-panel button.active::after {
  width: 88%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

.generate {
  background: linear-gradient(135deg, #9f6bff, #2563eb 52%, #06b6d4);
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.42), 0 18px 44px rgba(0, 0, 0, 0.32);
}

.generate:hover {
  filter: brightness(1.08);
}

.result {
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent 34%),
    rgba(8, 10, 20, 0.86);
}

.preview-stage {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.045) 75%),
    linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.07)),
    #0b0f1d;
  border-color: rgba(193, 210, 255, 0.12);
}

.preview-stage.is-fit .image-viewer,
.preview-stage.is-fit .image-viewer img,
.image-viewer.is-zoomed {
  background: #080a14;
}

.image-viewer {
  border-color: rgba(193, 210, 255, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.result-head button,
.preview-meta span,
.preview-meta strong {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(193, 210, 255, 0.13);
}

.answer-copy .eyebrow,
.answer-tags span:nth-child(3n + 1),
.atlas-categories button.active,
.categories button.active,
.page-numbers button.active {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-color: rgba(193, 210, 255, 0.22);
}

.answer-tags span,
.atlas-categories button,
.categories button,
.pagination button,
.page-numbers button,
.builder-actions button,
.library-tools button {
  color: #e5edff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(193, 210, 255, 0.13);
}

.answer-tags span:nth-child(3n + 2) {
  color: #cffafe;
  background: rgba(34, 211, 238, 0.12);
}

.use-case-grid span {
  color: #67e8f9;
}

.prompt-card,
.atlas-card,
.static-prompt-link {
  background: rgba(13, 16, 31, 0.74);
  border-color: rgba(193, 210, 255, 0.13);
}

.prompt-card img,
.atlas-card img,
.static-prompt-link img {
  background: #090c17;
}

footer {
  color: rgba(226, 232, 255, 0.62);
  border-top-color: rgba(193, 210, 255, 0.12);
}

@media (min-width: 1180px) {
  main {
    padding-left: 58px;
  }
}

@media (min-width: 981px) {
  .hero {
    padding-top: 34px;
  }

  .studio {
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.9fr);
  }

  .creator {
    min-height: calc(100vh - 136px);
  }

  .result {
    top: 78px;
  }
}

@media (max-width: 980px) {
  .side-rail {
    display: none;
  }

  .hero {
    width: min(100% - 20px, 1360px);
    padding-top: 22px;
  }

  .hero-copy.is-compact h1 {
    font-size: clamp(34px, 8vw, 56px);
  }
}

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .hero-copy.is-compact {
    align-items: center;
    text-align: center;
  }

  .hero-copy.is-compact h1 {
    font-size: 34px;
  }

  .hero-copy.is-compact > p {
    font-size: 15px;
  }

  .hero-copy.is-compact .badges {
    justify-content: center;
  }

  .prompt-field textarea {
    min-height: 170px;
  }
}

/* OpenNana-style clean product UI pass */
:root {
  --bg: #0a0e1a;
  --panel: #111827;
  --panel-2: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --brand: #22d3ee;
  --brand-2: #38bdf8;
  --dark: #020617;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

body {
  background: #0a0e1a;
}

body::before {
  display: none;
}

.topbar {
  min-height: 58px;
  margin-left: 168px;
  padding: 10px 24px;
  background: rgba(10, 14, 26, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.topbar .logo {
  display: none;
}

.topbar nav {
  justify-self: start;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.topbar nav a {
  padding: 8px 12px;
  color: #94a3b8;
  border-radius: 10px;
}

.topbar nav a:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.top-action {
  min-height: 38px;
  color: #06111c;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  box-shadow: none;
  border-radius: 10px;
}

.side-rail {
  top: 0;
  bottom: 0;
  left: 0;
  width: 168px;
  padding: 16px 12px;
  gap: 3px;
  background: rgba(15, 23, 42, 0.86);
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.side-rail::before {
  content: "hongshu.me";
  display: flex;
  height: 42px;
  align-items: center;
  margin: 0 2px 12px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.side-rail a {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  color: #94a3b8;
  border-radius: 12px;
}

.side-rail a:hover,
.side-rail a.active {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
  box-shadow: none;
  transform: none;
}

.side-rail span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  font-size: 11px;
}

.side-rail em {
  position: static;
  width: auto;
  max-width: none;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  opacity: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: none;
}

.side-rail a:hover em {
  transform: none;
}

main {
  padding-left: 168px;
}

.hero {
  width: min(1260px, calc(100% - 32px));
  padding: 20px 0 30px;
}

.hero::before {
  display: none;
}

.hero-copy.is-compact {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
}

.hero-copy.is-compact .eyebrow,
.hero-copy.is-compact > p,
.hero-copy.is-compact .badges {
  display: flex;
}

.hero-copy.is-compact .eyebrow {
  min-height: 0;
  margin-bottom: 7px;
  padding: 0;
  color: #22d3ee;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

.hero-copy.is-compact h1 {
  max-width: 760px;
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
  text-shadow: none;
}

.hero-copy.is-compact > p {
  justify-content: flex-start;
  max-width: 760px;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 15px;
}

.hero-copy.is-compact .badges {
  justify-content: flex-start;
  gap: 8px;
}

.hero-copy.is-compact .badges span {
  padding: 7px 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: none;
  font-size: 12px;
}

.studio {
  width: 100%;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.creator,
.result,
.answer-panel,
.builder-shell,
.atlas-shell,
.library-toolbar,
.feature-card,
.faq-grid details,
.use-case-grid article {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  box-shadow: none;
  backdrop-filter: none;
}

.creator {
  gap: 12px;
  padding: 16px;
}

.creator-head {
  min-height: 0;
}

.creator-head h2 {
  font-size: 21px;
}

.creator-head p {
  color: #94a3b8;
}

.creator-head button {
  min-height: 36px;
  color: #06111c;
  background: #22d3ee;
  border: 0;
  border-radius: 10px;
}

.creation-modes {
  gap: 8px;
}

.creation-modes button,
.generator-toolbar > label,
.size-control,
.negative-panel,
.activation-field,
.mode-panel button,
.prompt-field,
.inspiration-strip button,
.social-ratios button {
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  box-shadow: none;
}

.creation-modes button {
  min-height: 54px;
}

.creation-modes button.active,
.social-ratios button.active,
.mode-panel button.active {
  color: #e0f2fe;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: none;
}

.creation-modes span,
.creation-modes button.active span {
  color: #22d3ee;
}

.prompt-field {
  overflow: hidden;
  border-radius: 14px;
}

.prompt-label-row {
  padding: 12px 14px 0;
}

.prompt-field textarea {
  min-height: 190px;
  color: #f8fafc;
  background: transparent;
  font-size: 16px;
}

.prompt-hints span {
  color: #bae6fd;
  background: rgba(34, 211, 238, 0.1);
  border: 0;
}

.prompt-meta {
  border-top-color: rgba(148, 163, 184, 0.14);
}

.generator-toolbar {
  gap: 8px;
}

.social-ratios {
  gap: 8px;
}

.social-ratios button {
  min-height: 76px;
}

.social-ratios button i {
  background: rgba(34, 211, 238, 0.08);
  border-color: #94a3b8;
}

.social-ratios strong {
  color: #f8fafc;
}

.social-ratios em {
  color: #94a3b8;
}

.social-ratios span {
  color: #bae6fd;
  background: rgba(34, 211, 238, 0.1);
}

.mode-panel button::after {
  display: none;
}

.generate {
  min-height: 48px;
  color: #06111c;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  border-radius: 12px;
  box-shadow: none;
}

.result {
  padding: 16px;
}

.preview-title-block h2 {
  font-size: 20px;
}

.preview-actions {
  gap: 6px;
}

.result-head button,
.preview-meta span,
.preview-meta strong {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
}

.preview-stage {
  padding: 12px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
}

.image-viewer {
  border-radius: 12px;
  box-shadow: none;
}

.seo-overview,
.prompt-studio,
.scale-atlas,
.library,
.features,
.faq {
  width: min(1260px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.answer-panel {
  gap: 18px;
  padding: 18px;
}

.answer-copy .eyebrow {
  color: #06111c;
  background: #22d3ee;
}

.answer-tags span,
.answer-tags span:nth-child(3n + 1),
.answer-tags span:nth-child(3n + 2),
.categories button,
.atlas-categories button,
.pagination button,
.page-numbers button {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

.categories button.active,
.atlas-categories button.active,
.page-numbers button.active {
  color: #06111c;
  background: #22d3ee;
  border-color: #22d3ee;
}

.prompt-card,
.atlas-card,
.static-prompt-link {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  box-shadow: none;
}

.prompt-card:hover,
.atlas-card:hover,
.static-prompt-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.section-title {
  text-align: left;
}

.section-title h2 {
  color: #f8fafc;
  font-size: clamp(25px, 3vw, 38px);
}

.section-title p {
  color: #94a3b8;
}

@media (min-width: 981px) {
  .studio {
    grid-template-columns: minmax(0, 0.96fr) minmax(400px, 0.84fr);
  }

  .creator {
    min-height: 0;
  }

  .result {
    top: 76px;
    min-height: calc(100vh - 98px);
    max-height: calc(100vh - 98px);
  }

  .preview-stage {
    height: clamp(420px, calc(100vh - 270px), 650px);
  }
}

@media (max-width: 980px) {
  .topbar,
  main {
    margin-left: 0;
    padding-left: 0;
  }

  .topbar {
    padding: 10px 16px;
  }

  .topbar .logo {
    display: flex;
  }

  .side-rail {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero {
    width: min(100% - 20px, 1260px);
  }

  .hero-copy.is-compact {
    text-align: left;
  }

  .hero-copy.is-compact h1 {
    font-size: 30px;
  }

  .hero-copy.is-compact .badges {
    justify-content: flex-start;
  }
}

/* GPTImg-inspired clean light generator UI */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --dark: #0f172a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
}

html {
  background: #fff;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #f8fbff 46%, #fff 100%);
}

body::before,
.side-rail {
  display: none;
}

main {
  padding-left: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  min-height: 66px;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  margin-left: 0;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.topbar .logo {
  display: flex;
}

.logo span {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.logo strong {
  color: #0f172a;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: 17px;
}

.topbar nav {
  justify-self: center;
  display: flex;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.topbar nav a {
  padding: 8px 11px;
  color: #475569;
  border-radius: 999px;
  font-size: 14px;
}

.topbar nav a:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.top-action {
  min-height: 40px;
  color: #fff;
  background: #0f172a;
  border-radius: 999px;
  box-shadow: none;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  padding: clamp(34px, 5vw, 64px) 0 40px;
}

.hero::before {
  display: none;
}

.hero-copy.is-compact {
  display: block;
  width: min(920px, 100%);
  max-width: 920px;
  margin: 0 auto 22px;
  padding: 0;
  text-align: center;
}

.hero-copy.is-compact .eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 13px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  font-size: 13px;
}

.hero-copy.is-compact h1 {
  max-width: 860px;
  margin: 0 auto 14px;
  color: #0f172a;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  text-align: center;
  text-shadow: none;
}

.hero-copy.is-compact > p {
  display: block;
  max-width: 760px;
  margin: 0 auto 16px;
  color: #64748b;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.72;
}

.hero-copy.is-compact .badges {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-copy.is-compact .badges span {
  padding: 8px 12px;
  color: #475569;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  font-size: 13px;
}

.studio {
  display: grid;
  width: min(1080px, 100%);
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.creator {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.11);
}

.creator-head {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  border: 0;
}

.creator-head h2 {
  color: #0f172a;
  font-size: 22px;
}

.creator-head p {
  color: #64748b;
}

.creator-head button {
  min-height: 38px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  box-shadow: none;
}

.creation-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creation-modes button {
  min-width: 0;
  min-height: 40px;
  padding: 0 13px;
  color: #475569;
  text-align: center;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  box-shadow: none;
}

.creation-modes span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: 13px;
  text-transform: none;
}

.creation-modes strong {
  display: none;
}

.creation-modes button.active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

.prompt-field {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.prompt-label-row {
  padding: 14px 16px 0;
}

.prompt-label-row label {
  color: #0f172a;
  font-size: 15px;
}

.prompt-hints span {
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.prompt-field textarea {
  min-height: 176px;
  color: #0f172a;
  background: transparent;
  font-size: 16px;
  line-height: 1.72;
}

.prompt-field textarea::placeholder {
  color: #94a3b8;
}

.prompt-meta {
  color: #64748b;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.prompt-meta button {
  color: #2563eb;
}

.inspiration-strip {
  display: none;
}

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

.generator-toolbar > label,
.size-control,
.negative-panel,
.activation-field,
.mode-panel button {
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: none;
}

.size-control {
  grid-column: 1 / -1;
}

.control-label {
  color: #64748b;
}

.generator-toolbar select,
.negative-panel input,
.activation-field input {
  color: #0f172a;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

.social-ratios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-ratios button {
  display: inline-grid;
  min-width: 148px;
  min-height: 58px;
  flex: 1 1 148px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  box-shadow: none;
}

.social-ratios button i {
  background: #eff6ff;
  border-color: #2563eb;
}

.social-ratios strong {
  color: #0f172a;
}

.social-ratios em {
  color: #64748b;
}

.social-ratios span {
  color: #2563eb;
  background: #eff6ff;
}

.social-ratios button.active {
  color: #fff;
  background: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.social-ratios button.active i {
  background: #fff;
  border-color: #fff;
}

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

.mode-panel button {
  min-height: 62px;
  color: #475569;
}

.mode-panel button::after {
  display: none;
}

.mode-panel button strong {
  color: #0f172a;
}

.mode-panel button.active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.mode-panel button.active strong,
.mode-panel button.active em,
.mode-panel button.active span {
  color: #fff;
}

.activation-field {
  grid-column: 1 / 8;
}

.generate {
  grid-column: 8 / -1;
  min-height: 50px;
  margin-top: 27px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.25);
}

.result {
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.09);
}

.result-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.preview-title-block h2 {
  color: #0f172a;
}

.status {
  color: #64748b;
}

.preview-actions {
  justify-content: flex-end;
}

.result-head button,
.preview-meta span,
.preview-meta strong {
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
}

.preview-stage {
  min-height: 420px;
  background:
    linear-gradient(45deg, rgba(15, 23, 42, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 23, 42, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.035) 75%),
    #f8fafc;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
}

.preview-stage.is-fit .image-viewer,
.preview-stage.is-fit .image-viewer img,
.image-viewer.is-zoomed,
.image-viewer {
  background: #fff;
}

.image-viewer {
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.seo-overview,
.prompt-studio,
.scale-atlas,
.library,
.features,
.faq {
  width: min(1180px, calc(100% - 32px));
}

.answer-panel,
.builder-shell,
.atlas-shell,
.library-toolbar,
.feature-card,
.faq-grid details,
.use-case-grid article,
.prompt-card,
.atlas-card,
.static-prompt-link {
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.answer-copy .eyebrow,
.categories button.active,
.atlas-categories button.active,
.page-numbers button.active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.answer-panel h2,
.section-title h2,
.use-case-grid h3,
.features h3,
.prompt-card h3,
.faq-grid summary {
  color: #0f172a;
}

.answer-panel p,
.section-title p,
.use-case-grid p,
.features p,
.prompt-card p {
  color: #64748b;
}

.answer-tags span,
.answer-tags span:nth-child(3n + 1),
.answer-tags span:nth-child(3n + 2),
.categories button,
.atlas-categories button,
.pagination button,
.page-numbers button {
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: none;
}

.prompt-card:hover,
.atlas-card:hover,
.static-prompt-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

footer {
  color: #64748b;
  border-top-color: rgba(15, 23, 42, 0.08);
}

@media (min-width: 981px) {
  .studio {
    grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.62fr);
    align-items: start;
  }

  .creator {
    min-height: 0;
  }

  .result {
    position: sticky;
    top: 86px;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .preview-stage {
    height: clamp(360px, 34vw, 540px);
  }
}

@media (max-width: 980px) {
  .topbar,
  main {
    margin-left: 0;
    padding-left: 0;
  }

  .topbar nav {
    display: none;
  }

  .generator-toolbar,
  .mode-panel {
    grid-template-columns: 1fr;
  }

  .activation-field,
  .generate {
    grid-column: 1 / -1;
  }

  .generate {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 34px;
  }

  .hero-copy.is-compact {
    text-align: center;
  }

  .hero-copy.is-compact h1 {
    font-size: 36px;
    text-align: center;
  }

  .hero-copy.is-compact .badges {
    justify-content: center;
  }

  .creator,
  .result {
    border-radius: 20px;
  }

  .social-ratios button {
    flex-basis: 100%;
  }
}

/* Generator UX cleanup: clear hierarchy, no crowded controls */
.hero {
  padding-top: 38px;
}

.hero-copy.is-compact {
  margin-bottom: 18px;
}

.hero-copy.is-compact h1 {
  font-size: clamp(34px, 4.4vw, 58px);
}

.studio {
  width: min(1160px, 100%);
  gap: 18px;
}

.creator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-content: start;
  padding: 20px;
}

.creator-head,
.creation-modes,
.prompt-field,
.essentials-toolbar,
.advanced-panel,
.mode-panel {
  grid-column: 1 / -1;
}

.creator-head {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.creation-modes {
  padding: 6px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
}

.creation-modes button {
  flex: 1 1 132px;
  min-height: 38px;
}

.prompt-field textarea {
  min-height: 210px;
  padding: 16px;
}

.essentials-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 12px;
}

.essentials-toolbar .size-control {
  grid-column: auto;
  min-width: 0;
}

.essentials-toolbar > label {
  min-width: 0;
}

.social-ratios {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.social-ratios button {
  min-width: 148px;
  flex: 0 0 148px;
}

.advanced-panel {
  padding: 0;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
}

.advanced-panel summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #475569;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

.advanced-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-panel summary::after {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
}

.advanced-panel[open] summary::after {
  content: "-";
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.advanced-grid label,
.advanced-grid .negative-panel {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
}

.advanced-grid .negative-panel {
  grid-column: 1 / -1;
}

.advanced-grid select,
.advanced-grid input {
  width: 100%;
}

.mode-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mode-panel button {
  min-width: 0;
  min-height: 66px;
}

.activation-field {
  grid-column: 1 / 2;
  margin: 0;
}

.generate {
  grid-column: 2 / 3;
  align-self: end;
  margin: 0;
}

.result {
  align-self: start;
  padding: 16px;
}

.result-head {
  grid-template-columns: 1fr;
  gap: 10px;
}

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

@media (min-width: 981px) {
  .studio {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
    align-items: start;
  }

  .result {
    position: sticky;
    top: 86px;
  }

  .preview-stage {
    height: clamp(390px, calc(100vh - 260px), 560px);
  }
}

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

  .essentials-toolbar,
  .advanced-grid,
  .mode-panel {
    grid-template-columns: 1fr;
  }

  .activation-field,
  .generate {
    grid-column: 1 / -1;
  }

  .social-ratios button {
    flex-basis: 150px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 28px;
  }

  .hero-copy.is-compact h1 {
    font-size: 32px;
  }

  .creator {
    padding: 14px;
  }

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

  .creation-modes {
    border-radius: 18px;
  }

  .creation-modes button {
    flex-basis: calc(50% - 4px);
  }

  .prompt-hints {
    display: none;
  }

  .prompt-field textarea {
    min-height: 180px;
  }

  .preview-stage {
    min-height: 340px;
  }
}

/* Raphael-style homepage simplification */
.prompt-studio,
.seo-overview,
.scale-atlas,
.features,
.faq-section {
  display: none;
}

.hero {
  padding-bottom: 22px;
}

.hero-copy.is-compact {
  margin-bottom: 16px;
}

.studio {
  margin-bottom: 22px;
}

.library {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 34px;
}

.library .section-title {
  max-width: 720px;
  margin: 0 0 16px;
  text-align: left;
}

.library .section-title .eyebrow {
  color: #2563eb;
}

.library .section-title h2 {
  margin-bottom: 6px;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.library .section-title p {
  max-width: 620px;
  color: #64748b;
  font-size: 16px;
}

.library-shell {
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(260px, 420px) auto;
  gap: 12px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.library-tools input {
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.library-tools span {
  color: #64748b;
  font-size: 14px;
}

.style-tabs {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 36px 0 4px;
  scrollbar-width: thin;
}

.style-tabs::before {
  content: "Try a style";
  position: absolute;
  top: 0;
  left: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

html[lang="zh-CN"] .style-tabs::before {
  content: "尝试一种风格";
}

.style-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  color: #475569;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  white-space: nowrap;
}

.style-tabs button.active {
  color: #fff;
  background: #0f172a;
  border-color: #0f172a;
}

.prompt-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 36px;
}

.prompt-grid::before {
  content: "Discover new ideas";
  position: absolute;
  top: 0;
  left: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

html[lang="zh-CN"] .prompt-grid::before {
  content: "发现新内容";
}

.prompt-card {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.prompt-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f8fafc;
}

.prompt-card span {
  display: block;
  padding: 10px 12px 0;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
}

.prompt-card strong {
  display: block;
  padding: 6px 12px 14px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.prompt-card p {
  display: none;
}

.pagination {
  display: none;
}

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

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

@media (max-width: 680px) {
  .library {
    width: min(100% - 20px, 1160px);
    padding-bottom: 24px;
  }

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

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

/* Open Design web-prototype pass: editorial utility system */
:root {
  --bg: #f6f3ed;
  --surface: #fffdf8;
  --panel: var(--surface);
  --panel-2: #ece7de;
  --fg: #191816;
  --text: var(--fg);
  --muted: #716d64;
  --border: rgba(25, 24, 22, 0.13);
  --line: var(--border);
  --accent: #bb5b3f;
  --brand: var(--accent);
  --brand-2: #1e6f68;
  --dark: var(--fg);
  --shadow: 0 28px 90px rgba(25, 24, 22, 0.12);
  --font-display: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html {
  background: var(--bg);
}

body {
  color: var(--fg);
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--surface) 72%, var(--bg)) 0%, var(--bg) 44%, color-mix(in oklch, var(--bg) 92%, var(--fg)) 100%);
  font-family: var(--font-body);
}

body::before {
  display: block;
  background:
    linear-gradient(color-mix(in oklch, var(--fg) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--fg) 4%, transparent) 1px, transparent 1px);
  background-size: 100% 34px, 34px 100%;
  opacity: 0.42;
}

h1,
h2,
.hero-copy.is-compact h1,
.creator-head h2,
.result h2,
.section-title h2,
.answer-panel h2,
.features strong,
.faq-grid h3,
.prompt-card strong {
  color: var(--fg);
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.topbar {
  grid-template-columns: auto 1fr auto;
  min-height: 68px;
  padding: 13px clamp(20px, 5vw, 70px);
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.logo span {
  color: var(--surface);
  background: var(--fg);
  border-radius: 10px;
  box-shadow: none;
}

.logo strong {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.topbar nav {
  gap: clamp(10px, 2vw, 28px);
}

.topbar nav a {
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
}

.topbar nav a:hover {
  color: var(--fg);
  background: color-mix(in oklch, var(--fg) 6%, transparent);
}

.top-action,
.generate {
  color: var(--surface);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: none;
}

.top-action:hover,
.generate:hover {
  background: color-mix(in oklch, var(--accent) 86%, black);
}

.hero {
  display: grid;
  width: min(1240px, calc(100% - 36px));
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  padding: clamp(42px, 6vw, 86px) 0 34px;
}

.hero-copy.is-compact {
  position: sticky;
  top: 94px;
  max-width: 420px;
  margin: 0;
  padding-top: 8px;
  text-align: left;
}

.hero-copy.is-compact .eyebrow,
.library .section-title .eyebrow,
.answer-copy .eyebrow,
.section-title .eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy.is-compact h1 {
  max-width: 10ch;
  margin: 0 0 18px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  text-align: left;
}

.hero-copy.is-compact > p {
  max-width: 36ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
}

.hero-copy.is-compact .badges {
  justify-content: flex-start;
  gap: 8px;
}

.hero-copy.is-compact .badges span,
.answer-tags span,
.categories button,
.atlas-categories button,
.pagination button,
.page-numbers button {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: none;
}

.studio {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 14px;
  margin: 0;
}

.creator,
.result,
.answer-panel,
.builder-shell,
.atlas-shell,
.library-shell,
.feature-card,
.faq-grid article,
.use-case-grid article,
.prompt-card,
.atlas-card,
.static-prompt-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.creator {
  padding: clamp(16px, 2vw, 22px);
}

.creator-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.creator-head h2 {
  font-size: 28px;
  line-height: 1.08;
}

.creator-head p,
.section-title p,
.answer-panel p,
.use-case-grid p,
.features p,
.prompt-card p,
.faq-grid p,
.builder-actions span {
  color: var(--muted);
}

.creator-head button,
.creation-modes button,
.generator-toolbar > label,
.size-control,
.negative-panel,
.activation-field,
.mode-panel button,
.prompt-field,
.inspiration-strip button,
.social-ratios button,
.advanced-panel,
.advanced-grid label,
.advanced-grid .negative-panel {
  color: var(--fg);
  background: color-mix(in oklch, var(--surface) 74%, var(--bg));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
}

.creator-head button {
  color: var(--fg);
  background: transparent;
}

.creation-modes {
  padding: 0;
  background: transparent;
  border: 0;
}

.creation-modes button.active,
.mode-panel button.active,
.social-ratios button.active,
.categories button.active,
.atlas-categories button.active,
.page-numbers button.active {
  color: var(--surface);
  background: var(--fg);
  border-color: var(--fg);
  box-shadow: none;
}

.creation-modes button.active span,
.mode-panel button.active span,
.mode-panel button.active strong,
.mode-panel button.active em,
.social-ratios button.active strong,
.social-ratios button.active em,
.social-ratios button.active span {
  color: var(--surface);
}

.prompt-label-row label,
.control-label,
.prompt-meta,
.prompt-meta button {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.prompt-hints span,
.social-ratios span {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
}

.prompt-field textarea,
.advanced-grid select,
.advanced-grid input,
.negative-panel input,
.activation-field input,
.builder-controls input,
.builder-controls textarea,
.builder-controls select,
.generator-toolbar select,
.library-tools input,
.library-tools select {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--border);
}

.prompt-field textarea:focus,
.advanced-grid select:focus,
.advanced-grid input:focus,
.activation-field input:focus,
.library-tools input:focus {
  outline: 2px solid color-mix(in oklch, var(--accent) 22%, transparent);
  border-color: var(--accent);
}

.social-ratios button i {
  background: color-mix(in oklch, var(--fg) 7%, transparent);
  border-color: var(--border);
}

.result {
  position: sticky;
  top: 88px;
}

.status {
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
}

.preview-stage {
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--accent) 12%, transparent), color-mix(in oklch, var(--fg) 5%, transparent)),
    var(--bg);
  border-color: var(--border);
}

.image-viewer {
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(25, 24, 22, 0.18);
}

.result-head button,
.preview-meta span,
.preview-meta strong {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
}

.prompt-studio,
.seo-overview,
.scale-atlas,
.library,
.features,
.faq-section {
  display: block;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) 0;
  border-top: 1px solid var(--border);
}

.section-title {
  max-width: 620px;
  margin: 0 0 32px;
  text-align: left;
}

.section-title h2,
.answer-panel h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
}

.builder-shell,
.atlas-shell,
.library-shell {
  padding: clamp(16px, 2.5vw, 26px);
}

.answer-panel {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
  padding: clamp(22px, 3vw, 34px);
}

.use-case-grid,
.features,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.features {
  padding-top: clamp(44px, 7vw, 88px);
}

.features article,
.use-case-grid article,
.faq-grid article {
  min-height: 220px;
  padding: 24px;
}

.features span,
.use-case-grid span,
.prompt-card span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.features strong,
.use-case-grid h3 {
  display: block;
  margin: 18px 0 10px;
  font-size: 26px;
  line-height: 1.08;
}

.library .section-title {
  max-width: 620px;
}

.style-tabs::before,
.prompt-grid::before {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 22px;
}

.style-tabs button,
.library-tools input,
.prompt-card {
  box-shadow: none;
}

.prompt-card img,
.atlas-card img,
.static-prompt-link img {
  background: color-mix(in oklch, var(--fg) 6%, transparent);
}

footer {
  color: var(--muted);
  background: transparent;
  border-top: 1px solid var(--border);
}

@media (min-width: 981px) {
  .studio {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  }

  .preview-stage {
    height: clamp(390px, calc(100vh - 250px), 560px);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy.is-compact {
    position: static;
    max-width: 760px;
  }

  .hero-copy.is-compact h1 {
    max-width: 12ch;
  }

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

  .result {
    position: static;
  }
}

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

  .topbar nav {
    display: none;
  }

  .hero,
  .prompt-studio,
  .seo-overview,
  .scale-atlas,
  .library,
  .features,
  .faq-section {
    width: min(100% - 24px, 1120px);
  }

  .hero-copy.is-compact h1 {
    max-width: 11ch;
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-copy.is-compact .badges {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .answer-panel,
  .use-case-grid,
  .features,
  .faq-grid,
  .advanced-grid {
    grid-template-columns: 1fr;
  }

  .features article,
  .use-case-grid article,
  .faq-grid article {
    min-height: 0;
  }
}

/* Open Design skill switch: saas-landing prototype */
:root {
  --bg: #f7f9ff;
  --surface: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef4ff;
  --fg: #101828;
  --text: #101828;
  --muted: #667085;
  --border: rgba(16, 24, 40, 0.1);
  --line: var(--border);
  --accent: #4f46e5;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --dark: #101828;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.1);
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html {
  background: var(--bg);
}

body {
  color: var(--fg);
  background:
    radial-gradient(circle at 18% 8%, rgba(79, 70, 229, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(6, 182, 212, 0.14), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 42%, #ffffff 100%);
  font-family: var(--font-body);
}

body::before,
.side-rail {
  display: none;
}

h1,
h2,
.hero-copy.is-compact h1,
.creator-head h2,
.result h2,
.section-title h2,
.features strong,
.prompt-card strong {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-template-columns: auto 1fr auto;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(18px);
}

.logo span {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: 12px;
}

.logo strong {
  color: #101828;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.topbar nav {
  justify-self: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
}

.topbar nav a {
  padding: 8px 12px;
  color: #667085;
  border-radius: 999px;
}

.topbar nav a:hover {
  color: #101828;
  background: #eef4ff;
}

.top-action,
.generate {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #2563eb 58%, #06b6d4);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.24);
}

.hero {
  display: block;
  width: min(1180px, calc(100% - 32px));
  padding: clamp(38px, 5vw, 68px) 0 28px;
}

.hero-copy.is-compact {
  position: static;
  max-width: 880px;
  margin: 0 auto 22px;
  padding: 0;
  text-align: center;
}

.hero-copy.is-compact .eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 12px;
  color: #4338ca;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.hero-copy.is-compact h1 {
  max-width: 880px;
  margin: 0 auto 14px;
  color: #101828;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.04;
  text-align: center;
}

.hero-copy.is-compact > p {
  max-width: 760px;
  margin: 0 auto 18px;
  color: #667085;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.7;
}

.hero-copy.is-compact .badges {
  justify-content: center;
  gap: 8px;
}

.hero-copy.is-compact .badges span {
  color: #475467;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.studio {
  width: min(1120px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.54fr);
  gap: 18px;
  margin: 0 auto;
}

.creator,
.result {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(16px);
}

.creator {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  padding: clamp(16px, 2.5vw, 26px);
}

.creator-head {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.creator-head h2 {
  color: #101828;
  font-size: 24px;
}

.creator-head p {
  color: #667085;
}

.creator-head button {
  color: #4338ca;
  background: #eef4ff;
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 999px;
}

.creation-modes {
  padding: 6px;
  background: #f2f4f7;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
}

.creation-modes button,
.generator-toolbar > label,
.size-control,
.advanced-panel,
.advanced-grid label,
.advanced-grid .negative-panel,
.activation-field,
.mode-panel button,
.prompt-field,
.social-ratios button {
  color: #101828;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 16px;
  box-shadow: none;
}

.creation-modes button {
  min-height: 38px;
  border-radius: 999px;
}

.creation-modes button.active,
.mode-panel button.active,
.social-ratios button.active {
  color: #fff;
  background: #101828;
  border-color: #101828;
}

.creation-modes span,
.creation-modes button.active span {
  color: inherit;
}

.prompt-field {
  overflow: hidden;
  border-radius: 22px;
}

.prompt-label-row label {
  color: #101828;
}

.prompt-hints span,
.social-ratios span {
  color: #4f46e5;
  background: #eef4ff;
  border: 0;
}

.prompt-field textarea,
.advanced-grid select,
.advanced-grid input,
.negative-panel input,
.activation-field input,
.generator-toolbar select,
.library-tools input {
  color: #101828;
  background: #fff;
  border-color: rgba(16, 24, 40, 0.1);
}

.prompt-field textarea {
  min-height: 210px;
}

.control-label,
.prompt-meta,
.prompt-meta button {
  color: #667085;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
}

.essentials-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
}

.social-ratios {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.social-ratios button {
  min-width: 152px;
}

.social-ratios strong {
  color: #101828;
}

.social-ratios em {
  color: #667085;
}

.social-ratios button.active strong,
.social-ratios button.active em,
.social-ratios button.active span,
.mode-panel button.active strong,
.mode-panel button.active em,
.mode-panel button.active span {
  color: #fff;
}

.advanced-panel summary {
  color: #475467;
}

.advanced-panel summary::after {
  color: #4f46e5;
  background: #eef4ff;
}

.mode-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activation-field {
  grid-column: 1 / 2;
}

.generate {
  grid-column: 2 / 3;
  margin: 0;
  align-self: end;
}

.result {
  position: sticky;
  top: 88px;
  padding: 16px;
}

.preview-title-block h2 {
  color: #101828;
}

.status {
  color: #027a48;
  background: #ecfdf3;
}

.preview-stage {
  height: clamp(390px, calc(100vh - 260px), 560px);
  background:
    linear-gradient(45deg, rgba(16, 24, 40, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(16, 24, 40, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(16, 24, 40, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(16, 24, 40, 0.035) 75%),
    #f8fafc;
  border-color: rgba(16, 24, 40, 0.08);
}

.image-viewer {
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.14);
}

.result-head button,
.preview-meta span,
.preview-meta strong {
  color: #475467;
  background: #f8fafc;
  border: 1px solid rgba(16, 24, 40, 0.1);
}

.prompt-studio,
.seo-overview,
.scale-atlas,
.faq-section {
  display: none;
}

.library,
.features {
  display: block;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0;
  border-top: 0;
}

.library .section-title,
.features .section-title {
  max-width: 720px;
  margin: 0 0 18px;
}

.section-title h2,
.library .section-title h2 {
  color: #101828;
  font-size: clamp(28px, 3.4vw, 46px);
}

.section-title p,
.library .section-title p {
  color: #667085;
}

.library-shell {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.style-tabs button,
.prompt-card,
.features article {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
}

.style-tabs button.active {
  color: #fff;
  background: #101828;
  border-color: #101828;
}

.prompt-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prompt-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prompt-card span,
.features span {
  color: #4f46e5;
  font-family: var(--font-body);
}

.prompt-card strong,
.features strong {
  color: #101828;
}

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

.features article {
  min-height: 180px;
  padding: 22px;
}

.features strong {
  margin: 14px 0 8px;
  font-size: 22px;
}

.features p {
  color: #667085;
}

footer {
  color: #667085;
  background: #fff;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

@media (max-width: 1080px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .result {
    position: static;
  }
}

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

  .topbar nav {
    display: none;
  }

  .hero,
  .library,
  .features {
    width: min(100% - 24px, 1120px);
  }

  .hero-copy.is-compact h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

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

  .essentials-toolbar,
  .advanced-grid,
  .mode-panel,
  .features {
    grid-template-columns: 1fr;
  }

  .activation-field,
  .generate {
    grid-column: 1 / -1;
  }

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

/* hongshu.me red-white prompt gallery UI, inspired by Meigen information architecture */
:root {
  --hs-bg: #fff7f4;
  --hs-paper: #ffffff;
  --hs-soft: #fff0eb;
  --hs-red: #e92f25;
  --hs-red-dark: #b91f18;
  --hs-ink: #211412;
  --hs-muted: #76625d;
  --hs-line: rgba(92, 35, 29, 0.12);
  --hs-shadow: 0 24px 70px rgba(105, 32, 21, 0.12);
  --hs-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hs-ink);
  background:
    radial-gradient(circle at top left, rgba(233, 47, 37, 0.13), transparent 34rem),
    linear-gradient(180deg, #fff7f4 0%, #ffffff 46%, #fff8f6 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(100% - 32px, 1180px);
  min-height: 68px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(233, 47, 37, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 46px rgba(105, 32, 21, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--hs-red), #ff7a55);
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(233, 47, 37, 0.24);
}

.logo strong {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.topbar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: #6e5a55;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.topbar nav a:hover {
  color: var(--hs-red-dark);
  background: #fff0eb;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-login,
.top-account,
.top-action,
.primary-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(233, 47, 37, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--hs-red-dark);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.top-action,
.primary-page-link {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--hs-red), #ff6845);
  box-shadow: 0 12px 28px rgba(233, 47, 37, 0.22);
}

main {
  overflow: hidden;
}

.hero,
.library,
.scale-atlas,
.features,
.faq-section,
.seo-overview,
.prompt-studio,
.page-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.hero {
  padding: 58px 0 30px;
}

.hero-copy.is-compact {
  max-width: 900px;
  margin: 0 auto 28px;
  text-align: center;
}

.eyebrow,
.hero-copy.is-compact .eyebrow {
  margin: 0 0 12px;
  color: var(--hs-red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy.is-compact h1,
.static-hero h1,
.prompt-hero h1 {
  max-width: 920px;
  margin: 0 auto;
  color: var(--hs-ink);
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-copy.is-compact > p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--hs-muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #6c5752;
  font-size: 13px;
  font-weight: 850;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 18px;
  padding: 12px;
  border: 1px solid rgba(233, 47, 37, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 239, 0.9)),
    #fff;
  box-shadow: var(--hs-shadow);
}

.creator,
.result,
.library-shell,
.atlas-shell,
.answer-panel,
.builder-shell,
.prompt-text-block,
.related-links {
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(105, 32, 21, 0.08);
}

.creator {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.creator-head,
.result-head,
.library-tools,
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.creator-head span {
  display: block;
  margin-bottom: 5px;
  color: var(--hs-red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.creator h2,
.result h2 {
  margin: 0;
  color: var(--hs-ink);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.creator-head button,
.preview-actions button,
.prompt-meta button,
.source-tabs button,
.style-tabs button,
.pagination button,
.atlas-categories button,
.preset-row button {
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: #fff;
  color: #6f5a54;
  font-size: 13px;
  font-weight: 900;
}

.creator-head button {
  min-height: 40px;
  padding: 0 14px;
}

.creator-head button:hover,
.preview-actions button:hover,
.prompt-meta button:hover,
.pagination button:hover:not(:disabled) {
  color: var(--hs-red-dark);
  border-color: rgba(233, 47, 37, 0.28);
  background: #fff0eb;
}

.prompt-field {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(233, 47, 37, 0.15);
  border-radius: 22px;
  background: #fff;
}

.prompt-field textarea {
  display: block;
  width: 100%;
  min-height: 168px;
  padding: 18px 18px 52px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--hs-ink);
  background: transparent;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.prompt-field textarea::placeholder {
  color: #b19a94;
}

.prompt-meta {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #927b75;
  font-size: 12px;
  font-weight: 900;
}

.prompt-meta button {
  min-height: 30px;
  padding: 0 11px;
}

.preset-row,
.source-tabs,
.style-tabs,
.atlas-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.preset-row button,
.source-tabs button,
.style-tabs button,
.atlas-categories button {
  min-height: 38px;
  padding: 0 13px;
}

.preset-row button.active,
.source-tabs button.active,
.style-tabs button.active,
.atlas-categories button.active {
  color: #fff;
  border-color: transparent;
  background: var(--hs-red);
  box-shadow: 0 10px 22px rgba(233, 47, 37, 0.18);
}

.source-tabs button span,
.style-tabs button span,
.atlas-categories button span {
  margin-left: 5px;
  opacity: 0.72;
}

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

.inspiration-strip button {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--hs-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff8f5);
  text-align: left;
}

.inspiration-strip span,
.prompt-card-meta,
.atlas-card span,
.static-prompt-link span {
  display: block;
  color: var(--hs-red);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.inspiration-strip strong {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--hs-ink);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quick-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: stretch;
}

.ratio-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ratio-icons button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  padding: 8px 4px;
  border: 1px solid var(--hs-line);
  border-radius: 17px;
  background: #fff;
  color: var(--hs-ink);
}

.ratio-icons button.active {
  border-color: rgba(233, 47, 37, 0.45);
  background: #fff0eb;
  box-shadow: inset 0 0 0 1px rgba(233, 47, 37, 0.12);
}

.ratio-icons span {
  font-size: 14px;
  font-weight: 950;
}

.ratio-icons em {
  color: #8f7771;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.style-select-wrap select,
.adv-grid select,
.adv-grid input,
.library-tools input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--hs-line);
  border-radius: 16px;
  outline: 0;
  background: #fff;
  color: var(--hs-ink);
  font-weight: 800;
}

.style-select-wrap select {
  height: 100%;
  padding: 0 13px;
}

.adv-panel {
  border: 1px solid var(--hs-line);
  border-radius: 18px;
  background: #fffaf8;
}

.adv-panel summary {
  padding: 13px 15px;
  color: #6e5a55;
  font-size: 13px;
  font-weight: 950;
  list-style: none;
}

.adv-panel summary::-webkit-details-marker {
  display: none;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.adv-grid label {
  display: grid;
  gap: 6px;
  color: #7b6761;
  font-size: 12px;
  font-weight: 900;
}

.adv-grid select,
.adv-grid input {
  min-height: 42px;
  padding: 0 11px;
  font-size: 13px;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.user-status {
  min-width: 0;
  color: #6f5a54;
  font-size: 13px;
  font-weight: 900;
}

.user-login-link,
.user-info a {
  color: var(--hs-red-dark);
  font-weight: 950;
}

.user-info {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.mode-btns {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.mode-btns button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: #fff;
  color: #6e5a55;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.mode-btns button.active {
  color: var(--hs-red-dark);
  border-color: rgba(233, 47, 37, 0.32);
  background: #fff0eb;
}

.mode-btns em {
  margin-left: 4px;
  color: #9d847e;
  font-size: 11px;
  font-style: normal;
}

.generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--hs-red), #ff6845);
  box-shadow: 0 14px 30px rgba(233, 47, 37, 0.26);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.generate.is-loading {
  opacity: 0.72;
}

.result {
  display: flex;
  min-height: 680px;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
}

.result-head {
  align-items: center;
  padding: 4px 4px 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--hs-red-dark);
  background: #fff0eb;
  font-size: 12px;
  font-weight: 950;
}

.preview-title-block h2 {
  margin-top: 5px;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.preview-actions button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.preview-stage {
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  overflow: auto;
  border: 1px solid rgba(233, 47, 37, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(45deg, rgba(233, 47, 37, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(233, 47, 37, 0.04) 25%, transparent 25%),
    #fffaf8;
  background-size: 22px 22px;
}

.image-viewer {
  display: grid;
  width: min(100%, 520px);
  max-height: 100%;
  margin: 0;
  place-items: center;
}

.image-viewer.is-fit img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(76vh, 590px);
  object-fit: contain;
}

.image-viewer.is-zoomed {
  width: var(--zoom-width, 100%);
  max-width: none;
}

.image-viewer.is-zoomed img {
  width: 100%;
  max-width: none;
  height: auto;
}

.image-viewer img {
  display: block;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(78, 31, 24, 0.16);
}

.preview-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 4px 2px;
  color: #826c66;
  font-size: 12px;
  font-weight: 900;
}

.preview-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-meta span:first-child {
  color: var(--hs-red);
}

.library,
.scale-atlas,
.features,
.faq-section,
.seo-overview,
.prompt-studio {
  padding: 58px 0 0;
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2 {
  max-width: 720px;
  margin: 0;
  color: var(--hs-ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-title p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--hs-muted);
  font-size: 15px;
  line-height: 1.6;
}

.library-shell,
.atlas-shell {
  padding: 18px;
}

.library-tools {
  align-items: center;
  margin-bottom: 14px;
}

.library-tools input {
  max-width: 560px;
  padding: 0 16px;
}

.library-tools span {
  color: #7d6963;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.source-tabs,
.style-tabs {
  margin-bottom: 14px;
}

.prompt-grid,
.atlas-grid,
.static-grid,
.use-case-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.prompt-card,
.atlas-card,
.static-prompt-link,
.features article,
.use-case-grid article,
.faq-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hs-line);
  border-radius: 20px;
  background: #fff;
  color: var(--hs-ink);
  text-align: left;
  box-shadow: 0 14px 38px rgba(105, 32, 21, 0.07);
}

.prompt-card {
  padding: 0 0 14px;
}

.prompt-card:hover,
.atlas-card:hover,
.static-prompt-link:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 47, 37, 0.26);
  box-shadow: 0 20px 50px rgba(105, 32, 21, 0.12);
}

.prompt-thumb,
.static-prompt-link img,
.atlas-card img,
.prompt-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff0eb;
}

.prompt-thumb img,
.static-prompt-link img,
.atlas-card img,
.prompt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-card-meta,
.prompt-card strong,
.prompt-card p,
.prompt-card em,
.static-prompt-link span,
.static-prompt-link strong,
.atlas-card span,
.atlas-card strong,
.atlas-card p {
  margin-right: 14px;
  margin-left: 14px;
}

.prompt-card-meta,
.static-prompt-link span,
.atlas-card span {
  margin-top: 13px;
}

.prompt-card strong,
.static-prompt-link strong,
.atlas-card strong {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--hs-ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prompt-card p,
.atlas-card p {
  display: -webkit-box;
  min-height: 58px;
  margin-top: 8px;
  margin-bottom: 0;
  overflow: hidden;
  color: #7d6963;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.prompt-card em {
  margin-top: 12px;
  color: var(--hs-red-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.pagination button {
  min-height: 38px;
  padding: 0 13px;
}

.pagination button.active {
  color: #fff;
  border-color: transparent;
  background: var(--hs-red);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-numbers {
  display: flex;
  gap: 7px;
  align-items: center;
}

.page-gap {
  color: #a28b85;
  font-weight: 900;
}

.pagination label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7d6963;
  font-size: 12px;
  font-weight: 900;
}

.pagination select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.atlas-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
}

.atlas-categories {
  align-content: start;
}

.atlas-card {
  padding-bottom: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 62px;
}

.features article {
  padding: 22px;
}

.features article span,
.use-case-grid article span {
  color: var(--hs-red);
  font-size: 12px;
  font-weight: 950;
}

.features article strong,
.use-case-grid article h3,
.faq-grid article h3 {
  margin: 10px 0 8px;
  color: var(--hs-ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.features article p,
.use-case-grid article p,
.faq-grid article p {
  margin: 0;
  color: #7d6963;
  font-size: 14px;
  line-height: 1.55;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(31, 13, 10, 0.72);
}

.lightbox button {
  position: fixed;
  top: 20px;
  right: 20px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--hs-red-dark);
  font-weight: 950;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  border-radius: 18px;
  object-fit: contain;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 18px 42px;
  color: #7d6963;
  font-size: 14px;
  font-weight: 850;
}

footer strong {
  color: var(--hs-ink);
}

.page-shell {
  padding: 54px 0 64px;
}

.static-hero,
.prompt-hero {
  padding: 42px;
  border: 1px solid var(--hs-line);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #fff1ed);
  box-shadow: var(--hs-shadow);
}

.static-hero h1,
.prompt-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
}

.static-hero p,
.prompt-hero p {
  max-width: 760px;
  color: var(--hs-muted);
  font-size: 17px;
  line-height: 1.65;
}

.static-grid {
  margin-top: 20px;
}

.static-prompt-link {
  padding-bottom: 14px;
}

.breadcrumb {
  color: #7d6963;
  font-size: 14px;
  font-weight: 900;
}

.prompt-detail .prompt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 22px;
  align-items: center;
}

.prompt-image {
  margin: 0;
  border-radius: 22px;
}

.prompt-text-block,
.related-links {
  margin-top: 18px;
  padding: 24px;
}

.prompt-text-block h2,
.related-links h2 {
  margin-top: 0;
}

.prompt-text-block pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #37211d;
  font-size: 14px;
  line-height: 1.65;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.related-links h2 {
  width: 100%;
}

.related-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--hs-red-dark);
  background: #fff0eb;
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(233, 47, 37, 0.25);
  border-radius: 18px;
  background: #fffaf8;
  color: #7d6963;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1120px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .result {
    min-height: 560px;
  }

  .prompt-grid,
  .atlas-grid,
  .static-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .mode-btns {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: auto auto;
    width: min(100% - 20px, 1180px);
    border-radius: 24px;
  }

  .topbar nav {
    display: none;
  }

  .top-actions {
    justify-self: end;
  }

  .top-login,
  .top-account {
    display: none;
  }

  .hero,
  .library,
  .scale-atlas,
  .features,
  .faq-section,
  .seo-overview,
  .prompt-studio,
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy.is-compact h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .studio {
    padding: 8px;
    border-radius: 24px;
  }

  .creator,
  .result,
  .library-shell,
  .atlas-shell {
    padding: 14px;
    border-radius: 20px;
  }

  .creator-head,
  .result-head,
  .library-tools,
  .section-title {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-controls,
  .adv-grid,
  .atlas-shell,
  .prompt-detail .prompt-hero {
    grid-template-columns: 1fr;
  }

  .ratio-icons {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .inspiration-strip,
  .features {
    grid-template-columns: 1fr;
  }

  .prompt-grid,
  .atlas-grid,
  .static-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result {
    min-height: 500px;
  }

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

@media (max-width: 560px) {
  .logo strong {
    display: none;
  }

  .top-action {
    min-height: 38px;
    padding: 0 13px;
  }

  .hero-copy.is-compact {
    text-align: left;
  }

  .hero-copy.is-compact h1 {
    margin-left: 0;
    text-align: left;
  }

  .badges {
    justify-content: flex-start;
  }

  .creator h2,
  .result h2 {
    font-size: 21px;
  }

  .prompt-field textarea {
    min-height: 150px;
    font-size: 15px;
  }

  .prompt-grid,
  .atlas-grid,
  .static-grid {
    grid-template-columns: 1fr;
  }

  .result {
    min-height: 420px;
  }

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

/* Final ordering guard for the current homepage markup. */
.creator > .creator-head {
  order: 1;
  display: flex;
}

.creator > .prompt-field {
  order: 2;
  display: block;
}

.creator > .preset-row {
  order: 3;
}

.creator > .inspiration-strip {
  order: 4;
  display: none;
}

.creator > .quick-controls {
  order: 5;
}

.creator > .adv-panel {
  order: 7;
}

.creator > .action-row {
  order: 4;
}

.creator > .prompt-field textarea {
  min-height: 150px;
  padding: 18px;
}

.creator > .prompt-field .prompt-meta {
  position: static;
  padding: 10px 14px;
  border-top: 1px solid rgba(233, 47, 37, 0.12);
}

@media (max-width: 860px) {
  .creator > .creator-head {
    display: grid;
  }

  .hero-copy.is-compact h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
}

@media (min-width: 861px) {
  .hero {
    padding-top: 38px;
  }

  .hero-copy.is-compact {
    margin-bottom: 22px;
  }

  .hero-copy.is-compact h1 {
    font-size: clamp(42px, 5.2vw, 62px);
    line-height: 1;
  }

  .hero-copy.is-compact > p {
    margin-top: 12px;
  }
}

/* MeiGen-style workspace rebuild */
@media (min-width: 1024px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    border: 0;
    background: #fbfaf8;
  }

  body {
    color: #171312;
    background:
      radial-gradient(circle at 96% 100%, rgba(236, 83, 69, 0.12), transparent 28rem),
      linear-gradient(90deg, #f7f9fc 0 272px, #fbfaf8 272px 100%);
  }

  body::before,
  .hero-copy.is-compact,
  .library .section-title,
  .badges {
    display: none !important;
  }

  .topbar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: 272px;
    height: 100vh;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin: 0;
    padding: 28px 20px 18px;
    border: 0;
    border-right: 1px solid rgba(19, 30, 46, 0.07);
    border-radius: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fffaf7 100%);
    box-shadow: none;
    backdrop-filter: none;
  }

  .logo {
    margin-bottom: 8px;
  }

  .logo span {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(233, 47, 37, 0.18);
  }

  .logo strong {
    font-size: 18px;
  }

  .topbar nav {
    display: grid;
    justify-content: stretch;
    gap: 6px;
  }

  .topbar nav a {
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    color: #344054;
    font-size: 14px;
  }

  .topbar nav a:first-child,
  .topbar nav a:hover {
    color: #111827;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.05);
  }

  .top-actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
  }

  .top-login,
  .top-account,
  .top-action {
    width: 100%;
    min-height: 42px;
    border-radius: 13px;
  }

  main {
    min-height: 100vh;
    margin-left: 272px;
    overflow: visible;
  }

  .hero,
  .library,
  .scale-atlas,
  .features,
  .faq-section,
  .seo-overview,
  .prompt-studio,
  .page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero {
    min-height: 100vh;
    padding: 16px;
  }

  .studio {
    display: grid;
    width: 100%;
    min-height: calc(100vh - 32px);
    grid-template-columns: minmax(560px, 1fr) 408px;
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
  }

  .result {
    order: 1;
    min-height: calc(100vh - 32px);
    padding: 16px;
    border: 0;
    border-radius: 24px;
    background:
      radial-gradient(circle at 88% 96%, rgba(233, 47, 37, 0.09), transparent 25rem),
      #fff;
    box-shadow: 0 18px 70px rgba(16, 24, 40, 0.06);
  }

  .creator {
    order: 2;
    min-height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 18px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 70px rgba(16, 24, 40, 0.06);
  }

  .result-head,
  .creator-head {
    min-height: 42px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  }

  .creator-head {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .creator-head button {
    width: 100%;
    min-height: 42px;
    color: #344054;
    background: #faf7f4;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 14px;
    box-shadow: none;
  }

  .creator h2,
  .result h2 {
    font-size: 19px;
  }

  .prompt-field {
    border-radius: 14px;
    background: #faf7f4;
  }

  .creator > .prompt-field textarea {
    min-height: 255px;
    max-height: 310px;
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
  }

  .creator > .prompt-field .prompt-meta {
    background: #faf7f4;
  }

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

  .preset-row button,
  .mode-btns button,
  .ratio-icons button {
    border-radius: 13px;
  }

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

  .user-status {
    min-height: 24px;
  }

  .mode-btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .mode-btns button {
    padding: 0 8px;
  }

  .generate {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    background: #171312;
    box-shadow: none;
  }

  .quick-controls {
    grid-template-columns: 1fr;
  }

  .ratio-icons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .style-select-wrap select,
  .adv-panel {
    border-radius: 14px;
  }

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

  .preview-stage {
    min-height: 0;
    height: calc(100vh - 146px);
    border: 0;
    border-radius: 18px;
    background: #faf8f3;
    background-image: none;
  }

  .image-viewer,
  .image-viewer.is-fit,
  .image-viewer.is-wide,
  .image-viewer.is-portrait {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .image-viewer.is-fit img,
  .image-viewer img {
    width: auto;
    max-width: calc(100% - 28px);
    height: auto;
    max-height: calc(100% - 28px);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: none;
  }

  .image-viewer.is-zoomed {
    width: var(--zoom-width, 100%);
    height: auto;
  }

  .preview-meta {
    min-height: 42px;
    padding: 10px 4px 0;
  }

  .library {
    padding: 0 16px 32px;
  }

  .library-shell {
    padding: 16px;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 70px rgba(16, 24, 40, 0.06);
  }

  .library-tools {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: center;
  }

  .source-tabs,
  .style-tabs {
    margin-bottom: 12px;
  }

  .prompt-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .prompt-card {
    border-radius: 14px;
    box-shadow: none;
  }

  .prompt-thumb {
    aspect-ratio: 1 / 1;
  }

  .features,
  .scale-atlas {
    display: none;
  }
}

@media (max-width: 1023px) {
  html,
  body {
    margin: 0;
    border: 0;
    background: #fff7f4;
  }

  body::before,
  .hero-copy.is-compact,
  .library .section-title {
    display: none !important;
  }

  .hero {
    padding-top: 18px;
  }

  .studio {
    margin-top: 0;
  }

  .library {
    padding-top: 24px;
  }
}

/* Stable preview toolbar and 10-card gallery rhythm */
.result-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 12px;
}

.preview-title-block {
  display: inline-flex !important;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.preview-title-block h2 {
  order: 1;
  margin: 0 !important;
  white-space: nowrap;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.status {
  order: 2;
  flex: 0 0 auto;
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.preview-actions {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.preview-actions button {
  min-width: 32px;
  white-space: nowrap;
}

.pagination select option[value="12"],
.pagination select option[value="24"],
.pagination select option[value="36"] {
  display: none;
}

@media (min-width: 1024px) {
  .prompt-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .result-head {
    grid-template-columns: 1fr;
    align-items: start !important;
  }

  .preview-title-block h2 {
    font-size: 22px;
  }

  .preview-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

/* Launch polish: account state, selected controls, and SEO prompt library */
.user-info[hidden],
.top-account[hidden],
.top-login[hidden],
.user-login-link[hidden] {
  display: none !important;
}

.user-status {
  min-width: 0;
}

.user-info {
  display: inline-flex !important;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.user-info > [data-user-email] {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  overflow: visible;
  padding: 6px 10px;
  border: 1px solid rgba(233, 47, 37, 0.13);
  border-radius: 999px;
  background: #fff;
  color: #2b2320;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.user-balance,
.user-info a,
.user-login-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid rgba(233, 47, 37, 0.16);
  border-radius: 999px;
  background: #fff7f4;
  color: var(--hs-red-dark) !important;
  line-height: 1;
  white-space: nowrap;
}

.ratio-icons button.active,
.mode-btns button.active {
  border-color: rgba(233, 47, 37, 0.48) !important;
  background: #fff0eb !important;
  color: #a32018 !important;
  box-shadow: inset 0 0 0 1px rgba(233, 47, 37, 0.12) !important;
}

.ratio-icons button.active span,
.ratio-icons button.active em,
.mode-btns button.active,
.mode-btns button.active span,
.mode-btns button.active em {
  color: #a32018 !important;
  opacity: 1 !important;
}

.prompt-library-main {
  min-height: 100vh;
  padding: 110px 18px 56px;
}

.prompt-library-hero,
.prompt-library-panel,
.prompt-library-seo {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.prompt-library-hero {
  padding: 28px 0 22px;
  text-align: center;
}

.prompt-library-hero h1 {
  max-width: 940px;
  margin: 12px auto 0;
  color: #1f120f;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.prompt-library-hero p {
  max-width: 720px;
  margin: 16px auto 0;
  color: #6f5a54;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.prompt-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.prompt-library-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(233, 47, 37, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--hs-red-dark);
  font-weight: 950;
  text-decoration: none;
}

.prompt-library-actions a:first-child {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hs-red), #ff654b);
  color: #fff;
  box-shadow: 0 16px 34px rgba(233, 47, 37, 0.22);
}

.prompt-library-panel {
  padding: 18px;
  border: 1px solid rgba(233, 47, 37, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.08);
}

.prompt-library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.prompt-library-toolbar input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--hs-line);
  border-radius: 18px;
  outline: 0;
  background: #fff;
  color: var(--hs-ink);
  font-size: 15px;
  font-weight: 850;
}

.prompt-library-toolbar span,
.prompt-library-pager strong {
  color: #7b6761;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.prompt-library-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.prompt-library-categories button,
.prompt-library-pager button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: #fff;
  color: #6e5a55;
  font-weight: 950;
}

.prompt-library-categories button.active {
  border-color: transparent;
  background: var(--hs-red);
  color: #fff;
}

.prompt-library-categories span {
  opacity: 0.78;
}

.prompt-library-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.prompt-library-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(233, 47, 37, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.05);
}

.prompt-library-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f5f0ec;
}

.prompt-library-card div {
  display: grid;
  gap: 8px;
  padding: 14px 14px 10px;
}

.prompt-library-card span {
  color: #4732ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-library-card h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #1d1512;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prompt-library-card p {
  display: -webkit-box;
  min-height: 56px;
  margin: 0;
  overflow: hidden;
  color: #75605a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.prompt-library-card footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 14px 14px;
}

.prompt-library-card em {
  min-width: 0;
  overflow: hidden;
  color: var(--hs-red-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-library-card button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #171312;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.prompt-library-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(233, 47, 37, 0.1);
}

.prompt-library-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.prompt-library-empty {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #7b6761;
  font-weight: 900;
}

.prompt-library-seo {
  padding: 30px 0 0;
}

.prompt-library-seo h2 {
  margin: 0;
  color: #1f120f;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.prompt-library-seo p {
  max-width: 860px;
  margin: 10px 0 0;
  color: #6f5a54;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .prompt-library-main {
    padding: 34px 32px 64px;
  }
}

@media (max-width: 1280px) {
  .prompt-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    grid-template-columns: auto auto !important;
    overflow: hidden;
  }

  .top-actions {
    min-width: 0;
    justify-self: end;
  }

  .top-action {
    min-width: 0;
    max-width: 150px;
  }

  .hero,
  .library,
  .scale-atlas,
  .features,
  .faq-section,
  .seo-overview,
  .prompt-studio,
  .page-shell {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }

  .studio,
  .creator,
  .result,
  .prompt-field,
  .prompt-field textarea,
  .preset-row,
  .quick-controls,
  .mode-btns,
  .ratio-icons,
  .style-select-wrap,
  .adv-panel {
    min-width: 0;
    max-width: 100%;
  }

  .preset-row button,
  .mode-btns button,
  .ratio-icons button {
    min-width: 0;
  }

  .prompt-library-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 92px 14px 42px;
  }

  .prompt-library-hero,
  .prompt-library-panel,
  .prompt-library-seo {
    width: 100%;
    max-width: 100%;
  }

  .prompt-library-hero {
    text-align: left;
  }

  .prompt-library-hero h1 {
    font-size: 32px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .prompt-library-actions {
    justify-content: flex-start;
  }

  .prompt-library-toolbar {
    grid-template-columns: 1fr;
  }

  .prompt-library-grid {
    grid-template-columns: 1fr;
  }

  .prompt-library-card {
    border-radius: 16px;
  }

  .prompt-library-pager {
    justify-content: space-between;
  }
}

body.prompt-page .topbar nav a:first-child {
  background: transparent !important;
  box-shadow: none !important;
  color: #344054 !important;
}

body.prompt-page .topbar nav a[aria-current="page"] {
  color: #111827 !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.05) !important;
}

.atlas-library-main {
  min-height: 100vh;
  padding: 110px 18px 56px;
}

.atlas-library-hero,
.atlas-library-panel,
.atlas-library-seo {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.atlas-library-hero {
  padding: 28px 0 22px;
  text-align: center;
}

.atlas-library-hero h1 {
  max-width: 940px;
  margin: 12px auto 0;
  color: #1f120f;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.atlas-library-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  color: #6f5a54;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.atlas-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.atlas-library-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(233, 47, 37, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--hs-red-dark);
  font-weight: 950;
  text-decoration: none;
}

.atlas-library-actions a:first-child {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hs-red), #ff654b);
  color: #fff;
  box-shadow: 0 16px 34px rgba(233, 47, 37, 0.22);
}

.atlas-library-panel {
  padding: 18px;
  border: 1px solid rgba(233, 47, 37, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.08);
}

.atlas-library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.atlas-library-toolbar input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--hs-line);
  border-radius: 18px;
  outline: 0;
  background: #fff;
  color: var(--hs-ink);
  font-size: 15px;
  font-weight: 850;
}

.atlas-library-toolbar span {
  color: #7b6761;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

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

.atlas-library-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(233, 47, 37, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.05);
}

.atlas-library-image {
  display: block;
  overflow: hidden;
  background: #f5f0ec;
}

.atlas-library-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.atlas-library-card:hover img {
  transform: scale(1.035);
}

.atlas-library-card div {
  display: grid;
  gap: 8px;
  padding: 14px 14px 10px;
}

.atlas-library-card span {
  color: #4732ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.atlas-library-card h2 {
  min-height: 46px;
  margin: 0;
  color: #1d1512;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.atlas-library-card p {
  display: -webkit-box;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  color: #75605a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.atlas-library-card ul {
  display: grid;
  gap: 5px;
  min-height: 66px;
  margin: 2px 0 0;
  padding: 0;
  color: #3c3230;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

.atlas-library-card li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-library-card footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 14px 14px;
}

.atlas-library-card footer a,
.atlas-library-card button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.atlas-library-card footer a {
  border: 1px solid rgba(233, 47, 37, 0.16);
  background: #fff7f4;
  color: var(--hs-red-dark);
}

.atlas-library-card button {
  border: 0;
  background: #171312;
  color: #fff;
}

.atlas-library-empty {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #7b6761;
  font-weight: 900;
}

.atlas-library-seo {
  padding: 30px 0 0;
}

.atlas-library-seo h2 {
  margin: 0;
  color: #1f120f;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.atlas-library-seo p {
  max-width: 860px;
  margin: 10px 0 0;
  color: #6f5a54;
  line-height: 1.7;
}

body.atlas-page .topbar nav a:first-child {
  background: transparent !important;
  box-shadow: none !important;
  color: #344054 !important;
}

body.atlas-page .topbar nav a[aria-current="page"] {
  color: #111827 !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.05) !important;
}

@media (min-width: 1024px) {
  .atlas-library-main {
    padding: 34px 32px 64px;
  }
}

@media (max-width: 1280px) {
  .atlas-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .atlas-library-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 92px 12px 42px;
  }

  .atlas-library-hero,
  .atlas-library-panel,
  .atlas-library-seo {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .atlas-library-hero {
    text-align: left;
  }

  .atlas-library-hero h1 {
    max-width: calc(100vw - 24px);
    font-size: 29px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .atlas-library-hero p {
    max-width: calc(100vw - 24px);
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .atlas-library-actions {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .atlas-library-actions a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0 12px;
  }

  .atlas-library-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .atlas-library-toolbar {
    grid-template-columns: 1fr;
  }

  .atlas-library-toolbar input {
    min-width: 0;
    padding: 0 14px;
    font-size: 14px;
  }

  .atlas-library-grid {
    grid-template-columns: 1fr;
  }

  .atlas-library-card {
    border-radius: 16px;
  }
}

@media (max-width: 1023px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    grid-template-columns: auto auto !important;
    overflow: hidden;
  }

  .topbar nav,
  .top-login,
  .top-account,
  .top-action {
    display: none !important;
  }

  .hero,
  .library,
  .scale-atlas,
  .features,
  .faq-section,
  .seo-overview,
  .prompt-studio,
  .page-shell {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }

  .studio,
  .creator,
  .result,
  .prompt-field,
  .prompt-field textarea,
  .preset-row,
  .quick-controls,
  .mode-btns,
  .ratio-icons,
  .style-select-wrap,
  .adv-panel {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .prompt-library-main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .atlas-library-main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .prompt-library-hero,
  .prompt-library-panel,
  .prompt-library-seo,
  .atlas-library-hero,
  .atlas-library-panel,
  .atlas-library-seo {
    width: 100% !important;
    max-width: 100% !important;
  }
}
