:root {
  --bg: #f2efe8;
  --ink: #1f2a22;
  --muted: #6a746d;
  --panel: rgba(255, 253, 248, 0.9);
  --panel-strong: rgba(255, 252, 245, 0.98);
  --line: rgba(31, 42, 34, 0.14);
  --accent: #0f7b6c;
  --accent-soft: #d8f1ec;
  --danger: #b6462f;
  --shadow: 0 24px 60px rgba(39, 37, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ebe6da 0%, #f4f1e8 100%);
}

.background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 123, 108, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(182, 70, 47, 0.12), transparent 28%);
  pointer-events: none;
}

.shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero,
.toolbar,
.row,
.inline-form,
.grid {
  display: flex;
  gap: 16px;
}

.hero,
.toolbar,
.row.space-between {
  justify-content: space-between;
  align-items: center;
}

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

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.panel {
  padding: 20px;
  margin-top: 20px;
}

.panel-strong {
  background: var(--panel-strong);
}

.card {
  padding: 20px;
}

.metric {
  padding: 20px;
}

.metric span,
.hint,
.subcopy,
.eyebrow,
.empty {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
}

.metric small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  font-family: "IBM Plex Serif", "Georgia", serif;
  font-size: clamp(32px, 6vw, 56px);
  margin: 8px 0 12px;
}

h2,
h3 {
  margin-top: 0;
}

.status-card {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
}

.stack {
  display: grid;
  gap: 12px;
}

input,
select,
button {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
}

input,
select {
  background: rgba(255, 255, 255, 0.85);
}

button {
  background: var(--accent);
  color: white;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  color: var(--ink);
}

button.danger {
  color: var(--danger);
  border-color: rgba(182, 70, 47, 0.2);
}

.toolbar {
  margin-top: 20px;
}

.toolbar-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab {
  background: transparent;
  color: var(--ink);
}

.tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(15, 123, 108, 0.28);
}

.tab-panel {
  display: none;
}

.tab-panel.active,
.hidden {
  display: block;
}

.hidden {
  display: none;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

.info-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 12px;
}

.error {
  color: var(--danger);
}

@media (max-width: 820px) {
  .hero,
  .toolbar,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .inline-form {
    flex-direction: column;
  }
}
