:root {
  --bg: #f4efe2;
  --surface: rgba(24, 31, 40, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.78);
  --ink: #132033;
  --muted: #6a7486;
  --accent: #bf5a3b;
  --accent-dark: #8f3f27;
  --ok: #1f8f55;
  --warn: #d68821;
  --danger: #b94141;
  --line: rgba(19, 32, 51, 0.12);
  --shadow: 0 22px 60px rgba(24, 31, 40, 0.18);
}

html {
  font-size: 14px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(191, 90, 59, 0.2), transparent 35%),
    radial-gradient(circle at top right, rgba(34, 112, 147, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f4ea 0%, #efe5d3 100%);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(19, 32, 51, 0.08);
  color: var(--ink);
}

.shell-header {
  padding: 1.4rem 0;
}

.shell-nav,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark strong,
.panel-card h2,
.hero-panel h1,
.prose-panel h1,
.prose-panel h2 {
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
}

.brand-mark small {
  display: block;
  color: var(--muted);
}

.brand-mark__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #fff7ef;
  background: linear-gradient(135deg, var(--accent), #d59a39);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.shell-links {
  display: flex;
  gap: 1rem;
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
}

.shell-links a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(19, 32, 51, 0.06);
}

.shell-main {
  padding-bottom: 3rem;
}

.shell-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
}

.hero-panel,
.panel-card,
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.86), rgba(244, 236, 221, 0.8));
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
}

.hero-panel h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.endpoint-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.endpoint-strip span {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
}

.hero-note {
  padding: 1.25rem;
  border-radius: 1.4rem;
  color: #f7f3ec;
  background: var(--surface);
}

.hero-note h2 {
  margin-top: 0;
}

.hero-note ul,
.prose-panel ul,
.flow-list {
  margin-bottom: 0;
}

.metric-grid,
.panel-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.panel-card {
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
}

.metric-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
}

.status-list {
  display: grid;
  gap: 0.85rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.state-ok {
  color: var(--ok);
}

.state-warn {
  color: var(--warn);
}

.table-panel {
  margin-top: 1rem;
}

.table-header p,
.error-text,
.prose-panel p,
.prose-panel li {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.table-darkish {
  margin-bottom: 0;
  color: var(--ink);
}

.table-darkish thead th {
  border-bottom-width: 1px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
  background: rgba(19, 32, 51, 0.08);
}

.status-pill--processed {
  color: var(--ok);
  background: rgba(31, 143, 85, 0.12);
}

.status-pill--received {
  color: #2b6ca3;
  background: rgba(43, 108, 163, 0.12);
}

.status-pill--failed {
  color: var(--danger);
  background: rgba(185, 65, 65, 0.14);
}

.empty-state {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(19, 32, 51, 0.04);
}

.prose-panel {
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .hero-panel,
  .panel-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .shell-nav,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
