:root {
  --bg: #e8f1ee;
  --bg-deep: #0c2f2a;
  --ink: #12221f;
  --muted: #4d635e;
  --card: rgba(255, 252, 247, 0.82);
  --line: rgba(12, 47, 42, 0.12);
  --accent: #1f8a70;
  --accent-2: #c45c26;
  --good: #1f8a70;
  --warn: #b7791f;
  --bad: #b42318;
  --shadow: 0 18px 50px rgba(12, 47, 42, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 138, 112, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 38, 0.12), transparent 55%),
    linear-gradient(180deg, #f4faf7 0%, var(--bg) 45%, #dceae4 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}
.bg-orb-a {
  width: 280px; height: 280px;
  background: #7ec8b4;
  top: 12%; left: -60px;
}
.bg-orb-b {
  width: 340px; height: 340px;
  background: #e8b089;
  bottom: 8%; right: -80px;
  animation-delay: -6s;
}
@keyframes drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-24px) scale(1.06); }
}

.top, .wrap, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(244, 250, 247, 0.7);
}
.brand { display: flex; flex-direction: column; gap: 0.15rem; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--bg-deep);
}
.brand-sub { color: var(--muted); font-size: 0.82rem; }
.top-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; box-shadow: none; }
.btn.primary {
  background: var(--bg-deep);
  color: #f4faf7;
  border-color: var(--bg-deep);
}
.btn.ghost { background: transparent; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.hero {
  padding: 1.2rem 0 1.6rem;
  animation: rise 0.7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--bg-deep);
  max-width: 14ch;
}
.lede {
  margin: 0.9rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.status-row {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 138, 112, 0.12);
  color: var(--good);
  font-size: 0.8rem;
  font-weight: 700;
}
.pill.bad { background: rgba(180, 35, 24, 0.12); color: var(--bad); }
.pill.warn { background: rgba(183, 121, 31, 0.14); color: var(--warn); }
.meta { color: var(--muted); font-size: 0.85rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  animation: rise 0.8s ease both 0.08s;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--bg-deep);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.1rem 1.1rem 0.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
  backdrop-filter: blur(8px);
  animation: rise 0.85s ease both 0.12s;
}
.panel.slim { padding-bottom: 1.1rem; }
.panel-head { margin-bottom: 0.7rem; }
.panel-head.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--bg-deep);
}
.panel-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.search-bar {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 640px;
}
.search-bar input {
  flex: 1 1 240px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font: 500 1rem var(--font-body);
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  outline: none;
}
.search-bar input:focus {
  border-color: rgba(31, 138, 112, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 138, 112, 0.12);
}
.search-results {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.9rem;
}
.search-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(12, 47, 42, 0.045);
  border: 1px solid transparent;
}
.search-item:hover { border-color: rgba(31, 138, 112, 0.25); }
.search-item .name {
  font-weight: 600;
  color: var(--bg-deep);
  line-height: 1.35;
}
.search-item .hint {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 820px) {
  .search-item { grid-template-columns: 1fr; }
}


.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
td.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
td.price.best { color: var(--good); }
.delta { color: var(--muted); font-size: 0.85rem; }
.delta.up { color: var(--accent-2); }

.runs {
  display: grid;
  gap: 0.45rem;
}
.run {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(12, 47, 42, 0.04);
  font-size: 0.88rem;
}
.run .tag {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.run .tag.ok { color: var(--good); }
.run .tag.blocked, .run .tag.error { color: var(--bad); }
.run .tag.empty, .run .tag.skipped { color: var(--warn); }

.policy {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--bg-deep); }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .top { flex-direction: column; align-items: flex-start; }
  .run { grid-template-columns: 80px 1fr; }
  .run span:last-child { grid-column: 2; }
}
