:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --bg-2: #fffaf2;
  --surface: #fffdf8;
  --surface-2: #fff7eb;
  --ink: #17223b;
  --muted: #627083;
  --dim: #8a94a3;
  --line: rgba(23, 34, 59, 0.12);
  --line-strong: rgba(23, 34, 59, 0.24);
  --coral: #f26b4b;
  --coral-deep: #d94e30;
  --blue: #2f6fed;
  --blue-soft: #e7efff;
  --gold: #f2b544;
  --rose: #e85d75;
  --shadow: 0 24px 70px rgba(49, 42, 32, 0.12);
  --shadow-soft: 0 10px 30px rgba(49, 42, 32, 0.08);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(242, 107, 75, 0.2), transparent 62%),
    radial-gradient(820px 520px at 96% 4%, rgba(47, 111, 237, 0.16), transparent 60%),
    radial-gradient(700px 500px at 54% 36%, rgba(242, 181, 68, 0.1), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 56%, #f4eee4);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(rgba(23, 34, 59, 0.12) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

[hidden] {
  display: none !important;
}

.shell {
  position: relative;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(23, 34, 59, 0.22);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.badges span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 38px;
  align-items: center;
  padding: 40px 0 46px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(3rem, 7vw, 6.3rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

h1 em {
  color: var(--coral);
  font-style: italic;
}

.lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.68;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-stats strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 340px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 25px 12px 5px 22px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 30% 30%, rgba(242, 107, 75, 0.28), transparent 55%),
    radial-gradient(circle at 76% 68%, rgba(47, 111, 237, 0.2), transparent 58%);
  filter: blur(20px);
  transform: rotate(-4deg);
}

.signal-card,
.decoy-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-card {
  z-index: 2;
  top: 72px;
  left: 28px;
  width: min(340px, calc(100% - 34px));
  padding: 20px;
  border-radius: 24px;
  transform: rotate(-2deg);
  animation: float 7s ease-in-out infinite;
}

.signal-head,
.signal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(242, 107, 75, 0.14);
}

.signal-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 16px;
}

.signal-label {
  width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-main strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.signal-verdict {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--coral);
  color: #fffaf2;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e9de;
}

.signal-track i {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.signal-foot {
  margin-top: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.decoy-card {
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.decoy-card span {
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.decoy-card strong {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.decoy-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.decoy-a {
  top: 18px;
  right: 4px;
  transform: rotate(5deg);
  animation: float 8s ease-in-out infinite 0.8s;
}

.decoy-b {
  right: 16px;
  bottom: 58px;
  transform: rotate(3deg);
  animation: float 9s ease-in-out infinite 1.5s;
}

.decoy-c {
  left: 4px;
  bottom: 8px;
  transform: rotate(-5deg);
  animation: float 7.5s ease-in-out infinite 0.4s;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-card,
  .decoy-card {
    animation: none;
  }
}

.samples {
  padding: 8px 0 30px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-head h2,
.panel-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 5px;
  color: var(--blue);
}

.sample-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
}

.filters button,
.shuffle {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  padding: 7px 11px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filters button:hover,
.shuffle:hover {
  color: var(--ink);
}

.filters button.active {
  background: var(--ink);
  color: #fffaf2;
}

.shuffle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--coral-deep);
}

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

.sample-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.sample {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sample:hover,
.sample:focus-visible {
  border-color: rgba(242, 107, 75, 0.46);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  outline: none;
}

.sample.active {
  border-color: var(--coral);
  background: linear-gradient(150deg, rgba(242, 107, 75, 0.1), var(--surface) 58%);
  box-shadow: 0 0 0 1px rgba(242, 107, 75, 0.12) inset, var(--shadow-soft);
}

.sample-tag {
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sample[data-task="noul"] .sample-tag {
  background: rgba(242, 107, 75, 0.12);
  color: var(--coral-deep);
}

.sample[data-task="choice"] .sample-tag {
  background: var(--blue-soft);
  color: var(--blue);
}

.sample[data-task="score"] .sample-tag {
  background: rgba(242, 181, 68, 0.2);
  color: #946000;
}

.sample[data-task="span"] .sample-tag {
  background: rgba(232, 93, 117, 0.13);
  color: #b8324c;
}

.sample-title {
  font-size: 0.93rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.sample-copy {
  display: -webkit-box;
  overflow: hidden;
  color: var(--dim);
  font-size: 0.73rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 14px;
  align-items: start;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.input-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 248, 238, 0.9)),
    var(--surface);
}

.result-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(243, 246, 255, 0.86)),
    var(--surface);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.model-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

.model-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}

.model-state.ready::before {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.14);
}

.model-state.loading::before {
  background: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}

.model-state.error::before {
  background: var(--rose);
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

label {
  display: block;
  margin: 17px 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(47, 111, 237, 0.56);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.task-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4eee4;
}

.task-tabs button {
  padding: 8px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.task-tabs button:hover {
  color: var(--ink);
}

.task-tabs button.active {
  background: var(--ink);
  color: #fffaf2;
}

#run {
  width: 100%;
  margin-top: 20px;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--coral), #ff8b5e 56%, var(--gold));
  color: #2b160d;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(242, 107, 75, 0.24);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

#run:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(242, 107, 75, 0.3);
}

#run:disabled {
  cursor: wait;
  opacity: 0.5;
  box-shadow: none;
}

.micro {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 0.71rem;
  line-height: 1.5;
}

.status {
  color: var(--muted);
  font-size: 0.74rem;
  text-align: right;
}

.result {
  min-height: 320px;
  padding-top: 17px;
}

.result.running {
  opacity: 0.72;
}

.empty {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--dim);
  text-align: center;
}

.empty strong {
  color: var(--muted);
  font-size: 0.95rem;
}

.empty span {
  max-width: 300px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 18px;
  border: 1px solid rgba(242, 107, 75, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242, 107, 75, 0.12), rgba(47, 111, 237, 0.06));
}

.verdict-kicker {
  width: 100%;
  color: var(--coral-deep);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.verdict-value {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.verdict-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.meter {
  position: relative;
  height: 10px;
  margin: 18px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6da;
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  transition: width 360ms ease;
}

.meter-threshold {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(242, 181, 68, 0.72);
}

.bars {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.9fr) minmax(80px, 2fr) 58px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.bar-row.winner {
  color: var(--ink);
}

.bar-row.winner .bar-fill {
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6da;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: rgba(47, 111, 237, 0.45);
  transition: width 360ms ease;
}

.bar-value {
  color: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.7);
}

.fact-label {
  color: var(--dim);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fact-value {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.raw {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.raw summary {
  padding-top: 14px;
  color: var(--dim);
  cursor: pointer;
  font-size: 0.72rem;
}

.raw pre {
  max-height: 260px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8f4ec;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.error {
  padding: 18px;
  border: 1px solid rgba(232, 93, 117, 0.35);
  border-radius: 15px;
  background: rgba(232, 93, 117, 0.08);
}

.error strong {
  color: var(--rose);
}

.error p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.71rem;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 26px;
  }

  .hero-visual {
    min-height: 300px;
    max-width: 560px;
  }

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

  .workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1220px);
    padding-top: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 8px;
  }

  .badges {
    justify-content: flex-start;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-actions {
    justify-content: flex-start;
  }

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

  .hero-visual {
    min-height: 280px;
  }

  .decoy-a,
  .decoy-c {
    display: none;
  }

  .decoy-b {
    right: 8px;
    bottom: 10px;
  }

  .signal-card {
    left: 8px;
    top: 54px;
  }

  .panel {
    padding: 16px;
    border-radius: 17px;
  }

  .bar-row {
    grid-template-columns: minmax(72px, 1fr) minmax(70px, 1.4fr) 50px;
  }
}

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

  .filters button {
    padding: 6px 8px;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

/* Model pages and demo themes */
.nav-link {
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 253, 248, 0.7);
}

.nav-link:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

body.theme-stage18 {
  --coral: #2f6fed;
  --coral-deep: #1e4fbf;
  --blue: #7c5cff;
  --gold: #f2b544;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(47, 111, 237, 0.22), transparent 62%),
    radial-gradient(820px 520px at 96% 4%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 54% 36%, rgba(242, 181, 68, 0.1), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 56%, #f4eee4);
}

body.theme-guard {
  --coral: #149b87;
  --coral-deep: #0d6f62;
  --blue: #0b6e7f;
  --gold: #e0a72e;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(20, 155, 135, 0.22), transparent 62%),
    radial-gradient(820px 520px at 96% 4%, rgba(11, 110, 127, 0.16), transparent 60%),
    radial-gradient(700px 500px at 54% 36%, rgba(224, 167, 46, 0.12), transparent 62%),
    linear-gradient(180deg, #f2f7f4, #f7fbf8 56%, #eaf2ee);
}

body.theme-legacy {
  --coral: #9a6a3a;
  --coral-deep: #744c27;
  --blue: #5d6b7a;
  --gold: #c9973c;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(154, 106, 58, 0.18), transparent 62%),
    radial-gradient(820px 520px at 96% 4%, rgba(93, 107, 122, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 56%, #f1eadf);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.model-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
}

.model-card:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}

.model-card h2 {
  margin: 0;
  font-size: 1.12rem;
}

.model-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.model-card .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.pill {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.model-table {
  width: 100%;
  margin: 18px 0 10px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.model-table th,
.model-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.model-table th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-table code {
  font-size: 0.82rem;
}

.guard-result {
  display: grid;
  gap: 14px;
}

.guard-score {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.guard-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .nav-link {
    display: none;
  }

  .model-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

