:root {
  --bg: #090312;
  --bg-strong: #11061f;
  --surface: rgba(18, 9, 38, 0.78);
  --surface-strong: rgba(25, 14, 52, 0.92);
  --ink: #f8efff;
  --muted: #bba8da;
  --line: rgba(175, 118, 255, 0.24);
  --brand: #b64dff;
  --brand-deep: #7d2ddb;
  --accent: #40f2ff;
  --success: #49ffb8;
  --danger: #ff5ab3;
  --shadow: 0 26px 60px rgba(3, 0, 15, 0.52);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(182, 77, 255, 0.22),
      0 0 18px rgba(64, 242, 255, 0.32);
    opacity: 0.86;
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(182, 77, 255, 0),
      0 0 28px rgba(64, 242, 255, 0.44);
    opacity: 1;
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -24px, 0);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(182, 77, 255, 0.26), transparent 34%),
    radial-gradient(circle at 20% 18%, rgba(64, 242, 255, 0.16), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(255, 90, 179, 0.14), transparent 28%),
    linear-gradient(180deg, #06020d 0%, #0d0418 40%, #140623 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(64, 242, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 77, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
  animation: gridDrift 18s linear infinite;
}

body::after {
  z-index: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(64, 242, 255, 0.14), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(182, 77, 255, 0.18), transparent 24%),
    radial-gradient(circle at 70% 84%, rgba(255, 90, 179, 0.12), transparent 18%);
}

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

a {
  color: inherit;
  text-decoration-color: rgba(64, 242, 255, 0.38);
}

::selection {
  background: rgba(182, 77, 255, 0.34);
  color: #ffffff;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 22px 0 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(182, 77, 255, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(15, 6, 31, 0.92), rgba(37, 13, 78, 0.74)),
    linear-gradient(135deg, rgba(64, 242, 255, 0.08), transparent 48%);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(64, 242, 255, 0.06),
    0 0 32px rgba(125, 45, 219, 0.24);
  color: #ffffff;
}

.brand {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(182, 77, 255, 0.42),
    0 0 24px rgba(64, 242, 255, 0.12);
}

.brand-link {
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(182, 77, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(182, 77, 255, 0.16), rgba(64, 242, 255, 0.08));
  color: #ffffff;
  box-shadow: 0 0 18px rgba(182, 77, 255, 0.14);
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-line + .menu-toggle-line {
  margin-top: 4px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
}

.topnav a {
  position: relative;
  text-decoration: none;
  color: rgba(248, 239, 255, 0.88);
}

.topnav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: transform 0.2s ease;
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.hero {
  padding: 28px 0 36px;
}

.hero-banner {
  position: relative;
  min-height: clamp(320px, 62vw, 620px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(182, 77, 255, 0.22);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top right, rgba(182, 77, 255, 0.22), transparent 38%),
    #13081f;
  padding-bottom: clamp(54px, 8vw, 78px);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(5, 2, 17, 0.88), rgba(14, 6, 35, 0.3)),
    radial-gradient(circle at 78% 22%, rgba(64, 242, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(182, 77, 255, 0.1), rgba(8, 2, 18, 0.42));
  z-index: 1;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.14;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-overlay {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: end;
  min-height: calc(clamp(320px, 62vw, 620px) - clamp(54px, 8vw, 78px));
  padding: clamp(22px, 5vw, 52px);
}

.hero-banner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  width: 100%;
  align-items: start;
}

.hero-banner-copy {
  display: block;
  max-width: none;
  min-width: 0;
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(64, 242, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 5, 24, 0.62);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.hero-signal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 90, 179, 0.5);
}

.hero-banner-kicker {
  margin: 0;
  color: var(--accent);
  font-size: clamp(0.92rem, 2vw, 1.06rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.hero-banner-title {
  display: block;
  margin-top: 18px;
  max-width: none;
  color: #ffffff;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.12;
  text-shadow:
    0 0 18px rgba(182, 77, 255, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.38);
}

.hero-banner-main {
  display: block;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.35rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #dfbeff 45%, #74f8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(182, 77, 255, 0.28));
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.hero-banner-sub {
  display: block;
  margin-top: 12px;
  color: rgba(248, 239, 255, 0.82);
  font-size: clamp(0.92rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 42rem;
  margin: 18px 0 0;
  color: rgba(248, 239, 255, 0.82);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  line-height: 1.9;
  text-shadow: 0 0 22px rgba(8, 2, 18, 0.42);
}

.hero-chip-row,
.hero-actions,
.hero-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chip-row {
  margin-top: 20px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(182, 77, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(15, 7, 30, 0.84), rgba(24, 10, 52, 0.72));
  color: rgba(248, 239, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 20px rgba(125, 45, 219, 0.08);
}

.hero-actions {
  margin-top: 24px;
}

.hero-status-panel {
  position: relative;
  justify-self: end;
  width: min(100%, 280px);
  padding: 18px 18px 20px;
  border: 1px solid rgba(64, 242, 255, 0.18);
  border-radius: calc(var(--radius-md) + 2px);
  background:
    linear-gradient(145deg, rgba(12, 6, 25, 0.9), rgba(22, 9, 48, 0.74));
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 28px rgba(64, 242, 255, 0.08);
}

.hero-status-panel::before,
.hero-status-panel::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(64, 242, 255, 0.42);
  border-style: solid;
}

.hero-status-panel::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.hero-status-panel::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
}

.hero-status-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-status-list {
  margin: 14px 0 0;
}

.hero-status-list div + div {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(182, 77, 255, 0.12);
}

.hero-status-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-status-list dd {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.hero-banner-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: clamp(54px, 8vw, 78px);
  padding: 12px 18px;
  background:
    linear-gradient(135deg, rgba(11, 4, 24, 0.92), rgba(30, 10, 60, 0.8)),
    linear-gradient(90deg, rgba(64, 242, 255, 0.04), rgba(182, 77, 255, 0.08));
  border-top: 1px solid rgba(64, 242, 255, 0.12);
}

.hero-footer-tags {
  justify-content: flex-end;
}

.hero-footer-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(182, 77, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(248, 239, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel,
.content-panel,
.admin-panel,
.form-shell,
.summary-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(182, 77, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(24, 12, 49, 0.9), rgba(10, 5, 24, 0.88)),
    linear-gradient(145deg, rgba(64, 242, 255, 0.05), rgba(182, 77, 255, 0.08));
  box-shadow: var(--shadow);
}

.hero-panel::before,
.content-panel::before,
.admin-panel::before,
.form-shell::before,
.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(64, 242, 255, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(182, 77, 255, 0.12), transparent 42%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  padding: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(182, 77, 255, 0.2);
  background: rgba(182, 77, 255, 0.08);
  color: #f3deff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: neonPulse 2.6s ease-in-out infinite;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1,
.display-title {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(182, 77, 255, 0.12);
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.3rem, 6vw, 4.65rem);
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.meta-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(20, 10, 41, 0.7);
  border: 1px solid rgba(182, 77, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-value {
  font-size: 1rem;
  font-weight: 700;
}

.hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.cta-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(64, 242, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(12, 6, 26, 0.96), rgba(37, 10, 78, 0.88)),
    radial-gradient(circle at top right, rgba(64, 242, 255, 0.1), transparent 26%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 32px rgba(182, 77, 255, 0.16);
}

.cta-card p {
  margin: 0;
  color: rgba(248, 239, 255, 0.76);
  line-height: 1.8;
}

.cta-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button {
  background: linear-gradient(135deg, #9f39ff, #ff5ab3 54%, #40f2ff);
  color: #ffffff;
  box-shadow:
    0 14px 28px rgba(125, 45, 219, 0.26),
    0 0 22px rgba(64, 242, 255, 0.16);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(182, 77, 255, 0.16);
}

.button-secondary {
  background: rgba(18, 9, 38, 0.72);
  color: var(--ink);
  border-color: rgba(64, 242, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.button-ghost {
  background: transparent;
  border-color: rgba(182, 77, 255, 0.32);
  color: #ffffff;
}

.hero-note {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(17, 8, 37, 0.7);
  border: 1px solid rgba(64, 242, 255, 0.12);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

.section {
  padding: 18px 0;
}

.content-panel,
.admin-panel,
.form-shell,
.summary-card {
  padding: 34px;
}

.section-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
}

.section-head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(182, 77, 255, 0.48), rgba(64, 242, 255, 0.12), transparent 80%);
}

.section-head p,
.content-panel p,
.summary-card p,
.admin-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

.grid-2,
.grid-3,
.info-grid,
.policy-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card,
.info-card,
.check-card,
.slot-card,
.data-box {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(20, 10, 41, 0.86), rgba(11, 5, 25, 0.9));
  border: 1px solid rgba(182, 77, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(64, 242, 255, 0.03);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.card::before,
.info-card::before,
.check-card::before,
.slot-card::before,
.data-box::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(64, 242, 255, 0.28);
  border-right: 1px solid rgba(64, 242, 255, 0.28);
  opacity: 0.8;
  pointer-events: none;
}

.card:hover,
.info-card:hover,
.check-card:hover,
.slot-card:hover,
.data-box:hover {
  transform: translateY(-3px);
  border-color: rgba(64, 242, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(64, 242, 255, 0.05),
    0 14px 30px rgba(4, 0, 18, 0.28);
}

.card p,
.info-card p,
.check-card p,
.slot-card p,
.data-box p {
  margin: 10px 0 0;
  color: var(--muted);
}

.info-card strong,
.card strong,
.check-card strong {
  display: block;
  font-size: 1rem;
}

.note-list,
.plain-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.note-list li,
.plain-list li {
  position: relative;
  margin-top: 10px;
  padding-left: 18px;
  line-height: 1.8;
}

.note-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(64, 242, 255, 0.32);
}

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

.slot-card {
  display: grid;
  gap: 14px;
}

.slot-time {
  font-size: 1.3rem;
  font-weight: 700;
}

.slot-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(73, 255, 184, 0.12);
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(73, 255, 184, 0.18);
}

.pill.is-full {
  background: rgba(255, 90, 179, 0.14);
  color: var(--danger);
  border-color: rgba(255, 90, 179, 0.18);
}

.slot-card.is-full {
  opacity: 0.76;
}

.slot-card .button-secondary {
  width: 100%;
}

.slot-card.is-full .button-secondary {
  cursor: not-allowed;
}

.agreement-list {
  display: grid;
  gap: 14px;
}

.check-card {
  display: flex;
  gap: 14px;
  align-items: start;
}

.check-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(182, 77, 255, 0.16);
  color: #f7e4ff;
  box-shadow: 0 0 18px rgba(182, 77, 255, 0.14);
  font-weight: 700;
  flex: none;
}

details {
  border: 1px solid rgba(182, 77, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(18, 9, 38, 0.72);
  padding: 18px 18px 0;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

details + details {
  margin-top: 12px;
}

details:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 242, 255, 0.22);
  box-shadow: 0 12px 28px rgba(4, 0, 18, 0.22);
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding-bottom: 18px;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  color: var(--accent);
}

details .plain-list,
details p {
  margin-bottom: 18px;
}

.form-shell {
  position: relative;
  z-index: 1;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.checkgroup legend {
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(182, 77, 255, 0.18);
  background: rgba(10, 4, 24, 0.72);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(64, 242, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 3px rgba(64, 242, 255, 0.1),
    0 0 18px rgba(182, 77, 255, 0.12);
}

.field small,
.form-hint {
  color: var(--muted);
}

.checkgroup {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(182, 77, 255, 0.14);
  background: rgba(18, 9, 38, 0.68);
}

.checkgroup legend {
  padding: 0 6px;
}

.checkrow {
  display: flex;
  gap: 10px;
  align-items: start;
  line-height: 1.6;
}

.checkrow + .checkrow {
  margin-top: 12px;
}

.checkrow input {
  margin-top: 0.25rem;
}

.message {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(73, 255, 184, 0.16);
  background: rgba(73, 255, 184, 0.08);
  color: var(--success);
}

.message.is-error {
  border-color: rgba(255, 90, 179, 0.16);
  background: rgba(255, 90, 179, 0.08);
  color: var(--danger);
}

.summary-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(182, 77, 255, 0.12);
}

.summary-list span:last-child {
  text-align: right;
  font-weight: 700;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(182, 77, 255, 0.14);
  background: rgba(16, 8, 34, 0.82);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(182, 77, 255, 0.1);
  font-size: 0.94rem;
}

th {
  color: var(--muted);
  font-weight: 700;
  background: rgba(182, 77, 255, 0.08);
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(64, 242, 255, 0.14);
  background: #0c0619;
  color: #f6f7f9;
  box-shadow: inset 0 0 28px rgba(182, 77, 255, 0.08);
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 0 42px;
}

.footer-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(182, 77, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(11, 5, 24, 0.9), rgba(28, 10, 58, 0.82));
  color: rgba(248, 239, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 24px rgba(125, 45, 219, 0.12);
  font-size: 0.9rem;
}

.footer-panel a {
  color: #ffffff;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .info-grid,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .content-panel,
  .admin-panel,
  .form-shell,
  .summary-card {
    padding: 24px;
  }

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

  .hero-banner-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-status-panel {
    justify-self: start;
    max-width: 420px;
  }

  .topbar {
    border-radius: 24px;
  }

  .section-head,
  .summary-list li {
    display: block;
  }

  .summary-list li span:last-child {
    display: block;
    margin-top: 6px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 88px;
  }

  .page-shell {
    width: min(calc(100% - 22px), var(--max));
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    padding: 12px 0 0;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar[data-menu-open="true"] .menu-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar[data-menu-open="true"] .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .topbar[data-menu-open="true"] .menu-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topnav {
    display: none;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(182, 77, 255, 0.16);
    gap: 0;
    font-size: 0.86rem;
  }

  .topbar[data-menu-open="true"] .topnav {
    display: grid;
  }

  .topnav a {
    display: block;
    padding: 10px 0;
  }

  .topnav a + a {
    border-top: 1px solid rgba(182, 77, 255, 0.12);
  }

  .topnav a::after {
    display: none;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .hero-banner-title {
    max-width: none;
  }

  .hero-banner-kicker {
    font-size: 0.9rem;
  }

  .hero-banner-footer {
    justify-content: center;
    text-align: center;
  }

  .hero-footer-tags {
    justify-content: center;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .cta-actions,
  .stack-actions,
  .admin-toolbar {
    display: grid;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
