:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe4ef;
  --brand: #2563eb;
  --brand-soft: #dbeafe;
  --success: #14532d;
  --success-bg: #dcfce7;
  --warning: #854d0e;
  --warning-bg: #fef3c7;
  --danger: #7f1d1d;
  --danger-bg: #fee2e2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 24%),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 35%, #eef2ff 100%);
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero > div,
.card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 36px; line-height: 1.05; margin-bottom: 12px; }
h2 { font-size: 21px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }

.lede {
  color: var(--muted);
  max-width: 72ch;
  font-size: 16px;
}

.hero-stats, .metrics {
  display: grid;
  gap: 10px;
}

.metric, .metric-inline {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.metric span, .metric-inline span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.metric strong, .metric-inline strong {
  font-size: 22px;
}

.grid {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { margin-bottom: 12px; }
label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
input, select, textarea, button {
  width: 100%;
  font: inherit;
}
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
textarea { resize: vertical; }
button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  background: #e2e8f0;
  color: var(--ink);
}
button.ghost {
  width: auto;
  padding: 8px 10px;
  background: #f1f5f9;
  color: var(--ink);
}
button.reject {
  background: #fee2e2;
  color: var(--danger);
}
button.approve {
  background: #dcfce7;
  color: var(--success);
}
button + button { margin-top: 8px; }

.notice {
  display: none;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
}
.notice.show { display: block; }
.notice.success { background: var(--success-bg); color: var(--success); }
.notice.error { background: var(--danger-bg); color: var(--danger); }

.result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed var(--line);
  min-height: 54px;
  color: var(--muted);
}

.result pre {
  white-space: pre-wrap;
  margin: 0;
  font-size: 13px;
}

.muted { color: var(--muted); }

.progress {
  margin: 12px 0;
  background: #e2e8f0;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.badges, .actions, .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge, .pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.badge.info, .pill.info { background: #dbeafe; color: #1d4ed8; }
.badge.warning, .pill.warning { background: var(--warning-bg); color: var(--warning); }
.badge.success, .pill.success { background: var(--success-bg); color: var(--success); }
.badge.neutral, .pill.neutral { background: #e2e8f0; color: #334155; }

.shop-card, .claim-card, .audit-item, .toolkit-block, .leader-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.stack { display: grid; gap: 12px; }

.small { font-size: 13px; color: var(--muted); word-break: break-word; }
.inline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.inline-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.actions {
  margin-top: 10px;
}
.actions button {
  width: auto;
  flex: 1 1 140px;
}

.audit {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.footer {
  color: var(--muted);
  text-align: center;
  padding: 18px 0 6px;
}

code {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  word-break: break-all;
}

@media (max-width: 980px) {
  .hero, .grid.two { grid-template-columns: 1fr; }
  .page { padding: 16px; }
  h1 { font-size: 30px; }
  .inline-grid { grid-template-columns: 1fr; }
}
