﻿:root {
  --ink: #111512;
  --ink-soft: #2b302d;
  --paper: #f5f1e7;
  --paper-deep: #ebe4d3;
  --acid: #c8ff00;
  --cyan: #00a7ff;
  --red: #ff334e;
  --line: rgba(17, 21, 18, 0.14);
  --shadow: 0 26px 70px rgba(17, 21, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background: #040506;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #f8fff3;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(200, 255, 0, 0.18), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(255, 51, 78, 0.2), transparent 30%),
    radial-gradient(circle at 76% 70%, rgba(0, 167, 255, 0.16), transparent 34%),
    #050708;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(200, 255, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 0, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 24px clamp(34px, 5vw, 84px) 0;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  max-width: 1540px;
  margin: 0 auto;
  padding: 14px 24px;
  color: #fff;
  background: rgba(17, 21, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(17, 21, 18, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  font-weight: 900;
  background: var(--acid);
  border: 2px solid #fff;
  transform: rotate(-4deg);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 42px);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.nav-link-button {
  min-height: auto;
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
}

.nav-links a:hover,
.nav-link-button:hover {
  color: var(--acid);
}

.nav-cta,
.primary-button,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
}

.nav-cta,
.primary-button {
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.ghost-button {
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  max-width: 1680px;
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 86px) clamp(18px, 4vw, 56px) 72px;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.98), rgba(5, 7, 8, 0.74) 48%, rgba(5, 7, 8, 0.18)),
    radial-gradient(circle at 70% 42%, rgba(200, 255, 0, 0.13), transparent 32%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-kicker span {
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 4.8vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

.hero-description span {
  display: inline;
}

.hero-copy p {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(248, 255, 243, 0.72);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 255, 0, 0.7);
  box-shadow: 8px 8px 0 rgba(200, 255, 0, 0.22);
}

.hero-stats div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(22px, 2.1vw, 34px);
}

.hero-stats span {
  color: rgba(248, 255, 243, 0.62);
  font-size: 13px;
}

.hero-art {
  position: relative;
  min-height: clamp(390px, 48vw, 700px);
  overflow: hidden;
  background: #fffdf6;
  border: 4px solid var(--ink);
  box-shadow: 18px 18px 0 var(--ink);
  transform: rotate(1.2deg);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(200, 255, 0, 0.16), transparent 28%),
    linear-gradient(to top, rgba(17, 21, 18, 0.18), transparent 38%);
  mix-blend-mode: multiply;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.hero-label {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--ink);
  border: 2px solid #fff;
}

.top-label {
  top: 18px;
  left: 18px;
}

.bottom-label {
  right: 18px;
  bottom: 18px;
  color: var(--ink);
  background: var(--acid);
  border-color: var(--ink);
}

.marquee-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
}

.marquee-strip span {
  padding: 16px 14px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.marquee-strip span:nth-child(2n) {
  color: var(--acid);
}

.section-block,
.visual-band,
.workflow-section,
.access-section {
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(18px, 4vw, 56px);
}

.generator-shell {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(1480px, calc(100vw - 48px));
  height: min(900px, calc(100vh - 48px));
  margin: 0;
  padding: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
  color: #f8fff3;
  background:
    linear-gradient(135deg, rgba(6, 11, 13, 0.97), rgba(13, 17, 18, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(200, 255, 0, 0.08) 23px 24px);
  border: 2px solid rgba(200, 255, 0, 0.72);
  border-radius: 10px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.72),
    0 30px 90px rgba(0, 0, 0, 0.55),
    12px 12px 0 rgba(200, 255, 0, 0.28);
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, -48%) scale(0.94);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    visibility 180ms ease;
}

.generator-modal-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.generator-modal-active {
  overflow: hidden;
}

html.prompt-tool-embed,
body.prompt-tool-embed {
  min-height: 100%;
  overflow: auto;
  background: #020304;
}

body.prompt-tool-embed.generator-modal-active {
  overflow: auto;
}

body.prompt-tool-embed .reference-header,
body.prompt-tool-embed .reference-hero,
body.prompt-tool-embed .section-block,
body.prompt-tool-embed .visual-band,
body.prompt-tool-embed .workflow-section,
body.prompt-tool-embed .access-section,
body.prompt-tool-embed .site-footer,
body.prompt-tool-embed footer {
  display: none;
}

body.prompt-tool-embed .site-app {
  min-height: 100vh;
  padding: 0;
  background: #020304;
}

body.prompt-tool-embed .hero-video-art video {
  display: none;
}

body.prompt-tool-embed .generator-shell {
  position: relative;
  top: auto;
  left: auto;
  width: min(1880px, calc(100vw - 16px));
  height: auto;
  min-height: calc(100vh - 16px);
  margin: 8px auto;
  overflow: auto;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: none;
}

body.prompt-tool-embed .generator-modal-open {
  transform: none;
}

body.prompt-tool-embed #closeGeneratorBtn {
  display: none;
}

body.prompt-tool-embed #primaryImageBtn {
  display: none;
}

body.prompt-tool-embed .module-panel {
  overflow: visible;
}

body.prompt-tool-embed .generator {
  align-items: start;
  overflow: visible;
}

body.prompt-tool-embed .result-panel {
  min-height: 0;
}

body.prompt-tool-embed .character-summary-card,
body.prompt-tool-embed .creature-summary-card {
  display: none;
}

body.prompt-tool-embed .generator-shell textarea {
  flex: 0 0 auto;
  min-height: clamp(160px, 20vh, 230px);
  max-height: 30vh;
}

body.prompt-tool-embed .prompt-tools {
  margin-top: 12px;
  align-items: start;
}

body.prompt-tool-embed.novice-prompt-embed {
  --novice-output-height: clamp(300px, 44vh, 540px);
  overflow: hidden;
}

body.prompt-tool-embed.novice-prompt-embed .site-app {
  min-height: 100vh;
  overflow: hidden;
}

body.prompt-tool-embed.novice-prompt-embed .generator-shell {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.prompt-tool-embed.novice-prompt-embed .generator-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

body.prompt-tool-embed.novice-prompt-embed .generator-head .eyebrow,
body.prompt-tool-embed.novice-prompt-embed .generator-head h2 {
  display: none;
}

body.prompt-tool-embed.novice-prompt-embed .generator-head p:last-child {
  max-width: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

body.prompt-tool-embed.novice-prompt-embed .top-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

body.prompt-tool-embed.novice-prompt-embed .top-actions .compact {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

body.prompt-tool-embed.novice-prompt-embed .module-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

body.prompt-tool-embed.novice-prompt-embed .module-tab {
  flex: 0 0 auto;
  min-width: 108px;
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

body.prompt-tool-embed.novice-prompt-embed .module-tab strong {
  font-size: 14px;
}

body.prompt-tool-embed.novice-prompt-embed .module-tab span {
  display: none;
}

body.prompt-tool-embed.novice-prompt-embed .module-tab[data-module="director"] {
  display: none;
}

body.prompt-tool-embed.novice-prompt-embed .novice-filter-toggle {
  width: 100%;
  min-height: 30px;
  margin: 0 0 6px;
  color: var(--acid);
  font: 950 13px/1.1 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: rgba(200, 255, 0, 0.08);
  border: 1px solid rgba(200, 255, 0, 0.5);
  border-radius: 7px;
  cursor: pointer;
}

body.prompt-tool-embed.novice-prompt-embed .module-panel:not([hidden]) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100vh - 156px);
  min-height: 0;
  overflow: hidden;
}

body.prompt-tool-embed.novice-prompt-embed .generator {
  order: 1;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  gap: 0;
  overflow: hidden;
}

body.prompt-tool-embed.novice-prompt-embed .controls {
  order: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
}

body.prompt-tool-embed.novice-prompt-embed.novice-filters-open .module-panel:not([hidden]) {
  grid-template-rows: minmax(180px, 1fr) minmax(104px, 24vh);
}

body.prompt-tool-embed.novice-prompt-embed.novice-filters-open .controls {
  align-content: start;
  grid-auto-rows: minmax(54px, auto);
  max-height: none;
  margin-top: 8px;
  padding: 10px;
  overflow: auto;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
}

body.prompt-tool-embed.novice-prompt-embed .controls label,
body.prompt-tool-embed.novice-prompt-embed .filter-action button {
  min-height: 34px;
  font-size: 12px;
}

body.prompt-tool-embed.novice-prompt-embed .controls label {
  grid-template-rows: auto 36px;
  gap: 4px;
}

body.prompt-tool-embed.novice-prompt-embed .controls select,
body.prompt-tool-embed.novice-prompt-embed .controls input[type="text"] {
  min-height: 36px;
  height: 36px;
}

body.prompt-tool-embed.novice-prompt-embed .controls input[type="range"] {
  align-self: center;
}

body.prompt-tool-embed.novice-prompt-embed .generator .side-panel {
  display: none;
}

body.prompt-tool-embed.novice-prompt-embed .generator-shell textarea {
  min-height: 280px;
  max-height: none;
  font-size: 14px;
}

body.prompt-tool-embed.novice-prompt-embed .result-panel {
  display: grid;
  grid-template-rows: auto minmax(260px, var(--novice-output-height)) 12px auto;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

body.prompt-tool-embed.novice-prompt-embed .result-panel > textarea {
  height: var(--novice-output-height);
  min-height: 260px;
  padding: 20px;
  overflow: auto;
  resize: vertical;
}

body.prompt-tool-embed.novice-prompt-embed .novice-result-resize-handle {
  position: relative;
  height: 12px;
  margin: 0 0 4px;
  cursor: ns-resize;
  touch-action: none;
}

body.prompt-tool-embed.novice-prompt-embed.novice-resizing-output {
  user-select: none;
}

body.prompt-tool-embed.novice-prompt-embed .novice-result-resize-handle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: rgba(200, 255, 0, 0.8);
  box-shadow: 0 0 16px rgba(200, 255, 0, 0.28);
  transform: translateX(-50%);
}

body.prompt-tool-embed.novice-prompt-embed .panel-head {
  margin-bottom: 8px;
}

body.prompt-tool-embed.novice-prompt-embed .prompt-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: center;
}

body.prompt-tool-embed.novice-prompt-embed .prompt-tools button,
body.prompt-tool-embed.novice-prompt-embed .prompt-tools select,
body.prompt-tool-embed.novice-prompt-embed .prompt-tools .tool-select {
  min-width: 0;
  min-height: 34px;
  font-size: 12px;
}

body.prompt-tool-embed.novice-prompt-embed .prompt-tool-actions {
  display: flex;
  flex-wrap: wrap;
}

body.prompt-tool-embed.novice-prompt-embed .prompt-tool-actions button {
  flex: 0 1 116px;
}

body.prompt-tool-embed.novice-prompt-embed .prompt-tool-params {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.generator-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 255, 0, 0.24), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 51, 78, 0.22), transparent 30%),
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.09) 50%, transparent 51%);
  pointer-events: none;
}

.generator-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.generator-head h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1;
  color: #f8fff3;
}

.generator-head p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(248, 255, 243, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.modal-close-button {
  width: 46px;
  min-height: 46px;
  padding: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 51, 78, 0.92);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 4px 4px 0 rgba(200, 255, 0, 0.45);
}

.modal-close-button:hover {
  color: var(--ink);
  background: var(--acid);
}

.module-tabs {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.module-tab,
.prompt-tools button,
.filter-action button,
.pet-mobile-entry,
.text-button,
.dialog-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  background: #fffdf6;
  border: 2px solid var(--line);
  border-radius: 6px;
}

.module-tab.active,
.module-tab:hover,
.prompt-tools button:hover,
.filter-action button:hover,
.pet-mobile-entry:hover {
  border-color: var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
}

.copy-feedback-pop {
  animation: copyFeedbackPop 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter, box-shadow;
}

@keyframes copyFeedbackPop {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(200, 255, 0, 0), 4px 4px 0 var(--ink);
  }
  18% {
    transform: translateY(1px) scale(0.97);
    filter: brightness(1.08);
    box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.42), 2px 2px 0 var(--ink);
  }
  48% {
    transform: translateY(-3px) scale(1.08);
    filter: brightness(1.28) saturate(1.18);
    box-shadow: 0 0 0 8px rgba(200, 255, 0, 0.2), 0 0 24px rgba(200, 255, 0, 0.58), 5px 5px 0 var(--ink);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(200, 255, 0, 0), 4px 4px 0 var(--ink);
  }
}

.module-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: #f8fff3;
  background:
    linear-gradient(145deg, rgba(7, 12, 14, 0.96), rgba(17, 21, 18, 0.9)),
    repeating-linear-gradient(-12deg, transparent 0 28px, rgba(255, 255, 255, 0.035) 28px 29px);
  border: 2px solid rgba(200, 255, 0, 0.7);
  border-radius: 8px;
  box-shadow:
    8px 8px 0 rgba(200, 255, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.module-panel[hidden] {
  display: none;
}

.controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 14px;
  flex: 0 0 auto;
  padding: 16px;
  border-bottom: 1px solid rgba(200, 255, 0, 0.35);
  background:
    linear-gradient(90deg, rgba(200, 255, 0, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.character-controls,
.creature-controls,
.pet-controls,
.director-controls {
  grid-template-columns: repeat(7, minmax(135px, 1fr));
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(248, 255, 243, 0.68);
  font-size: 13px;
  font-weight: 800;
}

select,
input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(17, 21, 18, 0.24);
  border-radius: 6px;
}

.generator-shell select,
.generator-shell input[type="text"] {
  color: #f8fff3;
  background: rgba(5, 7, 8, 0.72);
  border-color: rgba(248, 255, 243, 0.18);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 0, 0.08);
}

.generator-shell select option {
  color: var(--ink);
  background: #fffdf6;
}

input[type="range"] {
  width: 100%;
  accent-color: #0b8d7f;
}

.generator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.result-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 22px;
  border-right: 1px solid rgba(200, 255, 0, 0.35);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin-bottom: 0;
  font-size: 24px;
  color: #f8fff3;
}

.panel-head span {
  color: rgba(200, 255, 0, 0.74);
  font-size: 13px;
}

textarea {
  width: 100%;
  min-height: 390px;
  padding: 22px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.78;
  resize: vertical;
  background: #fffef8;
  border: 2px solid rgba(17, 21, 18, 0.28);
  border-radius: 8px;
}

.generator-shell textarea {
  flex: 1 1 auto;
  min-height: 340px;
  color: #f8fff3;
  caret-color: var(--acid);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(4, 6, 7, 0.86);
  border-color: rgba(248, 255, 243, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(200, 255, 0, 0.1),
    inset 0 22px 80px rgba(0, 0, 0, 0.26);
}

textarea:focus,
select:focus,
input:focus {
  outline: 3px solid rgba(200, 255, 0, 0.7);
  border-color: var(--ink);
}

.prompt-tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  flex: 0 0 auto;
  margin-top: 14px;
  align-items: end;
}

.prompt-tool-actions,
.prompt-tool-params {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.prompt-tool-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: end;
}

.prompt-tool-actions button {
  flex: 0 1 132px;
}

.prompt-tool-params {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  align-items: end;
}

.prompt-tool-actions button,
.prompt-tool-params .tool-select,
.prompt-tool-params select {
  min-width: 0;
}

.director-controls {
  grid-template-columns: minmax(260px, 2fr) repeat(6, minmax(120px, 1fr));
}

.director-idea-field {
  grid-column: span 2;
}

.director-console-board {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(200, 255, 0, 0.12), rgba(33, 246, 255, 0.06)),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(200, 255, 0, 0.28);
  border-radius: 8px;
}

.director-project-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.director-project-strip article {
  min-height: 112px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(248, 255, 243, 0.12);
  border-radius: 8px;
}

.director-project-strip span,
.director-board-head span,
.director-inspector-kicker {
  color: var(--acid);
  font-size: 12px;
  font-weight: 950;
}

.director-project-strip p {
  margin-top: 8px;
  color: rgba(248, 255, 243, 0.86);
  line-height: 1.55;
}

.director-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 10px;
  height: auto;
}

.director-flow i {
  display: block;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  opacity: 0.42;
}

.director-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.director-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.director-shot-card {
  min-height: 126px;
  padding: 12px;
  color: rgba(248, 255, 243, 0.88);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(200, 255, 0, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(4, 6, 7, 0.84);
  border: 1px solid rgba(200, 255, 0, 0.22);
  border-radius: 8px;
}

.director-shot-card.active {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.director-shot-card strong {
  display: block;
  margin-bottom: 8px;
}

.director-output-full {
  margin-top: 14px;
}

.director-tools {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.director-tools [aria-pressed="true"] {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.director-shot-inspector,
.director-platform-pack {
  color: rgba(248, 255, 243, 0.82);
  line-height: 1.65;
}

.director-copy-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.tool-select {
  min-width: 0;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: 0;
  padding: 22px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(200, 255, 0, 0.13), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.breakdown {
  display: grid;
  gap: 0;
  margin: 0;
}

.breakdown div,
.breakdown dt,
.breakdown dd {
  margin: 0;
}

.breakdown dt {
  padding-top: 12px;
  color: rgba(200, 255, 0, 0.74);
  font-size: 12px;
  font-weight: 900;
}

.breakdown dd {
  padding: 6px 0 12px;
  color: rgba(248, 255, 243, 0.82);
  line-height: 1.6;
  border-bottom: 1px solid rgba(248, 255, 243, 0.12);
}

.history {
  display: grid;
  gap: 10px;
  max-height: 230px;
  margin: 0;
  padding-left: 20px;
  overflow: auto;
}

.history li {
  color: rgba(248, 255, 243, 0.78);
  line-height: 1.55;
}

.text-button {
  min-height: auto;
  padding: 0;
  color: var(--acid);
  background: transparent;
  border: 0;
}

.copy-dialog {
  width: min(860px, calc(100vw - 32px));
  padding: 0;
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

.copy-dialog form {
  padding: 24px;
  background: #fffdf6;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.dialog-head h2 {
  margin-bottom: 0;
}

.dialog-actions {
  display: flex;
  gap: 10px;
}

#manualCopyText {
  min-height: 300px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.modules {
  background:
    linear-gradient(180deg, rgba(5, 7, 8, 0.98), rgba(7, 10, 12, 0.94)),
    repeating-linear-gradient(-8deg, transparent 0 22px, rgba(255, 255, 255, 0.05) 22px 23px);
}

.section-heading p,
.visual-copy p,
.workflow-card > p,
.access-section > div > p {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2,
.visual-copy h2,
.workflow-card h2,
.access-section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-card,
.sample-card,
.workflow-card,
.access-panel {
  background: rgba(255, 253, 246, 0.84);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.module-card {
  position: relative;
  min-height: 360px;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  color: #f8fff3;
  background:
    linear-gradient(135deg, rgba(5, 7, 8, 0.94), rgba(12, 16, 18, 0.82)),
    radial-gradient(circle at 82% 16%, rgba(200, 255, 0, 0.2), transparent 34%);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow:
    8px 8px 0 rgba(200, 255, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-1deg);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.module-card:nth-child(2) {
  transform: rotate(1.2deg);
}

.module-card:nth-child(3) {
  transform: rotate(-0.4deg);
}

.module-card:hover,
.module-card:focus-visible {
  border-color: var(--acid);
  box-shadow:
    10px 10px 0 rgba(200, 255, 0, 0.42),
    0 0 42px rgba(200, 255, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.module-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.74);
  outline-offset: 4px;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -42px auto;
  width: 210px;
  height: 210px;
  opacity: 0.46;
  background:
    radial-gradient(circle, currentColor 0 2px, transparent 3px),
    linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.14));
  background-size: 16px 16px, auto;
  transform: rotate(16deg);
}

.module-card span {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 10px;
  color: var(--ink);
  font-weight: 900;
  background: var(--acid);
  border: 2px solid var(--ink);
}

.module-card h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 2.6vw, 44px);
  color: #f8fff3;
}

.module-card p,
.sample-card p,
.access-panel p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.module-card p {
  color: rgba(248, 255, 243, 0.72);
}

.module-open-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 16px;
  color: #fff;
  font-weight: 900;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
}

.module-open-button:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.module-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.module-card li {
  padding: 10px 12px;
  font-weight: 800;
  background: rgba(17, 21, 18, 0.06);
  border-left: 5px solid currentColor;
}

.accent-green {
  color: #426900;
}

.accent-red {
  color: var(--red);
}

.accent-blue {
  color: #0066d6;
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 38px;
  align-items: stretch;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 21, 18, 0.94), rgba(17, 21, 18, 0.84)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255, 255, 255, 0.08) 24px 25px);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.visual-copy span {
  display: block;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.8;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.style-grid div {
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--ink);
  text-align: center;
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 900;
  background: var(--acid);
  border: 2px solid #fff;
}

.style-grid div:nth-child(3n) {
  color: #fff;
  background: var(--red);
}

.style-grid div:nth-child(4n) {
  color: #fff;
  background: var(--cyan);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sample-card {
  min-height: 240px;
  padding: 24px;
}

.sample-card h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

.workflow-card {
  padding: clamp(28px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(200, 255, 0, 0.24), rgba(255, 253, 246, 0.9)),
    #fffdf6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.steps div {
  min-height: 160px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.steps strong {
  display: block;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 30px;
}

.steps span {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 22px;
  align-items: center;
}

.access-panel {
  padding: clamp(24px, 3vw, 42px);
}

.compact {
  margin-top: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--ink);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: var(--acid);
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .hero-section,
  .visual-band,
  .access-section,
  .generator-head,
  .generator {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .module-grid,
  .sample-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .controls,
  .character-controls,
  .creature-controls,
  .pet-controls,
  .director-controls {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .result-panel {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .prompt-tools {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

/* Reference redesign: anime street landing page */
:root {
  --lime: #c8ff00;
  --hot-pink: #ff39bc;
  --electric: #15e6ff;
  --violet: #8b5cff;
  --night: #050607;
  --panel: #0d1112;
}

body {
  color: #fff;
  background:
    radial-gradient(circle at 9% 30%, rgba(87, 64, 255, 0.18), transparent 18%),
    radial-gradient(circle at 94% 46%, rgba(200, 255, 0, 0.14), transparent 20%),
    linear-gradient(180deg, #040506 0%, #080a0c 42%, #030405 100%);
}

body::before {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(21, 230, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 57, 188, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

.site-app {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 9% 30%, rgba(87, 64, 255, 0.14), transparent 18%),
    radial-gradient(circle at 94% 46%, rgba(200, 255, 0, 0.11), transparent 20%),
    #040506;
}

.site-app::before,
.site-app::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.site-app::before {
  inset: 520px auto auto -80px;
  width: 260px;
  height: 520px;
  background:
    radial-gradient(circle, rgba(21, 230, 255, 0.68) 0 2px, transparent 3px),
    linear-gradient(135deg, transparent 48%, rgba(139, 92, 255, 0.7) 49% 52%, transparent 53%);
  background-size: 14px 14px, auto;
  transform: rotate(-14deg);
}

.site-app::after {
  right: -90px;
  bottom: 290px;
  width: 290px;
  height: 290px;
  background:
    radial-gradient(circle, rgba(200, 255, 0, 0.78) 0 3px, transparent 4px);
  background-size: 16px 16px;
  transform: rotate(12deg);
}

.reference-header {
  padding: 30px clamp(56px, 6vw, 120px) 14px;
}

.reference-header .nav-shell {
  max-width: 1180px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: auto;
  height: auto;
  color: #fff;
  font-size: 28px;
  background: transparent;
  border: 0;
  transform: none;
}

.brand strong {
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 950;
}

.brand strong em,
.footer-brand em,
.reference-hero h1 em {
  color: var(--lime);
  font-style: italic;
}

.nav-links {
  gap: clamp(18px, 3vw, 38px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 12px 0;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.85);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.login-button {
  min-height: 40px;
  padding: 0 24px;
  color: #fff;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
}

.nav-cta,
.primary-button {
  color: #080a0a;
  background: var(--lime);
  border: 0;
  border-radius: 5px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    5px 5px 0 rgba(0, 0, 0, 0.72);
}

.reference-hero {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(560px, 0.92fr) minmax(360px, 1.08fr);
  max-width: 1180px;
  min-height: 650px;
  padding: 78px clamp(18px, 4vw, 46px) 58px;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.98) 0%, rgba(3, 4, 5, 0.86) 38%, rgba(3, 4, 5, 0.18) 76%),
    url("./assets/ref-hero-city-clean.png") right 10px top 8px / min(710px, 58vw) auto no-repeat;
}

.reference-hero::before {
  content: "CREATE MORE";
  position: absolute;
  left: -58px;
  top: 90px;
  color: transparent;
  font-size: 18px;
  font-weight: 900;
  writing-mode: vertical-rl;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}

.reference-hero h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(58px, 6.2vw, 92px);
  line-height: 0.94;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.55);
}

.reference-hero h1 span {
  display: block;
  white-space: nowrap;
}

.reference-hero h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(27px, 2.8vw, 40px);
  line-height: 1.2;
  font-weight: 950;
  white-space: nowrap;
}

.reference-hero h2 strong {
  color: var(--lime);
}

.reference-hero h2 b {
  color: var(--electric);
}

.reference-hero h2 i {
  color: var(--hot-pink);
  font-style: normal;
}

.reference-hero .hero-description {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.reference-hero .hero-actions {
  margin-bottom: 28px;
}

.reference-hero .primary-button,
.reference-hero .ghost-button {
  min-width: 190px;
  min-height: 56px;
  font-size: 18px;
}

.reference-hero .primary-button::after,
.community-panel .primary-button::after {
  content: "\2192";
  margin-left: 12px;
}

.reference-hero .ghost-button {
  color: #fff;
  background: rgba(5, 6, 7, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.reference-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 610px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.reference-hero .hero-stats div {
  padding: 0 0 0 34px;
  border: 0;
  background:
    radial-gradient(circle at 10px 14px, transparent 0 8px, rgba(255, 255, 255, 0.8) 9px 10px, transparent 11px);
}

.reference-hero .hero-stats strong {
  font-size: 17px;
}

.reference-hero .hero-stats span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.reference-hero-art {
  min-height: 510px;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.reference-hero-art img {
  opacity: 0;
}

.reference-hero-art::after {
  display: none;
}

.hero-sticker {
  display: none;
  position: absolute;
  right: 6%;
  bottom: 46px;
  z-index: 3;
  padding: 18px 26px;
  color: #050607;
  background: #fff;
  border: 4px solid #050607;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.7);
  transform: rotate(-8deg);
  clip-path: polygon(0 17%, 14% 17%, 16% 0, 27% 16%, 100% 12%, 91% 50%, 100% 85%, 58% 80%, 48% 100%, 39% 82%, 0 86%, 9% 52%);
}

.hero-sticker strong,
.hero-sticker span {
  display: block;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 950;
}

.hero-sticker span {
  color: var(--hot-pink);
}

.section-block,
.visual-band,
.case-section,
.access-section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  padding: 58px clamp(18px, 4vw, 46px);
}

.reference-modules {
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.96), rgba(7, 8, 10, 0.92)),
    radial-gradient(circle at 3% 28%, rgba(139, 92, 255, 0.22), transparent 20%),
    radial-gradient(circle at 96% 12%, rgba(200, 255, 0, 0.24), transparent 16%);
}

.section-heading {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 28px;
}

.section-heading p,
.visual-copy p,
.case-copy p,
.creator-section > div > p {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  font-weight: 950;
  text-transform: none;
}

.section-heading h2,
.visual-copy h2,
.case-copy span,
.creator-section h2 {
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  line-height: 1.5;
}

.module-grid {
  gap: 22px;
  align-items: stretch;
}

.module-card {
  display: flex;
  min-height: 0;
  padding: 14px;
  overflow: visible;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #090b0d;
  border: 4px solid #f7f2e8;
  border-radius: 3px;
  box-shadow:
    9px 9px 0 rgba(0, 0, 0, 0.82),
    inset 0 0 0 1px rgba(0, 0, 0, 0.75);
  transform: none;
}

.reference-modules .module-card::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1.2;
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22)),
    var(--card-image) center / cover no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.72);
}

.card-inspiration {
  --card-image: url("./assets/module-gpt-inspiration.png");
}

.card-character {
  --card-image: url("./assets/module-gpt-character.png");
}

.card-creature {
  --card-image: url("./assets/module-gpt-creature.png");
}

.card-pet {
  --card-image: url("./assets/module-gpt-creature.png");
}

.module-card:nth-child(2) {
  min-height: 0;
  transform: none;
}

.module-card:nth-child(3) {
  transform: none;
}

.module-card span {
  margin-bottom: 8px;
  padding: 0;
  color: var(--lime);
  font-size: clamp(28px, 3.2vw, 42px);
  font-style: italic;
  background: transparent;
  border: 0;
  text-shadow: 0 4px 0 #050607;
}

.module-card h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.7vw, 34px);
  text-shadow: 0 3px 0 #050607;
}

.module-card p {
  max-width: none;
  min-height: 58px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  line-height: 1.65;
}

.module-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 8px 0 0;
}

.module-card li {
  padding: 0 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  background: transparent;
  border: 0;
}

.module-card li::before {
  content: "鈯?;
  margin-left: -18px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.module-open-button {
  width: fit-content;
  margin-top: auto;
  transform: translateY(10px);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: var(--lime);
  transform: translateY(-6px);
}

.reference-directions {
  display: block;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.98), rgba(6, 8, 9, 0.95)),
    linear-gradient(135deg, rgba(21, 230, 255, 0.08), transparent 36%);
  border: 0;
}

.visual-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.visual-copy p {
  margin-bottom: 8px;
}

.visual-copy h2 {
  margin: 0;
}

.visual-copy strong {
  color: var(--lime);
  font-size: clamp(42px, 7vw, 88px);
  font-style: italic;
  line-height: 0.8;
  text-shadow: 0 0 18px rgba(200, 255, 0, 0.5);
  transform: rotate(-10deg);
}

.style-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.style-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 160px;
  padding: 18px;
  overflow: hidden;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7)),
    var(--tile) center / cover;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 5px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.72);
}

.style-card:hover {
  border-color: var(--hot-pink);
  box-shadow: 0 0 24px rgba(255, 57, 188, 0.35);
}

.style-card span {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 950;
  text-shadow: 0 3px 0 #000;
}

.style-card small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.style-card span,
.style-card small {
  opacity: 0;
}

.case-section {
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.98), rgba(4, 5, 6, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(21, 230, 255, 0.16), transparent 24%);
}

.case-paper {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 34px;
  padding: clamp(28px, 4vw, 52px);
  color: #101315;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 238, 232, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.16), transparent 18%);
  border: 5px solid #050607;
  border-radius: 10px;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.86);
}

.case-copy > p {
  color: #111;
  margin-bottom: 8px;
}

.case-copy h2 {
  margin: 0 0 6px;
  color: #111;
  font-size: clamp(24px, 3vw, 38px);
}

.case-copy span {
  display: block;
  color: rgba(17, 21, 18, 0.72);
  margin-bottom: 26px;
}

.prompt-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 21, 18, 0.28);
  border-radius: 6px;
}

.prompt-card p {
  color: rgba(17, 21, 18, 0.78);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
}

.prompt-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 18px 0 0;
}

.prompt-card dt,
.prompt-card dd {
  margin: 0;
}

.prompt-card dt {
  font-weight: 900;
}

.case-art img {
  display: block;
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  border: 3px solid #111;
  border-radius: 4px;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb-strip span {
  height: 54px;
  background: url("./assets/ref-case-art.png") center / cover;
  border: 2px solid rgba(17, 21, 18, 0.35);
  border-radius: 4px;
}

.creator-section {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  color: #111;
  background:
    linear-gradient(180deg, #f7f5ef, #eae7df),
    radial-gradient(circle at 88% 0%, rgba(200, 255, 0, 0.28), transparent 26%);
}

.creator-section > div > p,
.creator-section h2 {
  color: #111;
}

.creator-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.creator-features article {
  display: grid;
  gap: 8px;
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid rgba(17, 21, 18, 0.18);
}

.creator-features strong {
  font-size: 18px;
}

.creator-features span {
  color: rgba(17, 21, 18, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.community-panel {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 240px;
  padding: 22px;
  overflow: hidden;
  background: #fff;
  border: 4px solid #050607;
  border-radius: 5px;
  box-shadow: 8px 8px 0 var(--lime);
  transform: rotate(-3deg);
}

.community-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-panel .primary-button {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-left: 26px;
}

.reference-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 44px;
  align-items: start;
  padding: 44px clamp(18px, 4vw, 56px);
  background:
    linear-gradient(180deg, rgba(10, 15, 17, 0.98), #050607);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-footer div {
  display: grid;
  gap: 10px;
  align-items: start;
}

.reference-footer strong {
  font-size: 18px;
}

.reference-footer a,
.reference-footer span {
  color: rgba(255, 255, 255, 0.66);
}

.footer-brand strong {
  font-size: 24px;
}

.footer-brand span {
  max-width: 310px;
  line-height: 1.7;
}

/* Final module layout guard: real cards, no cropped screenshot panels. */
.reference-modules .module-grid {
  align-items: stretch;
  gap: 22px;
}

.reference-modules .module-card {
  position: relative;
  isolation: auto;
  display: flex;
  min-height: 0;
  padding: 12px;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #090b0d;
  transform: none;
}

.reference-modules .module-card:nth-child(2),
.reference-modules .module-card:nth-child(3) {
  min-height: 0;
  transform: none;
}

.reference-modules .module-card::before {
  content: "";
  position: static;
  z-index: auto;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  flex: 0 0 auto;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22)),
    var(--card-image) center / cover no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.72);
}

.reference-modules .module-card > span,
.reference-modules .module-card > h3,
.reference-modules .module-card > p,
.reference-modules .module-card > ul,
.reference-modules .module-card > .module-open-button {
  opacity: 1;
}

.reference-modules .module-card > p {
  max-width: none;
  min-height: 0;
  margin-bottom: 12px;
}

.reference-modules .module-card > ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  gap: 7px 10px;
  margin-bottom: 14px;
}

.reference-modules .module-open-button {
  margin-top: auto;
  transform: none;
}

.reference-modules .module-card:hover,
.reference-modules .module-card:focus-visible {
  transform: translateY(-6px);
}

.style-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-content: end;
  min-height: 150px;
  padding: 0;
  overflow: hidden;
  background: var(--tile) center / cover no-repeat;
}

.style-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.style-card span,
.style-card small {
  position: relative;
  z-index: 1;
  opacity: 1;
  margin: 0 14px;
  text-shadow: 0 2px 0 #000;
}

.style-card span {
  margin-top: auto;
  font-size: clamp(20px, 2.1vw, 28px);
}

.style-card small {
  margin-bottom: 12px;
}

/* Modal big tabs and clearer control labels. */
.generator-shell .module-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.generator-shell .module-tab {
  display: grid;
  min-height: 76px;
  padding: 13px 16px;
  place-items: start;
  align-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(5, 7, 8, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: none;
}

.generator-shell .module-tab strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.generator-shell .module-tab span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.generator-shell .module-tab.active,
.generator-shell .module-tab:hover {
  color: #050607;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.72);
}

.generator-shell .module-tab.active strong,
.generator-shell .module-tab:hover strong {
  color: #050607;
}

.generator-shell .module-tab.active span,
.generator-shell .module-tab:hover span {
  color: rgba(5, 6, 7, 0.68);
}

.generator-shell .controls label {
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.25;
}

.generator-shell .controls select,
.generator-shell .controls input[type="text"] {
  min-height: 46px;
  font-size: 15px;
  font-weight: 800;
}

/* Prompt design console: selected v2 hologram direction, rebuilt as usable UI. */
.prompt-design-section {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) clamp(18px, 4vw, 48px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(200, 255, 0, 0.24), transparent 24%),
    radial-gradient(circle at 86% 34%, rgba(0, 211, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(4, 6, 8, 0.98), rgba(11, 14, 16, 0.92));
  border-top: 2px solid rgba(255, 255, 255, 0.16);
  border-bottom: 2px solid rgba(200, 255, 0, 0.26);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.prompt-design-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background: url("./assets/prompt-design-console-v2.png") center / cover no-repeat;
}

.prompt-design-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(200, 255, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 211, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, transparent 0 24%, rgba(0, 0, 0, 0.7) 68%);
  background-size: 30px 30px, 30px 30px, auto;
}

.prompt-design-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 30px;
}

.prompt-design-heading p {
  margin: 0 0 8px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-design-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(0, 211, 255, 0.34);
}

.prompt-design-heading span {
  display: block;
  max-width: 720px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 800;
  line-height: 1.7;
}

.prompt-design-console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.15fr) minmax(220px, 0.7fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}

.prompt-design-console::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  z-index: -1;
  border: 1px solid rgba(200, 255, 0, 0.28);
  box-shadow:
    0 0 42px rgba(200, 255, 0, 0.16),
    inset 0 0 58px rgba(0, 211, 255, 0.08);
  transform: skew(-8deg);
}

.prompt-pack-column {
  display: grid;
  gap: 14px;
  align-content: stretch;
}

.prompt-pack {
  position: relative;
  display: grid;
  min-height: 118px;
  padding: 18px 18px 17px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(7, 9, 10, 0.86);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.72),
    7px 7px 0 rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.prompt-pack::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px;
  height: 3px;
  background: currentColor;
  opacity: 0.72;
}

.prompt-pack strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.05;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.9);
}

.prompt-pack span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.prompt-pack:hover,
.prompt-pack:focus-visible {
  transform: translateY(-4px);
  border-color: currentColor;
  box-shadow:
    0 0 24px color-mix(in srgb, currentColor 35%, transparent),
    7px 7px 0 rgba(0, 0, 0, 0.58);
  outline: 0;
}

.pack-lens,
.pack-style {
  color: var(--acid);
}

.pack-light,
.pack-creature {
  color: #00d7ff;
}

.pack-mood,
.pack-negative {
  color: #ff4b67;
}

.pack-world,
.pack-character {
  color: #b78cff;
}

.prompt-design-core {
  display: grid;
  grid-template-rows: auto minmax(330px, 1fr) auto;
  min-height: 520px;
  padding: clamp(18px, 2.5vw, 28px);
  background:
    linear-gradient(180deg, rgba(200, 255, 0, 0.12), transparent 36%),
    rgba(2, 5, 6, 0.94);
  border: 2px solid rgba(200, 255, 0, 0.76);
  border-radius: 10px;
  box-shadow:
    0 0 48px rgba(200, 255, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.prompt-design-core-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
}

.prompt-design-core-head strong {
  color: var(--acid);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
}

.prompt-design-core-head span {
  max-width: 250px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.prompt-design-core textarea {
  width: 100%;
  min-width: 0;
  min-height: 330px;
  padding: 18px;
  color: #f7fff0;
  font: 800 16px/1.75 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  resize: vertical;
  background:
    linear-gradient(rgba(200, 255, 0, 0.07) 1px, transparent 1px),
    rgba(0, 0, 0, 0.56);
  background-size: 100% 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  outline: 0;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.42);
}

.prompt-design-core textarea:focus {
  border-color: var(--acid);
  box-shadow:
    0 0 0 3px rgba(200, 255, 0, 0.14),
    inset 0 0 28px rgba(0, 0, 0, 0.42);
}

.prompt-design-actions {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.prompt-design-actions button {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 7px;
  cursor: pointer;
}

.prompt-design-actions button:nth-child(2),
.prompt-design-actions button:nth-child(3) {
  color: #050607;
  background: var(--acid);
  border-color: var(--acid);
}

.prompt-design-actions button:hover,
.prompt-design-actions button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.72);
  outline: 0;
}

@media (max-width: 1080px) {
  .prompt-design-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-design-console {
    grid-template-columns: 1fr;
  }

  .prompt-design-console::before {
    inset: 8% 3%;
    transform: none;
  }

  .prompt-pack-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-design-core {
    order: -1;
  }
}

/* Final widescreen + prompt system pass. */
.site-app,
.reference-header,
.reference-hero,
.reference-modules,
.reference-directions,
.case-section,
.creator-section,
.reference-footer {
  width: 100%;
}

.reference-header .nav-shell,
.reference-hero,
.section-block,
.visual-band,
.access-section,
.reference-footer {
  max-width: none;
}

.reference-header .nav-shell {
  width: min(100% - clamp(72px, 7vw, 136px), 1720px);
}

.reference-hero {
  grid-template-columns: minmax(480px, 0.88fr) minmax(660px, 1.12fr);
  min-height: calc(100vh - 78px);
  padding-inline: clamp(60px, 8vw, 180px);
}

.reference-hero h1 {
  font-size: clamp(68px, 6.1vw, 142px);
}

.reference-hero .hero-description {
  max-width: 760px;
}

.reference-modules,
.visual-band,
.case-section,
.creator-section {
  padding-inline: clamp(54px, 8vw, 180px);
}

.prompt-design-section {
  width: 100%;
  min-height: calc(100vh - 76px);
  padding: clamp(70px, 8vh, 110px) clamp(54px, 8vw, 180px);
  border-top: 1px solid rgba(200, 255, 0, 0.4);
  border-bottom: 1px solid rgba(200, 255, 0, 0.42);
}

.prompt-design-heading {
  max-width: 1500px;
  margin-inline: auto;
}

.prompt-design-heading h2 {
  font-size: clamp(64px, 6.2vw, 118px);
  text-shadow:
    5px 5px 0 rgba(0, 211, 255, 0.42),
    0 0 30px rgba(200, 255, 0, 0.16);
}

.prompt-design-console {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.18fr) minmax(260px, 0.72fr);
  gap: clamp(24px, 3vw, 44px);
  width: 100%;
  min-height: 560px;
  margin: 0 auto;
  align-items: stretch;
}

.prompt-design-tabs,
.prompt-design-pages {
  display: none;
}

.prompt-pack-left,
.prompt-pack-right {
  display: grid;
  gap: 18px;
}

.prompt-pack {
  min-height: clamp(126px, 13vh, 168px);
  padding: clamp(20px, 2vw, 28px);
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(17, 19, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.34);
}

.prompt-pack strong {
  font-size: clamp(30px, 2.8vw, 48px);
}

.prompt-pack span {
  font-size: clamp(14px, 1vw, 17px);
}

.prompt-design-core {
  min-height: 100%;
  border-color: var(--acid);
}

.prompt-design-core textarea {
  min-height: clamp(360px, 44vh, 560px);
  font-size: clamp(16px, 1.05vw, 20px);
}

.prompt-choice-active {
  overflow: hidden;
}

.prompt-choice-overlay[hidden] {
  display: none;
}

.prompt-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 46px);
  background:
    radial-gradient(circle at 22% 18%, rgba(200, 255, 0, 0.2), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(0, 215, 255, 0.16), transparent 30%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.prompt-choice-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  width: min(100%, 1760px);
  height: min(92vh, 1040px);
  padding: clamp(22px, 3vw, 46px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(200, 255, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 215, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(3, 7, 8, 0.98), rgba(12, 15, 16, 0.94));
  background-size: 34px 34px, 34px 34px, auto;
  border: 2px solid rgba(200, 255, 0, 0.72);
  border-radius: 10px;
  box-shadow:
    0 0 70px rgba(200, 255, 0, 0.2),
    16px 16px 0 rgba(200, 255, 0, 0.2);
}

.prompt-choice-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: url("./assets/prompt-design-console-v2.png") center / cover no-repeat;
  mix-blend-mode: screen;
}

.prompt-choice-head,
.prompt-choice-grid {
  position: relative;
  z-index: 1;
}

.prompt-choice-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.prompt-choice-head p {
  margin-bottom: 8px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-choice-head h3 {
  margin: 0;
  font-size: clamp(48px, 5vw, 92px);
  line-height: 1;
  text-shadow: 5px 5px 0 rgba(0, 215, 255, 0.34);
}

.prompt-choice-head span {
  display: block;
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 800;
  line-height: 1.65;
}

.prompt-choice-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 300px;
}

.prompt-choice-tools span {
  width: 100%;
  margin: 0;
  color: rgba(200, 255, 0, 0.82);
  font-size: 13px;
  text-align: right;
}

.prompt-choice-tools button {
  min-height: 44px;
  padding: 0 18px;
  color: #050607;
  font-weight: 900;
  background: var(--acid);
  border: 2px solid var(--acid);
  border-radius: 7px;
  cursor: pointer;
}

.prompt-choice-tools button:last-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

.prompt-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.prompt-choice-card {
  position: relative;
  display: grid;
  min-height: clamp(170px, 20vh, 260px);
  padding: clamp(20px, 2vw, 30px);
  color: #fff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(7, 9, 10, 0.9);
  border: 2px solid currentColor;
  border-radius: 9px;
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.48);
  cursor: pointer;
}

.prompt-choice-card strong {
  color: currentColor;
  font-size: clamp(34px, 3vw, 56px);
  font-style: italic;
  line-height: 1;
}

.prompt-choice-card span {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.2vw, 21px);
  font-weight: 900;
  line-height: 1.75;
}

.prompt-choice-card small {
  align-self: end;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
}

.prompt-choice-card:hover,
.prompt-choice-card:focus-visible {
  transform: translateY(-5px);
  box-shadow:
    0 0 34px color-mix(in srgb, currentColor 34%, transparent),
    9px 9px 0 rgba(0, 0, 0, 0.62);
  outline: 0;
}

@media (max-width: 1200px) {
  .reference-hero {
    grid-template-columns: 1fr;
    padding-inline: clamp(28px, 6vw, 80px);
  }

  .prompt-design-console {
    grid-template-columns: 1fr;
  }

  .prompt-design-core {
    order: -1;
  }

  .prompt-pack-left,
  .prompt-pack-right,
  .prompt-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Homepage recovery: keep the landing page full-bleed without crushing the hero art. */
.reference-hero {
  grid-template-columns: minmax(520px, 0.72fr) minmax(640px, 1.28fr);
  gap: clamp(18px, 2.2vw, 48px);
  max-width: none;
  min-height: calc(100svh - 76px);
  padding: clamp(84px, 11vh, 150px) clamp(42px, 5.4vw, 112px) clamp(52px, 7vh, 96px);
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.98) 0%, rgba(3, 4, 5, 0.84) 35%, rgba(3, 4, 5, 0.28) 63%, rgba(3, 4, 5, 0.08) 100%),
    url("./assets/ref-hero-city-clean.png") right clamp(8px, 2vw, 44px) center / min(1180px, 62vw) auto no-repeat;
}

.reference-hero h1 {
  max-width: 980px;
  font-size: clamp(58px, 5vw, 104px);
}

.reference-hero h2 {
  font-size: clamp(25px, 2.3vw, 39px);
  white-space: normal;
}

.reference-hero .hero-description {
  max-width: 720px;
}

.reference-hero-art {
  min-height: clamp(430px, 56vh, 720px);
}

/* 2026-06-08 homepage reset: stable hero, simplified nav, and AI tools directory. */
html {
  scroll-behavior: smooth;
}

.reference-header {
  padding: 6px clamp(40px, 5vw, 96px);
  background:
    linear-gradient(180deg, rgba(3, 5, 6, 0.96), rgba(3, 5, 6, 0.72) 72%, rgba(3, 5, 6, 0));
  backdrop-filter: blur(16px);
}

.reference-header .nav-shell {
  display: grid;
  grid-template-columns: minmax(230px, auto) minmax(320px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.6vw, 52px);
  width: min(100% - clamp(96px, 10vw, 190px), 1680px);
  min-height: 42px;
  padding-block: 2px;
  padding-inline: clamp(12px, 1.4vw, 28px);
}

.reference-header .brand {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.reference-header .brand > span:last-child {
  min-width: 0;
  overflow: hidden;
}

.reference-header .brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-header .nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 1.7vw, 36px);
  min-width: 0;
  white-space: nowrap;
}

.reference-header .nav-links a {
  padding: 7px 0;
  font-size: clamp(14px, 0.82vw, 17px);
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
}

.reference-header .login-button,
.reference-header .nav-cta {
  min-height: clamp(26px, 2.2vw, 32px);
  padding-inline: clamp(10px, 1.1vw, 16px);
  font-size: clamp(12px, 0.78vw, 14px);
  line-height: 1;
}

.reference-header .nav-actions {
  justify-self: end;
  gap: clamp(6px, 0.8vw, 12px);
}

.reference-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  gap: clamp(34px, 5vw, 96px);
  width: 100%;
  max-width: none;
  min-height: max(720px, calc(100svh - 70px));
  padding: clamp(82px, 9vh, 128px) clamp(56px, 6vw, 128px) clamp(54px, 6vh, 92px);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 64%, rgba(0, 215, 255, 0.12), transparent 26%),
    radial-gradient(circle at 75% 42%, rgba(190, 255, 0, 0.14), transparent 31%),
    linear-gradient(90deg, #030506 0%, #050707 48%, #030506 100%);
}

.reference-hero::before {
  left: clamp(14px, 2.2vw, 38px);
  top: 50%;
  opacity: 0.38;
}

.reference-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 215, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(190, 255, 0, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to top, #000, transparent);
}

.reference-hero .hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 820px);
  justify-self: end;
}

.reference-hero h1 {
  max-width: none;
  margin: 0 0 12px;
  font-size: clamp(62px, 5.2vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

.reference-hero h1 span {
  white-space: normal;
}

.reference-hero h2 {
  max-width: 850px;
  margin-bottom: 26px;
  font-size: clamp(28px, 2.1vw, 46px);
  line-height: 1.18;
  white-space: normal;
}

.reference-hero .hero-description {
  max-width: 720px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.85;
}

.reference-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.reference-hero .hero-stats {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  max-width: 760px;
}

.reference-hero-art {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  min-height: clamp(500px, 68vh, 820px);
  justify-self: start;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.reference-hero-art::before {
  content: "";
  position: absolute;
  inset: 5% -5% 1% -9%;
  z-index: -1;
  background:
    radial-gradient(circle at 36% 38%, rgba(190, 255, 0, 0.24), transparent 24%),
    radial-gradient(circle at 70% 50%, rgba(255, 44, 181, 0.18), transparent 30%);
  filter: blur(34px);
  opacity: 0.82;
}

.reference-hero-art img {
  display: block;
  width: 100%;
  height: clamp(500px, 68vh, 820px);
  opacity: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(190, 255, 0, 0.12),
    0 44px 120px rgba(0, 0, 0, 0.7);
  filter: saturate(1.12) contrast(1.07);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 100%);
}

.ai-tools-section {
  position: relative;
  z-index: 1;
  padding: clamp(74px, 8vw, 132px) clamp(34px, 5vw, 104px);
  background:
    linear-gradient(rgba(190, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 215, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(190, 255, 0, 0.15), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(0, 215, 255, 0.13), transparent 32%),
    #050707;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  border-top: 1px solid rgba(190, 255, 0, 0.14);
  border-bottom: 1px solid rgba(190, 255, 0, 0.12);
}

.ai-tools-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  align-items: end;
  gap: clamp(18px, 4vw, 74px);
  width: min(100%, 1720px);
  margin: 0 auto clamp(34px, 4vw, 58px);
}

.ai-tools-head p {
  grid-column: 1 / -1;
  margin: 0 0 -10px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-tools-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 4.2vw, 88px);
  line-height: 0.98;
  text-shadow: 5px 5px 0 rgba(0, 215, 255, 0.26);
}

.ai-tools-head span {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 800;
  line-height: 1.8;
}

.ai-tools-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px);
  width: min(100%, 1720px);
  margin: 0 auto;
}

.ai-tool-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 36px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 10, 11, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.38);
}

.ai-tool-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(190, 255, 0, 0.12) 43%, transparent 48%),
    radial-gradient(circle at 90% 0%, rgba(0, 215, 255, 0.18), transparent 30%);
}

.ai-tool-panel-head,
.ai-tool-groups {
  position: relative;
  z-index: 1;
}

.ai-tool-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(190, 255, 0, 0.5);
}

.ai-tool-panel-head strong {
  color: #fff;
  font-size: clamp(24px, 1.8vw, 34px);
  line-height: 1.15;
}

.ai-tool-panel-head span {
  max-width: 380px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  text-align: right;
}

.ai-tool-groups {
  display: grid;
  gap: 22px;
}

.ai-tool-groups section {
  min-width: 0;
}

.ai-tool-groups h3 {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 15px;
  text-transform: uppercase;
}

.ai-tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.ai-tool-list a {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px 13px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ai-tool-list a:hover,
.ai-tool-list a:focus-visible {
  transform: translateY(-3px);
  color: #050607;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 24px rgba(190, 255, 0, 0.35);
  outline: 0;
}

.ai-tool-list strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-tool-list span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.ai-tool-list a:hover span,
.ai-tool-list a:focus-visible span {
  color: rgba(5, 6, 7, 0.72);
}

@media (max-width: 1380px) {
  .reference-header .nav-shell {
    width: min(100% - 36px, 1280px);
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }

  .reference-hero {
    grid-template-columns: minmax(380px, 0.9fr) minmax(480px, 1.1fr);
    gap: 42px;
    padding-inline: clamp(34px, 4vw, 72px);
  }

  .reference-hero .hero-copy {
    justify-self: start;
  }
}

@media (max-width: 1120px) {
  .reference-header .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }

  .reference-header .brand {
    max-width: min(100%, 250px);
  }

  .reference-header .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .reference-header .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .reference-header .nav-shell {
    position: relative;
    padding-right: 74px;
  }

  .reference-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 132px;
  }

  .reference-hero .hero-copy {
    width: min(100%, 900px);
  }

  .reference-hero-art {
    width: 100%;
    min-height: 440px;
  }

  .reference-hero-art img {
    height: clamp(380px, 54vw, 620px);
    mask-image: linear-gradient(180deg, #000 0 78%, transparent 100%);
  }

  .ai-tools-head,
  .ai-tools-columns {
    grid-template-columns: 1fr;
  }

  .ai-tools-head span {
    max-width: 900px;
  }
}

/* Dedicated AI tools navigator page. */
.tools-body {
  background: #030506;
  min-height: 100vh;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-y: contain;
}

@media (max-width: 520px) {
  .reference-header .nav-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: min(100% - 20px, 420px);
    padding: 8px 10px 10px;
  }

  .reference-header .brand {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    gap: 8px;
  }

  .reference-header .brand-mark {
    flex: 0 0 auto;
  }

  .reference-header .brand strong {
    font-size: 18px;
  }

  .reference-header .nav-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .reference-header .nav-links {
    grid-row: 3;
  }
}

@media (max-width: 400px) {
  .reference-header .brand {
    max-width: 100%;
  }

  .reference-header .brand strong {
    font-size: 16px;
  }
}

.nav-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tools-page {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(190, 255, 0, 0.18), transparent 22%),
    radial-gradient(circle at 82% 8%, rgba(0, 215, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 44, 181, 0.1), transparent 28%),
    #030506;
}

.tools-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(rgba(190, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 215, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.tools-page > * {
  position: relative;
  z-index: 1;
}

.tools-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 92px);
  min-height: clamp(520px, 72vh, 820px);
  padding: clamp(112px, 12vh, 166px) clamp(34px, 6vw, 128px) clamp(54px, 7vh, 90px);
  overflow: hidden;
}

.tools-hero-copy {
  max-width: 900px;
}

.tools-hero-copy p {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.tools-hero-copy h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(62px, 7vw, 136px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    7px 7px 0 rgba(0, 215, 255, 0.26),
    0 0 34px rgba(190, 255, 0, 0.18);
}

.tools-hero-copy span {
  display: block;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.22vw, 23px);
  font-weight: 850;
  line-height: 1.8;
}

.tools-radar {
  position: relative;
  justify-self: center;
  width: min(42vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(190, 255, 0, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(190, 255, 0, 0.18) 0 2px, transparent 3px 100%),
    repeating-radial-gradient(circle, transparent 0 64px, rgba(190, 255, 0, 0.12) 65px 66px),
    conic-gradient(from 90deg, rgba(190, 255, 0, 0.36), transparent 18%, rgba(0, 215, 255, 0.24), transparent 58%, rgba(255, 44, 181, 0.22), transparent);
  box-shadow:
    inset 0 0 70px rgba(0, 215, 255, 0.16),
    0 0 80px rgba(190, 255, 0, 0.12);
  animation: toolsRadarGlow 5s ease-in-out infinite alternate;
}

.tools-radar::before,
.tools-radar::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.tools-radar::after {
  inset: 28%;
  border-color: rgba(0, 215, 255, 0.32);
}

.tools-radar span {
  position: absolute;
  width: 13px;
  aspect-ratio: 1;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(190, 255, 0, 0.9);
}

.tools-radar span:nth-child(1) { left: 21%; top: 28%; }
.tools-radar span:nth-child(2) { right: 16%; top: 36%; background: var(--electric); box-shadow: 0 0 22px rgba(0, 215, 255, 0.9); }
.tools-radar span:nth-child(3) { left: 42%; bottom: 17%; background: var(--hot-pink); box-shadow: 0 0 22px rgba(255, 44, 181, 0.86); }
.tools-radar span:nth-child(4) { right: 32%; bottom: 39%; }

.tools-radar strong {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #050607;
  padding: 16px 24px;
  background: var(--lime);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.58);
  font-size: clamp(24px, 2.5vw, 42px);
  font-style: italic;
}

.tools-console {
  position: sticky;
  top: 70px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 18px;
  width: min(100% - 68px, 1760px);
  margin: 0 auto clamp(44px, 5vw, 76px);
  padding: 18px;
  background: rgba(5, 7, 8, 0.78);
  border: 1px solid rgba(190, 255, 0, 0.32);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.tools-search {
  display: grid;
  gap: 8px;
}

.tools-search label {
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.tools-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  outline: 0;
}

.tools-search input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(190, 255, 0, 0.15);
}

.tools-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.tools-filters button {
  min-height: 42px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 950;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.tools-filters button.active,
.tools-filters button:hover {
  color: #050607;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 22px rgba(190, 255, 0, 0.28);
}

.tool-zone {
  width: min(100% - 68px, 1760px);
  margin: 0 auto clamp(72px, 7vw, 120px);
}

.tool-zone-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(420px, 1fr);
  align-items: end;
  gap: clamp(16px, 3vw, 54px);
  margin-bottom: clamp(24px, 3vw, 42px);
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(190, 255, 0, 0.46);
}

.tool-zone-head p {
  grid-column: 1 / -1;
  margin: 0 0 -8px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.tool-zone-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4.4vw, 84px);
  line-height: 0.98;
}

.tool-zone-head span {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 850;
  line-height: 1.75;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.tool-card {
  min-width: 0;
}

.tool-card[hidden] {
  display: none;
}

.tool-card a {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(8, 10, 11, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tool-card a::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(120deg, transparent 0 54%, rgba(190, 255, 0, 0.11) 55%, transparent 61%),
    radial-gradient(circle at 100% 0%, rgba(0, 215, 255, 0.18), transparent 33%);
}

.tool-card.hot a {
  border-color: rgba(190, 255, 0, 0.5);
}

.tool-card a:hover,
.tool-card a:focus-visible {
  transform: translate(-3px, -5px);
  border-color: var(--lime);
  box-shadow:
    0 0 34px rgba(190, 255, 0, 0.22),
    12px 12px 0 rgba(0, 0, 0, 0.56);
  outline: 0;
}

.tool-card span,
.tool-card strong,
.tool-card p,
.tool-card small {
  position: relative;
  z-index: 1;
}

.tool-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tool-card b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: #050607;
  background: var(--lime);
  font-size: 13px;
  font-style: normal;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.54);
}

.tool-card em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.tool-card strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(23px, 1.7vw, 31px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.58;
}

.tool-card small {
  overflow: hidden;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes toolsRadarGlow {
  from {
    transform: rotate(-1deg) scale(0.985);
  }
  to {
    transform: rotate(1deg) scale(1.015);
  }
}

@media (max-width: 1120px) {
  .tools-hero,
  .tools-console,
  .tool-zone-head {
    grid-template-columns: 1fr;
  }

  .tools-radar {
    width: min(82vw, 520px);
  }

  .tools-console {
    position: relative;
    top: auto;
  }
}

/* Final responsive polish after screenshot review. */
.reference-hero h1 {
  font-size: clamp(54px, 4.15vw, 90px);
}

.reference-hero h1 span {
  white-space: nowrap;
}

.reference-hero {
  grid-template-columns: minmax(520px, 0.9fr) minmax(620px, 1.1fr);
}

.reference-hero-art {
  display: block !important;
}

.tools-hero {
  min-height: clamp(460px, 58vh, 650px);
  padding-top: clamp(96px, 10vh, 132px);
  padding-bottom: clamp(26px, 4vh, 48px);
}

.tools-hero-copy h1 {
  font-size: clamp(48px, 4.8vw, 92px);
  white-space: nowrap;
}

.tools-radar {
  width: min(34vw, 520px);
}

.tools-console {
  margin-bottom: clamp(30px, 3.5vw, 52px);
}

@media (max-width: 1120px) {
  .reference-hero {
    grid-template-columns: 1fr;
    padding-top: 126px;
  }

  .reference-hero h1 {
    font-size: clamp(48px, 8vw, 78px);
  }

  .reference-hero h1 span {
    white-space: normal;
  }

  .reference-hero-art {
    display: block !important;
    min-height: 360px;
    margin-top: -10px;
  }

  .reference-hero-art img {
    height: clamp(330px, 48vw, 520px);
    object-position: center;
  }

  .tools-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 28px;
  }

  .tools-hero-copy h1 {
    white-space: normal;
  }

  .tools-radar {
    width: min(58vw, 440px);
  }
}

/* Final tools page density and filter polish. */
.tools-hero {
  grid-template-columns: minmax(380px, 0.9fr) minmax(260px, 0.56fr);
  gap: clamp(18px, 3vw, 50px);
  min-height: clamp(260px, 35vh, 390px);
  padding-top: clamp(82px, 8vh, 106px);
  padding-bottom: clamp(10px, 1.8vh, 20px);
}

.tools-hero-copy span {
  max-width: 700px;
  line-height: 1.62;
}

.tools-radar {
  width: min(24vw, 320px);
}

.tools-console {
  align-items: end;
  margin-top: 0;
  margin-bottom: clamp(16px, 2vw, 28px);
  padding: 14px;
}

.tools-search input {
  font-weight: 850;
}

.tools-filters {
  max-height: 96px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.tools-filters button {
  min-width: 76px;
  min-height: 38px;
  padding: 0 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tool-zone {
  margin-bottom: clamp(48px, 5vw, 86px);
}

.tool-zone-head {
  grid-template-columns: minmax(250px, 0.5fr) minmax(360px, 1fr);
  margin-bottom: clamp(16px, 2vw, 28px);
  padding-bottom: 16px;
}

.tool-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.tool-card a {
  min-height: 188px;
}

.tools-empty {
  margin: 0;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1120px) {
  .tools-hero {
    gap: 18px;
    min-height: auto;
    padding-top: 102px;
    padding-bottom: 14px;
  }

  .tools-radar {
    width: min(48vw, 300px);
    margin-top: -4px;
  }

  .tools-console {
    width: min(100% - 36px, 1760px);
    margin-bottom: 22px;
  }

  .tools-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    max-height: none;
    overflow-x: auto;
  }

  .tools-filters button {
    padding: 0 10px;
  }
}

/* 2026-06-08 dynamic video homepage: fill the first viewport with motion. */
.reference-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.84fr) minmax(680px, 1.16fr);
  align-items: center;
  gap: clamp(34px, 4.2vw, 92px);
  width: 100%;
  min-height: 100svh;
  padding: clamp(92px, 11vh, 142px) clamp(48px, 6vw, 128px) clamp(56px, 7vh, 104px);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 70%, rgba(0, 215, 255, 0.16), transparent 25%),
    radial-gradient(circle at 84% 28%, rgba(190, 255, 0, 0.20), transparent 31%),
    linear-gradient(90deg, #020405 0%, #030607 42%, #050807 100%);
}

.reference-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(rgba(190, 255, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 215, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  mix-blend-mode: normal;
}

.reference-hero .hero-copy {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: min(100%, 790px);
  padding-top: clamp(12px, 3vh, 36px);
}

.reference-hero h1 {
  font-size: clamp(62px, 5.6vw, 116px);
}

.reference-hero h2 {
  font-size: clamp(28px, 2.25vw, 48px);
}

.reference-hero .hero-description {
  max-width: 720px;
}

.hero-video-art {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  width: calc(100% + clamp(40px, 5vw, 120px));
  min-height: clamp(560px, 74vh, 860px);
  margin-right: calc(-1 * clamp(26px, 3.8vw, 92px));
  overflow: hidden;
  background: #030506;
  border: 1px solid rgba(190, 255, 0, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 215, 255, 0.08),
    0 42px 130px rgba(0, 0, 0, 0.72);
  isolation: isolate;
}

.hero-video-art::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 4, 5, 0.78) 0%, rgba(2, 4, 5, 0.18) 22%, transparent 48%),
    radial-gradient(circle at 72% 24%, rgba(190, 255, 0, 0.16), transparent 26%),
    radial-gradient(circle at 42% 72%, rgba(255, 44, 181, 0.13), transparent 28%);
}

.hero-video-art video,
.hero-video-art img {
  display: block;
  width: 100%;
  height: clamp(560px, 74vh, 860px);
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.08) brightness(0.82);
}

.hero-video-art img {
  display: none;
}

@media (max-width: 1280px) {
  .reference-hero {
    grid-template-columns: minmax(360px, 0.92fr) minmax(500px, 1.08fr);
    padding-inline: clamp(30px, 4vw, 72px);
  }

  .hero-video-art {
    min-height: clamp(500px, 68vh, 720px);
  }

  .hero-video-art video,
  .hero-video-art img {
    height: clamp(500px, 68vh, 720px);
  }
}

/* P0 handoff pass: full-viewport homepage and nine-category generator tabs. */
.site-app {
  min-height: 100svh;
}

.reference-hero {
  max-width: none;
  margin: 0;
  grid-template-columns: minmax(460px, 0.86fr) minmax(720px, 1.14fr);
  align-items: stretch;
  min-height: calc(100svh - 74px);
  padding: clamp(30px, 4vh, 56px) clamp(36px, 5vw, 112px) clamp(44px, 6vh, 82px);
}

.reference-hero .hero-copy {
  align-self: center;
  justify-self: stretch;
  width: min(100%, 860px);
}

.reference-hero h1 {
  font-size: clamp(60px, 5.2vw, 112px);
}

.reference-hero h2 {
  max-width: 780px;
  font-size: clamp(26px, 2vw, 44px);
  white-space: normal;
}

.reference-hero .hero-description {
  max-width: 760px;
}

.hero-video-art {
  align-self: stretch;
  width: calc(100% + clamp(54px, 6vw, 138px));
  min-height: 100%;
  margin-right: calc(-1 * clamp(36px, 5vw, 112px));
}

.hero-video-art video,
.hero-video-art img {
  height: 100%;
  min-height: 100%;
}

.generator-shell {
  width: min(1540px, calc(100vw - 36px));
  height: min(920px, calc(100dvh - 28px));
  overflow: auto;
}

.generator-shell .module-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
}

.generator-shell .module-tab {
  min-width: 0;
  min-height: 64px;
  padding: 11px 13px;
  overflow: hidden;
}

.generator-shell .module-tab strong,
.generator-shell .module-tab span {
  overflow-wrap: anywhere;
}

.generator-shell .module-tab strong {
  font-size: clamp(16px, 1.1vw, 19px);
}

.generator-shell .theme-filter {
  display: none;
}

.generator-shell .theme-filter.is-active {
  display: grid;
}

.generator-head h2 {
  font-size: clamp(28px, 3.4vw, 54px);
}

@media (max-width: 1280px) {
  .reference-hero {
    grid-template-columns: minmax(360px, 0.92fr) minmax(500px, 1.08fr);
    padding-inline: clamp(26px, 4vw, 66px);
  }
}

/* Functional generator layout pass: keep the website skin, restore tool-grade usability. */
.generator-shell {
  width: min(1760px, calc(100vw - 18px));
  height: min(980px, calc(100dvh - 18px));
  padding: clamp(14px, 1.4vw, 22px);
}

.generator-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.generator-head h2 {
  margin-bottom: 8px;
  font-size: clamp(36px, 3.15vw, 58px);
}

.generator-head p:last-child {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.55;
}

.top-actions {
  align-items: center;
}

.top-actions .compact {
  min-height: 46px;
}

.push-image-button {
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), #fff500 58%, var(--cyan));
  border-color: var(--acid);
  box-shadow:
    4px 4px 0 rgba(0, 215, 255, 0.24),
    0 0 22px rgba(200, 255, 0, 0.24);
}

.push-image-button:hover {
  color: var(--ink);
  filter: brightness(1.08);
}

.domestic-optimize-button {
  border-color: rgba(200, 255, 0, 0.58);
  color: var(--acid);
}

.domestic-optimize-button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: 4px 4px 0 rgba(200, 255, 0, 0.26);
}

.generator-shell .module-tabs {
  grid-template-columns: repeat(9, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.generator-shell .module-tab {
  min-height: 60px;
  padding: 9px 12px;
}

.generator-shell .module-tab strong {
  font-size: clamp(15px, 1vw, 18px);
}

.generator-shell .module-tab span {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
}

.controls {
  grid-template-columns: repeat(8, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px;
}

.character-controls,
.creature-controls,
.pet-controls,
.director-controls {
  grid-template-columns: repeat(8, minmax(130px, 1fr));
}

.controls label {
  gap: 6px;
  font-size: 12px;
}

.generator-shell select,
.generator-shell input[type="text"] {
  min-height: 38px;
  padding-inline: 10px;
}

.filter-action {
  align-self: end;
}

.filter-action button {
  width: 100%;
  min-height: 38px;
}

.pet-toggle-action button[aria-pressed="true"] {
  color: #071009;
  background: linear-gradient(135deg, #c8ff00, #00d7ff);
  border-color: rgba(200, 255, 0, 0.9);
  box-shadow: 0 0 0 1px rgba(200, 255, 0, 0.38), 0 0 18px rgba(0, 215, 255, 0.22);
}

.generator {
  min-height: 0;
}

.result-panel {
  padding: 18px;
}

.side-panel {
  padding: 18px;
}

.panel-head {
  margin-bottom: 10px;
}

.panel-head h3 {
  font-size: 24px;
}

.generator-shell textarea {
  min-height: 250px;
  font-size: 15px;
  line-height: 1.7;
}

.prompt-tools {
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.prompt-tools button,
.prompt-tools select {
  min-height: 36px;
}

/* Keep generated output and lower tool controls reachable inside the modal. */
.generator-modal-open .module-panel {
  overflow: auto;
}

.generator-modal-open .generator,
.generator-modal-open .result-panel {
  overflow: visible;
}

.character-summary-card,
.creature-summary-card {
  margin-bottom: 10px;
}

@media (max-width: 1500px) {
  .generator-shell .module-tabs {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }

  .controls,
  .character-controls,
  .creature-controls,
  .pet-controls,
  .director-controls {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .reference-hero .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .hero-stats div {
    min-width: 0;
    padding: 14px 12px;
    border-right: 0;
  }

  .reference-hero .hero-stats div {
    min-width: 0;
    padding-left: 26px;
  }

  .generator-shell .module-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generator-shell .module-tab {
    min-width: 0;
  }

  .controls,
  .character-controls,
  .creature-controls,
  .pet-controls,
  .director-controls {
    grid-template-columns: 1fr;
  }

  .prompt-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-tools button,
  .prompt-tools select,
  .prompt-tools .tool-select {
    min-width: 0;
  }

  .access-section,
  .reference-footer {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .community-panel {
    width: 100%;
    transform: none;
  }

  .reference-footer > * {
    min-width: 0;
  }
}

/* Homepage hero final: video must be a full-screen background, not a right-side box. */
.reference-hero {
  display: grid;
  grid-template-columns: minmax(0, 900px) 1fr;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 72px);
  margin: 0;
  padding: clamp(58px, 7vh, 96px) clamp(44px, 6vw, 118px) clamp(42px, 6vh, 82px);
  overflow: hidden;
  background: #020405;
}

.reference-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 4, 5, 0.76) 0%, rgba(2, 4, 5, 0.5) 28%, rgba(2, 4, 5, 0.18) 52%, transparent 78%),
    linear-gradient(rgba(190, 255, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 215, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.reference-hero .hero-copy {
  z-index: 4;
  align-self: center;
  justify-self: start;
  width: min(100%, 860px);
  padding-top: 0;
}

.hero-video-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #020405;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.hero-video-art::before {
  inset: 0;
  z-index: 2;
  display: none;
}

.hero-video-art video,
.hero-video-art img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.12) contrast(1.08) brightness(0.82);
}

@media (min-width: 981px) {
  .reference-hero .hero-copy {
    margin-top: clamp(10px, 2vh, 28px);
  }

  .reference-hero h1 {
    max-width: 860px;
  }
}

/* 2026-06-08 final homepage cleanup: keep the video clear and expose sound control. */
.reference-hero::before {
  display: none !important;
}

.reference-hero::after {
  inset: 0 !important;
  height: auto !important;
  opacity: 0.22;
  background:
    linear-gradient(rgba(190, 255, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 215, 255, 0.035) 1px, transparent 1px) !important;
  background-size: 28px 28px, 28px 28px !important;
}

.reference-hero .hero-copy {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.72);
}

.hero-video-art video,
.hero-video-art img {
  filter: saturate(1.12) contrast(1.06) brightness(0.96);
}

.hero-sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  background: rgba(4, 7, 8, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 5px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-sound-toggle[aria-pressed="true"] {
  color: #061008;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
}

.hero-sound-toggle:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

/* 2026-06-08 final AI tools hero: stop the title from blowing out in windowed/fullscreen views. */
.tools-hero {
  grid-template-columns: minmax(0, 760px) minmax(280px, 430px);
  justify-content: space-between;
  gap: clamp(28px, 5vw, 78px);
  min-height: clamp(390px, 48vh, 540px);
  padding: clamp(104px, 10vh, 132px) clamp(28px, 7vw, 156px) clamp(26px, 4vh, 48px);
}

.tools-hero-copy {
  max-width: 760px;
}

.tools-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(52px, 4.35vw, 86px);
  line-height: 0.98;
  white-space: normal !important;
  overflow-wrap: normal;
  text-wrap: balance;
  text-shadow:
    5px 5px 0 rgba(0, 215, 255, 0.22),
    0 0 28px rgba(190, 255, 0, 0.16);
}

.tools-hero-copy span {
  max-width: 700px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.65;
}

.tools-radar {
  width: min(30vw, 390px);
  min-width: 280px;
}

.tools-console {
  width: min(100% - 52px, 1740px);
}

@media (max-width: 1120px) {
  .tools-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 108px 26px 34px;
  }

  .tools-hero-copy,
  .tools-hero-copy h1,
  .tools-hero-copy span {
    max-width: 100%;
  }

  .tools-radar {
    width: min(52vw, 360px);
    min-width: 250px;
  }
}

/* 2026-06-08 AI tools heading lock: keep titles readable at every viewport. */
.tools-hero-copy h1 {
  word-break: keep-all;
}

.tool-zone-head {
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
}

.tool-zone-head h2 {
  max-width: 860px;
  font-size: clamp(38px, 3.55vw, 68px);
  line-height: 1.04;
  word-break: keep-all;
}

@media (max-width: 1120px) {
  .tool-zone-head {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-08 AI tools layout lock: hero, filters, and zones share one clean grid. */
.tools-page {
  --tools-content-width: min(100% - 96px, 1740px);
  min-height: 0;
  height: 100vh;
  overflow-y: auto;
}

.tools-hero,
.tools-console,
.tool-zone {
  width: var(--tools-content-width);
  margin-right: auto;
  margin-left: auto;
}

.tools-hero {
  grid-template-columns: minmax(0, 720px) 1fr minmax(260px, 410px);
  justify-content: stretch;
  align-items: center;
  column-gap: 0;
  min-height: auto;
  padding: clamp(118px, 14vh, 168px) 0 clamp(42px, 6vh, 76px);
}

.tools-hero-copy {
  width: 100%;
  max-width: none;
}

.tools-hero-copy h1 {
  max-width: none;
  margin-bottom: 20px;
  font-size: clamp(56px, 5.1vw, 92px);
  line-height: 1;
  white-space: nowrap !important;
}

.tools-hero-copy span {
  max-width: 640px;
  font-size: clamp(16px, 1vw, 20px);
  line-height: 1.65;
}

.tools-radar {
  grid-column: 3;
  justify-self: end;
  width: clamp(300px, 22vw, 410px);
  min-width: 0;
}

.tools-console {
  margin-bottom: clamp(36px, 4vw, 64px);
}

.tool-zone-head {
  grid-template-columns: minmax(0, 620px) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 78px);
}

.tool-zone-head h2 {
  max-width: 620px;
  font-size: clamp(42px, 3.4vw, 68px);
  line-height: 1.06;
}

@media (min-width: 1800px) {
  .tools-hero {
    grid-template-columns: minmax(0, 720px) 1fr minmax(320px, 430px);
  }
}

@media (max-width: 1120px) {
  .tools-page {
    --tools-content-width: calc(100% - 52px);
  }

  .tools-hero {
    grid-template-columns: minmax(0, 1fr) minmax(20px, 0.14fr) minmax(220px, 310px);
    column-gap: 22px;
    padding-top: 106px;
  }

  .tools-hero-copy h1 {
    font-size: clamp(44px, 6vw, 62px);
  }

  .tools-radar {
    width: min(30vw, 310px);
  }

  .tool-zone-head {
    grid-template-columns: 1fr;
  }
}

.image-preview-button {
  border-color: rgba(31, 213, 224, 0.62);
  color: #1fd5e0;
}

.prompt-image-dialog {
  width: min(1180px, calc(100vw - 24px));
  max-height: min(92vh, 920px);
  padding: 0;
  color: #f7fff0;
  background:
    linear-gradient(145deg, rgba(8, 14, 14, 0.98), rgba(3, 4, 6, 0.98)),
    radial-gradient(circle at 78% 14%, rgba(31, 213, 224, 0.16), transparent 34%);
  border: 1px solid rgba(200, 255, 0, 0.58);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 42px rgba(200, 255, 0, 0.12);
  overflow: auto;
}

.prompt-image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.prompt-image-dialog form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.prompt-image-dialog .dialog-head {
  align-items: flex-start;
}

.prompt-image-dialog .dialog-head > button {
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.prompt-image-dialog h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
}

.prompt-image-field,
.prompt-image-settings label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.prompt-image-field textarea {
  width: 100%;
  min-height: 170px;
  padding: 14px;
  color: #f8fff3;
  font: inherit;
  line-height: 1.62;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  resize: vertical;
}

.prompt-image-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.prompt-image-settings select {
  width: 100%;
  min-height: 42px;
  color: #f8fff3;
  background: rgba(5, 7, 8, 0.72);
  border: 1px solid rgba(248, 255, 243, 0.18);
  border-radius: 6px;
}

.prompt-image-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: stretch;
}

.prompt-image-result figure {
  display: grid;
  min-height: 420px;
  max-height: 68vh;
  margin: 0;
  place-items: center;
  padding: 12px;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(0, 0, 0, 0.44);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.prompt-image-result img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 64vh;
  object-fit: contain;
  border-radius: 6px;
}

.prompt-image-result img[hidden] {
  display: none;
}

.prompt-image-result figcaption {
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.prompt-image-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.prompt-image-actions button {
  min-height: 44px;
  padding: 0 14px;
  color: #f8fff3;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.prompt-image-actions .primary-button {
  color: #080a0a;
  background: var(--lime);
  border-color: var(--lime);
}

.auth-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  color: #f7fff0;
  background:
    linear-gradient(145deg, rgba(8, 16, 15, 0.96), rgba(4, 6, 8, 0.98)),
    radial-gradient(circle at top right, rgba(200, 255, 0, 0.16), transparent 46%);
  border: 1px solid rgba(200, 255, 0, 0.46);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 40px rgba(200, 255, 0, 0.14);
}

.auth-brand-lockup {
  display: none;
}

.auth-register-only[hidden],
.auth-code-only[hidden],
.auth-change-only[hidden],
.auth-new-password-only[hidden],
[hidden].auth-register-only,
[hidden].auth-code-only,
[hidden].auth-change-only,
[hidden].auth-new-password-only,
.auth-tabs[hidden],
.auth-field[hidden] {
  display: none !important;
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.auth-dialog form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.auth-dialog-head {
  position: relative;
  align-items: flex-start;
}

.auth-dialog-head button {
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.auth-window-controls {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: absolute;
  top: 0;
  right: 0;
}

.auth-window-controls button {
  margin-top: 1px;
}

.auth-window-controls--floating {
  position: fixed;
  top: 12px;
  right: 24px;
  z-index: 20;
  align-items: center;
  gap: 0;
  height: 34px;
  overflow: hidden;
  background: rgba(5, 9, 16, 0.54);
  border: 1px solid rgba(55, 238, 247, 0.32);
  box-shadow:
    inset 0 0 18px rgba(55, 238, 247, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.auth-window-controls--floating button {
  position: relative;
  font-size: 0;
  width: 46px;
  height: 34px;
  margin: 0;
  color: rgba(222, 255, 250, 0.88);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.auth-window-controls--floating button:hover {
  color: #061112;
  background: #37eef7;
}

.auth-window-controls--floating button.close:hover {
  color: #fff;
  background: #e94868;
}

.auth-window-controls--floating button::before,
.auth-window-controls--floating button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.auth-window-controls--floating button.min::before {
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.auth-window-controls--floating button.max::before {
  width: 13px;
  height: 11px;
  border: 1.8px solid currentColor;
  border-radius: 2px;
}

.auth-window-controls--floating button.close::before,
.auth-window-controls--floating button.close::after {
  width: 15px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.auth-window-controls--floating button.close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.auth-window-controls--floating button.close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.auth-gate-active .auth-dialog > .auth-window-controls--floating {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
  border-top: 0;
  border-right: 0;
}


.auth-dialog h2 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.05;
}

.auth-version {
  display: inline-flex;
  margin-top: 10px;
  padding: 3px 8px;
  color: #060908;
  font-size: 12px;
  font-weight: 1000;
  background: var(--lime);
  border-radius: 4px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.34);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.auth-tabs button {
  min-height: 42px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.auth-tabs button.active {
  color: #080a0a;
  background: var(--lime);
}

.auth-field {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #fff;
  font: inherit;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  outline: 0;
}

.auth-field-label {
  display: inline-block;
  transition: opacity 0.16s ease, transform 0.16s ease;
  line-height: 1.2;
}

.auth-field.auth-field-label-hidden .auth-field-label {
  opacity: 0;
  transform: translateY(-2px);
}

.auth-field input:focus {
  border-color: rgba(200, 255, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.12);
}

.auth-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.auth-status[data-type="error"] {
  color: #ff6d7a;
}

.auth-status[data-type="success"] {
  color: var(--lime);
}

.auth-reset-link {
  justify-self: end;
  min-height: 24px;
  padding: 0;
  color: rgba(255, 109, 122, 0.92);
  font-size: 13px;
  font-weight: 900;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 109, 122, 0.42);
  border-radius: 0;
}

.auth-reset-link:hover {
  color: #fff;
  border-color: var(--lime);
}

.auth-reset-link[hidden] {
  display: none !important;
}

.auth-submit-button {
  min-height: 48px;
  font-weight: 900;
}

.auth-system-row {
  display: none;
}

.auth-secondary-button {
  min-height: 44px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
}

.auth-secondary-button:hover {
  color: #fff;
  border-color: rgba(255, 109, 122, 0.7);
  box-shadow: 0 0 22px rgba(255, 109, 122, 0.16);
}

.auth-logout-button {
  padding-inline: 14px;
}

html.desktop-auth-booting body {
  background: #010407;
}

html.desktop-auth-booting .site-app {
  visibility: hidden;
}

html.desktop-auth-booting body::before,
html.desktop-auth-booting body::after {
  position: fixed;
  pointer-events: none;
}

html.desktop-auth-booting body::before {
  content: "";
  inset: 0;
  z-index: 9998;
  background:
    linear-gradient(rgba(75, 99, 180, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 99, 180, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 56% 27%, rgba(110, 78, 255, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(1, 4, 8, 0.96), rgba(3, 8, 16, 0.42) 48%, rgba(1, 4, 8, 0.9)),
    linear-gradient(180deg, rgba(1, 3, 7, 0.12), rgba(1, 3, 7, 0.88)),
    url("./assets/auth-gate-cyber-bg.png") center / cover no-repeat;
  background-size: 48px 48px, 48px 48px, auto, auto, auto, cover;
}

html.desktop-auth-booting body::after {
  content: none;
}

body.auth-gate-active {
  overflow: hidden;
}

body.auth-gate-active .auth-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  color: #eef6ff;
  background:
    radial-gradient(circle at 55% 24%, rgba(121, 82, 255, 0.18), transparent 26%),
    linear-gradient(90deg, rgba(2, 5, 9, 0.94) 0%, rgba(2, 7, 12, 0.46) 45%, rgba(5, 8, 13, 0.88) 100%),
    linear-gradient(180deg, rgba(1, 3, 6, 0.12), rgba(1, 3, 6, 0.88));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.auth-gate-active .auth-dialog::backdrop {
  background: #010406;
  backdrop-filter: none;
}

body.auth-gate-active .auth-dialog::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(113, 142, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 142, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 78% 38%, rgba(113, 229, 255, 0.12), transparent 24%),
    linear-gradient(115deg, transparent 0%, transparent 36%, rgba(255, 255, 255, 0.16) 37%, transparent 39%, transparent 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  pointer-events: none;
}

body.auth-gate-active .auth-dialog::after {
  content: none;
}

body.auth-gate-active .auth-brand-lockup {
  display: none;
}

body.auth-gate-active .auth-brand-lockup img {
  display: none;
}

body.auth-gate-active .auth-brand-lockup strong {
  display: none;
}

body.auth-gate-active .auth-brand-lockup em {
  display: none;
}

body.auth-gate-active .auth-scene-title {
  display: none;
}

body.auth-gate-active .auth-scene-title p {
  margin: 0 0 12px;
  color: rgba(76, 234, 255, 0.94);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.42em;
  text-shadow: 0 0 18px rgba(52, 219, 255, 0.62);
}

body.auth-gate-active .auth-scene-title h1 {
  position: relative;
  display: block;
  margin: 0;
  width: max-content;
  max-width: 100%;
  color: rgba(247, 248, 255, 0.98);
  font-size: 72px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.34),
    0 0 30px rgba(111, 92, 255, 0.72),
    0 0 48px rgba(52, 219, 255, 0.28);
}

body.auth-gate-active .auth-scene-title h1 span {
  display: inline;
}

body.auth-gate-active .auth-scene-title h1::after {
  content: "";
  display: block;
  width: 240px;
  height: 4px;
  margin: 18px auto 0;
  background:
    linear-gradient(90deg, transparent 0 12px, #765dff 12px 74px, transparent 74px 88px, #39edff 88px 168px, transparent 168px),
    linear-gradient(90deg, rgba(118, 93, 255, 0.58), rgba(57, 237, 255, 0.24), transparent);
  box-shadow: 0 0 20px rgba(57, 237, 255, 0.62);
}

body.auth-gate-active .auth-scene-title em {
  display: block;
  margin-top: 16px;
  color: rgba(178, 236, 255, 0.78);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-shadow: 0 0 16px rgba(99, 95, 255, 0.48);
}

body.auth-gate-active .auth-dev-credit {
  position: fixed;
  right: clamp(42px, 5vw, 74px);
  bottom: clamp(22px, 3.6vh, 42px);
  z-index: 4;
  padding: 5px 10px;
  color: rgba(201, 213, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  background: linear-gradient(90deg, rgba(10, 19, 35, 0.36), rgba(20, 36, 58, 0.2));
  border: 1px solid rgba(111, 129, 255, 0.22);
  box-shadow: 0 0 16px rgba(81, 70, 255, 0.16);
  pointer-events: none;
}

body.auth-gate-active .auth-dialog form {
  position: fixed;
  left: 50%;
  bottom: clamp(34px, 5.8vh, 56px);
  --auth-left-column: 460px;
  --auth-column-gap: 78px;
  --auth-panel-padding-x: 82px;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--auth-left-column) 1fr;
  grid-template-rows: 78px 72px 72px 42px 48px;
  gap: 0 var(--auth-column-gap);
  width: min(1240px, calc(100vw - 74px));
  min-height: 370px;
  max-height: none;
  overflow: hidden;
  padding: 20px var(--auth-panel-padding-x) 22px;
  background:
    linear-gradient(180deg, rgba(20, 34, 55, 0.34), rgba(4, 9, 19, 0.72)),
    radial-gradient(circle at 72% 30%, rgba(92, 65, 255, 0.24), transparent 35%),
    radial-gradient(circle at 25% 70%, rgba(38, 196, 255, 0.1), transparent 38%);
  border: 1px solid rgba(119, 130, 255, 0.46);
  border-radius: 0;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.7),
    0 0 48px rgba(80, 63, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 56px rgba(111, 217, 255, 0.08);
  transform: translateX(-50%) scale(var(--auth-panel-scale, 1));
  transform-origin: bottom center;
  backdrop-filter: blur(22px) saturate(1.22);
  clip-path: polygon(2.2% 0, 97.8% 0, 100% 6.8%, 100% 37%, 99.35% 39.5%, 99.35% 66%, 100% 68.5%, 100% 93.2%, 97.8% 100%, 2.2% 100%, 0 93.2%, 0 68.5%, 0.65% 66%, 0.65% 39.5%, 0 37%, 0 6.8%);
}

body.auth-gate-active .auth-dialog form::before {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border: 1px solid rgba(111, 226, 255, 0.12);
  clip-path: inherit;
  box-shadow:
    inset 0 0 22px rgba(97, 92, 255, 0.14),
    0 0 12px rgba(63, 227, 255, 0.08);
  pointer-events: none;
}

body.auth-gate-active .auth-dialog form::after {
  content: "";
  position: absolute;
  left: calc(var(--auth-panel-padding-x) + var(--auth-left-column) + (var(--auth-column-gap) / 2));
  top: 128px;
  width: 1px;
  height: 118px;
  background: linear-gradient(180deg, transparent, rgba(137, 123, 255, 0.78), transparent);
  box-shadow: 0 0 18px rgba(106, 84, 255, 0.48);
  pointer-events: none;
}

body.auth-gate-active .auth-dialog-head {
  grid-column: 1 / -1;
  justify-self: center;
  display: block;
  width: min(500px, 100%);
  margin-bottom: 0;
  text-align: center;
}

body.auth-gate-active .auth-tabs,
body.auth-gate-active .auth-field,
body.auth-gate-active .auth-status,
body.auth-gate-active .auth-reset-link {
  grid-column: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.auth-gate-active #authEmailField {
  grid-row: 2;
}

body.auth-gate-active #authPasswordField {
  grid-row: 3;
}

body.auth-gate-active .auth-dialog .eyebrow {
  display: none;
}

body.auth-gate-active .auth-dialog h2 {
  position: relative;
  display: inline-block;
  margin: 4px 0 0;
  color: rgba(238, 244, 255, 0.92);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.22),
    0 0 24px rgba(111, 96, 255, 0.58);
}

body.auth-gate-active .auth-dialog h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 74px;
  height: 3px;
  background:
    linear-gradient(90deg, transparent 0 10px, #765dff 10px 45px, transparent 45px 51px, #37f0ff 51px 86px, transparent 86px),
    linear-gradient(90deg, rgba(123, 91, 255, 0.18), rgba(61, 238, 255, 0.42), rgba(123, 91, 255, 0.18));
  box-shadow: 0 0 18px rgba(78, 226, 255, 0.68), 0 0 20px rgba(113, 92, 255, 0.42);
  transform: translateX(-50%);
}

body.auth-gate-active .auth-title-note {
  display: none;
}

body.auth-gate-active .auth-version {
  position: absolute;
  top: 38px;
  right: 72px;
  color: rgba(225, 232, 255, 0.92);
  background: linear-gradient(90deg, rgba(77, 67, 255, 0.82), rgba(38, 215, 255, 0.46));
  border: 1px solid rgba(146, 156, 255, 0.46);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(82, 69, 255, 0.38);
}

body.auth-gate-active .auth-tabs {
  grid-column: 2;
  grid-row: 4;
  align-self: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 42px;
  margin: 12px 0 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(13, 22, 40, 0.26), rgba(6, 12, 24, 0.46));
  border: 1px solid rgba(105, 119, 255, 0.18);
  border-radius: 0;
  box-shadow: inset 0 0 18px rgba(92, 72, 255, 0.08);
}

body.auth-gate-active .auth-tabs button.active {
  color: rgba(230, 236, 255, 0.88);
  background: transparent;
  box-shadow: none;
}

body.auth-gate-active .auth-field {
  color: rgba(225, 232, 255, 0.78);
  letter-spacing: 0.08em;
  font-size: 14px;
  align-self: start;
  gap: 7px;
}

body.auth-gate-active .auth-field input {
  min-height: 48px;
  box-sizing: border-box;
  color: #f8fbff;
  padding-left: 20px;
  background: linear-gradient(180deg, rgba(20, 33, 53, 0.5), rgba(10, 18, 31, 0.62));
  border-color: rgba(127, 150, 255, 0.3);
  border-radius: 3px;
  box-shadow:
    inset 0 0 18px rgba(118, 139, 255, 0.11),
    0 0 0 1px rgba(180, 204, 255, 0.04);
}

body.auth-gate-active .auth-field input:focus {
  border-color: rgba(94, 216, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(58, 184, 255, 0.12), 0 0 22px rgba(91, 77, 255, 0.28);
}

body.auth-gate-active .auth-status {
  grid-row: 4;
  min-height: 20px;
  color: rgba(207, 216, 255, 0.64);
}

body.auth-gate-active .auth-status:empty {
  display: none;
}

body.auth-gate-active .auth-reset-link {
  grid-row: 4;
  align-self: center;
  justify-self: end;
  max-width: 52%;
  min-height: 26px;
  padding-inline: 0;
  color: rgba(190, 203, 255, 0.92);
  border-color: rgba(120, 137, 255, 0.38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.auth-gate-active .auth-submit-button {
  grid-column: 2;
  grid-row: 2 / span 2;
  position: relative;
  align-self: center;
  min-height: 82px;
  margin: 0 12px 0 8px;
  color: #f7f4ff;
  font-size: 27px;
  white-space: nowrap;
  letter-spacing: 0.2em;
  background:
    linear-gradient(90deg, rgba(82, 64, 255, 0.88), rgba(119, 71, 255, 0.78)),
    radial-gradient(circle at 48% 52%, rgba(119, 220, 255, 0.28), transparent 58%);
  border: 1px solid rgba(143, 157, 255, 0.76);
  border-radius: 3px;
  box-shadow:
    0 0 34px rgba(105, 72, 255, 0.46),
    inset 0 0 24px rgba(255, 255, 255, 0.12);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.38);
  overflow: visible;
}

body.auth-gate-active .auth-submit-button.auth-submit-activating {
  animation: authSubmitImpact 680ms cubic-bezier(0.18, 0.86, 0.18, 1);
}

body.auth-gate-active .auth-submit-button::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(116, 134, 255, 0.58);
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(96, 75, 255, 0.34), inset 0 0 18px rgba(74, 219, 255, 0.08);
  pointer-events: none;
}

body.auth-gate-active .auth-submit-button.auth-submit-activating::before {
  animation: authSubmitRing 680ms ease-out;
}

body.auth-gate-active .auth-submit-button::after {
  content: "";
  position: absolute;
  inset: 8px;
  background:
    linear-gradient(105deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 50%, transparent 53% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 38%);
  opacity: 0.72;
  pointer-events: none;
}

body.auth-gate-active .auth-submit-button.auth-submit-activating::after {
  animation: authSubmitSweep 680ms ease-out;
}

@keyframes authSubmitImpact {
  0% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 34px rgba(105, 72, 255, 0.46),
      inset 0 0 24px rgba(255, 255, 255, 0.12);
    filter: brightness(1);
  }
  28% {
    transform: translateY(1px) scale(0.985);
    box-shadow:
      0 0 44px rgba(49, 218, 255, 0.72),
      0 0 72px rgba(211, 70, 255, 0.54),
      inset 0 0 30px rgba(255, 255, 255, 0.24);
    filter: brightness(1.2) saturate(1.22);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 34px rgba(105, 72, 255, 0.46),
      inset 0 0 24px rgba(255, 255, 255, 0.12);
    filter: brightness(1);
  }
}

@keyframes authSubmitRing {
  0% {
    inset: -9px;
    opacity: 1;
    border-color: rgba(116, 134, 255, 0.58);
  }
  42% {
    inset: -18px;
    opacity: 0.92;
    border-color: rgba(64, 230, 255, 0.86);
    box-shadow: 0 0 32px rgba(64, 230, 255, 0.64), inset 0 0 22px rgba(216, 63, 255, 0.22);
  }
  100% {
    inset: -28px;
    opacity: 0;
    border-color: rgba(209, 70, 255, 0);
  }
}

@keyframes authSubmitSweep {
  0% {
    opacity: 0.35;
    transform: translateX(-10%);
  }
  35% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0.72;
    transform: translateX(12%);
  }
}

body.auth-gate-active .auth-secondary-button {
  grid-column: 2;
  align-self: start;
  border-color: rgba(141, 150, 255, 0.38);
}

body.auth-gate-active .auth-system-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 12px 2px 0;
  color: rgba(200, 210, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
  border-top: 1px solid rgba(128, 143, 255, 0.18);
}

body.auth-gate-active .auth-system-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.auth-gate-active .auth-system-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #46ffbd;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(70, 255, 189, 0.72);
}

body.auth-gate-active .auth-code-only:not([hidden]) ~ .auth-system-row,
body.auth-gate-active .auth-new-password-only:not([hidden]) ~ .auth-system-row,
body.auth-gate-active .auth-change-only:not([hidden]) ~ .auth-system-row {
  display: none;
}

@media (max-width: 1000px), (max-height: 680px) {
  body.auth-gate-active .auth-scene-title {
    top: 34px;
    width: min(820px, calc(100vw - 72px));
  }

  body.auth-gate-active .auth-scene-title h1 {
    font-size: 48px;
  }

  body.auth-gate-active .auth-scene-title em {
    display: none;
  }

  body.auth-gate-active .auth-dev-credit {
    display: none;
  }

  body.auth-gate-active .auth-dialog form {
    --auth-left-column: 408px;
    --auth-column-gap: 34px;
    --auth-panel-padding-x: 46px;
    grid-template-columns: var(--auth-left-column) minmax(220px, 1fr);
  }

  body.auth-gate-active .auth-submit-button {
    min-height: 72px;
    font-size: 24px;
    letter-spacing: 0.12em;
  }
}

body.auth-gate-active.auth-unlocking .auth-dialog form {
  animation: authPanelExit 700ms cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

body.auth-gate-active.auth-unlocking .auth-dialog {
  animation: authGateReveal 780ms cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

/* v165 exact login direction: AI-create cyber composition. */
body.auth-gate-active .auth-dialog {
  background: #02050d;
}

body.auth-gate-active .auth-bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  pointer-events: none;
}

body.auth-gate-active .auth-audio-toggle {
  position: fixed;
  right: 36px;
  top: 58px;
  z-index: 4;
  min-width: 76px;
  height: 32px;
  padding: 0 12px;
  color: rgba(214, 250, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(13, 26, 45, 0.42), rgba(7, 8, 24, 0.62)),
    radial-gradient(circle at 78% 24%, rgba(199, 72, 255, 0.18), transparent 48%);
  border: 1px solid rgba(55, 238, 247, 0.5);
  border-radius: 0;
  box-shadow:
    inset 0 0 14px rgba(55, 238, 247, 0.08),
    0 0 18px rgba(55, 238, 247, 0.16);
  cursor: pointer;
}

body.auth-gate-active .auth-audio-toggle[aria-pressed="true"] {
  color: rgba(203, 210, 232, 0.72);
  border-color: rgba(129, 137, 174, 0.46);
  box-shadow: inset 0 0 10px rgba(129, 137, 174, 0.08);
}

body.auth-gate-active .auth-audio-toggle:focus-visible {
  outline: 2px solid rgba(57, 237, 255, 0.78);
  outline-offset: 3px;
}

body.auth-gate-active .auth-dialog::before {
  z-index: 1;
  background:
    linear-gradient(rgba(55, 246, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 246, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 17% 43%, rgba(35, 237, 255, 0.06), transparent 26%),
    radial-gradient(circle at 78% 40%, rgba(190, 58, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(2, 5, 13, 0.08), rgba(2, 5, 13, 0.58));
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  opacity: 1;
}

body.auth-gate-active .auth-scene-title {
  position: fixed;
  left: clamp(78px, 8.8vw, 150px);
  top: clamp(58px, 11vh, 104px);
  z-index: 2;
  display: block;
  width: clamp(360px, 41vw, 658px);
  aspect-ratio: 658 / 376;
  background: url("./assets/auth-title-lockup.png") left top / contain no-repeat;
  text-align: left;
  transform: none;
  transform-origin: left top;
  filter:
    drop-shadow(0 22px 18px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 22px rgba(40, 237, 246, 0.14));
  pointer-events: none;
}

body.auth-gate-active .auth-scene-title > * {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.auth-gate-active .auth-topline {
  position: fixed;
  left: 36px;
  top: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(42, 247, 236, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3em;
  pointer-events: none;
}

body.auth-gate-active .auth-topline span {
  width: 108px;
  height: 8px;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(42, 247, 236, 0.5) 18px 26px, transparent 26px 46px, rgba(42, 247, 236, 0.5) 46px 54px, transparent 54px),
    repeating-linear-gradient(115deg, rgba(42, 247, 236, 0.46) 0 5px, transparent 5px 9px);
}

body.auth-gate-active .auth-left-rail,
body.auth-gate-active .auth-right-rail {
  position: fixed;
  z-index: 2;
  top: 86px;
  color: rgba(44, 240, 236, 0.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.36em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  pointer-events: none;
}

body.auth-gate-active .auth-left-rail {
  left: 34px;
}

body.auth-gate-active .auth-right-rail {
  right: 34px;
  top: 66px;
}

body.auth-gate-active .auth-access-stack {
  position: fixed;
  left: 48px;
  bottom: 176px;
  z-index: 2;
  color: rgba(45, 244, 238, 0.82);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.75;
  letter-spacing: 0.12em;
  pointer-events: none;
}

body.auth-gate-active .auth-access-stack::after {
  content: "+";
  display: block;
  margin-top: 18px;
  font-size: 28px;
  font-weight: 300;
}

body.auth-gate-active .auth-future-line {
  position: fixed;
  left: 86px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(48, 239, 233, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  pointer-events: none;
}

body.auth-gate-active .auth-future-line::after {
  content: "";
  width: 270px;
  height: 6px;
  border: 1px solid rgba(48, 239, 233, 0.32);
  background: linear-gradient(90deg, rgba(48, 239, 233, 0.24), rgba(48, 239, 233, 0.08));
}

body.auth-gate-active .auth-creation-badge {
  position: fixed;
  right: 36px;
  bottom: 36px;
  z-index: 2;
  min-width: 148px;
  padding: 8px 14px;
  color: rgba(224, 119, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 0 12px rgba(216, 88, 255, 0.5);
  background: rgba(28, 8, 54, 0.08);
  border: 1px solid rgba(216, 88, 255, 0.62);
  box-shadow:
    inset 0 0 14px rgba(216, 88, 255, 0.08),
    0 0 18px rgba(167, 48, 255, 0.2);
  pointer-events: none;
}

body.auth-gate-active .auth-dev-credit {
  display: none;
}

body.auth-gate-active .auth-dialog form {
  left: 50%;
  bottom: clamp(34px, 5vh, 46px);
  --auth-left-column: auto;
  --auth-column-gap: 0;
  --auth-panel-padding-x: 60px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 54px 58px 58px 34px 58px;
  gap: 0;
  width: clamp(468px, 31vw, 540px);
  min-height: 334px;
  padding: 17px 42px 23px;
  background:
    linear-gradient(180deg, rgba(16, 27, 44, 0.36), rgba(6, 10, 23, 0.78)),
    radial-gradient(circle at 84% 88%, rgba(218, 69, 255, 0.18), transparent 36%),
    radial-gradient(circle at 7% 18%, rgba(25, 245, 236, 0.13), transparent 34%);
  border-color: rgba(53, 228, 243, 0.34);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 0 34px rgba(36, 232, 242, 0.11),
    inset 0 0 48px rgba(96, 74, 255, 0.14);
  transform: translateX(-50%);
  clip-path: polygon(7% 0, 93% 0, 100% 11%, 100% 89%, 93% 100%, 7% 100%, 0 89%, 0 11%);
}

body.auth-gate-active .auth-dialog form::before {
  inset: 8px;
  border-color: rgba(81, 236, 247, 0.16);
  clip-path: polygon(7% 0, 93% 0, 100% 11%, 100% 89%, 93% 100%, 7% 100%, 0 89%, 0 11%);
}

body.auth-gate-active .auth-dialog form::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 8px;
  width: 52px;
  height: 22px;
  background: repeating-linear-gradient(135deg, rgba(39, 244, 239, 0.55) 0 4px, transparent 4px 9px);
  box-shadow: none;
  pointer-events: none;
}

body.auth-gate-active .auth-dialog-head {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

body.auth-gate-active .auth-dialog-head > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 12px;
  height: 44px;
}

body.auth-gate-active .auth-dialog-head > .auth-window-controls--floating {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0;
  width: auto;
  height: 34px;
  margin: 0;
  text-align: initial;
}

body.auth-gate-active .auth-dialog .eyebrow,
body.auth-gate-active .auth-title-note,
body.auth-gate-active .auth-version {
  display: none;
}

body.auth-gate-active .auth-dialog h2 {
  grid-column: 1;
  justify-self: center;
  margin: 0;
  color: rgba(34, 247, 238, 0.94);
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(34, 247, 238, 0.42);
}

body.auth-gate-active .auth-dialog h2::after {
  left: 0;
  right: -120%;
  bottom: -14px;
  width: auto;
  height: 2px;
  transform: none;
  background:
    linear-gradient(90deg, rgba(42, 239, 232, 0.9), rgba(207, 68, 255, 0.78) 48%, transparent 49%),
    linear-gradient(90deg, transparent 52%, rgba(255, 255, 255, 0.18) 52%, rgba(255, 255, 255, 0.18) 100%);
}

body.auth-gate-active .auth-tabs {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: end;
  height: 44px;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: auto;
}

body.auth-gate-active .auth-tabs button {
  position: relative;
  z-index: 11;
  min-height: 44px;
  color: rgba(209, 213, 231, 0.56);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 0;
  cursor: pointer;
  pointer-events: auto;
}

body.auth-gate-active .auth-tabs button.active {
  color: rgba(34, 247, 238, 0.94);
  background: transparent;
}

body.auth-gate-active .auth-dialog-head h2 {
  visibility: hidden;
}

body.auth-gate-active .auth-tabs button.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(42, 239, 232, 0.9), rgba(207, 68, 255, 0.78));
  box-shadow: 0 0 14px rgba(42, 239, 232, 0.48);
}

body.auth-gate-active #authEmailField {
  grid-row: 2;
}

body.auth-gate-active #authPasswordField {
  grid-row: 3;
}

body.auth-gate-active .auth-field {
  position: relative;
  align-self: center;
  gap: 0;
  color: transparent;
  letter-spacing: 0;
}

body.auth-gate-active .auth-field > span {
  position: absolute;
  left: 64px;
  top: 50%;
  z-index: 2;
  color: rgba(226, 230, 243, 0.34);
  font-size: 16px;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

body.auth-gate-active .auth-field::before {
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 2;
  width: 22px;
  color: rgba(39, 245, 239, 0.92);
  font-size: 23px;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
}

body.auth-gate-active #authEmailField::before {
  content: "\25C6";
}

body.auth-gate-active #authPasswordField::before {
  content: "\25A0";
}

body.auth-gate-active .auth-field input {
  height: 50px;
  min-height: 50px;
  padding: 0 52px 0 64px;
  color: rgba(245, 248, 255, 0.94);
  background: rgba(9, 12, 22, 0.42);
  border: 1px solid rgba(210, 222, 255, 0.32);
  border-radius: 4px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28);
}

body.auth-gate-active .auth-field input::placeholder {
  color: transparent;
}

body.auth-gate-active .auth-reset-link {
  grid-row: 4;
  justify-self: end;
  align-self: center;
  width: auto;
  max-width: none;
  min-height: 24px;
  color: rgba(224, 229, 245, 0.66);
  font-size: 15px;
  border: 0;
}

body.auth-gate-active .auth-status:empty {
  display: none;
}

body.auth-gate-active .auth-status {
  display: block;
  grid-column: 1;
  grid-row: 4;
  align-self: center;
  justify-self: start;
  max-width: min(100%, 300px);
  min-height: 24px;
  margin: 0;
  padding: 6px 10px;
  overflow: hidden;
  color: rgba(245, 248, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(9, 12, 22, 0.52);
  border: 1px solid rgba(210, 222, 255, 0.18);
  border-radius: 4px;
}

body.auth-gate-active .auth-status[data-type="error"] {
  color: #ffe9e9;
  background: rgba(122, 10, 34, 0.5);
  border-color: rgba(255, 83, 113, 0.62);
  box-shadow: 0 0 18px rgba(255, 40, 90, 0.24);
}

body.auth-gate-active .auth-status[data-type="success"] {
  color: #eafffb;
  background: rgba(5, 118, 105, 0.42);
  border-color: rgba(42, 239, 232, 0.56);
}

body.auth-gate-active .auth-field.auth-field-error input {
  border-color: rgba(255, 83, 113, 0.9);
  background: rgba(50, 9, 22, 0.54);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(255, 83, 113, 0.12),
    0 0 24px rgba(255, 40, 90, 0.24);
  animation: authFieldErrorShake 320ms ease both;
}

body.auth-gate-active .auth-field.auth-field-error > span,
body.auth-gate-active .auth-field.auth-field-error::before {
  color: rgba(255, 178, 190, 0.95);
}

body.auth-gate-active .auth-submit-button {
  grid-column: 1;
  grid-row: 5;
  align-self: end;
  min-height: 58px;
  margin: 0;
  color: #f5fbff;
  font-size: 19px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  background: linear-gradient(94deg, #22e9ee 0%, #5d92ff 49%, #df43ff 100%);
  border: 0;
  border-radius: 4px;
  box-shadow:
    0 0 26px rgba(200, 62, 255, 0.38),
    0 0 18px rgba(34, 233, 238, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.auth-gate-active .auth-submit-button::before {
  content: none;
}

body.auth-gate-active .auth-submit-button::after {
  content: "\2192";
  position: absolute;
  inset: auto 24px 50% auto;
  color: rgba(255, 255, 255, 0.9);
  background: none;
  font-size: 25px;
  opacity: 1;
  transform: translateY(50%);
}

body.auth-gate-active .auth-system-row {
  display: none;
}

@media (max-width: 1100px), (max-height: 720px) {
  body.auth-gate-active .auth-scene-title {
    left: 96px;
    top: 38px;
    transform: scale(0.78);
    transform-origin: left top;
  }

  body.auth-gate-active .auth-dialog form {
    left: 50%;
    bottom: 28px;
    width: min(470px, calc(100vw - 116px));
    min-height: 304px;
    padding: 15px 36px 22px;
    grid-template-rows: 48px 54px 54px 32px 54px;
  }

  body.auth-gate-active .auth-topline,
  body.auth-gate-active .auth-left-rail,
  body.auth-gate-active .auth-right-rail,
  body.auth-gate-active .auth-access-stack,
  body.auth-gate-active .auth-future-line {
    display: none;
  }

  body.auth-gate-active .auth-audio-toggle {
    right: 22px;
    top: 20px;
    min-width: 68px;
    height: 30px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  body.auth-gate-active .auth-creation-badge {
    right: 24px;
    bottom: 22px;
    min-width: 136px;
    padding: 7px 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

@keyframes authPanelExit {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(var(--auth-panel-scale, 1));
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(24px) scale(0.94);
  }
}

@keyframes authFieldErrorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@keyframes authGateReveal {
  0% {
    filter: brightness(1);
    clip-path: inset(0 0 0 0);
  }
  55% {
    filter: brightness(1.38);
  }
  100% {
    filter: brightness(1.2);
    clip-path: inset(0 0 100% 0);
  }
}

.site-edge-nav,
.site-app .site-edge-nav,
.prompt-lab-body .site-edge-nav {
  position: fixed;
  top: 72px;
  bottom: 0;
  z-index: 2147482000 !important;
  width: 64px;
  display: flex;
  align-items: center;
  pointer-events: auto !important;
  transform: translateZ(0);
}

.site-edge-nav-left,
.site-app .site-edge-nav-left,
.prompt-lab-body .site-edge-nav-left {
  left: 0;
  justify-content: flex-start;
}

.site-edge-nav-right,
.site-app .site-edge-nav-right,
.prompt-lab-body .site-edge-nav-right {
  right: 0;
  justify-content: flex-end;
}

.site-edge-nav-button {
  --site-edge-arrow-color: #c6ff12;
  --site-edge-arrow-core: #f4ff9a;
  --site-edge-arrow-cyan: #35ffe2;
  position: relative;
  width: 48px;
  height: 92px;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-15px) scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.site-edge-nav-right .site-edge-nav-button {
  transform: translateX(15px) scale(0.92);
}

.site-edge-nav-button::before,
.site-edge-nav-button::after {
  content: "";
  position: absolute;
  top: 50%;
  pointer-events: none;
  transform: translateY(-50%);
}

.site-edge-nav-button::before {
  width: 28px;
  height: 66px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(198, 255, 18, 0.34), rgba(53, 255, 226, 0.18) 42%, transparent 72%);
  filter: blur(7px);
  opacity: 0.74;
}

.site-edge-nav-button::after {
  width: 2px;
  height: 48px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, transparent, rgba(198, 255, 18, 0.42), rgba(53, 255, 226, 0.22), transparent);
  filter: blur(0.2px);
  opacity: 0.6;
}

.site-edge-nav-left .site-edge-nav-button::before {
  left: 2px;
}

.site-edge-nav-left .site-edge-nav-button::after {
  left: 4px;
}

.site-edge-nav-right .site-edge-nav-button::before {
  right: 2px;
}

.site-edge-nav-right .site-edge-nav-button::after {
  right: 4px;
}

.site-edge-nav-arrow {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 46px;
  transform: translateY(-50%);
  filter:
    drop-shadow(0 0 4px rgba(244, 255, 154, 0.98))
    drop-shadow(0 0 12px rgba(198, 255, 18, 0.78))
    drop-shadow(0 0 24px rgba(53, 255, 226, 0.38));
  animation: siteEdgeArrowPulse 1.9s ease-in-out infinite;
}

.site-edge-nav-left .site-edge-nav-arrow {
  left: 7px;
}

.site-edge-nav-right .site-edge-nav-arrow {
  right: 7px;
}

.site-edge-nav-arrow::before,
.site-edge-nav-arrow::after {
  content: "";
  position: absolute;
  width: 29px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(53, 255, 226, 0.2), var(--site-edge-arrow-core) 18%, var(--site-edge-arrow-color) 78%, rgba(53, 255, 226, 0.76));
  box-shadow:
    0 0 4px rgba(244, 255, 154, 0.95),
    0 0 11px rgba(198, 255, 18, 0.72),
    0 0 18px rgba(53, 255, 226, 0.42);
}

.site-edge-nav-right .site-edge-nav-arrow::before {
  top: 13px;
  right: 0;
  transform: rotate(38deg);
  transform-origin: right center;
}

.site-edge-nav-right .site-edge-nav-arrow::after {
  bottom: 13px;
  right: 0;
  transform: rotate(-38deg);
  transform-origin: right center;
}

.site-edge-nav-left .site-edge-nav-arrow::before {
  top: 13px;
  left: 0;
  transform: rotate(-38deg);
  transform-origin: left center;
}

.site-edge-nav-left .site-edge-nav-arrow::after {
  bottom: 13px;
  left: 0;
  transform: rotate(38deg);
  transform-origin: left center;
}

.site-edge-nav:hover .site-edge-nav-button,
.site-edge-nav:focus-within .site-edge-nav-button,
.site-edge-nav.is-site-edge-nav-active .site-edge-nav-button,
.site-edge-nav.is-edge-nav-active .site-edge-nav-button {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(0) scale(1) !important;
}

.site-edge-nav-button:hover,
.site-edge-nav-button:focus-visible {
  filter: brightness(1.14) saturate(1.14);
  outline: none;
}

.site-edge-nav-button:hover .site-edge-nav-arrow::before,
.site-edge-nav-button:hover .site-edge-nav-arrow::after,
.site-edge-nav-button:focus-visible .site-edge-nav-arrow::before,
.site-edge-nav-button:focus-visible .site-edge-nav-arrow::after {
  box-shadow:
    0 0 5px rgba(244, 255, 154, 1),
    0 0 15px rgba(198, 255, 18, 0.86),
    0 0 26px rgba(53, 255, 226, 0.54);
}

body.auth-gate-active .site-edge-nav {
  display: none;
}

@media (max-width: 1120px) {
  .site-edge-nav,
  .site-app .site-edge-nav,
  .prompt-lab-body .site-edge-nav {
    top: 106px;
    width: 56px;
  }

  .site-edge-nav-button {
    width: 42px;
    height: 78px;
  }

  .site-edge-nav-arrow {
    width: 25px;
    height: 40px;
  }

  .site-edge-nav-arrow::before,
  .site-edge-nav-arrow::after {
    width: 25px;
    height: 3px;
  }

  .site-edge-nav-right .site-edge-nav-arrow::before,
  .site-edge-nav-left .site-edge-nav-arrow::before {
    top: 12px;
  }

  .site-edge-nav-right .site-edge-nav-arrow::after,
  .site-edge-nav-left .site-edge-nav-arrow::after {
    bottom: 12px;
  }
}

@media (max-width: 680px) {
  .site-edge-nav,
  .site-app .site-edge-nav,
  .prompt-lab-body .site-edge-nav {
    top: 104px;
    width: 46px;
  }

  .site-edge-nav-button {
    width: 36px;
    height: 66px;
  }

  .site-edge-nav-arrow {
    width: 22px;
    height: 36px;
  }

  .site-edge-nav-left .site-edge-nav-arrow {
    left: 5px;
  }

  .site-edge-nav-right .site-edge-nav-arrow {
    right: 5px;
  }

  .site-edge-nav-arrow::before,
  .site-edge-nav-arrow::after {
    width: 22px;
    height: 2px;
  }

  .site-edge-nav-right .site-edge-nav-arrow::before,
  .site-edge-nav-left .site-edge-nav-arrow::before {
    top: 11px;
  }

  .site-edge-nav-right .site-edge-nav-arrow::after,
  .site-edge-nav-left .site-edge-nav-arrow::after {
    bottom: 11px;
  }
}

@keyframes siteEdgeArrowPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.28);
  }
}





