@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --background: #020617;
  --background-alt: #07102c;
  --surface: rgba(11, 23, 45, 0.7);
  --surface-strong: rgba(15, 23, 42, 0.88);
  --surface-opaque: #0f172a;
  --border: rgba(148, 163, 184, 0.35);
  --border-soft: rgba(148, 163, 184, 0.18);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-glow: rgba(14, 165, 233, 0.45);
  --accent-secondary: #c084fc;
  --accent-secondary-soft: rgba(192, 132, 252, 0.16);
  --text: #e2e8f0;
  --text-muted: rgba(148, 163, 184, 0.86);
  --text-subtle: rgba(148, 163, 184, 0.6);
  --danger: #f87171;
  --success: #34d399;
  --card-shadow: 0 25px 70px rgba(2, 12, 32, 0.55);
  font-family: 'Poppins', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(192, 132, 252, 0.18), transparent 45%),
    linear-gradient(135deg, var(--background), var(--background-alt));
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.admin {
  background: radial-gradient(circle at 10% 0%, rgba(192, 132, 252, 0.18), transparent 55%),
    linear-gradient(145deg, #050c1f, #0b1733 65%, #0f1d40);
}

.page-gradient,
.page-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.page-gradient {
  inset: -20% -30% -10% -30%;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(192, 132, 252, 0.3), transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(45, 212, 191, 0.2), transparent 55%);
  filter: blur(45px);
}

.page-glow {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0));
  filter: blur(70px);
  opacity: 0.6;
}

.page-glow-1 {
  top: -120px;
  right: -120px;
}

.page-glow-2 {
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.45), rgba(192, 132, 252, 0));
}

.app-shell,
main {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 6rem;
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -60px -60px 20px -60px;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.12), transparent 55%);
  z-index: -1;
  opacity: 0.9;
  filter: blur(45px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero p {
  margin: 1rem 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hero-highlights {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.hero-highlights li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(17, 24, 39, 0.55));
  border: 1px solid var(--border-soft);
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.45);
}

.hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.2), rgba(192, 132, 252, 0.18));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.hero-highlights strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.hero-highlights span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  border: 1px solid transparent;
}

.hero-button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.45);
  color: #02121f;
}

.hero-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(14, 165, 233, 0.55);
}

.hero-button.ghost {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text);
}

.hero-button.ghost:hover {
  opacity: 0.85;
}

.hero-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.hero-insights .insight {
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.hero-insights .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.hero-insights strong {
  display: block;
  font-size: 1.6rem;
  margin: 0.4rem 0 0.2rem;
}

.hero-insights small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-visual {
  display: grid;
  gap: 1.25rem;
  position: relative;
}

.hero-preview {
  border-radius: 22px;
  padding: 1.6rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.hero-preview.primary {
  position: relative;
}

.hero-preview.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(192, 132, 252, 0.12), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-preview-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.hero-preview-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-primary {
  background: #f87171;
}

.dot-secondary {
  background: #fb923c;
}

.dot-tertiary {
  background: #34d399;
}

.hero-preview-body {
  position: relative;
  z-index: 1;
}

.hero-preview-body .label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero-preview-body h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.4rem;
}

.hero-preview-body .meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-preview-body .description {
  margin: 0.6rem 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-preview-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-preview-summary div {
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.hero-preview-summary span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-preview-summary strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
}

.hero-preview.secondary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(192, 132, 252, 0.15));
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-preview.secondary span {
  color: var(--accent);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

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

.card {
  position: relative;
  border-radius: 22px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.6));
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(192, 132, 252, 0.05));
  opacity: 0.45;
  pointer-events: none;
}

.card.glass {
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55));
  backdrop-filter: blur(24px);
}

.card > * {
  position: relative;
  z-index: 1;
}

form .field {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

select,
input[type="number"],
input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 1rem;
  background: rgba(8, 20, 40, 0.75);
  color: var(--text);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(12px);
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  background: rgba(13, 30, 60, 0.9);
}

select option {
  color: #0f172a;
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-subtle);
}

.component-field {
  margin-bottom: 1.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: rgba(8, 20, 40, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.component-field .input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.component-field .input-row span {
  min-width: 7rem;
  display: inline-flex;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.12));
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.component-field p.note {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.1rem;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  position: relative;
  overflow: hidden;
}

button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #02131f;
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.45);
}

button.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(14, 165, 233, 0.55);
}

button.primary:hover::after {
  opacity: 0.3;
}

button.secondary {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

button.secondary:hover {
  opacity: 0.85;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

.results h2 {
  margin-top: 0;
  margin-bottom: 1.4rem;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.results .summary {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.results .summary .badge {
  flex: 1;
  min-width: 180px;
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.16), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.results .summary .badge:nth-child(2) {
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.14), rgba(192, 132, 252, 0.05));
  border-color: rgba(192, 132, 252, 0.25);
}

.results .summary .badge:nth-child(3) {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.16), rgba(99, 102, 241, 0.05));
  border-color: rgba(129, 140, 248, 0.25);
}

.results .summary .badge strong {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.45rem;
}

.results table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
  font-size: 0.96rem;
  background: rgba(8, 20, 40, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.results table th,
.results table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.9rem 1rem;
  text-align: right;
}

.results table th {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-subtle);
  text-transform: uppercase;
  font-size: 0.82rem;
}

.results table th:first-child,
.results table td:first-child {
  text-align: left;
  width: 32%;
}

.results table th:nth-child(2),
.results table td:nth-child(2) {
  width: 22%;
}

.results table tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

.results .total {
  font-size: 1.25rem;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(192, 132, 252, 0.12));
  padding: 1.15rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.alert {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.05));
  color: #facc15;
  font-size: 0.97rem;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.disclaimer {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.model-list {
  margin-top: 3rem;
}

.model-list h2 {
  font-size: 1.6rem;
  margin-bottom: 1.3rem;
}

.model-list .table-scroll {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 20, 40, 0.55);
  backdrop-filter: blur(18px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.model-list table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.model-list th,
.model-list td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.model-list th {
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.model-list th:nth-child(3),
.model-list th:nth-child(4),
.model-list td:nth-child(3),
.model-list td:nth-child(4) {
  text-align: right;
}

.model-list tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

.model-list tr.highlight {
  background: rgba(56, 189, 248, 0.15);
}

.small-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge-inline {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  font-size: 0.75rem;
  margin-left: 0.4rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.callout {
  position: relative;
}

.callout::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.callout-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.callout-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.callout-content p {
  margin: 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.callout-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

footer {
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 2rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.4), transparent);
  transform: translateX(-50%);
}

.error {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.18), rgba(248, 113, 113, 0.08));
  color: #fca5a5;
  font-size: 0.97rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.message {
  margin: 1.1rem 0;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.05));
  color: var(--accent);
  font-size: 0.96rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.message.success {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.08));
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, 0.35);
}

.message.error {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(248, 113, 113, 0.08));
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.message.notice {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.18), rgba(129, 140, 248, 0.06));
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.3);
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.admin-actions .link-button {
  font-size: 0.95rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.link-button:hover {
  opacity: 0.75;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-form .buttons {
  justify-content: flex-end;
}

.admin-form .buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: opacity 0.2s ease;
}

.admin-form .buttons a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.model-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.model-selector {
  margin-top: 1rem;
}

.model-selector .field {
  margin-bottom: 0;
}

.model-selector-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.model-selector-row select {
  flex: 1;
  min-width: 220px;
}

.model-selector-row button {
  flex-shrink: 0;
  white-space: nowrap;
}

.model-empty-message {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

[data-models-container].is-interactive .model-card {
  display: none;
}

[data-models-container].is-interactive .model-card.is-active {
  display: block;
}

.model-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.12));
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.model-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 1.4rem;
  background: rgba(8, 20, 40, 0.65);
  box-shadow: 0 16px 30px rgba(2, 12, 32, 0.35);
  backdrop-filter: blur(18px);
}

.model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.model-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.component-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.component-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  background: rgba(15, 23, 42, 0.5);
}

.component-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.component-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.grid.two-column {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.three-column {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.add-component-button {
  margin-top: 0.5rem;
}

.admin-meta .grid {
  margin-top: 1rem;
}

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

  .hero-visual {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .hero::after {
    inset: -40px;
  }
}

@media (max-width: 820px) {
  .hero-highlights li {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-preview-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .callout-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .buttons,
  .callout-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-button,
  .callout-actions .hero-button,
  button {
    width: 100%;
    text-align: center;
  }

  .hero-preview {
    padding: 1.4rem;
  }

  .results table th,
  .results table td {
    padding: 0.75rem;
  }

  .model-list .table-scroll {
    margin: 0 -0.5rem;
    border-radius: 14px;
  }

  .model-list table {
    min-width: 560px;
    font-size: 0.9rem;
  }

  .model-list th,
  .model-list td {
    padding: 0.6rem 0.75rem;
  }
}

main.narrow {
  max-width: 420px;
  padding-top: 4rem;
}

@media (max-width: 640px) {
  .admin-form .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form .buttons a,
  .admin-form .buttons button {
    width: 100%;
    text-align: center;
  }
}
