.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero,
.card,
.table-panel {
  padding: clamp(0.7rem, 1.55vw, 0.98rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.62rem;
}

h1,
h2 {
  margin: 0.16rem 0 0.5rem;
  font-family: "Baskervville", Georgia, serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
}

h2 {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
}

.lede,
.panel p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.36;
}

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

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.form-row,
.button-row,
.control-row,
.badge-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
}

.form-row {
  margin-top: 0.68rem;
}

.field {
  display: grid;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.field input {
  width: min(145px, 42vw);
  min-height: 2.05rem;
  padding: 0.34rem 0.46rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--ink);
}

.field select {
  min-width: 145px;
  min-height: 2.05rem;
  padding: 0.34rem 0.46rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  min-height: 2.05rem;
  padding: 0.34rem 0.62rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn:hover {
  filter: brightness(0.97);
}

.notice {
  margin-top: 0.64rem;
  border-radius: 10px;
  padding: 0.58rem 0.66rem;
  border: 1px solid var(--line-strong);
}

.notice-warning {
  background: var(--warning-bg);
  border-color: var(--warning-line);
  color: #5d4200;
}

.notice-soft {
  background: var(--soft-bg);
}

.status-badge,
.chip-value {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  border-radius: 999px;
  padding: 0.2rem 0.46rem;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-badge.verified {
  color: var(--verified);
  background: rgba(15, 123, 109, 0.12);
  border-color: rgba(15, 123, 109, 0.22);
}

.status-badge.analogy {
  color: var(--analogy);
  background: rgba(192, 130, 43, 0.13);
  border-color: rgba(192, 130, 43, 0.26);
}

.status-badge.deferred {
  color: var(--deferred);
  background: rgba(125, 84, 102, 0.11);
  border-color: rgba(125, 84, 102, 0.22);
}

.status-badge.false {
  color: var(--falsehood);
  background: rgba(146, 63, 54, 0.1);
  border-color: rgba(146, 63, 54, 0.22);
}

.chip-value {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.stat-grid {
  margin-top: 0.68rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.5rem;
}

.stat-grid.compact {
  margin-top: 0;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.62rem;
  background: rgba(255, 255, 255, 0.68);
}

.stat-card .label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.66rem;
}

.stat-card .value {
  margin: 0.24rem 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.32;
}

.callout {
  margin-top: 0.58rem;
  padding: 0.62rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.output-shell {
  margin-top: 0.68rem;
  padding: 0.62rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.equation-line {
  white-space: nowrap;
  overflow-x: auto;
  line-height: 1.45;
}

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

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th,
.data-table td {
  padding: 0.38rem 0.46rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(15, 123, 109, 0.08);
}

.data-table tr.active,
.data-table tr.row-active {
  background: rgba(15, 123, 109, 0.08);
}

.row-gcd {
  background: rgba(146, 63, 54, 0.08);
}

.row-stop {
  background: rgba(192, 130, 43, 0.09);
}

.plain-list {
  margin: 0.5rem 0 0;
  padding-left: 0.98rem;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.24rem 0.46rem;
  text-decoration: none;
  font-size: 0.76rem;
}

.fact-card {
  position: relative;
  overflow: hidden;
}

.fact-illustration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(239, 228, 207, 0.95));
  color: var(--accent-3);
  font-family: "Baskervville", Georgia, serif;
  font-size: 0.82rem;
}
