:root {
  --bg: #050608;
  --bg-soft: #0a0d12;
  --surface: rgba(16, 20, 26, 0.82);
  --surface-strong: rgba(20, 25, 33, 0.94);
  --text: #eef2f7;
  --muted: #aeb7c3;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #7df08a;
  --accent-ink: #112213;
  --prompt-surface: rgba(255, 255, 255, 0.92);
  --prompt-surface-strong: rgba(255, 255, 255, 0.97);
  --prompt-line: rgba(15, 23, 42, 0.14);
  --prompt-title: #10203a;
  --prompt-muted: #5b6f8c;
  --prompt-input-bg: rgba(255, 255, 255, 0.96);
  --prompt-input-text: #12243d;
  --prompt-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --mx: 50vw;
  --my: 20vh;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 760px at var(--mx) var(--my), rgba(125, 240, 138, 0.12), transparent 60%),
    radial-gradient(920px 640px at 78% 110%, rgba(112, 168, 255, 0.07), transparent 66%),
    linear-gradient(165deg, var(--bg), #070a0f 44%, var(--bg-soft));
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

body.intro-lock {
  overflow: hidden;
}

.intro-gate {
  position: fixed;
  inset: 0;
  width: 100dvw;
  height: 100dvh;
  z-index: 1200;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 260ms ease;
}

.intro-gate[hidden] {
  display: none;
}

.intro-gate.is-exit {
  opacity: 0;
}

.intro-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-stage-video {
  background: #000;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.intro-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.8rem, 2vw, 1.3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.intro-action {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.46);
  color: #ffffff;
  min-height: 40px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0 0.92rem;
  cursor: pointer;
}

.intro-action:hover {
  background: rgba(0, 0, 0, 0.66);
}

.intro-stage-logo {
  display: grid;
  place-items: center;
  background: #ffffff;
}

.bg-loop-layer {
  position: fixed;
  inset: -4%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 420ms ease;
}

.bg-loop-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  filter: grayscale(1) saturate(0) contrast(1.06) brightness(1.28) blur(1.1px);
  opacity: 0.88;
  mix-blend-mode: multiply;
}

body.bg-loop-active .bg-loop-layer {
  opacity: 0.09;
}

body.intro-lock .bg-loop-layer {
  opacity: 0;
}

.intro-logo-wrap {
  position: relative;
  width: min(56vw, 430px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  animation: introLogoPulse 1200ms ease;
}

.intro-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.2) brightness(0.1) saturate(0);
}

.intro-logo-wrap::before,
.intro-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./brand-barkod.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.3;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.intro-logo-wrap::before {
  transform: translate3d(4px, -1px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 46%);
  animation: introGlitchA 420ms steps(2, end) 3;
}

.intro-logo-wrap::after {
  transform: translate3d(-4px, 1px, 0);
  clip-path: polygon(0 58%, 100% 50%, 100% 100%, 0 100%);
  animation: introGlitchB 480ms steps(2, end) 3;
}

@keyframes introGlitchA {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  24% {
    opacity: 0.24;
  }
  52% {
    transform: translate3d(5px, -3px, 0);
  }
  78% {
    transform: translate3d(-4px, 2px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
}

@keyframes introGlitchB {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  28% {
    opacity: 0.2;
  }
  60% {
    transform: translate3d(-6px, 2px, 0);
  }
  82% {
    transform: translate3d(6px, -2px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
}

@keyframes introLogoPulse {
  0% {
    transform: scale(0.96);
    opacity: 0;
    filter: blur(8px);
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 24%, transparent 78%);
}

body.bg-loop-active .ambient {
  opacity: 0.16;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0.5));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  font-family: "Syne", "Manrope", sans-serif;
  text-decoration: none;
  color: var(--text);
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  object-position: center 34%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.26rem;
  padding: 0.28rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  text-decoration: none;
  color: #52647e;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.46rem 0.74rem;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav a:hover {
  color: #0a65cc;
  background: rgba(10, 132, 255, 0.13);
}

.nav a.nav-highlight {
  color: #ffffff;
  background: linear-gradient(150deg, #0a84ff, #38a9ff);
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.28);
}

.nav a.nav-highlight:hover {
  color: #ffffff;
  background: linear-gradient(150deg, #0f90ff, #4cb4ff);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.3rem, 3vw, 2.4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0.7rem 0 0.45rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7ffe3;
  border: 1px solid rgba(125, 240, 138, 0.48);
  background: rgba(125, 240, 138, 0.12);
}

h1 {
  margin: 0.95rem 0 1.15rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-family: "Syne", "Manrope", sans-serif;
}

h1 span {
  display: block;
  margin-top: 0.84rem;
  color: #cfd8e6;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.18rem, 2.2vw, 1.95rem);
  line-height: 1.3;
}

.subtext {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.55rem 0 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 1.18rem;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, color 170ms ease;
  cursor: pointer;
}

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

.btn-primary {
  border-color: transparent;
  background: linear-gradient(140deg, var(--accent), #78e6d0);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: linear-gradient(140deg, #9ef7aa, #a4ecff);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.signals {
  margin: 0;
  padding-left: 1.1rem;
  color: #c6d0dd;
  display: grid;
  gap: 0.45rem;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: 0 22px 88px rgba(0, 0, 0, 0.36);
}

.panel-label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ba8b8;
}

.hero-panel h2 {
  margin: 0.72rem 0 1.15rem;
  font-size: clamp(1.25rem, 2.2vw, 1.82rem);
  line-height: 1.24;
}

.status-list {
  display: grid;
  gap: 0.62rem;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.84rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.ok {
  color: var(--accent);
  font-weight: 700;
}

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

.section {
  padding-block: clamp(3.5rem, 8vw, 6.4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head {
  max-width: 860px;
}

.section-head h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.58rem, 3.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.section-subtitle.is-error {
  color: #c2410c;
}

.section-ecosystem .section-head,
.section-module-api .section-head {
  max-width: 980px;
}

.ecosystem-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ecosystem-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.58rem;
}

.ecosystem-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.ecosystem-card p {
  margin: 0;
  color: var(--muted);
}

.ecosystem-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  width: fit-content;
}

.ecosystem-link:hover {
  color: var(--accent);
}

.section-module-api .module-api-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.module-api-card,
.module-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.module-api-card h3 {
  margin: 0.72rem 0 0.58rem;
  font-size: 1.22rem;
}

.module-api-card p {
  margin: 0;
  color: var(--muted);
}

.module-api-points {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.36rem;
}

.module-cards {
  display: grid;
  gap: 0.75rem;
}

.module-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.module-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.3;
}

.module-card p {
  margin: 0.52rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.module-meta {
  font-size: 0.82rem;
  color: #6880a1;
}

.module-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 800;
}

.module-status-active .module-status-badge,
.module-status-online .module-status-badge,
.module-status-stable .module-status-badge {
  border-color: rgba(16, 185, 129, 0.35);
  color: #15803d;
}

.module-status-degraded .module-status-badge {
  border-color: rgba(234, 88, 12, 0.35);
  color: #c2410c;
}

.section-platform-intro .section-head,
.section-community .section-head {
  max-width: 980px;
}

.platform-intro-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.platform-intro-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.platform-intro-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.platform-intro-card p {
  margin: 0.58rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.community-layout {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem;
}

.community-card,
.community-feed-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
}

.community-form {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.community-form label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.86rem;
  color: #3d4d62;
}

.community-form input,
.community-form textarea {
  width: 100%;
  border-radius: 13px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  padding: 0.66rem 0.76rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: #12243f;
}

.community-form .full {
  grid-column: 1 / -1;
}

.community-form small {
  color: #627790;
  font-size: 0.75rem;
}

.community-feed-card {
  margin-top: 1rem;
}

.community-feed-head h3 {
  margin: 0;
  font-size: 1.16rem;
}

.community-feed-head p {
  margin-top: 0.35rem;
}

.community-ratings-grid {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.62rem;
}

.community-rating-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0.72rem 0.78rem;
  background: rgba(255, 255, 255, 0.05);
}

.community-rating-card h4 {
  margin: 0;
  font-size: 0.97rem;
}

.community-rating-card p {
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.community-stars {
  margin-top: 0.58rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.26rem;
}

.community-star {
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: #60728b;
  border-radius: 10px;
  min-width: 36px;
  min-height: 34px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.community-star:hover {
  border-color: color-mix(in srgb, var(--accent) 54%, transparent);
  color: #0d3f7a;
}

.community-star.is-active {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(255, 243, 212, 0.92);
  color: #b45309;
}

.community-rating-meta {
  margin-top: 0.46rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.79rem;
  color: #5d738f;
}

.community-posts-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.community-post-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: grid;
}

.community-post-image-wrap {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(125, 240, 138, 0.16), rgba(10, 132, 255, 0.12));
}

.community-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.community-post-image-empty {
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  color: #4f647d;
  letter-spacing: 0.04em;
}

.community-post-content {
  padding: 0.72rem;
}

.community-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.73rem;
  color: #5f748e;
}

.community-post-meta strong {
  color: #20344d;
}

.community-post-content h4 {
  margin: 0.45rem 0 0;
  font-size: 0.97rem;
}

.community-post-content p {
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.community-post-actions {
  margin-top: 0.64rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.52rem;
  font-size: 0.8rem;
  color: #5e738d;
}

.community-like-btn {
  min-height: 34px;
  padding: 0 0.82rem;
}

.community-like-btn.is-liked {
  border-color: rgba(16, 185, 129, 0.42);
  color: #0f766e;
  background: rgba(204, 251, 241, 0.8);
}

.community-empty {
  margin: 0;
  padding: 0.6rem 0;
  color: var(--muted);
}

.section-market-signal .market-signal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  background:
    radial-gradient(900px 340px at 0% 0%, rgba(10, 132, 255, 0.14), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84));
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.1);
}

.market-signal-card h2 {
  margin: 0.72rem 0 0;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.market-signal-card p {
  margin: 0.82rem 0 0;
  color: var(--muted);
  max-width: 80ch;
}

.section-who .section-head {
  max-width: 920px;
}

.who-letter {
  margin-top: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 22px;
  padding: clamp(1rem, 2.1vw, 1.8rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.9)),
    repeating-linear-gradient(
      180deg,
      rgba(10, 132, 255, 0.02) 0px,
      rgba(10, 132, 255, 0.02) 1px,
      transparent 1px,
      transparent 32px
    );
  box-shadow: 0 22px 52px rgba(16, 24, 40, 0.11);
}

.who-letter-head {
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.2);
}

.who-stamp {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a84ff;
  font-weight: 800;
}

.who-letter-head h3 {
  margin: 0.48rem 0 0;
  font-family: "Syne", "Manrope", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.who-role {
  margin: 0.58rem 0 0;
  color: #334f72;
  font-size: 0.95rem;
  line-height: 1.45;
}

.who-letter-body {
  margin-top: 1rem;
  display: grid;
  gap: 0.68rem;
}

.who-letter-body p {
  margin: 0;
  color: #4d6079;
  font-size: 1rem;
  line-height: 1.58;
}

.who-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
}

.who-block {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
}

.who-block h4 {
  margin: 0;
  color: #0e2440;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.who-block h5 {
  margin: 0.48rem 0 0;
  color: #152e4f;
  font-size: 1.04rem;
  line-height: 1.32;
}

.who-block ul {
  margin: 0.68rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.42rem;
  color: #2f4668;
  font-size: 0.9rem;
  line-height: 1.45;
}

.who-block-wide {
  grid-column: 1 / -1;
}

.who-core-list {
  columns: 2;
  column-gap: 1.5rem;
}

.who-core-list li {
  break-inside: avoid;
  margin-bottom: 0.34rem;
}

.who-stack {
  margin: 0.65rem 0 0;
  color: #365173;
  line-height: 1.56;
}

.who-signature {
  margin-top: 1.06rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.2);
}

.who-summary {
  margin: 0;
  color: #4c6079;
  line-height: 1.6;
}

.who-focus {
  margin: 0.88rem 0 0;
  color: #163d6b;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.who-sign {
  margin: 0.88rem 0 0;
  font-family: "Syne", "Manrope", sans-serif;
  color: #101f35;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.full-span {
  grid-column: 1 / -1;
}

.feature-grid,
.crm-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.crm-card,
.free-card,
.bank-column,
.vault-panel,
.assistant-copy,
.assistant-chat,
.admin-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
}

.feature-card h3,
.crm-card h3,
.free-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
}

.feature-card p,
.crm-card p,
.free-card p {
  margin: 0;
  color: var(--muted);
}

.prompt-builder {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  border: 1px solid var(--prompt-line);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(168deg, var(--prompt-surface-strong), var(--prompt-surface));
  box-shadow: var(--prompt-shadow);
}

.prompt-builder label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--prompt-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prompt-builder label.is-locked {
  opacity: 0.74;
}

.prompt-builder label.is-locked select {
  cursor: not-allowed;
}

.prompt-builder .checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  margin-top: 1.15rem;
}

.prompt-builder .checkbox-line input {
  min-height: auto;
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: #7df08a;
}

.prompt-builder .checkbox-line.is-locked {
  opacity: 0.78;
}

.prompt-builder .checkbox-line.is-locked input {
  cursor: not-allowed;
}

.prompt-builder input,
.prompt-builder select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--prompt-line);
  background: var(--prompt-input-bg);
  color: var(--prompt-input-text);
  padding: 0.68rem 0.82rem;
  font: inherit;
  font-weight: 600;
}

.prompt-builder input:focus,
.prompt-builder select:focus {
  border-color: color-mix(in srgb, var(--accent) 52%, white 48%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
  outline: none;
}

.prompt-output {
  margin-top: 0.9rem;
  border: 1px solid var(--prompt-line);
  border-radius: 20px;
  padding: 0.9rem;
  background: linear-gradient(165deg, var(--prompt-surface-strong), var(--prompt-surface));
  box-shadow: var(--prompt-shadow);
  display: grid;
  gap: 0.72rem;
}

.prompt-output p {
  margin: 0;
  color: var(--prompt-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.prompt-output-title {
  margin: 0;
  color: var(--prompt-title);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.prompt-template-summary {
  margin: 0;
  border: 1px dashed var(--prompt-line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  color: var(--prompt-muted);
  font-size: 0.85rem;
  line-height: 1.35;
  background: color-mix(in srgb, var(--prompt-input-bg) 84%, white 16%);
}

.prompt-output textarea {
  border-radius: 14px;
  border: 1px solid var(--prompt-line);
  background: var(--prompt-input-bg);
  color: var(--prompt-input-text);
  padding: 0.74rem 0.82rem;
  font: inherit;
  min-height: 150px;
  resize: vertical;
}

.prompt-output textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 52%, white 48%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
  outline: none;
}

.prompt-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.prompt-blueprint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.prompt-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.prompt-grid-studio {
  margin-top: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prompt-home-cta {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 255, 0.84));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.prompt-home-cta p {
  margin: 0;
  color: var(--muted);
}

.prompt-studio-page {
  --mx: 35vw;
  --my: 16vh;
}

.section-prompt-studio {
  padding-bottom: 5rem;
}

.prompt-mobile-notice {
  display: none;
  margin-top: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 14px;
  padding: 0.72rem 0.84rem;
  color: #7c4b00;
  font-size: 0.9rem;
  line-height: 1.45;
}

.prompt-quick-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.prompt-quick-actions .btn {
  min-height: 42px;
}

.prompt-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  min-height: 42px;
  padding: 0 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: var(--text);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prompt-view-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.prompt-simple-note {
  margin: 0.62rem 0 0;
  color: var(--prompt-muted);
  font-size: 0.84rem;
}

.prompt-hard-rules {
  margin-top: 0.86rem;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 255, 0.9));
  padding: 0.85rem 0.95rem;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.prompt-hard-rules ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  color: color-mix(in srgb, var(--prompt-input-text) 74%, var(--prompt-muted) 26%);
  font-size: 0.84rem;
  line-height: 1.38;
  display: grid;
  gap: 0.22rem;
}

.prompt-update-note {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.62rem;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--prompt-line) 60%);
  background: color-mix(in srgb, var(--accent) 7%, var(--prompt-input-bg) 93%);
  color: color-mix(in srgb, var(--prompt-input-text) 82%, var(--accent) 18%);
  font-size: 0.8rem;
  line-height: 1.32;
}

.prompt-concept-lab {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.9rem;
  align-items: stretch;
}

.prompt-concept-main,
.prompt-quality-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.85));
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.prompt-concept-main {
  display: grid;
  gap: 0.7rem;
}

.prompt-concept-main textarea {
  border-radius: 12px;
  border: 1px solid var(--prompt-line);
  background: var(--prompt-input-bg);
  color: var(--prompt-input-text);
  padding: 0.7rem 0.8rem;
  font: inherit;
  min-height: 92px;
  resize: vertical;
}

.prompt-concept-main textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 52%, white 48%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.prompt-concept-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.prompt-concept-actions .btn {
  min-height: 40px;
  font-size: 0.84rem;
}

.prompt-concept-status {
  margin: 0;
  color: var(--prompt-muted);
  font-size: 0.86rem;
}

.prompt-quality-panel {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.prompt-quality-panel input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.prompt-quality-label {
  margin: 0;
  color: var(--prompt-title);
  font-size: 0.95rem;
  font-weight: 800;
}

.prompt-quality-hint {
  margin: 0;
  color: var(--prompt-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.prompt-mini-hint {
  margin: 0;
  color: color-mix(in srgb, var(--prompt-muted) 82%, #ffffff 18%);
  font-size: 0.75rem;
  line-height: 1.45;
}

.prompt-studio-shell {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 1rem;
  align-items: start;
}

.prompt-studio-left {
  display: grid;
  gap: 0.85rem;
}

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

.prompt-builder textarea {
  border-radius: 12px;
  border: 1px solid var(--prompt-line);
  background: var(--prompt-input-bg);
  color: var(--prompt-input-text);
  padding: 0.66rem 0.8rem;
  font: inherit;
  resize: vertical;
  min-height: 86px;
}

.prompt-builder textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 52%, white 48%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
  outline: none;
}

.prompt-builder input[type="color"] {
  min-height: 44px;
  padding: 0.22rem 0.25rem;
  cursor: pointer;
}

.prompt-builder input[type="range"] {
  accent-color: var(--accent);
  padding: 0;
}

.prompt-builder label small {
  color: var(--prompt-muted);
  font-size: 0.74rem;
}

.prompt-palette-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2.2rem;
}

.prompt-palette-chip {
  border: 1px solid var(--prompt-line);
  border-radius: 999px;
  background: var(--prompt-input-bg);
  color: var(--prompt-input-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0 0.6rem 0 0.36rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.prompt-palette-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--prompt-line) 58%);
}

.prompt-palette-chip-color {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--prompt-line) 70%, #000 30%);
}

.prompt-palette-chip-text {
  letter-spacing: 0.04em;
}

.prompt-palette-status {
  margin: 0;
  color: var(--prompt-muted);
  font-size: 0.84rem;
}

.prompt-output-studio textarea {
  min-height: 260px;
}

#prompt-final-live {
  min-height: 320px;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--prompt-line) 52%);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.9));
}

#prompt-math-spec,
#prompt-cinematic-prompt {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
}

body.prompt-simple-mode .prompt-advanced-block {
  display: none !important;
}

body.prompt-simple-mode .prompt-output-studio {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line) 70%);
}

body.prompt-simple-mode .prompt-builder {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.prompt-simple-mode .prompt-builder label.is-simple-hidden,
body.prompt-simple-mode .prompt-simple-hidden-extra {
  display: none !important;
}

#prompt-fast-lines {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.83rem;
  line-height: 1.45;
}

.prompt-studio-right {
  display: grid;
  gap: 1rem;
}

.prompt-shape-panel,
.prompt-ai-panel,
.prompt-gallery-panel,
.prompt-studio-help {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 255, 0.85));
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.09);
}

.prompt-shape-panel h3 {
  margin: 0.72rem 0 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.prompt-ai-panel h3,
.prompt-gallery-panel h3,
.prompt-studio-help h3 {
  margin: 0;
  font-size: 1.1rem;
}

.prompt-studio-help ul {
  margin: 0.7rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.prompt-shape-preview {
  margin-top: 0.8rem;
}

.prompt-shape-device-meta {
  margin: 0.78rem 0 0;
  color: #516884;
  font-size: 0.8rem;
  line-height: 1.35;
}

.prompt-shape-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
}

.prompt-ai-sub {
  margin: 0.52rem 0 0;
  color: var(--prompt-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.prompt-ai-suggestions {
  margin: 0.66rem 0 0;
  padding-left: 1rem;
  color: color-mix(in srgb, var(--prompt-input-text) 78%, var(--prompt-muted) 22%);
  font-size: 0.8rem;
  line-height: 1.35;
  display: grid;
  gap: 0.3rem;
}

.prompt-gallery-actions {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.prompt-gallery-actions input[type="file"] {
  width: 100%;
  border: 1px dashed var(--prompt-line);
  border-radius: 10px;
  background: var(--prompt-input-bg);
  color: var(--prompt-input-text);
  padding: 0.42rem;
  font: inherit;
  font-size: 0.78rem;
}

.prompt-gallery-grid {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.prompt-gallery-card {
  margin: 0;
  border: 1px solid var(--prompt-line);
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--prompt-input-bg) 90%, white 10%);
}

.prompt-gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.prompt-gallery-card figcaption {
  padding: 0.38rem 0.46rem 0.44rem;
  font-size: 0.68rem;
  color: var(--prompt-muted);
  line-height: 1.35;
}

.prompt-gallery-empty {
  margin: 0;
  color: var(--prompt-muted);
  font-size: 0.8rem;
}

.tool-credit {
  margin: 0.8rem 0 0;
  padding: 0.42rem 0.68rem;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.prompt-tool-credit {
  margin-top: 1.25rem;
}

.shape-preview-canvas {
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 180px at 20% 12%, rgba(10, 132, 255, 0.14), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.9));
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.shape-preview-device-frame {
  --device-ratio-w: 16;
  --device-ratio-h: 9;
  width: min(92%, 350px);
  aspect-ratio: var(--device-ratio-w) / var(--device-ratio-h);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: linear-gradient(162deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 255, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66), 0 12px 34px rgba(16, 24, 40, 0.14);
  position: relative;
  overflow: hidden;
}

.shape-preview-device-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(0.45rem, 2vw, 0.95rem);
}

.shape-preview-safe-overlay {
  position: absolute;
  inset: 8% 6%;
  border-radius: 12px;
  border: 1px dashed rgba(10, 132, 255, 0.34);
  pointer-events: none;
}

.device-safe-iphone-portrait::before,
.device-safe-iphone-portrait::after,
.device-safe-iphone-landscape::before,
.device-safe-iphone-landscape::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.device-safe-iphone-portrait::before {
  top: 2.2%;
  left: 28%;
  right: 28%;
  height: 7.2%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
}

.device-safe-iphone-portrait::after {
  bottom: 2.4%;
  left: 34%;
  right: 34%;
  height: 2.8%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
}

.device-safe-iphone-landscape::before {
  top: 26%;
  bottom: 26%;
  left: 1.8%;
  width: 3.1%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
}

.device-safe-iphone-landscape::after {
  top: 33%;
  bottom: 33%;
  right: 1.8%;
  width: 2.6%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
}

.shape-preview-layout-map {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  padding: 0.55rem 0.65rem;
}

.shape-preview-layout-map p {
  margin: 0;
  color: #29476e;
  font-size: 0.76rem;
  font-weight: 700;
}

.shape-preview-layout-map ul {
  margin: 0.42rem 0 0;
  padding-left: 1rem;
  color: #4d6382;
  font-size: 0.74rem;
  line-height: 1.3;
  display: grid;
  gap: 0.2rem;
}

.shape-demo-panel {
  width: min(88%, 300px);
  height: 190px;
  border-radius: var(--shape-panel-radius, 20px);
  border: 2px solid color-mix(in srgb, var(--shape-p) 70%, #0f172a 30%);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--shape-s) calc(var(--shape-a) * 100%), #ffffff 0%),
    color-mix(in srgb, var(--shape-p) calc(var(--shape-a) * 75%), #f8fafc 25%)
  );
  padding: 0.7rem;
  display: grid;
  grid-template-rows: 24px 1fr 32px;
  gap: 0.45rem;
}

.shape-demo-header,
.shape-demo-footer {
  border-radius: 999px;
  background: color-mix(in srgb, var(--shape-p) 44%, #ffffff 56%);
}

.shape-demo-body {
  border-radius: max(6px, calc(var(--shape-panel-radius, 20px) - 8px));
  border: 1px solid color-mix(in srgb, var(--shape-p) 38%, transparent);
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--shape-s) 24%, #ffffff 76%),
      color-mix(in srgb, var(--shape-p) 12%, #f8fafc 88%)
    );
  position: relative;
}

.shape-demo-body::before,
.shape-demo-body::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shape-p) 20%, #ffffff 80%);
}

.shape-demo-body::before {
  top: 24%;
  height: 12px;
}

.shape-demo-body::after {
  top: 54%;
  height: 10px;
}

.shape-demo-hp-shell {
  width: min(86%, 310px);
  height: 42px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--shape-p) 66%, #0f172a 34%);
  background: color-mix(in srgb, var(--shape-s) 36%, #eef2f8 64%);
  padding: 5px;
}

.shape-demo-hp-fill {
  width: 56%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--shape-p), var(--shape-s));
}

.shape-demo-hp-fill-wide {
  width: 72%;
}

.shape-demo-energy-shell {
  transform: skewX(-8deg);
}

.shape-demo-energy-fill {
  background: linear-gradient(90deg, var(--shape-s), var(--shape-p));
}

.shape-demo-joystick {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--shape-p) 58%, #0f172a 42%);
  background: radial-gradient(circle at 42% 32%, var(--shape-s), color-mix(in srgb, var(--shape-p) 70%, #0f172a 30%));
  display: grid;
  place-items: center;
}

.shape-demo-joystick-mini {
  width: 132px;
  height: 132px;
}

.shape-demo-joystick-knob {
  width: 42%;
  height: 42%;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--shape-s) 56%, #0f172a 44%);
  background: color-mix(in srgb, var(--shape-p) 48%, #f8fafc 52%);
}

.shape-demo-skill-btn {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--shape-p) 64%, #0f172a 36%);
  background: radial-gradient(circle at 35% 30%, var(--shape-s), var(--shape-p));
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  position: relative;
}

.shape-demo-skill-capsule {
  width: 170px;
  height: 108px;
  border-radius: 999px;
}

.shape-demo-skill-square {
  border-radius: 26px;
}

.shape-demo-skill-btn::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--shape-s) 55%, #0f172a 45%);
  opacity: 0.78;
}

.shape-demo-skill-core {
  width: 40%;
  height: 40%;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--shape-p) 62%, #0f172a 38%);
  background: color-mix(in srgb, var(--shape-s) 64%, #ffffff 36%);
}

.shape-demo-minimap,
.shape-demo-slot {
  width: 158px;
  height: 158px;
  border: 2px solid color-mix(in srgb, var(--shape-p) 66%, #0f172a 34%);
  background: color-mix(in srgb, var(--shape-s) 40%, #f8fafc 60%);
}

.shape-demo-minimap {
  border-radius: 999px;
}

.shape-demo-slot {
  border-radius: var(--shape-slot-radius, 16px);
}

.shape-demo-card {
  width: 176px;
  height: 236px;
  border-radius: var(--shape-card-radius, 18px);
  border: 2px solid color-mix(in srgb, var(--shape-p) 62%, #0f172a 38%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--shape-s) 66%, #ffffff 34%), color-mix(in srgb, var(--shape-p) 22%, #f8fafc 78%));
  padding: 0.75rem;
  display: grid;
  grid-template-rows: 84px 1fr;
  gap: 0.65rem;
}

.shape-demo-card-icon {
  border-radius: max(6px, calc(var(--shape-card-radius, 18px) - 6px));
  background: color-mix(in srgb, var(--shape-p) 44%, #ffffff 56%);
}

.shape-demo-card-lines {
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--shape-p) 38%, transparent);
}

.shape-demo-popup {
  width: min(88%, 320px);
  height: 200px;
  border-radius: var(--shape-popup-radius, 18px);
  border: 2px solid color-mix(in srgb, var(--shape-p) 60%, #0f172a 40%);
  background: linear-gradient(165deg, color-mix(in srgb, var(--shape-s) 72%, #ffffff 28%), color-mix(in srgb, var(--shape-p) 20%, #f8fafc 80%));
  padding: 0.75rem;
  display: grid;
  gap: 0.65rem;
  grid-template-rows: 24px 1fr;
}

.shape-demo-icon {
  width: 168px;
  height: 168px;
  border-radius: var(--shape-icon-radius, 24px);
  border: 2px solid color-mix(in srgb, var(--shape-p) 58%, #0f172a 42%);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--shape-s) 56%, #ffffff 44%),
    color-mix(in srgb, var(--shape-p) 26%, #f8fafc 74%)
  );
  display: grid;
  place-items: center;
}

.shape-demo-icon::before {
  content: "";
  width: 52%;
  height: 52%;
  border-radius: max(8px, calc(var(--shape-icon-radius, 24px) - 8px));
  border: 2px solid color-mix(in srgb, var(--shape-p) 58%, #0f172a 42%);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--shape-p) 68%, #ffffff 32%),
    color-mix(in srgb, var(--shape-s) 42%, #ffffff 58%)
  );
}

.shape-demo-humanoid {
  width: 128px;
  height: 250px;
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--shape-s) 70%, #0f172a 30%) 0 20px, transparent 21px),
    linear-gradient(color-mix(in srgb, var(--shape-p) 70%, #0f172a 30%) 0 0) center 78px / 52px 96px no-repeat,
    linear-gradient(color-mix(in srgb, var(--shape-p) 70%, #0f172a 30%) 0 0) 22px 80px / 28px 90px no-repeat,
    linear-gradient(color-mix(in srgb, var(--shape-p) 70%, #0f172a 30%) 0 0) 78px 80px / 28px 90px no-repeat,
    linear-gradient(color-mix(in srgb, var(--shape-p) 70%, #0f172a 30%) 0 0) 34px 170px / 24px 80px no-repeat,
    linear-gradient(color-mix(in srgb, var(--shape-p) 70%, #0f172a 30%) 0 0) 70px 170px / 24px 80px no-repeat;
  border-radius: 12px;
}

.shape-demo-ball {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--shape-p) 65%, #0f172a 35%);
  background: radial-gradient(circle at 34% 28%, var(--shape-s), var(--shape-p));
  position: relative;
}

.shape-demo-ball::before,
.shape-demo-ball::after {
  content: "";
  position: absolute;
  top: 54px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0f172a;
}

.shape-demo-ball::before {
  left: 52px;
}

.shape-demo-ball::after {
  right: 52px;
}

.shape-demo-bg {
  width: min(90%, 340px);
  height: 196px;
  border-radius: 18px;
  border: 2px solid color-mix(in srgb, var(--shape-p) 55%, #0f172a 45%);
  background:
    radial-gradient(220px 120px at 22% 26%, color-mix(in srgb, var(--shape-s) 72%, transparent), transparent 65%),
    radial-gradient(260px 140px at 76% 72%, color-mix(in srgb, var(--shape-p) 58%, transparent), transparent 68%),
    linear-gradient(160deg, color-mix(in srgb, var(--shape-s) 28%, #f8fafc 72%), color-mix(in srgb, var(--shape-p) 24%, #e2e8f0 76%));
}

.prompt-card {
  border: 1px solid var(--prompt-line);
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(168deg, var(--prompt-surface-strong), var(--prompt-surface));
  display: grid;
  gap: 0.72rem;
  box-shadow: var(--prompt-shadow);
}

.prompt-card h3 {
  margin: 0;
  color: var(--prompt-title);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.prompt-tag {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--prompt-muted) 84%, white 16%);
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--prompt-line) 86%, transparent);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
}

.prompt-card p {
  margin: 0;
  color: var(--prompt-muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.prompt-output-actions .btn {
  min-height: 42px;
  padding-inline: 1rem;
}

.prompt-card .prompt-output-actions {
  padding-top: 0.2rem;
}

.prompt-card .btn {
  min-height: 38px;
  font-size: 0.84rem;
  font-weight: 700;
}

.section-3d {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1rem;
}

.three-upload-form,
.vault-form,
.free-form,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.three-upload-form label,
.vault-form label,
.free-form label,
.lead-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #cbd5e0;
}

.three-upload-form input,
.three-upload-form select,
.three-upload-form textarea,
.vault-form input,
.vault-form select,
.vault-form textarea,
.free-form input,
.free-form textarea,
.lead-form input,
.lead-form textarea,
.admin-auth-row input,
.chat-form input {
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.88);
  color: var(--text);
  padding: 0.73rem 0.82rem;
  font: inherit;
}

.three-upload-form input:focus,
.three-upload-form select:focus,
.three-upload-form textarea:focus,
.vault-form input:focus,
.vault-form select:focus,
.vault-form textarea:focus,
.free-form input:focus,
.free-form textarea:focus,
.lead-form input:focus,
.lead-form textarea:focus,
.admin-auth-row input:focus,
.chat-form input:focus {
  border-color: rgba(125, 240, 138, 0.64);
  outline: none;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #d8e2ed;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.file-dropzone {
  position: relative;
  margin-top: 0.08rem;
  border: 1.5px dashed rgba(15, 23, 42, 0.22);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.9));
  padding: 1rem;
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 0.42rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.file-dropzone:hover {
  border-color: rgba(10, 132, 255, 0.48);
  box-shadow: 0 14px 28px rgba(10, 132, 255, 0.14);
  transform: translateY(-1px);
}

.file-dropzone:focus-visible {
  outline: none;
  border-color: rgba(10, 132, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.16), 0 14px 28px rgba(10, 132, 255, 0.12);
}

.file-dropzone.is-dragover {
  border-color: rgba(10, 132, 255, 0.72);
  background: linear-gradient(165deg, rgba(238, 247, 255, 0.98), rgba(227, 241, 255, 0.98));
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.16), 0 18px 34px rgba(10, 132, 255, 0.2);
}

.file-dropzone-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.08);
  color: #0b64c5;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.file-dropzone-title {
  margin: 0.18rem 0 0;
  color: #162a48;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
}

.file-dropzone-sub {
  margin: 0;
  color: #4c6181;
  font-size: 0.88rem;
}

.file-dropzone-picked {
  margin: 0.2rem 0 0;
  color: #0d4f98;
  font-size: 0.84rem;
  word-break: break-word;
}

.full {
  grid-column: 1 / -1;
}

.vault-feedback,
.form-feedback,
.admin-status {
  margin: 0.2rem 0 0;
  min-height: 1.25rem;
  font-size: 0.93rem;
  color: var(--accent);
}

.three-preview-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.three-preview-panel h3 {
  margin: 0.75rem 0 0.8rem;
  font-size: 1.4rem;
  line-height: 1.2;
}

.three-viewer {
  width: 100%;
  min-height: 330px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 30% 20%, rgba(125, 240, 138, 0.08), rgba(11, 15, 20, 0.9));
}

.viewer-meta {
  margin: 0.72rem 0 0;
  color: #a7b4c2;
  font-size: 0.88rem;
}

.converter-download-btn {
  margin-top: 0.85rem;
  width: fit-content;
}

.converter-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #dce8f5;
  font-size: 0.9rem;
}

.rig-lab-stats {
  margin-top: 0.86rem;
  display: grid;
  gap: 0.62rem;
}

.rig-lab-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.rig-lab-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--prompt-input-bg) 82%, transparent);
  color: color-mix(in srgb, var(--prompt-input-text) 84%, var(--muted) 16%);
  padding: 0 0.62rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.rig-lab-summary.is-pass .rig-lab-pill:first-child {
  border-color: color-mix(in srgb, #22c55e 42%, var(--line) 58%);
  color: #1c8f4a;
}

.rig-lab-summary.is-fail .rig-lab-pill:first-child {
  border-color: color-mix(in srgb, #ef4444 42%, var(--line) 58%);
  color: #cc2e2e;
}

.rig-lab-lod-grid {
  display: grid;
  gap: 0.42rem;
}

.rig-lab-lod-row {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.45rem 0.62rem;
  background: color-mix(in srgb, var(--prompt-input-bg) 78%, transparent);
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--prompt-input-text) 82%, var(--muted) 18%);
}

.rig-lab-notes {
  margin: 0;
  padding-left: 1rem;
  color: color-mix(in srgb, var(--prompt-input-text) 74%, var(--muted) 26%);
  display: grid;
  gap: 0.34rem;
  font-size: 0.82rem;
}

.loader-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(125, 240, 138, 0.2);
  border-top-color: rgba(125, 240, 138, 0.95);
  animation: spin 900ms linear infinite;
}

.three-bank-columns {
  margin-top: 0.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.column-head {
  margin-bottom: 0.78rem;
}

.column-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.column-head p {
  margin: 0.35rem 0 0;
  color: #a5b2c1;
  font-size: 0.9rem;
}

.asset-list {
  display: grid;
  gap: 0.72rem;
}

.asset-empty {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.82rem;
  color: #9eacbc;
  font-size: 0.9rem;
}

.asset-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.82rem;
  background: rgba(255, 255, 255, 0.018);
}

.asset-card h4 {
  margin: 0;
  font-size: 1rem;
}

.asset-meta {
  margin: 0.36rem 0 0;
  color: #bcc8d6;
  font-size: 0.84rem;
  line-height: 1.45;
}

.asset-tags {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.asset-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d2dce8;
  font-size: 0.75rem;
  padding: 0 0.55rem;
}

.asset-tags .tag-ok {
  border-color: rgba(125, 240, 138, 0.4);
  color: var(--accent);
}

.asset-bottom {
  margin-top: 0.7rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.68rem;
}

.qr-thumb {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  object-fit: cover;
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.asset-actions .btn {
  min-height: 36px;
  font-size: 0.82rem;
  padding: 0 0.74rem;
}

.section-vault {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.vault-fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.74rem 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.vault-fieldset legend {
  padding: 0 0.38rem;
  color: #becbd9;
  font-size: 0.84rem;
}

.vault-fieldset label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #d7e0ea;
  font-size: 0.86rem;
}

.vault-panel h3 {
  margin: 0.74rem 0 0.9rem;
  font-size: 1.42rem;
  line-height: 1.2;
}

.vault-cards {
  display: grid;
  gap: 0.72rem;
}

.vault-cards article {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
}

.vault-cards h4 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.vault-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-free .free-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1rem;
}

.free-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: #d3dce8;
  display: grid;
  gap: 0.45rem;
}

.section-assistant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.assistant-copy h2 {
  margin: 0.7rem 0 0.72rem;
  line-height: 1.17;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em;
}

.assistant-copy p {
  margin: 0;
  color: var(--muted);
}

.assistant-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: #d8e0ea;
  display: grid;
  gap: 0.45rem;
}

.assistant-chat {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.chat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.chat-head strong {
  font-size: 1.12rem;
}

.chat-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-log {
  min-height: 290px;
  max-height: 360px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 9, 11, 0.84);
  padding: 0.85rem;
  display: grid;
  gap: 0.64rem;
}

.chat-bubble {
  max-width: 94%;
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  font-size: 0.93rem;
  line-height: 1.45;
}

.chat-bubble.assistant {
  justify-self: start;
  color: #e7eef7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.chat-bubble.user {
  justify-self: end;
  color: #0e2612;
  border: 1px solid rgba(125, 240, 138, 0.55);
  background: linear-gradient(145deg, #7df08a, #73dece);
}

.chat-bubble.typing {
  color: #9eb0bf;
  font-style: italic;
}

.quick-prompts {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quick-prompts button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: #ced8e4;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.36rem 0.68rem;
  cursor: pointer;
}

.quick-prompts button:hover {
  border-color: var(--line-strong);
}

.chat-form {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.chat-note {
  margin: 0.62rem 0 0;
  color: #9fabb9;
  font-size: 0.82rem;
}

.admin-wrap {
  display: grid;
  gap: 1rem;
}

.admin-auth label {
  display: block;
  margin: 0 0 0.4rem;
  color: #ced7e2;
  font-size: 0.88rem;
}

.admin-auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
}

.admin-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.admin-stats-head {
  margin-top: 1rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-stat-card h4 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d9e2ed;
}

.admin-stat-card strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.1;
  margin-top: 0.24rem;
}

.admin-stat-card span {
  color: #a8b6c7;
  font-size: 0.82rem;
}

.admin-stat-card small {
  color: #89a3bc;
  font-size: 0.76rem;
}

.admin-stat-wide {
  grid-column: 1 / -1;
}

.admin-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.admin-mini-list li {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem 0.58rem;
  background: rgba(255, 255, 255, 0.012);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.6rem;
}

.admin-mini-list li small {
  grid-column: 2;
  justify-self: end;
}

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

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

.admin-mini-table th,
.admin-mini-table td {
  text-align: left;
  font-size: 0.8rem;
  padding: 0.44rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8c8d9;
  white-space: nowrap;
}

.admin-mini-table th {
  color: #d9e5f1;
  font-weight: 600;
}

.admin-stats-actions {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.section-call {
  padding-bottom: 7rem;
}

.call-head h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.48rem, 3vw, 2.45rem);
  line-height: 1.16;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 8, 0.86);
}

.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: #9facbc;
  font-size: 0.9rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .nav {
    gap: 0.2rem;
  }

  .nav a {
    font-size: 0.8rem;
    padding: 0.42rem 0.66rem;
  }

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

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

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

@media (max-width: 980px) {
  .hero,
  .section-3d,
  .section-vault,
  .section-module-api .module-api-layout,
  .section-assistant,
  .prompt-studio-shell,
  .section-free .free-grid,
  .feature-grid,
  .crm-grid,
  .ecosystem-grid,
  .platform-intro-grid,
  .community-layout,
  .community-posts-grid,
  .three-bank-columns,
  .who-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.4rem;
  }

  .three-viewer {
    min-height: 280px;
  }

  .prompt-mobile-notice {
    display: block;
  }
}

@media (max-width: 760px) {
  body.bg-loop-active .bg-loop-layer {
    opacity: 0.12;
  }

  .bg-loop-video {
    transform: scale(1.14);
    filter: grayscale(1) saturate(0) contrast(1.05) brightness(1.34) blur(1.3px);
  }

  .nav {
    display: none;
  }

  .three-upload-form,
  .vault-form,
  .free-form,
  .lead-form,
  .prompt-builder,
  .prompt-builder-advanced,
  .prompt-blueprint-grid,
  .section-module-api .module-api-layout,
  .community-form,
  .vault-fieldset,
  .admin-auth-row,
  .admin-stats-grid,
  .chat-form,
  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .shape-preview-canvas {
    min-height: 330px;
  }

  .shape-preview-device-frame {
    width: min(94%, 310px);
  }

  .prompt-output-studio textarea {
    min-height: 220px;
  }

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

  .prompt-quick-actions .btn {
    flex: 1 1 calc(50% - 0.34rem);
  }

  .prompt-view-switch {
    flex: 1 1 100%;
    justify-content: center;
  }

  .asset-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .who-core-list {
    columns: 1;
  }

  .community-rating-meta,
  .community-post-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* iOS-inspired light refresh */
:root {
  --bg: #eff4fb;
  --bg-soft: #f8fbff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #101828;
  --muted: #5b6b82;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.2);
  --accent: #0a84ff;
  --accent-ink: #ffffff;
}

body {
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(10, 132, 255, 0.14), transparent 60%),
    radial-gradient(900px 620px at 90% 8%, rgba(64, 156, 255, 0.12), transparent 64%),
    linear-gradient(180deg, #f8fbff, #eef4fb 48%, #f5f8fd);
}

.ambient {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(10, 132, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

.site-header {
  background: linear-gradient(to bottom, rgba(249, 252, 255, 0.85), rgba(249, 252, 255, 0.6));
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.brand {
  color: #0e1b34;
}

.brand-mark {
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.nav a {
  color: #5a6b86;
}

.nav a:hover {
  color: #0a84ff;
}

.eyebrow {
  color: #0a84ff;
}

.hero-badge {
  color: #0f5db6;
  border: 1px solid rgba(10, 132, 255, 0.35);
  background: rgba(10, 132, 255, 0.08);
}

h1 span {
  color: #334765;
}

.subtext,
.feature-card p,
.crm-card p,
.free-card p,
.assistant-copy p,
.vault-cards p,
.column-head p,
.viewer-meta,
.chat-head span,
.chat-note {
  color: #5d6f88;
}

.section {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.btn {
  border-color: rgba(15, 23, 42, 0.16);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(150deg, #0a84ff, #42b2ff);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(150deg, #0d8fff, #68c0ff);
}

.btn-ghost {
  color: #1a2a44;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(15, 23, 42, 0.14);
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.24);
  background: #ffffff;
}

.signals {
  color: #445873;
}

.hero-panel,
.feature-card,
.crm-card,
.free-card,
.bank-column,
.vault-panel,
.assistant-copy,
.assistant-chat,
.admin-wrap,
.three-preview-panel,
.three-upload-form,
.vault-form,
.free-form,
.lead-form,
.prompt-builder,
.prompt-output,
.prompt-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.83));
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 46px rgba(16, 24, 40, 0.09);
}

.status-line,
.asset-card,
.vault-cards article,
.admin-stat-card,
.admin-mini-list li {
  background: rgba(248, 251, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.12);
}

.panel-label,
.prompt-tag,
.admin-stat-card span,
.admin-stat-card small {
  color: #637a97;
}

.ok {
  color: #15803d;
}

.prompt-builder label,
.three-upload-form label,
.vault-form label,
.free-form label,
.lead-form label,
.admin-auth label {
  color: #334663;
}

.prompt-builder input,
.prompt-builder select,
.prompt-output textarea,
.three-upload-form input,
.three-upload-form select,
.three-upload-form textarea,
.vault-form input,
.vault-form select,
.vault-form textarea,
.free-form input,
.free-form textarea,
.lead-form input,
.lead-form textarea,
.admin-auth-row input,
.chat-form input {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #10203a;
}

.prompt-builder input:focus,
.prompt-builder select:focus,
.prompt-output textarea:focus,
.three-upload-form input:focus,
.three-upload-form select:focus,
.three-upload-form textarea:focus,
.vault-form input:focus,
.vault-form select:focus,
.vault-form textarea:focus,
.free-form input:focus,
.free-form textarea:focus,
.lead-form input:focus,
.lead-form textarea:focus,
.admin-auth-row input:focus,
.chat-form input:focus {
  border-color: rgba(10, 132, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14);
}

.prompt-output p,
.asset-meta,
.asset-empty,
.admin-status {
  color: #5f7491;
}

.asset-empty {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.76);
}

.asset-tags span {
  border-color: rgba(15, 23, 42, 0.18);
  color: #334766;
  background: rgba(255, 255, 255, 0.74);
}

.asset-tags .tag-ok {
  border-color: rgba(21, 128, 61, 0.34);
  color: #15803d;
}

.three-viewer {
  border-color: rgba(15, 23, 42, 0.14);
  background: radial-gradient(circle at 30% 20%, rgba(10, 132, 255, 0.12), rgba(243, 248, 255, 0.96));
}

.converter-loading {
  color: #29405f;
}

.loader-dot {
  border: 2px solid rgba(10, 132, 255, 0.18);
  border-top-color: rgba(10, 132, 255, 0.92);
}

.vault-fieldset {
  border-color: rgba(15, 23, 42, 0.13);
  background: rgba(255, 255, 255, 0.7);
}

.vault-fieldset legend,
.vault-fieldset label,
.assistant-points,
.free-card ul {
  color: #425672;
}

.chat-log {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.chat-bubble.assistant {
  color: #1f344f;
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.chat-bubble.user {
  color: #ffffff;
  border-color: rgba(10, 132, 255, 0.3);
  background: linear-gradient(150deg, #0a84ff, #41b3ff);
}

.quick-prompts button {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: #2f4461;
}

.quick-prompts button:hover {
  border-color: rgba(10, 132, 255, 0.34);
  color: #0a84ff;
}

.admin-panel {
  border-top-color: rgba(15, 23, 42, 0.12);
}

.admin-stat-card h4,
.admin-mini-table th {
  color: #1f334d;
}

.admin-mini-table th,
.admin-mini-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  color: #3f5775;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(249, 252, 255, 0.86);
}

.footer-inner p {
  color: #6a7f99;
}

@media (max-width: 760px) {
  .intro-logo-wrap {
    width: min(84vw, 360px);
  }

  .intro-controls {
    left: 0.75rem;
    right: 0.75rem;
    justify-content: center;
  }

  .intro-action {
    min-height: 38px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-loop-layer {
    display: none;
  }
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.16rem 0.2rem 0.16rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.theme-switcher span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.theme-switcher select {
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 0 0.62rem;
  font: inherit;
  font-size: 0.82rem;
}

.theme-switcher select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 70%, white 30%);
}

/* Module accents */
#local-ai {
  --module-accent: #0a84ff;
}

#game-asset-transfer {
  --module-accent: #1e7eff;
}

#crm {
  --module-accent: #4f46e5;
}

#members {
  --module-accent: #7b5cff;
}

#prompt-bank {
  --module-accent: #00a08a;
}

#converter {
  --module-accent: #f97316;
}

#rig-lab {
  --module-accent: #8b5cf6;
}

#three-d-bank {
  --module-accent: #0ea5e9;
}

#project-vault {
  --module-accent: #16a34a;
}

#free-apply {
  --module-accent: #db2777;
}

#ecosystem {
  --module-accent: #2563eb;
}

#module-api {
  --module-accent: #0ea5e9;
}

#market-signal {
  --module-accent: #f97316;
}

#assistant {
  --module-accent: #6366f1;
}

#call {
  --module-accent: #0f766e;
}

.section-head h2 {
  position: relative;
  padding-bottom: 0.32rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(110px, 16vw, 190px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--module-accent, var(--accent)) 100%, white 0%), transparent);
  opacity: 0.52;
}

/* Prompt color lanes */
.prompt-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.prompt-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--prompt-accent, #0a84ff);
  opacity: 0.74;
}

.prompt-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--prompt-accent, var(--accent)) 38%, var(--line) 62%);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--prompt-accent, var(--accent)) 20%, transparent);
}

.prompt-category-panels {
  --prompt-accent: #7c3aed;
}

.prompt-category-joystick {
  --prompt-accent: #0ea5e9;
}

.prompt-category-buttons {
  --prompt-accent: #2563eb;
}

.prompt-category-icons {
  --prompt-accent: #06b6d4;
}

.prompt-category-hud {
  --prompt-accent: #f97316;
}

.prompt-category-inventory {
  --prompt-accent: #22c55e;
}

.prompt-category-skill-tree {
  --prompt-accent: #a855f7;
}

.prompt-category-shop {
  --prompt-accent: #db2777;
}

.prompt-category-popup {
  --prompt-accent: #ef4444;
}

.prompt-category-background {
  --prompt-accent: #0f766e;
}

.prompt-category-atlas {
  --prompt-accent: #f59e0b;
}

.prompt-category-loading {
  --prompt-accent: #3b82f6;
}

.prompt-category-hp-bar {
  --prompt-accent: #ef4444;
}

.prompt-category-energy-bar {
  --prompt-accent: #6366f1;
}

.prompt-category-characters {
  --prompt-accent: #0ea5e9;
}

.prompt-category-ball-character {
  --prompt-accent: #22c55e;
}

/* Members */
.section-members .member-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.member-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.member-card h3 {
  margin: 0.7rem 0 0.95rem;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.member-auth-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.member-auth-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #364b68;
}

.member-auth-form input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0.7rem 0.82rem;
  font: inherit;
}

.member-auth-form input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 60%, white 40%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.member-auth-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.member-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 0.2rem;
}

.member-stat span {
  color: #5f7490;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.member-stat strong {
  font-size: 1.4rem;
  line-height: 1;
}

.member-note {
  margin: 0.75rem 0 0;
  color: #5f7490;
  font-size: 0.9rem;
}

.member-modules {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.member-module {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(245, 251, 255, 0.76));
}

.member-module-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.member-module-head p {
  margin: 0.45rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.member-module-prompt {
  --module-accent-local: #7c3aed;
}

.member-module-3d {
  --module-accent-local: #f97316;
}

.member-module-ui {
  --module-accent-local: #0ea5e9;
}

.member-module {
  border-top: 3px solid color-mix(in srgb, var(--module-accent-local, var(--accent)) 76%, transparent);
}

.member-list {
  display: grid;
  gap: 0.62rem;
}

.member-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 0.48rem;
}

.member-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.member-item strong {
  font-size: 0.95rem;
}

.member-item p {
  margin: 0;
  color: #445b79;
  font-size: 0.84rem;
  line-height: 1.4;
}

.member-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.member-item-foot small {
  color: #687f9d;
  font-size: 0.76rem;
}

.member-item-foot .btn {
  min-height: 32px;
  font-size: 0.75rem;
  padding: 0 0.62rem;
}

/* Background loop becomes subtle texture */
body {
  --bg-loop-opacity: 0.014;
  --ambient-grid-opacity: 0.14;
}

body.bg-loop-active .bg-loop-layer {
  opacity: var(--bg-loop-opacity);
}

body.bg-loop-active .ambient {
  opacity: var(--ambient-grid-opacity);
}

/* AstraSoft (current default) */
body.theme-astrasoft {
  --bg-loop-opacity: 0.012;
  --ambient-grid-opacity: 0.13;
}

/* Dark glass base for theme variants */
body.theme-astramid,
body.theme-astraultra {
  --surface: rgba(20, 23, 28, 0.72);
  --surface-strong: rgba(18, 21, 26, 0.86);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.25);
  --text: #f1f6ff;
  --muted: #aab4c6;
  --bg-loop-opacity: 0.032;
  --ambient-grid-opacity: 0.09;
  color: var(--text);
  background:
    radial-gradient(1200px 760px at 10% -12%, rgba(255, 255, 255, 0.07), transparent 65%),
    radial-gradient(900px 680px at 94% 8%, rgba(255, 255, 255, 0.06), transparent 68%),
    linear-gradient(180deg, #15181d 0%, #13171d 52%, #11151a 100%);
}

body.theme-astramid {
  --accent: #ff8b2a;
  --accent-ink: #261608;
}

body.theme-astraultra {
  --accent: #6dff86;
  --accent-ink: #08210e;
}

body.theme-astramid .site-header,
body.theme-astraultra .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(to bottom, rgba(17, 20, 25, 0.56), rgba(17, 20, 25, 0.32));
  backdrop-filter: blur(26px) saturate(170%);
}

body.theme-astramid .brand,
body.theme-astraultra .brand {
  color: #edf4ff;
}

body.theme-astramid .nav a,
body.theme-astraultra .nav a {
  color: #c8d3e2;
}

body.theme-astramid .nav a:hover,
body.theme-astraultra .nav a:hover {
  color: #ffffff;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
}

body.theme-astramid .nav,
body.theme-astraultra .nav {
  background: rgba(15, 18, 24, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

body.theme-astramid .nav a.nav-highlight,
body.theme-astraultra .nav a.nav-highlight {
  color: #0a1220;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 94%, white 6%),
    color-mix(in srgb, var(--accent) 72%, white 28%)
  );
}

body.theme-astramid .ecosystem-link,
body.theme-astraultra .ecosystem-link {
  color: #e6eefb;
}

body.theme-astramid .theme-switcher,
body.theme-astraultra .theme-switcher {
  background: rgba(16, 18, 24, 0.56);
  border-color: rgba(255, 255, 255, 0.18);
}

body.theme-astramid .theme-switcher select,
body.theme-astraultra .theme-switcher select {
  background: rgba(13, 16, 21, 0.74);
  color: #e8f0ff;
  border-color: rgba(255, 255, 255, 0.22);
}

body.theme-astramid .hero-panel,
body.theme-astraultra .hero-panel,
body.theme-astramid .feature-card,
body.theme-astraultra .feature-card,
body.theme-astramid .crm-card,
body.theme-astraultra .crm-card,
body.theme-astramid .free-card,
body.theme-astraultra .free-card,
body.theme-astramid .bank-column,
body.theme-astraultra .bank-column,
body.theme-astramid .vault-panel,
body.theme-astraultra .vault-panel,
body.theme-astramid .assistant-copy,
body.theme-astraultra .assistant-copy,
body.theme-astramid .assistant-chat,
body.theme-astraultra .assistant-chat,
body.theme-astramid .admin-wrap,
body.theme-astraultra .admin-wrap,
body.theme-astramid .three-preview-panel,
body.theme-astraultra .three-preview-panel,
body.theme-astramid .three-upload-form,
body.theme-astraultra .three-upload-form,
body.theme-astramid .vault-form,
body.theme-astraultra .vault-form,
body.theme-astramid .free-form,
body.theme-astraultra .free-form,
body.theme-astramid .lead-form,
body.theme-astraultra .lead-form,
body.theme-astramid .prompt-builder,
body.theme-astraultra .prompt-builder,
body.theme-astramid .prompt-output,
body.theme-astraultra .prompt-output,
body.theme-astramid .prompt-card,
body.theme-astraultra .prompt-card,
body.theme-astramid .prompt-home-cta,
body.theme-astraultra .prompt-home-cta,
body.theme-astramid .prompt-shape-panel,
body.theme-astraultra .prompt-shape-panel,
body.theme-astramid .prompt-studio-help,
body.theme-astraultra .prompt-studio-help,
body.theme-astramid .ecosystem-card,
body.theme-astraultra .ecosystem-card,
body.theme-astramid .module-api-card,
body.theme-astraultra .module-api-card,
body.theme-astramid .module-card,
body.theme-astraultra .module-card,
body.theme-astramid .market-signal-card,
body.theme-astraultra .market-signal-card,
body.theme-astramid .member-card,
body.theme-astraultra .member-card,
body.theme-astramid .member-module,
body.theme-astraultra .member-module {
  background: linear-gradient(165deg, rgba(21, 25, 31, 0.74), rgba(17, 20, 26, 0.58));
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

body.theme-astramid .status-line,
body.theme-astraultra .status-line,
body.theme-astramid .asset-card,
body.theme-astraultra .asset-card,
body.theme-astramid .vault-cards article,
body.theme-astraultra .vault-cards article,
body.theme-astramid .admin-stat-card,
body.theme-astraultra .admin-stat-card,
body.theme-astramid .admin-mini-list li,
body.theme-astraultra .admin-mini-list li,
body.theme-astramid .member-item,
body.theme-astraultra .member-item,
body.theme-astramid .member-stat,
body.theme-astraultra .member-stat {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

body.theme-astramid .subtext,
body.theme-astraultra .subtext,
body.theme-astramid .feature-card p,
body.theme-astraultra .feature-card p,
body.theme-astramid .crm-card p,
body.theme-astraultra .crm-card p,
body.theme-astramid .free-card p,
body.theme-astraultra .free-card p,
body.theme-astramid .assistant-copy p,
body.theme-astraultra .assistant-copy p,
body.theme-astramid .vault-cards p,
body.theme-astraultra .vault-cards p,
body.theme-astramid .column-head p,
body.theme-astraultra .column-head p,
body.theme-astramid .viewer-meta,
body.theme-astraultra .viewer-meta,
body.theme-astramid .chat-head span,
body.theme-astraultra .chat-head span,
body.theme-astramid .chat-note,
body.theme-astraultra .chat-note,
body.theme-astramid .prompt-card p,
body.theme-astraultra .prompt-card p,
body.theme-astramid .prompt-home-cta p,
body.theme-astraultra .prompt-home-cta p,
body.theme-astramid .prompt-studio-help ul,
body.theme-astraultra .prompt-studio-help ul,
body.theme-astramid .ecosystem-card p,
body.theme-astraultra .ecosystem-card p,
body.theme-astramid .module-api-card p,
body.theme-astraultra .module-api-card p,
body.theme-astramid .module-card p,
body.theme-astraultra .module-card p,
body.theme-astramid .market-signal-card p,
body.theme-astraultra .market-signal-card p,
body.theme-astramid .member-item p,
body.theme-astraultra .member-item p {
  color: #bcc8d9;
}

body.theme-astramid .prompt-tag,
body.theme-astraultra .prompt-tag,
body.theme-astramid .panel-label,
body.theme-astraultra .panel-label,
body.theme-astramid .member-stat span,
body.theme-astraultra .member-stat span,
body.theme-astramid .member-item-foot small,
body.theme-astraultra .member-item-foot small {
  color: #8fa3bd;
}

body.theme-astramid .btn-primary,
body.theme-astraultra .btn-primary {
  border-color: transparent;
  color: #07121f;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 100%, white 0%), color-mix(in srgb, var(--accent) 74%, white 26%));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

body.theme-astramid .btn-ghost,
body.theme-astraultra .btn-ghost {
  color: #e4edf9;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.21);
}

body.theme-astramid .btn-ghost:hover,
body.theme-astraultra .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, white 45%);
  color: #ffffff;
}

body.theme-astramid .prompt-builder input,
body.theme-astraultra .prompt-builder input,
body.theme-astramid .prompt-builder select,
body.theme-astraultra .prompt-builder select,
body.theme-astramid .prompt-output textarea,
body.theme-astraultra .prompt-output textarea,
body.theme-astramid .three-upload-form input,
body.theme-astraultra .three-upload-form input,
body.theme-astramid .three-upload-form select,
body.theme-astraultra .three-upload-form select,
body.theme-astramid .three-upload-form textarea,
body.theme-astraultra .three-upload-form textarea,
body.theme-astramid .vault-form input,
body.theme-astraultra .vault-form input,
body.theme-astramid .vault-form select,
body.theme-astraultra .vault-form select,
body.theme-astramid .vault-form textarea,
body.theme-astraultra .vault-form textarea,
body.theme-astramid .free-form input,
body.theme-astraultra .free-form input,
body.theme-astramid .free-form textarea,
body.theme-astraultra .free-form textarea,
body.theme-astramid .lead-form input,
body.theme-astraultra .lead-form input,
body.theme-astramid .lead-form textarea,
body.theme-astraultra .lead-form textarea,
body.theme-astramid .admin-auth-row input,
body.theme-astraultra .admin-auth-row input,
body.theme-astramid .chat-form input,
body.theme-astraultra .chat-form input,
body.theme-astramid .member-auth-form input,
body.theme-astraultra .member-auth-form input {
  background: rgba(12, 16, 22, 0.82);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0f7ff;
}

body.theme-astramid .file-dropzone,
body.theme-astraultra .file-dropzone {
  background: linear-gradient(165deg, rgba(19, 24, 30, 0.86), rgba(16, 20, 26, 0.74));
  border-color: rgba(255, 255, 255, 0.24);
}

body.theme-astramid .file-dropzone-title,
body.theme-astraultra .file-dropzone-title {
  color: #e8f1ff;
}

body.theme-astramid .file-dropzone-sub,
body.theme-astraultra .file-dropzone-sub {
  color: #a9b9ce;
}

body.theme-astramid .file-dropzone-picked,
body.theme-astraultra .file-dropzone-picked {
  color: color-mix(in srgb, var(--accent) 74%, #e8f1ff 26%);
}

body.theme-astramid .prompt-mobile-notice,
body.theme-astraultra .prompt-mobile-notice {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: #f2f7ff;
}

body.theme-astramid .prompt-template-summary,
body.theme-astraultra .prompt-template-summary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(9, 12, 16, 0.46);
  color: #c7d3e4;
}

body.theme-astramid .shape-preview-layout-map,
body.theme-astraultra .shape-preview-layout-map {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(9, 12, 16, 0.64);
}

body.theme-astramid .shape-preview-layout-map p,
body.theme-astraultra .shape-preview-layout-map p {
  color: #e5ecf8;
}

body.theme-astramid .shape-preview-layout-map ul,
body.theme-astraultra .shape-preview-layout-map ul {
  color: #b7c6da;
}

body.theme-astramid .chat-log,
body.theme-astraultra .chat-log {
  background: rgba(8, 11, 16, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
}

body.theme-astramid .chat-bubble.assistant,
body.theme-astraultra .chat-bubble.assistant {
  color: #e7effa;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

body.theme-astramid .chat-bubble.user,
body.theme-astraultra .chat-bubble.user {
  color: #0b1523;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 98%, white 2%), color-mix(in srgb, var(--accent) 70%, white 30%));
}

body.theme-astramid .section-head h2::after,
body.theme-astraultra .section-head h2::after {
  opacity: 0.78;
}

body.theme-astramid .site-footer,
body.theme-astraultra .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 18, 24, 0.58);
}

body.theme-astramid .footer-inner p,
body.theme-astraultra .footer-inner p {
  color: #aebcd0;
}

body.theme-astramid .platform-intro-card,
body.theme-astraultra .platform-intro-card,
body.theme-astramid .community-card,
body.theme-astraultra .community-card,
body.theme-astramid .community-feed-card,
body.theme-astraultra .community-feed-card,
body.theme-astramid .community-post-card,
body.theme-astraultra .community-post-card,
body.theme-astramid .community-rating-card,
body.theme-astraultra .community-rating-card {
  background: rgba(10, 14, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
}

body.theme-astramid .platform-intro-card p,
body.theme-astraultra .platform-intro-card p,
body.theme-astramid .community-rating-card p,
body.theme-astraultra .community-rating-card p,
body.theme-astramid .community-post-content p,
body.theme-astraultra .community-post-content p,
body.theme-astramid .community-empty,
body.theme-astraultra .community-empty {
  color: #b5c6d8;
}

body.theme-astramid .community-post-meta span,
body.theme-astraultra .community-post-meta span,
body.theme-astramid .community-rating-meta,
body.theme-astraultra .community-rating-meta,
body.theme-astramid .community-post-actions,
body.theme-astraultra .community-post-actions {
  color: #a9bdd4;
}

body.theme-astramid .community-post-meta strong,
body.theme-astraultra .community-post-meta strong,
body.theme-astramid .community-rating-card h4,
body.theme-astraultra .community-rating-card h4,
body.theme-astramid .community-post-content h4,
body.theme-astraultra .community-post-content h4,
body.theme-astramid .platform-intro-card h3,
body.theme-astraultra .platform-intro-card h3 {
  color: #edf5ff;
}

body.theme-astramid .community-form label,
body.theme-astraultra .community-form label {
  color: #c7d7ea;
}

body.theme-astramid .community-form input,
body.theme-astraultra .community-form input,
body.theme-astramid .community-form textarea,
body.theme-astraultra .community-form textarea {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(7, 11, 16, 0.9);
  color: #eef6ff;
}

body.theme-astramid .community-star,
body.theme-astraultra .community-star {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 12, 18, 0.86);
  color: #a8bfd8;
}

body.theme-astramid .community-star.is-active,
body.theme-astraultra .community-star.is-active {
  border-color: rgba(250, 204, 21, 0.52);
  background: rgba(113, 63, 18, 0.45);
  color: #fde68a;
}

body.theme-astramid .community-like-btn.is-liked,
body.theme-astraultra .community-like-btn.is-liked {
  border-color: rgba(45, 212, 191, 0.56);
  color: #99f6e4;
  background: rgba(15, 118, 110, 0.28);
}

@media (max-width: 1100px) {
  .member-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .header-tools {
    margin-left: auto;
  }

  .theme-switcher {
    min-height: 32px;
    padding-right: 0.14rem;
  }

  .theme-switcher span {
    display: none;
  }

  .theme-switcher select {
    min-height: 28px;
    font-size: 0.79rem;
  }

  .section-members .member-grid,
  .member-modules,
  .member-auth-form,
  .member-stats {
    grid-template-columns: 1fr;
  }

  body.bg-loop-active .bg-loop-layer {
    opacity: calc(var(--bg-loop-opacity) + 0.008);
  }
}

/* Prompt bank refresh + stronger theme separation */
body.theme-astrasoft {
  --prompt-surface: rgba(255, 255, 255, 0.95);
  --prompt-surface-strong: rgba(255, 255, 255, 0.99);
  --prompt-line: rgba(15, 23, 42, 0.12);
  --prompt-title: #102543;
  --prompt-muted: #5a6f8e;
  --prompt-input-bg: rgba(250, 253, 255, 0.98);
  --prompt-input-text: #132840;
  --prompt-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

body.theme-astramid {
  --prompt-surface: rgba(24, 29, 36, 0.86);
  --prompt-surface-strong: rgba(18, 23, 31, 0.94);
  --prompt-line: rgba(255, 255, 255, 0.16);
  --prompt-title: #f2f7ff;
  --prompt-muted: #a4b6cc;
  --prompt-input-bg: rgba(13, 18, 24, 0.92);
  --prompt-input-text: #eef5ff;
  --prompt-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  background:
    radial-gradient(1100px 700px at 8% -8%, rgba(255, 140, 72, 0.18), transparent 62%),
    radial-gradient(860px 620px at 94% 16%, rgba(255, 198, 92, 0.12), transparent 65%),
    linear-gradient(180deg, #161a20 0%, #13171d 54%, #11161b 100%);
}

body.theme-astraultra {
  --prompt-surface: rgba(17, 26, 31, 0.84);
  --prompt-surface-strong: rgba(13, 20, 28, 0.94);
  --prompt-line: rgba(110, 255, 190, 0.2);
  --prompt-title: #e9fff6;
  --prompt-muted: #9dc5bb;
  --prompt-input-bg: rgba(10, 18, 23, 0.93);
  --prompt-input-text: #edfff7;
  --prompt-shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(1180px 740px at 10% -10%, rgba(50, 196, 255, 0.18), transparent 62%),
    radial-gradient(900px 640px at 92% 12%, rgba(108, 255, 171, 0.13), transparent 68%),
    linear-gradient(180deg, #0f171d 0%, #101820 52%, #0c141b 100%);
}

#prompt-bank .section-head h2 {
  max-width: 18ch;
  line-height: 1.1;
}

#prompt-bank .prompt-builder,
#prompt-bank .prompt-output,
#prompt-bank .prompt-card {
  border-color: var(--prompt-line);
  background: linear-gradient(162deg, var(--prompt-surface-strong), var(--prompt-surface));
  box-shadow: var(--prompt-shadow);
}

#prompt-bank .prompt-builder {
  padding: 1.08rem;
  gap: 0.86rem;
}

#prompt-bank .prompt-builder label {
  color: var(--prompt-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#prompt-bank .prompt-builder input,
#prompt-bank .prompt-builder select,
#prompt-bank .prompt-output textarea {
  border-color: color-mix(in srgb, var(--prompt-line) 88%, transparent);
  background: var(--prompt-input-bg);
  color: var(--prompt-input-text);
  font-weight: 600;
}

#prompt-bank .prompt-builder input::placeholder,
#prompt-bank .prompt-output textarea::placeholder {
  color: color-mix(in srgb, var(--prompt-muted) 82%, transparent);
}

#prompt-bank .prompt-builder .checkbox-line {
  margin-top: 1rem;
  padding-left: 0.2rem;
  color: var(--prompt-muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

#prompt-bank .prompt-output {
  margin-top: 1rem;
  padding: 1rem;
}

#prompt-bank #prompt-result-info {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--prompt-muted);
}

#prompt-bank .prompt-output-actions {
  gap: 0.66rem;
}

#prompt-bank .prompt-output-actions .btn {
  min-height: 44px;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  padding-inline: 1.06rem;
}

#prompt-bank .prompt-output-actions .btn-primary {
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 30%, transparent);
}

#prompt-bank #prompt-save-generated {
  background: color-mix(in srgb, var(--accent) 12%, var(--prompt-input-bg) 88%);
  color: color-mix(in srgb, var(--prompt-input-text) 80%, var(--accent) 20%);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--prompt-line) 66%);
}

#prompt-bank #prompt-clear-generated {
  background: color-mix(in srgb, #ef4444 8%, var(--prompt-input-bg) 92%);
  color: color-mix(in srgb, #d92b2b 76%, var(--prompt-input-text) 24%);
  border-color: color-mix(in srgb, #ef4444 30%, var(--prompt-line) 70%);
}

#prompt-bank #prompt-save-generated:hover {
  background: color-mix(in srgb, var(--accent) 20%, var(--prompt-input-bg) 80%);
}

#prompt-bank #prompt-clear-generated:hover {
  background: color-mix(in srgb, #ef4444 14%, var(--prompt-input-bg) 86%);
}

#prompt-bank .prompt-grid {
  margin-top: 1.18rem;
  gap: 1.04rem;
}

#prompt-bank .prompt-card {
  padding: 1.04rem;
  gap: 0.78rem;
  border-radius: 20px;
}

#prompt-bank .prompt-card h3 {
  color: var(--prompt-title);
  font-size: 1.08rem;
}

#prompt-bank .prompt-card p {
  color: var(--prompt-muted);
  line-height: 1.5;
}

#prompt-bank .prompt-meta {
  align-items: center;
  gap: 0.78rem;
}

#prompt-bank .prompt-tag {
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--prompt-title) 66%, var(--prompt-muted) 34%);
  border-color: color-mix(in srgb, var(--prompt-line) 80%, transparent);
  background: color-mix(in srgb, var(--prompt-input-bg) 80%, transparent);
}

#prompt-bank .prompt-card .prompt-output-actions {
  gap: 0.5rem;
}

#prompt-bank .prompt-card .btn {
  min-height: 36px;
  font-size: 0.77rem;
  padding: 0 0.72rem;
}

#prompt-bank .prompt-card .btn-primary {
  color: #ffffff;
}

#prompt-bank .prompt-card .btn-ghost {
  background: color-mix(in srgb, var(--prompt-input-bg) 84%, transparent);
  color: color-mix(in srgb, var(--prompt-input-text) 88%, var(--prompt-muted) 12%);
  border-color: color-mix(in srgb, var(--prompt-line) 86%, transparent);
}

#prompt-bank .prompt-card .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--prompt-accent, var(--accent)) 42%, var(--prompt-line) 58%);
  color: color-mix(in srgb, var(--prompt-accent, var(--accent)) 72%, var(--prompt-input-text) 28%);
}

@media (max-width: 760px) {
  #prompt-bank .prompt-builder {
    padding: 0.88rem;
  }

  #prompt-bank .prompt-output-actions .btn {
    width: 100%;
  }

  #prompt-bank .prompt-card .btn {
    flex: 1 1 auto;
  }
}

.site-version {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin-left: 0.56rem;
  padding: 0.14rem 0.56rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 82%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.site-version strong {
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

@media (max-width: 760px) {
  .site-version {
    margin-left: 0;
    margin-top: 0.4rem;
  }
}

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

@media (max-width: 760px) {
  .prompt-concept-actions .btn {
    width: 100%;
  }

  .tool-credit {
    width: 100%;
    border-radius: 12px;
  }
}

body.theme-astramid .prompt-concept-main,
body.theme-astraultra .prompt-concept-main,
body.theme-astramid .prompt-quality-panel,
body.theme-astraultra .prompt-quality-panel {
  background: linear-gradient(165deg, rgba(19, 24, 31, 0.84), rgba(14, 19, 26, 0.72));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

body.theme-astramid .prompt-concept-status,
body.theme-astraultra .prompt-concept-status,
body.theme-astramid .prompt-quality-hint,
body.theme-astraultra .prompt-quality-hint,
body.theme-astramid .prompt-palette-status,
body.theme-astraultra .prompt-palette-status {
  color: #b8c7db;
}

body.theme-astramid .prompt-quality-label,
body.theme-astraultra .prompt-quality-label {
  color: #f1f7ff;
}

body.theme-astramid .prompt-palette-chip,
body.theme-astraultra .prompt-palette-chip {
  background: rgba(11, 16, 23, 0.84);
  border-color: rgba(255, 255, 255, 0.22);
  color: #e9f2ff;
}

body.theme-astramid .tool-credit,
body.theme-astraultra .tool-credit {
  border-color: rgba(255, 255, 255, 0.24);
  color: #b4c4d9;
  background: rgba(14, 18, 24, 0.74);
}
