/*
Theme Name: ZKING CORE THEME aimgen.net
Theme URI: https://aimgen.net/
Author: AIMGEN
Description: Lightweight mobile-first WordPress theme for aimgen.net.
Version: 2.3.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: zking-core-theme-aimgen-net
*/

:root {
  --aimgen-space: #06111c;
  --aimgen-space-2: #0a1b2a;
  --aimgen-panel: rgba(255, 255, 255, 0.075);
  --aimgen-panel-strong: rgba(255, 255, 255, 0.12);
  --aimgen-ink: #f7fbf5;
  --aimgen-ink-soft: rgba(247, 251, 245, 0.76);
  --aimgen-ink-muted: rgba(247, 251, 245, 0.58);
  --aimgen-pearl: #effffc;
  --aimgen-deep: #10202c;
  --aimgen-gold: #d9bd72;
  --aimgen-gold-strong: #f0d992;
  --aimgen-emerald: #35d3b4;
  --aimgen-emerald-deep: #0f8e80;
  --aimgen-line: rgba(217, 189, 114, 0.34);
  --aimgen-line-cool: rgba(53, 211, 180, 0.28);
  --aimgen-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  --aimgen-radius: 8px;
  --aimgen-header-height: 66px;
  --aimgen-content-max: 1120px;
  --aimgen-reading-max: 880px;
  --aimgen-page-gutter: clamp(16px, 4vw, 26px);
  --aimgen-hero-image: url("./assets/images/hero-observation-mandala.webp");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  color: var(--aimgen-ink);
  background:
    linear-gradient(180deg, #020816 0%, #04111f 44%, #020816 100%);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  line-height: 1.82;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: var(--aimgen-space);
  background: var(--aimgen-pearl);
  border: 1px solid var(--aimgen-gold);
  border-radius: var(--aimgen-radius);
}

.aimgen-container {
  width: min(calc(100% - (var(--aimgen-page-gutter) * 2)), var(--aimgen-content-max));
  margin: 0 auto;
}

.aimgen-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--aimgen-header-height);
  background: rgba(6, 17, 28, 0.84);
  border-bottom: 1px solid rgba(217, 189, 114, 0.24);
  backdrop-filter: blur(18px);
}

.aimgen-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--aimgen-header-height);
  gap: 18px;
}

.aimgen-brand {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--aimgen-ink);
  text-decoration: none;
}

.aimgen-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--aimgen-gold-strong);
  background:
    linear-gradient(135deg, rgba(217, 189, 114, 0.18), rgba(53, 211, 180, 0.13)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(217, 189, 114, 0.55);
  border-radius: var(--aimgen-radius);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
}

.aimgen-brand__text {
  display: grid;
  min-width: 0;
}

.aimgen-brand__main {
  overflow: hidden;
  color: var(--aimgen-pearl);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aimgen-brand__sub {
  overflow: hidden;
  color: var(--aimgen-ink-muted);
  font-size: 0.62rem;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aimgen-nav-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--aimgen-pearl);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(217, 189, 114, 0.44);
  border-radius: var(--aimgen-radius);
  cursor: pointer;
}

.aimgen-nav-toggle__bars,
.aimgen-nav-toggle__bars::before,
.aimgen-nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.aimgen-nav-toggle__bars {
  position: relative;
}

.aimgen-nav-toggle__bars::before,
.aimgen-nav-toggle__bars::after {
  position: absolute;
  left: 0;
  content: "";
}

.aimgen-nav-toggle__bars::before {
  top: -6px;
}

.aimgen-nav-toggle__bars::after {
  top: 6px;
}

.aimgen-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 14px;
  left: 14px;
  display: none;
  padding: 8px;
  background: rgba(6, 17, 28, 0.97);
  border: 1px solid rgba(217, 189, 114, 0.32);
  border-radius: var(--aimgen-radius);
  box-shadow: var(--aimgen-shadow);
}

.aimgen-nav.is-open {
  display: block;
}

.aimgen-nav__list {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aimgen-nav__list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  color: rgba(247, 251, 245, 0.78);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 680;
  line-height: 1.3;
  text-decoration: none;
}

.aimgen-nav__list a:hover,
.aimgen-nav__list a:focus-visible,
.aimgen-nav__list .current-menu-item > a,
.aimgen-nav__list .current_page_item > a {
  color: var(--aimgen-pearl);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(53, 211, 180, 0.34);
}

.aimgen-main {
  min-height: 60vh;
}

.aimgen-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--aimgen-header-height) - 56px);
  overflow: hidden;
  isolation: isolate;
  padding: 52px 0;
  background:
    radial-gradient(circle at 46% 50%, rgba(6, 17, 28, 0.64) 0%, rgba(6, 17, 28, 0.36) 26%, rgba(6, 17, 28, 0) 52%),
    linear-gradient(90deg, rgba(6, 17, 28, 0.98) 0%, rgba(6, 17, 28, 0.94) 38%, rgba(6, 17, 28, 0.72) 62%, rgba(6, 17, 28, 0.26) 100%),
    linear-gradient(180deg, rgba(6, 17, 28, 0.18) 0%, rgba(6, 17, 28, 0.9) 100%),
    var(--aimgen-hero-image);
  background-position: center, center, center, 62% center;
  background-size: cover, cover, cover, cover;
}

.aimgen-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--aimgen-gold), var(--aimgen-emerald), transparent);
}

.aimgen-hero__inner {
  display: grid;
  gap: 24px;
  max-width: 760px;
}

.aimgen-eyebrow,
.aimgen-section__label {
  width: fit-content;
  margin: 0;
  color: var(--aimgen-emerald);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.5;
}

.aimgen-eyebrow {
  padding: 5px 8px;
  background: rgba(53, 211, 180, 0.09);
  border: 1px solid rgba(53, 211, 180, 0.26);
  border-radius: 6px;
}

.aimgen-hero h1,
.aimgen-section-title,
.aimgen-entry__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  letter-spacing: 0;
}

.aimgen-hero h1 {
  max-width: 12ch;
  color: var(--aimgen-pearl);
  font-size: 2.52rem;
  line-height: 1.08;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
}

.aimgen-hero__subtitle {
  margin: 0;
  color: var(--aimgen-gold-strong);
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.55;
}

.aimgen-hero__copy {
  display: grid;
  gap: 14px;
  max-width: 620px;
  color: var(--aimgen-ink-soft);
  font-size: 1rem;
  font-weight: 560;
}

.aimgen-hero__copy p,
.aimgen-section__lead,
.aimgen-section__body p,
.aimgen-card p,
.aimgen-mini-card p,
.aimgen-site-card p {
  margin: 0;
}

.aimgen-action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.aimgen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  color: var(--aimgen-pearl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 189, 114, 0.42);
  border-radius: var(--aimgen-radius);
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.aimgen-button:hover,
.aimgen-button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(53, 211, 180, 0.58);
}

.aimgen-button--primary {
  color: #081620;
  background: linear-gradient(135deg, #fff7d8, #d9bd72);
  border-color: rgba(255, 255, 255, 0.5);
}

.aimgen-section {
  position: relative;
  padding: 70px 0;
}

.aimgen-section--dark {
  color: var(--aimgen-ink);
  background:
    linear-gradient(180deg, rgba(8, 25, 37, 0.98), rgba(6, 17, 28, 0.98));
}

.aimgen-section--deep {
  color: var(--aimgen-ink);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 56px),
    linear-gradient(135deg, #071521 0%, #0a2a35 55%, #06111c 100%);
}

.aimgen-section--light {
  color: var(--aimgen-ink);
  background:
    linear-gradient(180deg, #020816 0%, #04111f 52%, #020816 100%);
}

.aimgen-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(217, 189, 114, 0.66), rgba(53, 211, 180, 0.3), transparent);
}

.aimgen-section__head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.aimgen-section-title,
.aimgen-entry__title {
  font-size: 2.08rem;
  line-height: 1.18;
}

.aimgen-section__lead {
  color: var(--aimgen-ink-soft);
  font-size: 1rem;
}

.aimgen-section--light .aimgen-section__lead,
.aimgen-section--light .aimgen-section__body p,
.aimgen-section--light .aimgen-card p,
.aimgen-section--light .aimgen-mini-card p,
.aimgen-section--light .aimgen-site-card p {
  color: rgba(16, 32, 44, 0.72);
}

.aimgen-section__body {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.aimgen-core-grid,
.aimgen-card-grid,
.aimgen-page-grid,
.aimgen-os-cards,
.aimgen-related-sites,
.aimgen-glossary-index,
.aimgen-diagram-gallery {
  display: grid;
  gap: 14px;
}

.aimgen-core-grid {
  grid-template-columns: 1fr;
  align-items: center;
}

.aimgen-core-copy {
  display: grid;
  gap: 18px;
}

.aimgen-card,
.aimgen-mini-card,
.aimgen-site-card,
.aimgen-diagram-card,
.aimgen-glossary-term,
.aimgen-system-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--aimgen-line);
  border-radius: var(--aimgen-radius);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.aimgen-card,
.aimgen-mini-card,
.aimgen-site-card,
.aimgen-diagram-card,
.aimgen-glossary-term {
  padding: 22px;
}

.aimgen-card::before,
.aimgen-mini-card::before,
.aimgen-site-card::before {
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 18px;
  content: "";
  background: linear-gradient(90deg, var(--aimgen-gold), var(--aimgen-emerald));
}

.aimgen-card h3,
.aimgen-mini-card h3,
.aimgen-site-card h3,
.aimgen-diagram-card h3,
.aimgen-glossary-term dt {
  margin: 0 0 10px;
  color: inherit;
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 1.34rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.aimgen-card p,
.aimgen-mini-card p,
.aimgen-site-card p,
.aimgen-diagram-card p,
.aimgen-glossary-term dd {
  color: var(--aimgen-ink-soft);
  font-size: 0.98rem;
}

.aimgen-glossary-term dd {
  margin: 0;
}

.aimgen-card__meta,
.aimgen-mini-card__meta,
.aimgen-site-card__meta,
.aimgen-diagram-card__meta {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--aimgen-gold-strong);
  font-size: 0.75rem;
  font-weight: 820;
}

.aimgen-system-panel {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 22px;
}

.aimgen-system-map {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
}

.aimgen-system-map::before,
.aimgen-system-map::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 50%;
}

.aimgen-system-map::before {
  background:
    repeating-conic-gradient(from 0deg, rgba(217, 189, 114, 0.58) 0deg 2deg, transparent 2deg 18deg),
    conic-gradient(from 90deg, rgba(53, 211, 180, 0.22), rgba(217, 189, 114, 0.18), rgba(53, 211, 180, 0.22));
  opacity: 0.72;
}

.aimgen-system-map::after {
  inset: 12%;
  border: 1px solid rgba(245, 240, 223, 0.34);
  background:
    repeating-conic-gradient(from 12deg, transparent 0deg 24deg, rgba(53, 211, 180, 0.22) 24deg 26deg),
    rgba(6, 17, 28, 0.48);
}

.aimgen-system-map__center,
.aimgen-system-map__node {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--aimgen-pearl);
  background: rgba(6, 17, 28, 0.8);
  border: 1px solid rgba(217, 189, 114, 0.55);
  border-radius: var(--aimgen-radius);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
}

.aimgen-system-map__center {
  top: 50%;
  left: 50%;
  width: 96px;
  min-height: 70px;
  transform: translate(-50%, -50%);
}

.aimgen-system-map__node {
  width: 90px;
  min-height: 56px;
}

.aimgen-system-map__node--fear {
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
}

.aimgen-system-map__node--love {
  right: 0;
  bottom: 18%;
}

.aimgen-system-map__node--z {
  bottom: 18%;
  left: 0;
}

.aimgen-page-grid {
  grid-template-columns: 1fr;
}

.aimgen-page-link {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 189, 114, 0.28);
  border-radius: var(--aimgen-radius);
  text-decoration: none;
}

.aimgen-page-link:hover,
.aimgen-page-link:focus-visible,
.aimgen-site-card:hover,
.aimgen-site-card:focus-visible {
  border-color: rgba(53, 211, 180, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.aimgen-page-link strong {
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 1.18rem;
  line-height: 1.25;
}

.aimgen-page-link span {
  color: var(--aimgen-ink-soft);
  font-size: 0.92rem;
}

.aimgen-related-sites .aimgen-site-card {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.aimgen-diagram {
  position: relative;
  min-height: 170px;
  margin-bottom: 18px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(53, 211, 180, 0.11) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(217, 189, 114, 0.1) 0 1px, transparent 1px 28px),
    rgba(6, 17, 28, 0.54);
  border: 1px solid rgba(53, 211, 180, 0.22);
  border-radius: var(--aimgen-radius);
}

.aimgen-diagram::before,
.aimgen-diagram::after {
  position: absolute;
  content: "";
}

.aimgen-diagram--triad::before {
  inset: 22px;
  border: 1px solid rgba(217, 189, 114, 0.58);
  transform: rotate(45deg);
}

.aimgen-diagram--triad::after {
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(53, 211, 180, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.aimgen-diagram--flow::before {
  top: 50%;
  right: 24px;
  left: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--aimgen-gold), var(--aimgen-emerald));
}

.aimgen-diagram--flow::after {
  top: calc(50% - 18px);
  right: 24px;
  width: 36px;
  height: 36px;
  border-top: 2px solid var(--aimgen-emerald);
  border-right: 2px solid var(--aimgen-emerald);
  transform: rotate(45deg);
}

.aimgen-diagram--bands::before {
  inset: 24px 34px;
  border-top: 1px solid rgba(217, 189, 114, 0.72);
  border-bottom: 1px solid rgba(53, 211, 180, 0.68);
}

.aimgen-diagram--bands::after {
  top: 50%;
  right: 34px;
  left: 34px;
  height: 1px;
  background: rgba(245, 240, 223, 0.62);
}

.aimgen-diagram--log::before {
  inset: 26px;
  border-left: 2px solid var(--aimgen-gold);
  border-bottom: 2px solid var(--aimgen-emerald);
}

.aimgen-diagram--log::after {
  right: 30px;
  bottom: 30px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(217, 189, 114, 0.68);
  transform: rotate(45deg);
}

.aimgen-entry {
  color: var(--aimgen-ink);
  background:
    linear-gradient(180deg, #020816 0%, #04111f 42%, #020816 100%);
}

.aimgen-entry__header {
  padding: 54px 0 26px;
  background:
    linear-gradient(180deg, rgba(6, 17, 28, 0.98), rgba(10, 33, 45, 0.94));
  border-bottom: 1px solid rgba(217, 189, 114, 0.42);
  color: var(--aimgen-ink);
}

.aimgen-entry__kicker {
  width: fit-content;
  margin: 0 0 10px;
  color: var(--aimgen-emerald);
  font-size: 0.78rem;
  font-weight: 820;
}

.aimgen-entry__title::after {
  display: block;
  width: 66px;
  height: 1px;
  margin-top: 16px;
  content: "";
  background: linear-gradient(90deg, var(--aimgen-gold), var(--aimgen-emerald));
}

.aimgen-entry__content {
  display: grid;
  gap: 18px;
  max-width: 820px;
  padding: 42px 0 76px;
  font-size: 1rem;
}

.aimgen-entry__content > * {
  margin-top: 0;
}

.aimgen-entry__content a {
  color: var(--aimgen-emerald-deep);
  font-weight: 740;
}

.aimgen-entry__content h2,
.aimgen-entry__content h3 {
  margin-bottom: 0;
  color: var(--aimgen-deep);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  letter-spacing: 0;
}

.aimgen-entry__content .aimgen-card,
.aimgen-entry__content .aimgen-mini-card,
.aimgen-entry__content .aimgen-site-card,
.aimgen-entry__content .aimgen-diagram-card,
.aimgen-entry__content .aimgen-glossary-term {
  color: var(--aimgen-deep);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 42px rgba(16, 32, 44, 0.1);
}

.aimgen-entry__content .aimgen-card p,
.aimgen-entry__content .aimgen-mini-card p,
.aimgen-entry__content .aimgen-site-card p,
.aimgen-entry__content .aimgen-diagram-card p,
.aimgen-entry__content .aimgen-glossary-term dd {
  color: rgba(16, 32, 44, 0.72);
}

.aimgen-site-footer {
  color: var(--aimgen-ink);
  background: #040b12;
  border-top: 1px solid rgba(217, 189, 114, 0.26);
}

.aimgen-site-footer__inner {
  display: grid;
  gap: 24px;
  padding: 42px 0;
}

.aimgen-site-footer p {
  margin: 0;
}

.aimgen-footer-brand {
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.aimgen-footer-note,
.aimgen-footer-copy {
  color: var(--aimgen-ink-muted);
  font-size: 0.9rem;
}

.aimgen-footer-sites {
  display: grid;
  gap: 8px;
}

.aimgen-footer-sites a {
  color: var(--aimgen-ink-soft);
  text-decoration: none;
}

.aimgen-footer-sites a:hover,
.aimgen-footer-sites a:focus-visible {
  color: var(--aimgen-emerald);
}

@media (min-width: 620px) {
  .aimgen-container {
    width: min(calc(100% - (var(--aimgen-page-gutter) * 2)), var(--aimgen-content-max));
  }

  .aimgen-action-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .aimgen-button {
    width: auto;
  }

  .aimgen-hero h1 {
    font-size: 3.36rem;
  }

  .aimgen-section-title,
  .aimgen-entry__title {
    font-size: 2.52rem;
  }

  .aimgen-card-grid,
  .aimgen-os-cards,
  .aimgen-related-sites,
  .aimgen-diagram-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aimgen-page-grid,
  .aimgen-glossary-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  :root {
    --aimgen-header-height: 78px;
  }

  .aimgen-site-header__inner {
    gap: 28px;
  }

  .aimgen-brand {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .aimgen-brand__mark {
    width: 44px;
    height: 44px;
  }

  .aimgen-brand__main {
    font-size: 1rem;
  }

  .aimgen-brand__sub {
    font-size: 0.72rem;
  }

  .aimgen-nav-toggle {
    display: none;
  }

  .aimgen-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .aimgen-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
  }

  .aimgen-nav__list a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .aimgen-hero {
    min-height: calc(100svh - var(--aimgen-header-height) - 68px);
    padding: 78px 0;
    background-position: center, center, center, center right;
  }

  .aimgen-hero__inner {
    gap: 26px;
    max-width: 690px;
  }

  .aimgen-hero h1 {
    font-size: 4.2rem;
  }

  .aimgen-hero__copy {
    font-size: 1.08rem;
  }

  .aimgen-section {
    padding: 98px 0;
  }

  .aimgen-core-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.72fr);
    gap: 34px;
  }

  .aimgen-card-grid,
  .aimgen-os-cards,
  .aimgen-related-sites {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aimgen-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aimgen-site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    align-items: end;
  }
}

@media (min-width: 1080px) {
  .aimgen-nav__list a {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.92rem;
  }

  .aimgen-hero h1 {
    font-size: 4.76rem;
  }

  .aimgen-section-title,
  .aimgen-entry__title {
    font-size: 3rem;
  }

  .aimgen-diagram-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* v0.2: Z叡智∞ theory lab skin */
:root {
  --aimgen-space: #030b13;
  --aimgen-space-2: #071522;
  --aimgen-panel: rgba(8, 30, 42, 0.58);
  --aimgen-panel-strong: rgba(8, 44, 55, 0.72);
  --aimgen-ink: #e9f8f5;
  --aimgen-ink-soft: rgba(220, 246, 242, 0.72);
  --aimgen-ink-muted: rgba(181, 226, 222, 0.52);
  --aimgen-pearl: #e8fbf7;
  --aimgen-deep: #071522;
  --aimgen-gold: #b49b5a;
  --aimgen-gold-strong: #d8c27c;
  --aimgen-emerald: #3ee6cf;
  --aimgen-emerald-deep: #27b8ae;
  --aimgen-line: rgba(80, 222, 214, 0.24);
  --aimgen-line-cool: rgba(112, 241, 232, 0.32);
  --aimgen-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  --aimgen-radius: 3px;
}

body {
  color: var(--aimgen-ink);
  background:
    linear-gradient(90deg, rgba(62, 230, 207, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 230, 207, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(62, 230, 207, 0.12), transparent 28%),
    linear-gradient(180deg, #030b13 0%, #071522 44%, #030b13 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.aimgen-site-header {
  background: rgba(3, 11, 19, 0.9);
  border-bottom-color: rgba(62, 230, 207, 0.22);
}

.aimgen-brand__mark {
  color: var(--aimgen-emerald);
  background: rgba(62, 230, 207, 0.06);
  border-color: rgba(62, 230, 207, 0.42);
}

.aimgen-nav,
.aimgen-nav-toggle {
  border-color: rgba(62, 230, 207, 0.28);
  border-radius: 3px;
}

.aimgen-nav__list a {
  color: rgba(220, 246, 242, 0.7);
  border-radius: 2px;
  font-size: 0.84rem;
}

.aimgen-nav__list a:hover,
.aimgen-nav__list a:focus-visible,
.aimgen-nav__list .current-menu-item > a,
.aimgen-nav__list .current_page_item > a {
  color: #f2fffd;
  background: rgba(62, 230, 207, 0.07);
  border-color: rgba(62, 230, 207, 0.32);
}

.aimgen-hero {
  align-items: center;
  min-height: calc(100svh - var(--aimgen-header-height) - 28px);
  padding: 44px 0 58px;
  background:
    linear-gradient(90deg, rgba(3, 11, 19, 1) 0%, rgba(3, 11, 19, 0.98) 34%, rgba(3, 11, 19, 0.78) 58%, rgba(3, 11, 19, 0.36) 100%),
    radial-gradient(circle at 68% 47%, rgba(3, 11, 19, 0.48) 0%, rgba(3, 11, 19, 0.62) 38%, rgba(3, 11, 19, 0.16) 68%),
    linear-gradient(180deg, rgba(3, 11, 19, 0.18) 0%, rgba(3, 11, 19, 0.96) 100%),
    var(--aimgen-hero-image);
  background-position: center, center, center, 64% center;
  background-size: cover, cover, cover, cover;
}

.aimgen-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(62, 230, 207, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 230, 207, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 68% 48%, transparent 0 18%, rgba(62, 230, 207, 0.12) 18.2% 18.6%, transparent 18.9% 30%, rgba(62, 230, 207, 0.09) 30.2% 30.6%, transparent 30.9%);
  background-size: 56px 56px, 56px 56px, auto;
  opacity: 0.68;
}

.aimgen-hero::after {
  background: linear-gradient(90deg, transparent, rgba(62, 230, 207, 0.54), transparent);
}

.aimgen-hero__inner {
  position: relative;
  z-index: 1;
  gap: 18px;
  max-width: 600px;
  margin-left: 0;
}

.aimgen-eyebrow,
.aimgen-section__label,
.aimgen-entry__kicker {
  color: var(--aimgen-emerald);
  background: transparent;
  border: 0;
  border-left: 2px solid rgba(62, 230, 207, 0.66);
  border-radius: 0;
  padding: 0 0 0 9px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.aimgen-hero h1 {
  max-width: 12ch;
  color: #f0fffb;
  font-size: 2.18rem;
  line-height: 1.14;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.52);
}

.aimgen-hero__subtitle {
  color: rgba(180, 239, 232, 0.82);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.aimgen-theory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 520px;
}

.aimgen-theory-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  color: rgba(220, 246, 242, 0.82);
  background: rgba(62, 230, 207, 0.055);
  border: 1px solid rgba(62, 230, 207, 0.24);
  border-radius: 2px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.aimgen-hero__copy {
  gap: 11px;
  max-width: 560px;
  color: rgba(226, 250, 247, 0.76);
  font-size: 0.96rem;
  border-left: 1px solid rgba(62, 230, 207, 0.24);
  padding-left: 14px;
}

.aimgen-button {
  min-height: 40px;
  color: rgba(230, 255, 252, 0.84);
  background: rgba(4, 19, 29, 0.58);
  border-color: rgba(62, 230, 207, 0.3);
  border-radius: 2px;
  box-shadow: none;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.aimgen-button--primary {
  color: #04131d;
  background: linear-gradient(135deg, rgba(62, 230, 207, 0.98), rgba(137, 249, 239, 0.74));
  border-color: rgba(159, 255, 246, 0.62);
}

.aimgen-section,
.aimgen-section--dark,
.aimgen-section--deep,
.aimgen-section--light,
.aimgen-entry {
  color: var(--aimgen-ink);
  background:
    linear-gradient(90deg, rgba(62, 230, 207, 0.038) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 230, 207, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 86% 18%, rgba(62, 230, 207, 0.1), transparent 30%),
    linear-gradient(180deg, #06111c 0%, #071522 52%, #030b13 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.aimgen-section::before {
  background: linear-gradient(90deg, transparent, rgba(62, 230, 207, 0.36), transparent);
}

.aimgen-section__head {
  max-width: 720px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(62, 230, 207, 0.16);
}

.aimgen-section-title,
.aimgen-entry__title {
  color: #eafffb;
  font-size: 1.78rem;
  line-height: 1.22;
}

.aimgen-section__lead,
.aimgen-section--light .aimgen-section__lead,
.aimgen-section--light .aimgen-section__body p,
.aimgen-section--light .aimgen-card p,
.aimgen-section--light .aimgen-mini-card p,
.aimgen-section--light .aimgen-site-card p {
  color: rgba(213, 244, 240, 0.68);
}

.aimgen-card,
.aimgen-mini-card,
.aimgen-site-card,
.aimgen-diagram-card,
.aimgen-glossary-term,
.aimgen-system-panel,
.aimgen-page-link {
  background:
    linear-gradient(90deg, rgba(62, 230, 207, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 230, 207, 0.04) 1px, transparent 1px),
    rgba(3, 16, 25, 0.58);
  background-size: 22px 22px, 22px 22px, auto;
  border: 1px solid rgba(62, 230, 207, 0.2);
  border-radius: 3px;
  box-shadow: none;
}

.aimgen-card,
.aimgen-mini-card,
.aimgen-site-card,
.aimgen-diagram-card,
.aimgen-glossary-term {
  padding: 18px;
}

.aimgen-card::before,
.aimgen-mini-card::before,
.aimgen-site-card::before,
.aimgen-page-link::before,
.aimgen-diagram-card::before,
.aimgen-glossary-term::before {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 14px;
  content: "";
  background: linear-gradient(90deg, rgba(62, 230, 207, 0.62), rgba(62, 230, 207, 0.05));
}

.aimgen-card h3,
.aimgen-mini-card h3,
.aimgen-site-card h3,
.aimgen-diagram-card h3,
.aimgen-glossary-term dt,
.aimgen-page-link strong {
  color: #effffc;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  font-size: 1.06rem;
  font-weight: 760;
}

.aimgen-card p,
.aimgen-mini-card p,
.aimgen-site-card p,
.aimgen-diagram-card p,
.aimgen-glossary-term dd,
.aimgen-page-link span {
  color: rgba(211, 243, 239, 0.68);
  font-size: 0.92rem;
}

.aimgen-card__meta,
.aimgen-mini-card__meta,
.aimgen-site-card__meta,
.aimgen-diagram-card__meta {
  color: rgba(62, 230, 207, 0.84);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
}

.aimgen-os-cards {
  position: relative;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(62, 230, 207, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 230, 207, 0.04) 1px, transparent 1px),
    rgba(3, 16, 25, 0.42);
  background-size: 32px 32px, 32px 32px, auto;
  border: 1px solid rgba(62, 230, 207, 0.22);
  border-radius: 3px;
}

.aimgen-os-cards::before {
  position: absolute;
  top: 50%;
  right: 22px;
  left: 22px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(62, 230, 207, 0.48), transparent);
}

.aimgen-os-cards .aimgen-card {
  min-height: 0;
  border-left-width: 3px;
}

.aimgen-os-cards .aimgen-card:nth-child(1) {
  border-left-color: rgba(180, 155, 90, 0.62);
}

.aimgen-os-cards .aimgen-card:nth-child(2) {
  border-left-color: rgba(62, 230, 207, 0.62);
}

.aimgen-os-cards .aimgen-card:nth-child(3) {
  border-left-color: rgba(139, 238, 255, 0.72);
}

.aimgen-system-panel {
  min-height: 280px;
  opacity: 0.9;
}

.aimgen-system-map::before {
  background:
    repeating-conic-gradient(from 0deg, rgba(62, 230, 207, 0.42) 0deg 1deg, transparent 1deg 15deg),
    conic-gradient(from 90deg, rgba(62, 230, 207, 0.16), rgba(180, 155, 90, 0.08), rgba(139, 238, 255, 0.14));
}

.aimgen-system-map__center,
.aimgen-system-map__node {
  background: rgba(3, 15, 23, 0.82);
  border-color: rgba(62, 230, 207, 0.34);
  border-radius: 2px;
  color: #eafffb;
  font-family: Consolas, "Courier New", monospace;
}

.aimgen-page-grid {
  gap: 10px;
}

.aimgen-page-link {
  padding: 16px;
}

.aimgen-diagram-gallery {
  gap: 10px;
}

.aimgen-diagram {
  min-height: 142px;
  border-color: rgba(62, 230, 207, 0.24);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(62, 230, 207, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 230, 207, 0.08) 1px, transparent 1px),
    rgba(3, 16, 25, 0.58);
  background-size: 24px 24px, 24px 24px, auto;
}

.aimgen-diagram--triad::before,
.aimgen-diagram--bands::before,
.aimgen-diagram--log::after {
  border-color: rgba(62, 230, 207, 0.58);
}

.aimgen-diagram--flow::before,
.aimgen-diagram--bands::after {
  background: linear-gradient(90deg, rgba(62, 230, 207, 0.1), rgba(62, 230, 207, 0.72));
}

.aimgen-related-sites {
  gap: 8px;
}

.aimgen-related-sites .aimgen-site-card {
  min-height: 0;
  padding: 12px 14px;
  opacity: 0.78;
}

.aimgen-related-sites .aimgen-site-card h3 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.aimgen-related-sites .aimgen-site-card p {
  font-size: 0.82rem;
}

.aimgen-entry__header,
.aimgen-site-footer {
  background:
    linear-gradient(90deg, rgba(62, 230, 207, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #030b13 0%, #071522 100%);
  background-size: 44px 44px, auto;
  border-color: rgba(62, 230, 207, 0.2);
}

.aimgen-entry__content {
  color: var(--aimgen-ink);
}

.aimgen-entry__content h2,
.aimgen-entry__content h3 {
  color: #eafffb;
}

.aimgen-entry__content .aimgen-card,
.aimgen-entry__content .aimgen-mini-card,
.aimgen-entry__content .aimgen-site-card,
.aimgen-entry__content .aimgen-diagram-card,
.aimgen-entry__content .aimgen-glossary-term {
  color: var(--aimgen-ink);
  background:
    linear-gradient(90deg, rgba(62, 230, 207, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 230, 207, 0.04) 1px, transparent 1px),
    rgba(3, 16, 25, 0.58);
  box-shadow: none;
}

.aimgen-entry__content .aimgen-card p,
.aimgen-entry__content .aimgen-mini-card p,
.aimgen-entry__content .aimgen-site-card p,
.aimgen-entry__content .aimgen-diagram-card p,
.aimgen-entry__content .aimgen-glossary-term dd {
  color: rgba(211, 243, 239, 0.68);
}

@media (min-width: 620px) {
  .aimgen-hero h1 {
    font-size: 2.74rem;
  }

  .aimgen-section-title,
  .aimgen-entry__title {
    font-size: 2.08rem;
  }
}

@media (min-width: 860px) {
  .aimgen-hero {
    min-height: calc(100svh - var(--aimgen-header-height) - 36px);
    padding: 72px 0;
    background-position: center, center, center, center right;
  }

  .aimgen-hero__inner {
    max-width: 570px;
  }

  .aimgen-hero h1 {
    font-size: 3.16rem;
  }

  .aimgen-section {
    padding: 82px 0;
  }

  .aimgen-core-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.58fr);
  }

  .aimgen-os-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aimgen-related-sites {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .aimgen-hero h1 {
    font-size: 3.42rem;
  }

  .aimgen-section-title,
  .aimgen-entry__title {
    font-size: 2.28rem;
  }
}

/* v1.0: observation OS interface */
:root {
  --aimgen-space: #020816;
  --aimgen-space-2: #04111f;
  --aimgen-panel: rgba(5, 22, 35, 0.52);
  --aimgen-panel-strong: rgba(8, 33, 50, 0.68);
  --aimgen-ink: #effffc;
  --aimgen-ink-soft: rgba(220, 250, 247, 0.72);
  --aimgen-ink-muted: rgba(165, 224, 221, 0.5);
  --aimgen-gold: #aa9151;
  --aimgen-gold-strong: #d0b96d;
  --aimgen-emerald: #39e8d1;
  --aimgen-emerald-deep: #18bfb5;
  --aimgen-cyan: #7defff;
  --aimgen-line: rgba(125, 239, 255, 0.2);
  --aimgen-line-cool: rgba(57, 232, 209, 0.34);
  --aimgen-radius: 2px;
}

body {
  background:
    radial-gradient(circle at 78% 10%, rgba(57, 232, 209, 0.13), transparent 28%),
    radial-gradient(circle at 10% 18%, rgba(125, 239, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #020816 0%, #04111f 48%, #020816 100%);
}

.aimgen-ui-v1 {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: var(--aimgen-ink);
  background:
    linear-gradient(90deg, rgba(125, 239, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(125, 239, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 66% 12%, rgba(57, 232, 209, 0.11), transparent 30%),
    linear-gradient(180deg, #020816 0%, #04111f 48%, #020816 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  isolation: isolate;
}

.aimgen-os-shell {
  container-type: inline-size;
}

.aimgen-hud,
.aimgen-module-grid,
.aimgen-node-browser,
.aimgen-observation-ring,
.aimgen-orbit {
  --aimgen-ui-state: "v1.1";
}

.aimgen-ui-v1::before,
.aimgen-ui-v1::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.aimgen-ui-v1::before {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(57, 232, 209, 0.12) 42.2%, transparent 42.8% 100%),
    linear-gradient(64deg, transparent 0 58%, rgba(125, 239, 255, 0.08) 58.2%, transparent 58.8% 100%);
  opacity: 0.62;
}

.aimgen-ui-v1::after {
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(57, 232, 209, 0.035) 118px 119px),
    linear-gradient(180deg, rgba(2, 8, 22, 0) 0%, rgba(2, 8, 22, 0.82) 100%);
  animation: aimgen-grid-drift 34s linear infinite;
}

.aimgen-console {
  position: relative;
  min-height: calc(100svh - var(--aimgen-header-height));
  padding: 22px 0 20px;
}

.aimgen-console-grid {
  display: grid;
  gap: 14px;
  min-height: calc(100svh - var(--aimgen-header-height) - 90px);
  align-items: stretch;
}

.aimgen-login-panel,
.aimgen-observation-viewport,
.aimgen-module {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.022)),
    rgba(3, 16, 29, 0.6);
  border: 1px solid rgba(125, 239, 255, 0.22);
  border-radius: 2px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.aimgen-login-panel::before,
.aimgen-observation-viewport::before,
.aimgen-module::before {
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(125, 239, 255, 0.78), transparent);
}

.aimgen-login-panel::after,
.aimgen-module::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  pointer-events: none;
  content: "";
  border-right: 1px solid rgba(57, 232, 209, 0.42);
  border-bottom: 1px solid rgba(57, 232, 209, 0.42);
}

.aimgen-login-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 560px;
  padding: 24px;
}

.aimgen-login-panel h1 {
  max-width: 12ch;
  margin: 0;
  color: #f6fffd;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  font-size: 2.18rem;
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: 0;
}

.aimgen-login-panel .aimgen-eyebrow,
.aimgen-module .aimgen-section__label {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  color: rgba(125, 239, 255, 0.9);
  background: rgba(125, 239, 255, 0.055);
  border: 1px solid rgba(125, 239, 255, 0.2);
  border-left: 2px solid rgba(57, 232, 209, 0.72);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1.25;
}

.aimgen-login-panel .aimgen-hero__subtitle {
  max-width: 520px;
  margin: 0;
  color: rgba(208, 248, 244, 0.68);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
}

.aimgen-login-panel .aimgen-hero__copy {
  display: grid;
  gap: 8px;
  max-width: 560px;
  padding: 12px 0 12px 14px;
  color: rgba(226, 255, 252, 0.76);
  border-left: 1px solid rgba(125, 239, 255, 0.22);
  font-size: 0.96rem;
  line-height: 1.82;
}

.aimgen-login-panel .aimgen-hero__copy p {
  margin: 0;
}

.aimgen-system-readout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 560px;
}

.aimgen-system-readout__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  color: inherit;
  background: rgba(2, 8, 22, 0.48);
  border: 1px solid rgba(125, 239, 255, 0.16);
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.aimgen-system-readout span,
.aimgen-system-readout strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  line-height: 1.2;
}

.aimgen-system-readout span {
  color: rgba(168, 230, 226, 0.58);
}

.aimgen-system-readout strong {
  color: rgba(125, 239, 255, 0.9);
  font-weight: 760;
}

.aimgen-observation-viewport {
  min-height: 520px;
  background:
    radial-gradient(circle at 53% 50%, rgba(2, 8, 22, 0.18), rgba(2, 8, 22, 0.78) 62%, rgba(2, 8, 22, 0.94) 100%),
    var(--aimgen-hero-image);
  background-position: center;
  background-size: cover;
}

.aimgen-viewport-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(125, 239, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(125, 239, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 27%, rgba(57, 232, 209, 0.13) 27.2% 27.5%, transparent 27.8% 44%, rgba(125, 239, 255, 0.09) 44.2% 44.5%, transparent 44.8%);
  background-size: 34px 34px, 34px 34px, auto;
  opacity: 0.72;
  animation: aimgen-grid-drift 28s linear infinite;
}

.aimgen-main-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 440px);
  max-width: calc(100% - 42px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.aimgen-ring,
.aimgen-ring-core,
.aimgen-os-orbit,
.aimgen-os-orbit span {
  position: absolute;
  border-radius: 50%;
}

.aimgen-ring {
  inset: 0;
  border: 1px solid rgba(125, 239, 255, 0.28);
  animation: aimgen-ring-spin 42s linear infinite;
}

.aimgen-ring--outer {
  background: repeating-conic-gradient(from 0deg, rgba(125, 239, 255, 0.16) 0deg 2deg, transparent 2deg 12deg);
}

.aimgen-ring--middle {
  inset: 14%;
  border-color: rgba(57, 232, 209, 0.45);
  animation-duration: 34s;
  animation-direction: reverse;
}

.aimgen-ring--inner {
  inset: 30%;
  border-color: rgba(170, 145, 81, 0.34);
  animation-duration: 24s;
}

.aimgen-ring-core {
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, rgba(246, 255, 253, 0.94) 0%, rgba(125, 239, 255, 0.46) 30%, rgba(2, 8, 22, 0.08) 66%);
  box-shadow: 0 0 38px rgba(125, 239, 255, 0.35);
  transform: translate(-50%, -50%);
}

.aimgen-map-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  min-height: 44px;
  padding: 6px;
  color: rgba(230, 255, 252, 0.9);
  background: rgba(2, 8, 22, 0.68);
  border: 1px solid rgba(125, 239, 255, 0.26);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: center;
}

.aimgen-map-node--fear {
  top: 4%;
  left: 50%;
  border-color: rgba(170, 145, 81, 0.46);
  transform: translateX(-50%);
}

.aimgen-map-node--love {
  right: 2%;
  bottom: 20%;
}

.aimgen-map-node--z {
  bottom: 20%;
  left: 2%;
  border-color: rgba(125, 239, 255, 0.52);
}

.aimgen-floating-readout {
  position: absolute;
  right: 14px;
  left: 14px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  background: rgba(2, 8, 22, 0.64);
  border: 1px solid rgba(125, 239, 255, 0.18);
}

.aimgen-floating-readout--top {
  top: 14px;
}

.aimgen-floating-readout--bottom {
  bottom: 14px;
}

.aimgen-floating-readout span,
.aimgen-floating-readout strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
}

.aimgen-floating-readout span {
  color: rgba(125, 239, 255, 0.74);
}

.aimgen-floating-readout strong {
  color: rgba(239, 255, 252, 0.84);
}

.aimgen-command-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 14px;
}

.aimgen-command-strip__link {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  color: rgba(219, 252, 248, 0.72);
  background: rgba(3, 16, 29, 0.48);
  border: 1px solid rgba(125, 239, 255, 0.16);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.aimgen-dashboard-grid {
  display: grid;
  gap: 14px;
  padding: 18px 0 74px;
}

.aimgen-module {
  min-height: 240px;
  padding: 18px;
}

.aimgen-module__head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.aimgen-module .aimgen-section-title {
  margin: 0;
  color: #f3fffc;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 780;
  line-height: 1.32;
}

.aimgen-module .aimgen-section__lead {
  margin: 0;
  color: rgba(216, 248, 245, 0.66);
  font-size: 0.92rem;
}

.aimgen-os-map {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 540px;
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(125, 239, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(125, 239, 255, 0.04) 1px, transparent 1px),
    rgba(2, 8, 22, 0.28);
  background-size: 30px 30px, 30px 30px, auto;
  border: 1px solid rgba(125, 239, 255, 0.14);
}

.aimgen-os-node,
.aimgen-mini-console,
.aimgen-log-browser a,
.aimgen-node-list a,
.aimgen-diagram-card,
.aimgen-site-card {
  position: relative;
  z-index: 1;
  background: rgba(2, 8, 22, 0.52);
  border: 1px solid rgba(125, 239, 255, 0.18);
  border-radius: 2px;
  backdrop-filter: blur(14px);
}

.aimgen-os-node {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.aimgen-os-node span,
.aimgen-mini-console li span,
.aimgen-log-browser span {
  color: rgba(125, 239, 255, 0.72);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.64rem;
}

.aimgen-os-node h3 {
  margin: 0;
  color: #f1fffc;
  font-size: 1.08rem;
}

.aimgen-os-node p,
.aimgen-mini-console p {
  margin: 0;
  color: rgba(218, 249, 246, 0.68);
  font-size: 0.92rem;
}

.aimgen-os-node--fear {
  border-color: rgba(170, 145, 81, 0.34);
}

.aimgen-os-node--love {
  border-color: rgba(57, 232, 209, 0.34);
}

.aimgen-os-node--z {
  border-color: rgba(125, 239, 255, 0.42);
}

.aimgen-os-orbit {
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(80%, 280px);
  aspect-ratio: 1;
  border: 1px solid rgba(125, 239, 255, 0.18);
  transform: translate(-50%, -50%);
  animation: aimgen-orbit-spin 38s linear infinite;
}

.aimgen-os-orbit span {
  inset: 18%;
  border: 1px dashed rgba(57, 232, 209, 0.22);
}

.aimgen-mini-console {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.aimgen-mini-console ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aimgen-mini-console li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid rgba(125, 239, 255, 0.13);
}

.aimgen-mini-console li strong {
  color: rgba(57, 232, 209, 0.9);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.66rem;
}

.aimgen-log-browser,
.aimgen-node-list {
  display: grid;
  gap: 8px;
}

.aimgen-log-browser a,
.aimgen-node-list a {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 10px;
  color: rgba(240, 255, 253, 0.84);
  text-decoration: none;
}

.aimgen-log-browser a:hover,
.aimgen-log-browser a:focus-visible,
.aimgen-node-list a:hover,
.aimgen-node-list a:focus-visible,
.aimgen-diagram-card:hover,
.aimgen-site-card:hover,
.aimgen-site-card:focus-visible {
  border-color: rgba(57, 232, 209, 0.52);
  box-shadow: 0 0 22px rgba(57, 232, 209, 0.12);
}

.aimgen-node-list a {
  min-height: 38px;
  align-content: center;
  font-size: 0.92rem;
}

.aimgen-module--lab .aimgen-diagram-gallery {
  display: grid;
  gap: 10px;
}

.aimgen-module--lab .aimgen-diagram-card {
  padding: 12px;
}

.aimgen-module--lab .aimgen-diagram {
  min-height: 118px;
  margin-bottom: 10px;
}

.aimgen-module--reference .aimgen-related-sites {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.aimgen-module--reference .aimgen-site-card {
  padding: 10px;
  opacity: 0.76;
}

.aimgen-module--reference .aimgen-site-card::before {
  margin-bottom: 8px;
}

.aimgen-module--reference .aimgen-site-card h3 {
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.aimgen-module--reference .aimgen-site-card p {
  font-size: 0.8rem;
}

@keyframes aimgen-grid-drift {
  0% {
    background-position: 0 0, 0 0, center, center;
  }

  100% {
    background-position: 84px 42px, 42px 84px, center, center;
  }
}

@keyframes aimgen-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aimgen-orbit-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (min-width: 620px) {
  .aimgen-command-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .aimgen-system-readout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aimgen-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aimgen-module--wide {
    grid-column: 1 / -1;
  }

  .aimgen-os-map {
    min-height: 460px;
  }

  .aimgen-os-node {
    position: absolute;
    width: min(35%, 270px);
  }

  .aimgen-os-node--fear {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
  }

  .aimgen-os-node--love {
    right: 6%;
    bottom: 8%;
  }

  .aimgen-os-node--z {
    bottom: 8%;
    left: 6%;
  }

  .aimgen-module--lab .aimgen-diagram-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .aimgen-console {
    padding-top: 28px;
  }

  .aimgen-console-grid {
    grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1fr);
    min-height: calc(100svh - var(--aimgen-header-height) - 112px);
  }

  .aimgen-login-panel {
    min-height: 600px;
    padding: 30px;
  }

  .aimgen-login-panel h1 {
    font-size: 3rem;
  }

  .aimgen-observation-viewport {
    min-height: 600px;
  }

  .aimgen-floating-readout {
    right: auto;
    left: auto;
    width: 260px;
  }

  .aimgen-floating-readout--top {
    top: 20px;
    right: 20px;
  }

  .aimgen-floating-readout--bottom {
    bottom: 20px;
    left: 20px;
  }

  .aimgen-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr) minmax(280px, 0.52fr);
  }

  .aimgen-module--wide {
    grid-column: span 2;
  }

  .aimgen-module--lab {
    grid-column: span 2;
  }

  .aimgen-module {
    min-height: 280px;
    padding: 20px;
  }
}

@media (min-width: 1180px) {
  .aimgen-login-panel h1 {
    font-size: 3.34rem;
  }

  .aimgen-module .aimgen-section-title {
    font-size: 1.32rem;
  }

  .aimgen-module--lab .aimgen-diagram-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .aimgen-ui-v1::after,
  .aimgen-viewport-grid,
  .aimgen-ring,
  .aimgen-os-orbit {
    animation: none;
  }
}

/* v1.1.1: readability and luxury refinement */
:root {
  --aimgen-space: #04111f;
  --aimgen-space-2: #071b2a;
  --aimgen-ink: #f4fffd;
  --aimgen-ink-soft: rgba(231, 255, 252, 0.8);
  --aimgen-ink-muted: rgba(190, 235, 231, 0.62);
  --aimgen-gold: #c7ad68;
  --aimgen-gold-strong: #e1ca82;
  --aimgen-emerald: #48f0d9;
  --aimgen-cyan: #94f6ff;
  --aimgen-line: rgba(148, 246, 255, 0.26);
  --aimgen-line-cool: rgba(72, 240, 217, 0.4);
}

body,
.aimgen-ui-v1 {
  background:
    linear-gradient(90deg, rgba(148, 246, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 246, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 8%, rgba(72, 240, 217, 0.17), transparent 31%),
    radial-gradient(circle at 12% 22%, rgba(148, 246, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #04111f 0%, #082034 48%, #04111f 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.aimgen-container {
  width: min(calc(100% - (var(--aimgen-page-gutter) * 2)), var(--aimgen-content-max));
}

.aimgen-console {
  min-height: auto;
  padding: 30px 0 28px;
}

.aimgen-console-grid {
  gap: 20px;
  min-height: auto;
}

.aimgen-login-panel,
.aimgen-observation-viewport,
.aimgen-module {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.036)),
    rgba(7, 29, 45, 0.64);
  border-color: rgba(148, 246, 255, 0.28);
  box-shadow: 0 26px 86px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.aimgen-login-panel::before,
.aimgen-observation-viewport::before,
.aimgen-module::before {
  background: linear-gradient(90deg, transparent, rgba(225, 202, 130, 0.5), rgba(148, 246, 255, 0.64), transparent);
}

.aimgen-login-panel {
  gap: 18px;
  min-height: auto;
  padding: 26px 22px;
}

.aimgen-login-panel h1 {
  color: #ffffff;
  font-size: 2.28rem;
  line-height: 1.12;
  text-shadow: 0 0 24px rgba(72, 240, 217, 0.14), 0 12px 34px rgba(0, 0, 0, 0.42);
}

.aimgen-login-panel .aimgen-hero__subtitle,
.aimgen-module .aimgen-section__lead {
  color: rgba(231, 255, 252, 0.76);
}

.aimgen-login-panel .aimgen-hero__copy {
  max-width: 600px;
  color: rgba(242, 255, 253, 0.84);
  font-size: 1rem;
  line-height: 1.96;
}

.aimgen-system-readout {
  max-width: 500px;
}

.aimgen-system-readout__item {
  min-height: 38px;
  background: rgba(5, 24, 38, 0.52);
  border-color: rgba(148, 246, 255, 0.2);
}

.aimgen-action-row {
  gap: 12px;
}

.aimgen-button {
  min-height: 42px;
  padding-right: 18px;
  padding-left: 18px;
  color: rgba(243, 255, 253, 0.9);
}

.aimgen-button--primary {
  background: linear-gradient(135deg, rgba(72, 240, 217, 0.96), rgba(225, 202, 130, 0.68));
}

.aimgen-observation-viewport {
  min-height: 440px;
  background:
    radial-gradient(circle at 53% 50%, rgba(4, 17, 31, 0.08), rgba(4, 17, 31, 0.66) 62%, rgba(4, 17, 31, 0.88) 100%),
    var(--aimgen-hero-image);
  background-position: center;
  background-size: cover;
}

.aimgen-main-ring {
  width: min(74vw, 400px);
}

.aimgen-floating-readout {
  background: rgba(5, 24, 38, 0.64);
  border-color: rgba(148, 246, 255, 0.22);
}

.aimgen-command-strip {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
}

.aimgen-command-strip__link {
  color: rgba(232, 255, 252, 0.78);
  background: rgba(7, 29, 45, 0.48);
  border-color: rgba(148, 246, 255, 0.18);
}

.aimgen-dashboard-grid {
  gap: 22px;
  padding: 28px 0 86px;
}

.aimgen-module {
  min-height: auto;
  padding: 22px;
}

.aimgen-module__head {
  gap: 10px;
  margin-bottom: 20px;
}

.aimgen-module .aimgen-section-title {
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.38;
  text-shadow: 0 0 18px rgba(72, 240, 217, 0.1);
}

.aimgen-os-map {
  min-height: 450px;
  padding: 14px;
  border-color: rgba(148, 246, 255, 0.2);
}

.aimgen-os-node,
.aimgen-mini-console,
.aimgen-log-browser a,
.aimgen-node-list a,
.aimgen-diagram-card,
.aimgen-site-card {
  background: rgba(5, 24, 38, 0.58);
  border-color: rgba(148, 246, 255, 0.22);
}

.aimgen-os-node {
  padding: 16px;
}

.aimgen-os-node h3,
.aimgen-diagram-card h3,
.aimgen-site-card h3,
.aimgen-node-list a {
  color: #ffffff;
}

.aimgen-os-node p,
.aimgen-diagram-card p,
.aimgen-site-card p,
.aimgen-module .aimgen-section__lead {
  color: rgba(231, 255, 252, 0.76);
  line-height: 1.86;
}

.aimgen-os-node--fear {
  border-color: rgba(225, 202, 130, 0.42);
}

.aimgen-os-node--love {
  border-color: rgba(72, 240, 217, 0.42);
}

.aimgen-os-node--z {
  border-color: rgba(148, 246, 255, 0.46);
}

/* v1.7.0: top page observation start links */
.aimgen-module--observation-start {
  grid-column: 1 / -1;
}

.aimgen-start-grid {
  display: grid;
  gap: 12px;
}

.aimgen-start-card {
  position: relative;
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 164px;
  padding: 16px;
  overflow: hidden;
  color: rgba(245, 255, 253, 0.94);
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(72, 240, 217, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.034) 1px, transparent 1px),
    rgba(5, 24, 38, 0.58);
  background-size: 22px 22px, 22px 22px, auto;
  border: 1px solid rgba(148, 246, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(225, 202, 130, 0.04) inset;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.aimgen-start-card::before,
.aimgen-start-card::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.aimgen-start-card::before {
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(72, 240, 217, 0.78), rgba(225, 202, 130, 0.4));
  box-shadow: 0 0 18px rgba(72, 240, 217, 0.18);
}

.aimgen-start-card::after {
  right: 13px;
  bottom: 13px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(72, 240, 217, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(72, 240, 217, 0.08) inset;
}

.aimgen-start-card > * {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.aimgen-start-card span,
.aimgen-start-card em {
  width: fit-content;
  color: rgba(225, 202, 130, 0.82);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.35;
}

.aimgen-start-card strong {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.45;
}

.aimgen-start-card p {
  max-width: 44ch;
  margin: 0;
  color: rgba(231, 255, 252, 0.78);
  font-size: 0.92rem;
  line-height: 1.78;
}

.aimgen-start-card em {
  align-self: end;
  margin-top: 4px;
  color: rgba(72, 240, 217, 0.9);
}

.aimgen-start-card--log::before {
  background: linear-gradient(180deg, rgba(225, 202, 130, 0.72), rgba(72, 240, 217, 0.48));
}

.aimgen-start-card--diagram::before {
  background: linear-gradient(180deg, rgba(148, 246, 255, 0.78), rgba(72, 240, 217, 0.46));
}

.aimgen-start-card--zogo::before {
  background: linear-gradient(180deg, rgba(72, 240, 217, 0.68), rgba(148, 246, 255, 0.46));
}

.aimgen-start-card:hover,
.aimgen-start-card:focus-visible {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(72, 240, 217, 0.078) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.054) 1px, transparent 1px),
    rgba(8, 35, 50, 0.72);
  background-size: 22px 22px, 22px 22px, auto;
  border-color: rgba(72, 240, 217, 0.68);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.08) inset,
    0 0 30px rgba(72, 240, 217, 0.19),
    0 18px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.aimgen-start-card:focus-visible {
  outline: 2px solid rgba(72, 240, 217, 0.68);
  outline-offset: 3px;
}

/* v2.3.0: Z observation flow circuit */
.aimgen-module--z-flow {
  grid-column: 1 / -1;
  isolation: isolate;
  padding-block: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at 12% 42%, rgba(72, 240, 217, 0.14), transparent 28%),
    radial-gradient(circle at 88% 58%, rgba(225, 202, 130, 0.12), transparent 26%),
    linear-gradient(90deg, rgba(72, 240, 217, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.042) 1px, transparent 1px),
    rgba(4, 18, 31, 0.7);
  background-size: auto, auto, 26px 26px, 26px 26px, auto;
}

.aimgen-module--z-flow::after {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72, 240, 217, 0.62), transparent);
  content: "";
  opacity: 0.72;
  transform: translateY(-50%);
  animation: aimgen-z-flow-scan 5.8s linear infinite;
}

.aimgen-z-flow-circuit {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.aimgen-z-flow-circuit::before,
.aimgen-z-flow-circuit::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.aimgen-z-flow-circuit::before {
  top: 16px;
  bottom: 16px;
  left: 41px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(72, 240, 217, 0.64), rgba(225, 202, 130, 0.42), transparent);
  box-shadow: 0 0 18px rgba(72, 240, 217, 0.18);
}

.aimgen-z-flow-circuit::after {
  top: 0;
  left: 32px;
  width: 18px;
  height: 72px;
  background: linear-gradient(180deg, transparent, rgba(72, 240, 217, 0.52), transparent);
  filter: blur(1px);
  animation: aimgen-z-flow-pulse 6.6s ease-in-out infinite;
}

.aimgen-z-flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 0;
  align-content: start;
  column-gap: 12px;
  row-gap: 7px;
  padding: 15px;
  overflow: hidden;
  color: rgba(244, 255, 253, 0.96);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 34%),
    rgba(5, 25, 39, 0.76);
  border: 1px solid rgba(148, 246, 255, 0.2);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.05) inset,
    0 16px 38px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.aimgen-z-flow-node::before,
.aimgen-z-flow-node::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.aimgen-z-flow-node::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(72, 240, 217, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.9;
}

.aimgen-z-flow-node::after {
  right: -18px;
  bottom: -22px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(225, 202, 130, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(72, 240, 217, 0.08) inset;
}

.aimgen-z-flow-node > * {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.aimgen-z-flow-node__code,
.aimgen-z-flow-node__label {
  width: fit-content;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.66rem;
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.35;
}

.aimgen-z-flow-node__code {
  grid-column: 1 / -1;
  color: rgba(225, 202, 130, 0.86);
}

.aimgen-z-flow-node__ring {
  grid-row: 2 / span 3;
  grid-column: 1;
}

.aimgen-z-flow-node__label {
  grid-column: 2;
  color: rgba(72, 240, 217, 0.82);
}

.aimgen-z-flow-node__ring {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 2px 0 3px;
  border: 1px solid rgba(72, 240, 217, 0.46);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.12) inset,
    0 0 24px rgba(72, 240, 217, 0.18);
}

.aimgen-z-flow-node__ring::before,
.aimgen-z-flow-node__ring::after {
  display: block;
  border-radius: 50%;
  content: "";
}

.aimgen-z-flow-node__ring::before {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(225, 202, 130, 0.6);
}

.aimgen-z-flow-node__ring::after {
  position: absolute;
  width: 7px;
  height: 7px;
  background: rgba(72, 240, 217, 0.96);
  box-shadow: 0 0 15px rgba(72, 240, 217, 0.62);
}

.aimgen-z-flow-node strong {
  grid-column: 2;
  color: #ffffff;
  font-size: 1.06rem;
  line-height: 1.4;
}

.aimgen-z-flow-node em {
  grid-column: 2;
  max-width: 24ch;
  color: rgba(231, 255, 252, 0.78);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.68;
}

.aimgen-z-flow-node--fixation .aimgen-z-flow-node__ring {
  border-color: rgba(225, 202, 130, 0.5);
}

.aimgen-z-flow-node--log .aimgen-z-flow-node__ring,
.aimgen-z-flow-node--circulation .aimgen-z-flow-node__ring {
  border-color: rgba(148, 246, 255, 0.46);
}

.aimgen-z-flow-node--z-os {
  border-color: rgba(225, 202, 130, 0.34);
}

.aimgen-z-flow-node:hover,
.aimgen-z-flow-node:focus-visible {
  background:
    linear-gradient(180deg, rgba(72, 240, 217, 0.1), transparent 36%),
    rgba(7, 31, 47, 0.82);
  border-color: rgba(72, 240, 217, 0.68);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.1) inset,
    0 0 34px rgba(72, 240, 217, 0.2),
    0 20px 52px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.aimgen-z-flow-node:hover .aimgen-z-flow-node__ring,
.aimgen-z-flow-node:focus-visible .aimgen-z-flow-node__ring {
  border-color: rgba(72, 240, 217, 0.84);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.16) inset,
    0 0 30px rgba(72, 240, 217, 0.34);
}

@keyframes aimgen-z-flow-scan {
  0% {
    transform: translate(-18%, -50%);
    opacity: 0;
  }

  18%,
  72% {
    opacity: 0.72;
  }

  100% {
    transform: translate(205%, -50%);
    opacity: 0;
  }
}

@keyframes aimgen-z-flow-pulse {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  35%,
  65% {
    opacity: 0.82;
  }

  100% {
    transform: translateY(420%);
    opacity: 0;
  }
}

@media (min-width: 960px) {
  .aimgen-z-flow-circuit {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  .aimgen-z-flow-circuit::before {
    top: 64px;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(72, 240, 217, 0.64), rgba(225, 202, 130, 0.42), transparent);
  }

  .aimgen-z-flow-circuit::after {
    top: 56px;
    left: 0;
    width: 72px;
    height: 18px;
    background: linear-gradient(90deg, transparent, rgba(72, 240, 217, 0.52), transparent);
  }

  .aimgen-z-flow-node {
    grid-template-columns: 1fr;
    min-height: 208px;
    gap: 8px;
  }

  .aimgen-z-flow-node__code,
  .aimgen-z-flow-node__ring,
  .aimgen-z-flow-node__label,
  .aimgen-z-flow-node strong,
  .aimgen-z-flow-node em {
    grid-column: auto;
    grid-row: auto;
  }

  .aimgen-z-flow-node em {
    max-width: 24ch;
  }

  @keyframes aimgen-z-flow-pulse {
    0% {
      transform: translateX(0);
      opacity: 0;
    }

    35%,
    65% {
      opacity: 0.82;
    }

    100% {
      transform: translateX(calc(100vw - 220px));
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .aimgen-module--z-flow::after,
  .aimgen-z-flow-circuit::after {
    animation: none;
  }
}

.aimgen-module--lab .aimgen-diagram-gallery {
  gap: 14px;
}

.aimgen-module--lab .aimgen-diagram-card {
  padding: 15px;
}

.aimgen-module--lab .aimgen-diagram {
  min-height: 136px;
}

.aimgen-node-list {
  gap: 10px;
}

.aimgen-node-list a {
  min-height: 48px;
  padding: 11px 12px;
}

.aimgen-module--reference .aimgen-related-sites {
  gap: 10px;
}

.aimgen-module--reference .aimgen-site-card {
  padding: 12px;
  opacity: 0.86;
}

@media (min-width: 620px) {
  .aimgen-container {
    width: min(calc(100% - (var(--aimgen-page-gutter) * 2)), var(--aimgen-content-max));
  }

  .aimgen-command-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aimgen-dashboard-grid {
    gap: 24px;
  }

  .aimgen-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aimgen-os-map {
    min-height: 430px;
  }
}

@media (min-width: 920px) {
  .aimgen-console {
    padding-top: 38px;
  }

  .aimgen-console-grid {
    gap: 24px;
    grid-template-columns: minmax(390px, 0.78fr) minmax(430px, 1fr);
  }

  .aimgen-login-panel {
    min-height: 540px;
    padding: 34px;
  }

  .aimgen-login-panel h1 {
    font-size: 3.05rem;
  }

  .aimgen-observation-viewport {
    min-height: 540px;
  }

  .aimgen-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
    gap: 26px;
  }

  .aimgen-module--wide {
    grid-column: span 2;
  }

  .aimgen-module--node-log,
  .aimgen-module--reference {
    grid-column: span 1;
  }

  .aimgen-module {
    padding: 26px;
  }
}

@media (min-width: 1180px) {
  .aimgen-login-panel h1 {
    font-size: 3.32rem;
  }

  .aimgen-dashboard-grid {
    gap: 30px;
  }

  .aimgen-module .aimgen-section-title {
    font-size: 1.42rem;
  }

  .aimgen-start-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .aimgen-container {
    width: min(calc(100% - 32px), var(--aimgen-content-max));
  }

  .aimgen-console {
    padding-top: 20px;
  }

  .aimgen-login-panel,
  .aimgen-module {
    padding: 18px;
  }

  .aimgen-login-panel h1 {
    font-size: 2rem;
  }

  .aimgen-observation-viewport {
    min-height: 360px;
  }

  .aimgen-main-ring {
    width: min(82vw, 330px);
  }

  .aimgen-system-readout,
  .aimgen-action-row {
    max-width: 100%;
  }
}

/* v1.1.2: final texture, readability, and spatial refinement */
.aimgen-ui-v1 {
  color: rgba(246, 255, 253, 0.94);
  background:
    radial-gradient(circle at 18% 10%, rgba(72, 240, 217, 0.12), transparent 31%),
    radial-gradient(circle at 82% 22%, rgba(148, 246, 255, 0.1), transparent 34%),
    radial-gradient(circle at 52% 82%, rgba(225, 202, 130, 0.055), transparent 38%),
    linear-gradient(160deg, #051322 0%, #071827 43%, #020816 100%);
}

.aimgen-console {
  padding-bottom: 30px;
}

.aimgen-console-grid {
  align-items: center;
}

.aimgen-login-panel,
.aimgen-module {
  background:
    linear-gradient(145deg, rgba(9, 35, 52, 0.58), rgba(3, 14, 28, 0.34)),
    linear-gradient(90deg, rgba(72, 240, 217, 0.05), transparent 46%, rgba(225, 202, 130, 0.035));
  border-color: rgba(158, 255, 239, 0.2);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.06) inset,
    0 24px 74px rgba(0, 0, 0, 0.28),
    0 0 54px rgba(72, 240, 217, 0.08);
}

.aimgen-login-panel::before,
.aimgen-module::before {
  height: 1px;
  background: linear-gradient(90deg, rgba(225, 202, 130, 0.66), rgba(72, 240, 217, 0.28), transparent 84%);
  opacity: 0.86;
}

.aimgen-login-panel h1,
.aimgen-module .aimgen-section-title {
  color: #ffffff;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.7),
    0 0 24px rgba(72, 240, 217, 0.18);
}

.aimgen-login-panel h1 {
  max-width: 620px;
}

.aimgen-hero__copy,
.aimgen-module .aimgen-section__lead,
.aimgen-os-node p,
.aimgen-diagram-card p,
.aimgen-site-card p {
  color: rgba(238, 255, 252, 0.84);
  line-height: 1.94;
}

.aimgen-hero__copy {
  max-width: 620px;
}

.aimgen-hero__copy p + p {
  margin-top: 14px;
}

.aimgen-system-readout {
  margin-top: 26px;
  gap: 10px;
}

.aimgen-system-readout__item,
.aimgen-command-strip__link,
.aimgen-os-node,
.aimgen-mini-console,
.aimgen-log-browser a,
.aimgen-node-list a,
.aimgen-diagram-card,
.aimgen-site-card {
  background: rgba(7, 29, 44, 0.48);
  border-color: rgba(158, 255, 239, 0.2);
}

.aimgen-system-readout__item:hover,
.aimgen-system-readout__item:focus-visible,
.aimgen-command-strip__link:hover,
.aimgen-command-strip__link:focus-visible,
.aimgen-os-node:hover,
.aimgen-os-node:focus-visible,
.aimgen-node-list a:hover,
.aimgen-diagram-card:hover,
.aimgen-site-card:hover {
  border-color: rgba(72, 240, 217, 0.4);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.08) inset,
    0 0 28px rgba(72, 240, 217, 0.12);
}

.aimgen-system-readout__item > *,
.aimgen-command-strip__link > *,
.aimgen-os-node > * {
  pointer-events: none;
}

.aimgen-viewport-grid,
.aimgen-ring,
.aimgen-ring-core,
.aimgen-map-node,
.aimgen-floating-readout,
.aimgen-os-orbit,
.aimgen-os-orbit span {
  cursor: default;
  pointer-events: none;
}


.aimgen-observation-viewport {
  background:
    radial-gradient(circle at 53% 50%, rgba(4, 17, 31, 0), rgba(4, 17, 31, 0.52) 61%, rgba(4, 17, 31, 0.8) 100%),
    linear-gradient(90deg, rgba(2, 8, 22, 0.76), transparent 48%),
    var(--aimgen-hero-image);
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.08) inset,
    0 0 74px rgba(72, 240, 217, 0.1);
}

.aimgen-floating-readout {
  background: rgba(5, 24, 38, 0.58);
  border-color: rgba(225, 202, 130, 0.16);
}

.aimgen-command-strip {
  margin-top: 26px;
}

.aimgen-dashboard-grid {
  gap: 34px;
  padding-top: 46px;
  padding-bottom: 116px;
}

.aimgen-module {
  padding: 28px;
}

.aimgen-module__head {
  margin-bottom: 24px;
}

.aimgen-module .aimgen-section-title {
  position: relative;
  padding-left: 14px;
  line-height: 1.42;
}

.aimgen-module .aimgen-section-title::before {
  position: absolute;
  top: 0.23em;
  bottom: 0.16em;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, rgba(225, 202, 130, 0.85), rgba(72, 240, 217, 0.5));
  box-shadow: 0 0 16px rgba(72, 240, 217, 0.26);
}

.aimgen-section__label {
  color: rgba(225, 202, 130, 0.78);
}

.aimgen-os-map {
  padding: 18px;
  border-color: rgba(158, 255, 239, 0.22);
  background:
    linear-gradient(rgba(158, 255, 239, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 255, 239, 0.045) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(72, 240, 217, 0.08), transparent 58%),
    rgba(3, 15, 29, 0.34);
  background-size: 36px 36px, 36px 36px, auto, auto;
}

.aimgen-os-node span,
.aimgen-diagram-card__meta,
.aimgen-site-card__meta,
.aimgen-node-list span {
  color: rgba(225, 202, 130, 0.76);
}

@media (min-width: 620px) {
  .aimgen-dashboard-grid {
    gap: 36px;
  }

  .aimgen-module {
    padding: 30px;
  }
}

@media (min-width: 920px) {
  .aimgen-console {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .aimgen-console-grid {
    gap: 38px;
    grid-template-columns: minmax(400px, 0.74fr) minmax(440px, 1fr);
  }

  .aimgen-login-panel {
    padding: 42px;
  }

  .aimgen-dashboard-grid {
    gap: 42px;
    padding-top: 62px;
    padding-bottom: 132px;
  }

  .aimgen-module {
    padding: 34px;
  }

  .aimgen-module__head {
    margin-bottom: 28px;
  }
}

@media (min-width: 1180px) {
  .aimgen-console-grid {
    gap: 46px;
  }

  .aimgen-dashboard-grid {
    gap: 46px;
  }

  .aimgen-login-panel h1 {
    font-size: 3.28rem;
  }
}

@media (max-width: 520px) {
  .aimgen-container {
    width: min(calc(100% - 32px), var(--aimgen-content-max));
  }

  .aimgen-console {
    padding-top: 24px;
    padding-bottom: 38px;
  }

  .aimgen-login-panel,
  .aimgen-module {
    padding: 20px;
  }

  .aimgen-hero__copy,
  .aimgen-module .aimgen-section__lead,
  .aimgen-os-node p,
  .aimgen-diagram-card p,
  .aimgen-site-card p {
    line-height: 1.9;
  }

  .aimgen-system-readout {
    margin-top: 22px;
  }

  .aimgen-command-strip {
    gap: 10px;
    margin-top: 22px;
  }

  .aimgen-observation-viewport {
    min-height: 382px;
  }

  .aimgen-dashboard-grid {
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 84px;
  }

  .aimgen-module__head {
    margin-bottom: 22px;
  }

  .aimgen-module .aimgen-section-title {
    padding-left: 12px;
  }

  .aimgen-start-card {
    min-height: 154px;
    padding: 15px;
  }

  .aimgen-os-map {
    padding: 14px;
  }
}

/* v1.1.3: navigation glass, restored nodes, fixed top control */
@media (max-width: 859px) {
  .aimgen-nav {
    top: calc(100% + 10px);
    right: 17px;
    left: 17px;
    overflow: hidden;
    padding: 10px;
    background:
      linear-gradient(90deg, rgba(148, 246, 255, 0.075) 1px, transparent 1px),
      linear-gradient(180deg, rgba(148, 246, 255, 0.055) 1px, transparent 1px),
      linear-gradient(145deg, rgba(7, 29, 44, 0.68), rgba(2, 8, 22, 0.46));
    background-size: 22px 22px, 22px 22px, auto;
    border: 1px solid rgba(72, 240, 217, 0.48);
    box-shadow:
      0 18px 60px rgba(0, 0, 0, 0.44),
      0 0 0 1px rgba(225, 202, 130, 0.07) inset,
      0 0 36px rgba(72, 240, 217, 0.14);
    backdrop-filter: blur(22px) saturate(1.28);
    -webkit-backdrop-filter: blur(22px) saturate(1.28);
  }

  .aimgen-nav::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
      linear-gradient(90deg, rgba(225, 202, 130, 0.5), rgba(72, 240, 217, 0.38), transparent 72%),
      radial-gradient(circle at 88% 12%, rgba(72, 240, 217, 0.18), transparent 34%);
    opacity: 0.74;
  }

  .aimgen-nav__list {
    position: relative;
    z-index: 1;
    gap: 7px;
  }

  .aimgen-nav__list a {
    min-height: 44px;
    color: rgba(242, 255, 253, 0.86);
    background: rgba(5, 24, 38, 0.42);
    border-color: rgba(158, 255, 239, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  }

  .aimgen-nav__list a:hover,
  .aimgen-nav__list a:focus-visible,
  .aimgen-nav__list .current-menu-item > a,
  .aimgen-nav__list .current_page_item > a {
    color: #ffffff;
    background:
      linear-gradient(90deg, rgba(72, 240, 217, 0.15), rgba(148, 246, 255, 0.055)),
      rgba(5, 24, 38, 0.58);
    border-color: rgba(72, 240, 217, 0.66);
    box-shadow:
      0 0 0 1px rgba(225, 202, 130, 0.08) inset,
      0 0 24px rgba(72, 240, 217, 0.2);
  }
}

.aimgen-node-highlights {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.aimgen-node-highlight {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 118px;
  overflow: hidden;
  padding: 16px;
  color: inherit;
  background:
    linear-gradient(90deg, rgba(148, 246, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 246, 255, 0.045) 1px, transparent 1px),
    rgba(7, 29, 44, 0.52);
  background-size: 26px 26px, 26px 26px, auto;
  border: 1px solid rgba(158, 255, 239, 0.24);
  border-radius: var(--aimgen-radius);
  text-decoration: none;
}

.aimgen-node-highlight::before {
  display: block;
  width: 52px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(225, 202, 130, 0.82), rgba(72, 240, 217, 0.52));
  box-shadow: 0 0 18px rgba(72, 240, 217, 0.2);
}

.aimgen-node-highlight span {
  color: rgba(225, 202, 130, 0.76);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.25;
}

.aimgen-node-highlight strong {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 1.13rem;
  line-height: 1.32;
  text-shadow: 0 0 20px rgba(72, 240, 217, 0.18);
}

.aimgen-node-highlight em {
  color: rgba(238, 255, 252, 0.8);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.74;
}

.aimgen-node-highlight--center {
  border-color: rgba(148, 246, 255, 0.34);
}

.aimgen-node-highlight--log {
  border-color: rgba(72, 240, 217, 0.34);
}

.aimgen-node-highlight:hover,
.aimgen-node-highlight:focus-visible {
  border-color: rgba(72, 240, 217, 0.58);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.09) inset,
    0 0 30px rgba(72, 240, 217, 0.14);
}

.aimgen-back-to-top {
  position: fixed;
  z-index: 130;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(72, 240, 217, 0.2), rgba(5, 24, 38, 0.72)),
    rgba(2, 8, 22, 0.78);
  border: 1px solid rgba(72, 240, 217, 0.56);
  border-radius: 50%;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(225, 202, 130, 0.08) inset,
    0 0 24px rgba(72, 240, 217, 0.18);
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.aimgen-back-to-top:hover,
.aimgen-back-to-top:focus-visible {
  border-color: rgba(225, 202, 130, 0.62);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(225, 202, 130, 0.18) inset,
    0 0 30px rgba(72, 240, 217, 0.28);
}

.aimgen-entry__content h2 {
  position: relative;
  margin-top: 1.35em;
  padding-left: 15px;
  color: #ffffff;
  font-size: 1.68rem;
  line-height: 1.26;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.62),
    0 0 22px rgba(72, 240, 217, 0.14);
}

.aimgen-entry__content h2::before {
  position: absolute;
  top: 0.16em;
  bottom: 0.14em;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, rgba(225, 202, 130, 0.84), rgba(72, 240, 217, 0.54));
  box-shadow: 0 0 16px rgba(72, 240, 217, 0.24);
}

.aimgen-site-footer__inner {
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .aimgen-node-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 920px) {
  .aimgen-node-highlights {
    gap: 16px;
    margin-bottom: 18px;
  }

  .aimgen-node-highlight {
    padding: 18px;
  }

  .aimgen-back-to-top {
    right: 26px;
    bottom: 26px;
    width: 50px;
    height: 50px;
  }

  .aimgen-entry__content h2 {
    font-size: 2.22rem;
  }
}

@media (max-width: 520px) {
  .aimgen-node-highlight {
    min-height: auto;
    padding: 15px;
  }

  .aimgen-entry__content h2 {
    padding-left: 12px;
    font-size: 1.55rem;
    line-height: 1.34;
  }

  .aimgen-back-to-top {
    right: 14px;
    bottom: 14px;
    width: 43px;
    height: 43px;
  }
}

/* v1.1.4: footer glass HUD and back-to-top spacing */
.aimgen-site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(246, 255, 253, 0.92);
  background:
    radial-gradient(circle at 16% 18%, rgba(72, 240, 217, 0.12), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(225, 202, 130, 0.07), transparent 24%),
    linear-gradient(90deg, rgba(148, 246, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 246, 255, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, rgba(6, 24, 39, 0.86), rgba(2, 8, 22, 0.94));
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  border-top: 1px solid rgba(72, 240, 217, 0.34);
  box-shadow:
    0 -1px 0 rgba(225, 202, 130, 0.09) inset,
    0 -28px 80px rgba(72, 240, 217, 0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.aimgen-site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(72, 240, 217, 0.78), rgba(225, 202, 130, 0.42), transparent);
}

.aimgen-site-footer::after {
  position: absolute;
  right: 9%;
  bottom: 30px;
  width: 4px;
  height: 4px;
  content: "";
  background: rgba(225, 202, 130, 0.78);
  border-radius: 50%;
  box-shadow:
    -64px -24px 0 rgba(225, 202, 130, 0.34),
    42px -54px 0 rgba(72, 240, 217, 0.28),
    0 0 18px rgba(225, 202, 130, 0.42);
}

.aimgen-site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 44px 0;
}

.aimgen-footer-block {
  position: relative;
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.aimgen-footer-block::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(225, 202, 130, 0.68), rgba(72, 240, 217, 0.5));
  box-shadow: 0 0 18px rgba(72, 240, 217, 0.18);
}

.aimgen-footer-brand {
  color: #ffffff;
  text-shadow: 0 0 22px rgba(72, 240, 217, 0.16);
}

.aimgen-footer-label {
  margin: 0;
  color: rgba(225, 202, 130, 0.82);
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.35;
}

.aimgen-footer-note,
.aimgen-footer-copy,
.aimgen-footer-list {
  color: rgba(232, 255, 252, 0.76);
}

.aimgen-footer-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.7;
}

.aimgen-footer-list li {
  position: relative;
  padding-left: 14px;
}

.aimgen-footer-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  background: rgba(72, 240, 217, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(72, 240, 217, 0.36);
}

.aimgen-back-to-top {
  right: 18px;
  bottom: 22px;
}

@media (min-width: 760px) {
  .aimgen-site-footer__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(220px, 0.8fr) minmax(240px, 0.86fr);
    gap: 34px;
    align-items: start;
    padding: 52px 0;
  }
}

@media (min-width: 920px) {
  .aimgen-back-to-top {
    right: 32px;
    bottom: 32px;
  }
}

@media (max-width: 520px) {
  .aimgen-site-footer__inner {
    gap: 24px;
    padding: 40px 0 88px;
  }

  .aimgen-footer-block {
    padding-top: 13px;
  }

  .aimgen-back-to-top {
    right: 18px;
    bottom: 22px;
  }
}

/* v1.1.5: reliable back-to-top interaction */
.aimgen-site-footer::before,
.aimgen-site-footer::after {
  pointer-events: none;
}

.aimgen-back-to-top {
  z-index: 9999;
  right: 18px;
  bottom: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  touch-action: manipulation;
  isolation: isolate;
}

.aimgen-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (min-width: 920px) {
  .aimgen-back-to-top {
    right: 32px;
    bottom: 32px;
  }
}

@media (max-width: 520px) {
  .aimgen-back-to-top {
    right: 18px;
    bottom: 22px;
  }
}

/* v1.1.6: clickable reference connection cards */
.aimgen-module--reference {
  isolation: isolate;
}

.aimgen-module--reference,
.aimgen-module--reference .aimgen-related-sites {
  position: relative;
}

.aimgen-module--reference::before,
.aimgen-module--reference::after,
.aimgen-module--reference .aimgen-related-sites::before,
.aimgen-module--reference .aimgen-related-sites::after,
.aimgen-module--reference .aimgen-site-card::before,
.aimgen-module--reference .aimgen-site-card::after,
.aimgen-site-footer::before,
.aimgen-site-footer::after {
  pointer-events: none;
}

.aimgen-module--reference .aimgen-related-sites {
  z-index: 20;
  pointer-events: auto;
}

.aimgen-module--reference .aimgen-site-card,
.aimgen-module--reference .reference-card {
  position: relative;
  z-index: 30;
  display: grid;
  min-height: 72px;
  width: 100%;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  opacity: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(72, 240, 217, 0.18);
}

.aimgen-module--reference .aimgen-site-card > *,
.aimgen-module--reference .reference-card > * {
  pointer-events: none;
}

.aimgen-module--reference .aimgen-site-card:hover,
.aimgen-module--reference .aimgen-site-card:focus-visible,
.aimgen-module--reference .reference-card:hover,
.aimgen-module--reference .reference-card:focus-visible {
  border-color: rgba(72, 240, 217, 0.68);
  background:
    linear-gradient(90deg, rgba(72, 240, 217, 0.13), rgba(148, 246, 255, 0.055)),
    rgba(7, 29, 44, 0.62);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.1) inset,
    0 0 34px rgba(72, 240, 217, 0.18);
  transform: translateY(-1px);
}

.aimgen-module--reference .aimgen-site-card:focus-visible,
.aimgen-module--reference .reference-card:focus-visible {
  outline: 2px solid rgba(72, 240, 217, 0.64);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .aimgen-module--reference .aimgen-site-card,
  .aimgen-module--reference .reference-card {
    min-height: 76px;
    padding: 14px;
  }
}

/* v2.0.0: AIMGEN five-site constellation */
.aimgen-module--network {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(225, 202, 130, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(72, 240, 217, 0.09), rgba(255, 255, 255, 0.024)),
    rgba(3, 16, 29, 0.72);
}

.aimgen-module--network .aimgen-section__lead {
  max-width: 780px;
}

.aimgen-module--network .aimgen-related-sites,
.aimgen-network-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  z-index: 20;
}

.aimgen-network-map::before {
  position: absolute;
  top: 50%;
  right: 6%;
  left: 6%;
  z-index: 0;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(72, 240, 217, 0.46), rgba(225, 202, 130, 0.32), rgba(72, 240, 217, 0.46), transparent);
}

.aimgen-network-card {
  position: relative;
  z-index: 2;
  align-content: start;
  gap: 10px;
  min-height: 330px;
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(72, 240, 217, 0.08), rgba(225, 202, 130, 0.045)),
    rgba(2, 8, 22, 0.66);
  border-color: rgba(72, 240, 217, 0.27);
}

.aimgen-network-card.is-current {
  border-color: rgba(225, 202, 130, 0.56);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.14) inset,
    0 0 36px rgba(72, 240, 217, 0.16);
}

.aimgen-network-card__logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 122px;
  max-height: 138px;
  padding: 10px 12px;
  margin-bottom: 2px;
  color: #f8ead0;
  background:
    radial-gradient(circle at 50% 42%, rgba(225, 202, 130, 0.2), transparent 58%),
    linear-gradient(135deg, rgba(72, 240, 217, 0.08), rgba(225, 202, 130, 0.045)),
    rgba(3, 16, 29, 0.64);
  border: 1px solid rgba(225, 202, 130, 0.44);
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(225, 202, 130, 0.13), inset 0 0 18px rgba(72, 240, 217, 0.08);
  overflow: hidden;
}

.aimgen-network-card__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(225, 202, 130, 0.16));
}

.aimgen-network-card__logo span {
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1;
}

.aimgen-network-card__domain,
.aimgen-network-card__role,
.aimgen-network-card__button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.35;
}

.aimgen-network-card__domain {
  color: rgba(148, 246, 255, 0.82);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.aimgen-network-card__role {
  padding: 3px 7px;
  color: rgba(225, 202, 130, 0.92);
  background: rgba(225, 202, 130, 0.08);
  border: 1px solid rgba(225, 202, 130, 0.2);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
}

.aimgen-module--network .aimgen-site-card h3 {
  margin: 2px 0 0;
  font-size: 1.02rem;
}

.aimgen-module--network .aimgen-site-card p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.75;
}

.aimgen-network-card__button {
  align-self: end;
  margin-top: auto;
  padding: 7px 10px;
  color: #04111f;
  background: linear-gradient(90deg, rgba(72, 240, 217, 0.95), rgba(225, 202, 130, 0.86));
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 820;
}

@media (max-width: 980px) {
  .aimgen-module--network .aimgen-related-sites,
  .aimgen-network-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aimgen-network-card {
    min-height: 304px;
  }
}

@media (max-width: 560px) {
  .aimgen-module--network .aimgen-related-sites,
  .aimgen-network-map {
    grid-template-columns: 1fr;
  }

  .aimgen-network-map::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 29px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(72, 240, 217, 0.42), rgba(225, 202, 130, 0.28), transparent);
  }

  .aimgen-network-card {
    min-height: 0;
    padding: 15px;
  }

  .aimgen-network-card__logo {
    min-height: 112px;
    max-height: 128px;
  }

  .aimgen-network-card__logo img {
    max-height: 104px;
  }
}

/* v1.1.7: footer contents map buttons */
.aimgen-footer-block--contents {
  z-index: 2;
  gap: 14px;
}

.aimgen-footer-content-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.aimgen-footer-content-button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  width: 100%;
  padding: 11px 13px;
  overflow: hidden;
  color: rgba(247, 255, 253, 0.92);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.35;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(72, 240, 217, 0.105), rgba(225, 202, 130, 0.045)),
    rgba(7, 28, 43, 0.54);
  border: 1px solid rgba(72, 240, 217, 0.28);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 14px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.aimgen-footer-content-button::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, rgba(72, 240, 217, 0.86), rgba(225, 202, 130, 0.42));
  box-shadow: 0 0 18px rgba(72, 240, 217, 0.28);
  pointer-events: none;
}

.aimgen-footer-content-button span {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.aimgen-footer-content-button:hover,
.aimgen-footer-content-button:focus-visible {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(72, 240, 217, 0.18), rgba(225, 202, 130, 0.075)),
    rgba(8, 35, 50, 0.72);
  border-color: rgba(72, 240, 217, 0.72);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.1) inset,
    0 0 30px rgba(72, 240, 217, 0.2),
    0 16px 38px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.aimgen-footer-content-button:focus-visible {
  outline: 2px solid rgba(72, 240, 217, 0.66);
  outline-offset: 3px;
}

.aimgen-footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 18px;
  border-top: 1px solid rgba(72, 240, 217, 0.16);
}

.aimgen-footer-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (min-width: 760px) {
  .aimgen-site-footer__inner {
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.55fr);
  }

  .aimgen-footer-block--contents {
    grid-column: 2;
  }

  .aimgen-footer-content-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .aimgen-footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .aimgen-footer-content-buttons {
    gap: 8px;
  }

  .aimgen-footer-content-button {
    min-height: 48px;
    padding: 11px 12px;
    font-size: 0.84rem;
  }
}

@media (max-width: 380px) {
  .aimgen-footer-content-buttons {
    grid-template-columns: 1fr;
  }
}

/* v1.3.0: fixed page production content body system */
:root {
  --aimgen-fixed-page-measure: var(--aimgen-reading-max);
}

.aimgen-fixed-page .aimgen-entry__header {
  position: relative;
  overflow: hidden;
  padding: 66px 0 32px;
  background:
    linear-gradient(90deg, rgba(72, 240, 217, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.038) 1px, transparent 1px),
    radial-gradient(circle at 15% 0%, rgba(225, 202, 130, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(3, 13, 24, 0.98), rgba(5, 22, 35, 0.96));
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.aimgen-fixed-page .aimgen-entry__header::after {
  position: absolute;
  right: 8%;
  bottom: 24px;
  width: 132px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(72, 240, 217, 0.72), rgba(225, 202, 130, 0.48));
  box-shadow: 0 0 24px rgba(72, 240, 217, 0.18);
  pointer-events: none;
}

.aimgen-fixed-page .aimgen-entry__header .aimgen-container {
  width: min(calc(100vw - (var(--aimgen-page-gutter) * 2)), var(--aimgen-reading-max));
  max-width: var(--aimgen-reading-max);
  margin-right: auto;
  margin-left: max(var(--aimgen-page-gutter), calc((100vw - var(--aimgen-content-max)) / 2));
}

.aimgen-fixed-page .aimgen-entry__content {
  width: min(calc(100vw - (var(--aimgen-page-gutter) * 2)), var(--aimgen-reading-max));
  max-width: var(--aimgen-reading-max);
  margin-right: auto;
  margin-left: max(var(--aimgen-page-gutter), calc((100vw - var(--aimgen-content-max)) / 2));
}

.aimgen-fixed-page .aimgen-entry__title::after {
  width: 100%;
  max-width: var(--aimgen-fixed-page-measure);
  background: linear-gradient(90deg, rgba(225, 202, 130, 0.84), rgba(72, 240, 217, 0.42), transparent);
}

.aimgen-fixed-page .aimgen-entry__content {
  gap: 26px;
  padding: 48px 0 92px;
  color: rgba(237, 255, 252, 0.86);
  font-size: 1.04rem;
  line-height: 1.88;
}

.aimgen-fixed-page .aimgen-entry__content p,
.aimgen-fixed-page .aimgen-entry__content li,
.aimgen-fixed-page .aimgen-entry__content td {
  color: rgba(230, 250, 247, 0.78);
}

.aimgen-fixed-page .aimgen-entry__content a {
  color: #74f5df;
}

.aimgen-page-map-intro,
.aimgen-page-section,
.aimgen-page-next {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72, 240, 217, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(72, 240, 217, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.03) 1px, transparent 1px),
    rgba(5, 20, 32, 0.68);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(225, 202, 130, 0.055) inset;
}

.aimgen-page-map-intro::before,
.aimgen-page-section::before,
.aimgen-page-next::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(72, 240, 217, 0.72), rgba(225, 202, 130, 0.38), transparent);
  pointer-events: none;
}

.aimgen-page-map-intro {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.aimgen-page-map-intro__label,
.aimgen-page-section__eyebrow,
.aimgen-page-next__label {
  margin: 0;
  color: rgba(225, 202, 130, 0.88);
  font-size: 0.76rem;
  font-weight: 860;
  line-height: 1.35;
}

.aimgen-page-map-intro__text {
  max-width: 62ch;
  margin: 0;
  color: #f3fffc;
  font-size: 1.12rem;
  font-weight: 680;
  line-height: 1.86;
}

.aimgen-page-map-memo-title {
  width: fit-content;
  margin: 0;
  color: rgba(116, 245, 223, 0.92);
  font-size: 0.82rem;
  font-weight: 860;
  line-height: 1.4;
}

.aimgen-page-caution,
.aimgen-fixed-page .aimgen-entry__content blockquote {
  padding: 15px 16px;
  margin: 0;
  color: rgba(238, 255, 252, 0.8);
  background: rgba(1, 9, 18, 0.36);
  border: 1px solid rgba(225, 202, 130, 0.2);
  border-left: 3px solid rgba(225, 202, 130, 0.72);
  border-radius: 8px;
}

.aimgen-page-caution p,
.aimgen-fixed-page .aimgen-entry__content blockquote p {
  margin: 0;
}

.aimgen-fixed-page .aimgen-entry__content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.65;
}

.aimgen-page-signal-table {
  border: 1px solid rgba(72, 240, 217, 0.18);
  border-radius: 8px;
}

.aimgen-fixed-page .aimgen-entry__content th,
.aimgen-fixed-page .aimgen-entry__content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(72, 240, 217, 0.14);
}

.aimgen-fixed-page .aimgen-entry__content tr:last-child th,
.aimgen-fixed-page .aimgen-entry__content tr:last-child td {
  border-bottom: 0;
}

.aimgen-fixed-page .aimgen-entry__content th {
  width: 118px;
  color: rgba(225, 202, 130, 0.92);
  font-weight: 860;
  background: rgba(72, 240, 217, 0.045);
}

.aimgen-page-section-grid {
  display: grid;
  gap: 18px;
}

.aimgen-page-section {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.aimgen-fixed-page .aimgen-page-section h2 {
  margin: 0;
  padding-left: 17px;
  color: #ffffff;
  font-size: 1.96rem;
  line-height: 1.32;
}

.aimgen-fixed-page .aimgen-page-section h3 {
  margin: 4px 0 0;
  color: rgba(116, 245, 223, 0.92);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 860;
  line-height: 1.48;
}

.aimgen-fixed-page .aimgen-page-section p {
  max-width: 68ch;
  margin: 0;
}

.aimgen-fixed-page .aimgen-entry__content ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aimgen-fixed-page .aimgen-entry__content li {
  position: relative;
  padding-left: 18px;
}

.aimgen-fixed-page .aimgen-entry__content li::before {
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: rgba(72, 240, 217, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(72, 240, 217, 0.34);
}

.aimgen-page-next {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.aimgen-page-next__link {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  color: #ffffff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(72, 240, 217, 0.14), rgba(225, 202, 130, 0.06)),
    rgba(3, 16, 25, 0.72);
  border: 1px solid rgba(72, 240, 217, 0.36);
  border-radius: 8px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.aimgen-page-next__link span {
  color: rgba(225, 202, 130, 0.84);
  font-size: 0.74rem;
  font-weight: 840;
}

.aimgen-page-next__link strong {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.45;
}

.aimgen-page-next__link:hover,
.aimgen-page-next__link:focus-visible {
  border-color: rgba(72, 240, 217, 0.74);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.1) inset,
    0 0 34px rgba(72, 240, 217, 0.2);
  transform: translateY(-1px);
}

.aimgen-page-next__link:focus-visible {
  outline: 2px solid rgba(72, 240, 217, 0.68);
  outline-offset: 3px;
}

/* v1.4.0-v1.6.0: diagram lab and ZOGO glossary expansion */
.aimgen-content-lab {
  position: relative;
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(72, 240, 217, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(72, 240, 217, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 92% 12%, rgba(72, 240, 217, 0.12), transparent 34%),
    rgba(4, 18, 30, 0.72);
  background-size: 30px 30px, 30px 30px, auto, auto;
  box-shadow:
    0 22px 76px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(225, 202, 130, 0.06) inset;
}

.aimgen-content-lab::before,
.aimgen-content-lab::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.aimgen-content-lab::before {
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(225, 202, 130, 0.72), rgba(72, 240, 217, 0.82), transparent);
}

.aimgen-content-lab::after {
  top: 18px;
  right: 18px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(72, 240, 217, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(72, 240, 217, 0.08) inset;
}

.aimgen-content-lab__head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 70ch;
}

.aimgen-content-lab__label,
.aimgen-diagram-lab-card__id,
.aimgen-zogo-card__meta,
.aimgen-lab-link span {
  margin: 0;
  color: rgba(225, 202, 130, 0.9);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.35;
}

.aimgen-content-lab__title,
.aimgen-fixed-page .aimgen-content-lab h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.72rem;
  line-height: 1.28;
}

.aimgen-content-lab__text {
  margin: 0;
  color: rgba(232, 255, 252, 0.8);
  font-size: 1rem;
  line-height: 1.82;
}

.aimgen-diagram-lab-grid,
.aimgen-zogo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.aimgen-diagram-lab-card,
.aimgen-zogo-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(72, 240, 217, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(72, 240, 217, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.035) 1px, transparent 1px),
    rgba(2, 11, 21, 0.58);
  background-size: 20px 20px, 20px 20px, auto;
  box-shadow: 0 0 0 1px rgba(225, 202, 130, 0.04) inset;
}

.aimgen-diagram-lab-card {
  scroll-margin-top: calc(var(--aimgen-header-height) + 18px);
}

.aimgen-diagram-lab-card::before,
.aimgen-zogo-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, rgba(72, 240, 217, 0.78), rgba(225, 202, 130, 0.42));
  pointer-events: none;
}

.aimgen-diagram-lab-card:nth-child(3n + 2)::before,
.aimgen-zogo-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, rgba(225, 202, 130, 0.74), rgba(72, 240, 217, 0.48));
}

.aimgen-diagram-lab-card:nth-child(3n)::before,
.aimgen-zogo-card:nth-child(3n)::before {
  background: linear-gradient(180deg, rgba(148, 246, 255, 0.72), rgba(72, 240, 217, 0.44));
}

.aimgen-fixed-page .aimgen-content-lab h3,
.aimgen-diagram-lab-card h3,
.aimgen-zogo-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.5;
}

.aimgen-diagram-lab-card__body,
.aimgen-zogo-card__definition {
  margin: 0;
  color: rgba(229, 255, 252, 0.78);
  font-size: 0.95rem;
  line-height: 1.76;
}

.aimgen-diagram-lab-card__details,
.aimgen-zogo-card__details {
  overflow: hidden;
  border: 1px solid rgba(72, 240, 217, 0.18);
  border-radius: 7px;
  background: rgba(1, 9, 18, 0.34);
}

.aimgen-diagram-lab-card__details summary,
.aimgen-zogo-card__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  color: rgba(235, 255, 252, 0.88);
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid transparent;
}

.aimgen-diagram-lab-card__details summary::-webkit-details-marker,
.aimgen-zogo-card__details summary::-webkit-details-marker {
  display: none;
}

.aimgen-diagram-lab-card__details summary::after,
.aimgen-zogo-card__details summary::after {
  width: 8px;
  height: 8px;
  content: "";
  border-right: 1px solid rgba(72, 240, 217, 0.86);
  border-bottom: 1px solid rgba(72, 240, 217, 0.86);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.aimgen-diagram-lab-card__details[open] summary,
.aimgen-zogo-card__details[open] summary {
  border-bottom-color: rgba(72, 240, 217, 0.16);
}

.aimgen-diagram-lab-card__details[open] summary::after,
.aimgen-zogo-card__details[open] summary::after {
  transform: rotate(225deg);
}

.aimgen-diagram-lab-card__details summary span,
.aimgen-diagram-lab-card__row span,
.aimgen-diagram-lab-card__turning span,
.aimgen-diagram-lab-card__terms-label,
.aimgen-zogo-card__details summary span,
.aimgen-zogo-card__row span,
.aimgen-zogo-card__related-label,
.aimgen-zogo-card__related-link span {
  color: rgba(72, 240, 217, 0.86);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.35;
}

.aimgen-diagram-lab-card__readout,
.aimgen-zogo-card__readout {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.aimgen-diagram-lab-card__row,
.aimgen-zogo-card__row {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: rgba(72, 240, 217, 0.045);
  border: 1px solid rgba(72, 240, 217, 0.12);
  border-radius: 6px;
}

.aimgen-diagram-lab-card__row p,
.aimgen-diagram-lab-card__turning,
.aimgen-zogo-card__row p {
  margin: 0;
  color: rgba(231, 255, 252, 0.78);
  font-size: 0.9rem;
  line-height: 1.72;
}

.aimgen-diagram-lab-card__turning {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: rgba(225, 202, 130, 0.06);
  border-top: 1px solid rgba(225, 202, 130, 0.14);
}

.aimgen-diagram-lab-card__turning span {
  color: rgba(225, 202, 130, 0.92);
}

.aimgen-diagram-lab-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 0 12px 12px;
}

.aimgen-diagram-lab-card__terms > span:not(.aimgen-diagram-lab-card__terms-label) {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  color: rgba(236, 255, 252, 0.82);
  background: rgba(72, 240, 217, 0.065);
  border: 1px solid rgba(72, 240, 217, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 740;
  line-height: 1.3;
}

.aimgen-zogo-card__related {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(225, 202, 130, 0.05);
  border-top: 1px solid rgba(225, 202, 130, 0.14);
}

.aimgen-zogo-card__related-label {
  color: rgba(225, 202, 130, 0.92);
}

.aimgen-zogo-card__related-links {
  display: grid;
  gap: 7px;
}

.aimgen-zogo-card__related-link {
  display: grid;
  gap: 3px;
  min-height: 46px;
  padding: 9px 10px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(72, 240, 217, 0.065);
  border: 1px solid rgba(72, 240, 217, 0.18);
  border-radius: 6px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.aimgen-zogo-card__related-link span {
  color: rgba(225, 202, 130, 0.9);
}

.aimgen-zogo-card__related-link strong {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
}

.aimgen-zogo-card__related-link:hover,
.aimgen-zogo-card__related-link:focus-visible {
  border-color: rgba(72, 240, 217, 0.66);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.08) inset,
    0 0 22px rgba(72, 240, 217, 0.16);
  transform: translateY(-1px);
}

.aimgen-zogo-card__related-link:focus-visible {
  outline: 2px solid rgba(72, 240, 217, 0.68);
  outline-offset: 3px;
}

.aimgen-zogo-card__caution {
  padding: 10px 11px;
  color: rgba(234, 255, 252, 0.76);
  background: rgba(225, 202, 130, 0.055);
  border: 1px solid rgba(225, 202, 130, 0.18);
  border-left: 3px solid rgba(225, 202, 130, 0.58);
  border-radius: 6px;
}

.aimgen-zogo-card__caution span {
  display: block;
  margin-bottom: 3px;
  color: rgba(225, 202, 130, 0.9);
  font-size: 0.72rem;
  font-weight: 860;
}

.aimgen-lab-link {
  display: grid;
  gap: 3px;
  align-self: end;
  min-height: 52px;
  padding: 10px 12px;
  margin-top: 2px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(72, 240, 217, 0.07);
  border: 1px solid rgba(72, 240, 217, 0.26);
  border-radius: 6px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.aimgen-lab-link strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.35;
}

.aimgen-lab-link:hover,
.aimgen-lab-link:focus-visible {
  border-color: rgba(72, 240, 217, 0.74);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.08) inset,
    0 0 28px rgba(72, 240, 217, 0.2);
  transform: translateY(-1px);
}

.aimgen-lab-link:focus-visible {
  outline: 2px solid rgba(72, 240, 217, 0.68);
  outline-offset: 3px;
}

@media (min-width: 860px) {
  .aimgen-page-map-intro,
  .aimgen-page-section {
    padding: 30px;
  }

  .aimgen-fixed-page .aimgen-page-section h2 {
    font-size: 2.18rem;
  }

  .aimgen-content-lab {
    padding: 30px;
  }

  .aimgen-diagram-lab-grid,
  .aimgen-zogo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .aimgen-fixed-page .aimgen-entry__header {
    padding: 48px 0 24px;
  }

  .aimgen-fixed-page .aimgen-entry__header .aimgen-container,
  .aimgen-fixed-page .aimgen-entry__content {
    width: min(calc(100% - 32px), var(--aimgen-reading-max));
    max-width: var(--aimgen-reading-max);
    margin-right: auto;
    margin-left: auto;
  }

  .aimgen-fixed-page .aimgen-entry__title::after {
    margin-top: 14px;
  }

  .aimgen-fixed-page .aimgen-entry__content {
    gap: 20px;
    padding: 34px 0 76px;
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .aimgen-page-map-intro,
  .aimgen-page-section,
  .aimgen-page-next,
  .aimgen-content-lab {
    padding: 18px;
  }

  .aimgen-page-map-intro__text {
    font-size: 1rem;
  }

  .aimgen-content-lab__title,
  .aimgen-fixed-page .aimgen-content-lab h2 {
    font-size: 1.42rem;
  }

  .aimgen-diagram-lab-card,
  .aimgen-zogo-card {
    padding: 15px;
  }

  .aimgen-diagram-lab-card__readout,
  .aimgen-zogo-card__readout {
    padding: 10px;
  }

  .aimgen-diagram-lab-card__row,
  .aimgen-zogo-card__row {
    padding: 9px;
  }

  .aimgen-diagram-lab-card__row p,
  .aimgen-diagram-lab-card__turning,
  .aimgen-zogo-card__row p {
    font-size: 0.86rem;
    line-height: 1.68;
  }

  .aimgen-zogo-card__related {
    padding: 10px;
  }

  .aimgen-fixed-page .aimgen-page-section h2 {
    padding-left: 13px;
    font-size: 1.52rem;
  }

  .aimgen-fixed-page .aimgen-entry__content table,
  .aimgen-fixed-page .aimgen-entry__content tbody,
  .aimgen-fixed-page .aimgen-entry__content tr,
  .aimgen-fixed-page .aimgen-entry__content th,
  .aimgen-fixed-page .aimgen-entry__content td {
    display: block;
    width: 100%;
  }

  .aimgen-fixed-page .aimgen-entry__content th {
    padding-bottom: 5px;
    border-bottom: 0;
  }

  .aimgen-fixed-page .aimgen-entry__content td {
    padding-top: 0;
  }
}

/* v2.1.0: all-link clickability and Z∞ OBSERVATION OS logo slots */
.aimgen-z-observation-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 0;
  color: #f8ead0;
  background:
    radial-gradient(circle at 50% 36%, rgba(225, 202, 130, 0.22), transparent 58%),
    linear-gradient(135deg, rgba(72, 240, 217, 0.12), rgba(225, 202, 130, 0.07)),
    rgba(3, 16, 29, 0.64);
  border: 1px solid rgba(225, 202, 130, 0.46);
  box-shadow:
    0 0 24px rgba(225, 202, 130, 0.13),
    inset 0 0 18px rgba(72, 240, 217, 0.08);
  isolation: isolate;
}

.aimgen-z-observation-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aimgen-z-observation-logo__mark,
.aimgen-z-observation-logo__text {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  line-height: 1;
  text-align: center;
}

.aimgen-z-observation-logo__mark {
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 1.1rem;
  font-weight: 780;
  text-shadow: 0 0 18px rgba(225, 202, 130, 0.28);
}

.aimgen-z-observation-logo__text {
  margin-top: 4px;
  color: rgba(148, 246, 255, 0.82);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.46rem;
  font-weight: 760;
  white-space: nowrap;
}

.aimgen-brand {
  grid-template-columns: auto minmax(0, 1fr);
}

.aimgen-z-observation-logo--header {
  width: 58px;
  height: 42px;
  border-radius: 6px;
}

.aimgen-z-observation-logo--header .aimgen-z-observation-logo__text {
  font-size: 0.36rem;
}

.aimgen-hero-logo-panel {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 8;
  padding: 7px;
  background:
    linear-gradient(135deg, rgba(5, 21, 34, 0.72), rgba(5, 21, 34, 0.42)),
    rgba(2, 8, 22, 0.42);
  border: 1px solid rgba(72, 240, 217, 0.28);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.08) inset,
    0 0 28px rgba(72, 240, 217, 0.12);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.aimgen-z-observation-logo--hero {
  width: min(230px, 58vw);
  min-height: 104px;
  padding: 8px;
  border-radius: 2px;
}

.aimgen-z-observation-logo--hero .aimgen-z-observation-logo__mark {
  font-size: 1.68rem;
}

.aimgen-z-observation-logo--hero .aimgen-z-observation-logo__text {
  font-size: 0.64rem;
}

.aimgen-z-observation-logo--network {
  width: min(148px, 100%);
  min-height: 78px;
  margin-bottom: 4px;
  padding: 8px;
  border-radius: 4px;
}

.aimgen-z-observation-logo--network .aimgen-z-observation-logo__mark {
  font-size: 1rem;
}

.aimgen-z-observation-logo--network .aimgen-z-observation-logo__text {
  font-size: 0.42rem;
  white-space: normal;
}

.aimgen-button,
.aimgen-start-card,
.aimgen-z-flow-node,
.aimgen-top-diagram-card,
.aimgen-node-highlight,
.aimgen-node-list a,
.aimgen-network-card,
.aimgen-footer-content-button,
.aimgen-nav a,
.aimgen-nav-toggle {
  position: relative;
  z-index: 20;
  pointer-events: auto;
  touch-action: manipulation;
}

.aimgen-top-diagram-card {
  display: grid;
  align-content: start;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(72, 240, 217, 0.18);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.aimgen-top-diagram-card > *,
.aimgen-network-card > *,
.aimgen-start-card > *,
.aimgen-z-flow-node > *,
.aimgen-node-highlight > *,
.aimgen-footer-content-button > * {
  pointer-events: none;
}

.aimgen-top-diagram-card:hover,
.aimgen-top-diagram-card:focus-visible {
  border-color: rgba(72, 240, 217, 0.68);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.08) inset,
    0 0 30px rgba(72, 240, 217, 0.18);
  transform: translateY(-1px);
}

.aimgen-top-diagram-card:focus-visible,
.aimgen-button:focus-visible,
.aimgen-start-card:focus-visible,
.aimgen-z-flow-node:focus-visible,
.aimgen-node-highlight:focus-visible,
.aimgen-node-list a:focus-visible,
.aimgen-network-card:focus-visible,
.aimgen-footer-content-button:focus-visible,
.aimgen-nav a:focus-visible {
  outline: 2px solid rgba(72, 240, 217, 0.7);
  outline-offset: 3px;
}

.aimgen-login-panel::before,
.aimgen-login-panel::after,
.aimgen-observation-viewport::before,
.aimgen-observation-viewport::after,
.aimgen-module::before,
.aimgen-module::after,
.aimgen-card::before,
.aimgen-card::after,
.aimgen-mini-card::before,
.aimgen-mini-card::after,
.aimgen-site-card::before,
.aimgen-site-card::after,
.aimgen-diagram-card::before,
.aimgen-diagram-card::after,
.aimgen-start-card::before,
.aimgen-start-card::after,
.aimgen-z-flow-circuit::before,
.aimgen-z-flow-circuit::after,
.aimgen-z-flow-node::before,
.aimgen-z-flow-node::after,
.aimgen-network-map::before,
.aimgen-network-map::after,
.aimgen-site-footer::before,
.aimgen-site-footer::after {
  pointer-events: none;
}

@media (min-width: 760px) {
  .aimgen-z-observation-logo--header {
    width: 62px;
    height: 44px;
  }
}

@media (max-width: 620px) {
  .aimgen-hero-logo-panel {
    top: 14px;
    left: 14px;
    padding: 6px;
  }

  .aimgen-z-observation-logo--hero {
    width: min(188px, 52vw);
    min-height: 84px;
  }

  .aimgen-z-observation-logo--hero .aimgen-z-observation-logo__mark {
    font-size: 1.38rem;
  }

  .aimgen-z-observation-logo--hero .aimgen-z-observation-logo__text {
    font-size: 0.52rem;
  }
}

/* v2.1.2: keep mobile HUD controls inside the shared content width */
@media (max-width: 520px) {
  .aimgen-console-grid,
  .aimgen-login-panel,
  .aimgen-observation-viewport,
  .aimgen-module,
  .aimgen-system-readout,
  .aimgen-command-strip,
  .aimgen-action-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .aimgen-login-panel,
  .aimgen-observation-viewport,
  .aimgen-module {
    overflow: hidden;
  }

  .aimgen-login-panel .aimgen-hero__subtitle,
  .aimgen-login-panel .aimgen-hero__copy,
  .aimgen-system-readout__item,
  .aimgen-command-strip__link,
  .aimgen-button {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .aimgen-system-readout__item {
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: start;
  }

  .aimgen-system-readout__item strong {
    justify-self: start;
    white-space: normal;
  }

  .aimgen-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .aimgen-button,
  .aimgen-command-strip__link {
    width: 100%;
  }
}

/* v2.2.2: fallback logo images when an older network-card template is still cached live */
.aimgen-network-card__logo:not(:has(img)) {
  width: 100%;
  min-height: 122px;
  max-height: 138px;
  padding: 10px 12px;
  margin-bottom: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 8px;
}

.aimgen-network-card:nth-child(1) .aimgen-network-card__logo:not(:has(img)) {
  background-image: url("assets/images/512A.png");
}

.aimgen-network-card:nth-child(2) .aimgen-network-card__logo:not(:has(img)) {
  background-image: url("assets/images/512Z.png");
}

.aimgen-network-card:nth-child(3) .aimgen-network-card__logo:not(:has(img)) {
  background-image: url("assets/images/512T.png");
}

.aimgen-network-card:nth-child(4) .aimgen-network-card__logo:not(:has(img)) {
  background-image: url("assets/images/512S.png");
}

.aimgen-network-card__logo:not(:has(img)) > span {
  opacity: 0;
}

@media (max-width: 560px) {
  .aimgen-network-card__logo:not(:has(img)) {
    min-height: 112px;
    max-height: 128px;
  }
}

/* v2.3.1: final top page texture tuning */
.aimgen-dashboard-grid {
  gap: clamp(22px, 2.6vw, 28px);
  padding-bottom: clamp(64px, 7vw, 78px);
}

.aimgen-dashboard-grid .aimgen-module {
  background:
    radial-gradient(circle at 12% 0%, rgba(72, 240, 217, 0.105), transparent 34%),
    linear-gradient(145deg, rgba(10, 38, 54, 0.62), rgba(3, 14, 28, 0.42)),
    linear-gradient(90deg, rgba(72, 240, 217, 0.055), transparent 46%, rgba(225, 202, 130, 0.032));
  border-color: rgba(158, 255, 239, 0.24);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.055) inset,
    0 20px 62px rgba(0, 0, 0, 0.24),
    0 0 48px rgba(72, 240, 217, 0.105);
}

.aimgen-dashboard-grid .aimgen-module__head {
  margin-bottom: clamp(18px, 2vw, 22px);
}

.aimgen-module--observation-start {
  margin-bottom: -2px;
}

.aimgen-module--z-flow {
  padding-block: clamp(22px, 3.2vw, 34px);
  background:
    radial-gradient(circle at 14% 44%, rgba(72, 240, 217, 0.16), transparent 30%),
    radial-gradient(circle at 88% 56%, rgba(225, 202, 130, 0.105), transparent 28%),
    linear-gradient(90deg, rgba(72, 240, 217, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.044) 1px, transparent 1px),
    rgba(5, 20, 32, 0.74);
  background-size: auto, auto, 26px 26px, 26px 26px, auto;
}

.aimgen-z-flow-circuit {
  gap: clamp(12px, 1.5vw, 14px);
}

.aimgen-z-flow-node {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.088), transparent 34%),
    rgba(6, 27, 41, 0.78);
  border-color: rgba(148, 246, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.055) inset,
    0 14px 34px rgba(0, 0, 0, 0.13);
}

.aimgen-z-flow-node__ring {
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.13) inset,
    0 0 28px rgba(72, 240, 217, 0.22);
}

.aimgen-module--lab {
  background:
    radial-gradient(circle at 86% 16%, rgba(72, 240, 217, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(9, 34, 50, 0.66), rgba(4, 16, 30, 0.48)),
    linear-gradient(90deg, rgba(72, 240, 217, 0.052), transparent 48%, rgba(225, 202, 130, 0.03));
}

.aimgen-module--lab .aimgen-diagram-gallery {
  gap: clamp(14px, 1.8vw, 18px);
}

.aimgen-module--lab .aimgen-diagram-card {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(72, 240, 217, 0.07), transparent 42%),
    rgba(8, 32, 47, 0.66);
  border-color: rgba(158, 255, 239, 0.26);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.045) inset,
    0 16px 38px rgba(0, 0, 0, 0.14);
}

.aimgen-module--lab .aimgen-diagram {
  min-height: 132px;
  border-color: rgba(72, 240, 217, 0.24);
  box-shadow: inset 0 0 34px rgba(72, 240, 217, 0.09);
}

.aimgen-module--node-log {
  padding-block: clamp(24px, 3.1vw, 32px);
}

.aimgen-module--network {
  background:
    radial-gradient(circle at 50% 0%, rgba(225, 202, 130, 0.13), transparent 32%),
    radial-gradient(circle at 16% 80%, rgba(72, 240, 217, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(72, 240, 217, 0.09), rgba(255, 255, 255, 0.026)),
    rgba(4, 18, 31, 0.75);
}

.aimgen-module--network .aimgen-related-sites,
.aimgen-network-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 18px);
}

.aimgen-module--network .aimgen-site-card.aimgen-network-card {
  min-height: 318px;
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(72, 240, 217, 0.095), rgba(225, 202, 130, 0.04)),
    rgba(3, 13, 28, 0.68);
  border-color: rgba(72, 240, 217, 0.3);
}

.aimgen-module--network .aimgen-site-card.aimgen-network-card:hover,
.aimgen-module--network .aimgen-site-card.aimgen-network-card:focus-visible {
  border-color: rgba(72, 240, 217, 0.72);
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.095) inset,
    0 0 32px rgba(72, 240, 217, 0.18),
    0 16px 42px rgba(0, 0, 0, 0.16);
}

@media (min-width: 960px) {
  .aimgen-z-flow-node {
    min-height: 198px;
  }

  .aimgen-module--lab .aimgen-diagram-card {
    min-height: 356px;
  }
}

@media (max-width: 980px) {
  .aimgen-module--network .aimgen-related-sites,
  .aimgen-network-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .aimgen-dashboard-grid {
    gap: 22px;
    padding-bottom: 64px;
  }

  .aimgen-module--z-flow {
    padding-block: 22px;
  }

  .aimgen-z-flow-node {
    padding: 14px 13px;
  }

  .aimgen-module--network .aimgen-related-sites,
  .aimgen-network-map {
    grid-template-columns: 1fr;
  }

  .aimgen-module--network .aimgen-site-card.aimgen-network-card {
    min-height: 0;
    padding: 15px;
  }
}

/* v2.3.2: non-clickable right-side observation depth layer */
.aimgen-depth-layer {
  position: relative;
  display: none;
  min-height: 100%;
  pointer-events: none;
  user-select: none;
}

.aimgen-depth-layer,
.aimgen-depth-layer * {
  cursor: default;
  pointer-events: none;
}

.aimgen-depth-layer__panel {
  position: relative;
  display: grid;
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  align-content: center;
  background:
    radial-gradient(circle at 48% 20%, rgba(72, 240, 217, 0.14), transparent 25%),
    radial-gradient(circle at 62% 74%, rgba(225, 202, 130, 0.08), transparent 24%),
    linear-gradient(90deg, rgba(72, 240, 217, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 240, 217, 0.028) 1px, transparent 1px),
    rgba(4, 17, 30, 0.38);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(72, 240, 217, 0.14);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.035) inset,
    0 18px 54px rgba(0, 0, 0, 0.12),
    0 0 50px rgba(72, 240, 217, 0.055);
  opacity: 0.78;
}

.aimgen-depth-layer__panel::before,
.aimgen-depth-layer__panel::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.aimgen-depth-layer__panel::before {
  top: 26px;
  right: 28px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(72, 240, 217, 0.46), rgba(225, 202, 130, 0.22), transparent);
  box-shadow: 0 0 20px rgba(72, 240, 217, 0.12);
}

.aimgen-depth-layer__panel::after {
  right: 5%;
  bottom: 7%;
  width: min(62%, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(72, 240, 217, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.055) inset,
    0 0 46px rgba(72, 240, 217, 0.08) inset;
  opacity: 0.9;
}

.aimgen-depth-layer__label {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 0 22px;
  color: rgba(148, 246, 255, 0.54);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.35;
}

.aimgen-depth-layer__axis {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: 260px;
  margin-left: auto;
}

.aimgen-depth-layer__axis::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 18px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(72, 240, 217, 0.5), rgba(225, 202, 130, 0.18), transparent);
  content: "";
}

.aimgen-depth-layer__node {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 40px;
  align-items: center;
  color: rgba(236, 255, 252, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.aimgen-depth-layer__node i {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(72, 240, 217, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(225, 202, 130, 0.065) inset,
    0 0 20px rgba(72, 240, 217, 0.12);
}

.aimgen-depth-layer__node i::before,
.aimgen-depth-layer__node i::after {
  display: block;
  border-radius: 50%;
  content: "";
}

.aimgen-depth-layer__node i::before {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(225, 202, 130, 0.25);
}

.aimgen-depth-layer__node i::after {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(72, 240, 217, 0.56);
  box-shadow: 0 0 13px rgba(72, 240, 217, 0.42);
}

.aimgen-depth-layer__node strong {
  color: inherit;
  font-weight: 680;
}

.aimgen-depth-layer__node--center {
  color: rgba(255, 255, 255, 0.76);
}

.aimgen-depth-layer__node--center i {
  border-color: rgba(225, 202, 130, 0.26);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035), transparent 62%);
}

@media (min-width: 920px) {
  .aimgen-depth-layer {
    display: grid;
    grid-column: span 1;
  }
}

@media (min-width: 1180px) {
  .aimgen-depth-layer__panel {
    min-height: 100%;
  }
}

@media (max-width: 919px) {
  .aimgen-depth-layer {
    display: none;
  }
}
