:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #17202a;
  --muted: #5d6875;
  --line: #d7dde5;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-2: #8a4b13;
  --danger: #b42318;
  --ok: #126a3a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 760;
}

h2 {
  font-size: 16px;
  font-weight: 720;
}

p,
.subtle {
  color: var(--muted);
  font-size: 13px;
}

.actions,
.lookup,
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

button,
select,
input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

button {
  padding: 0 12px;
  cursor: pointer;
  font-weight: 650;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

input {
  padding: 0 10px;
  min-width: 120px;
}

.layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.band,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.band {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.metrics,
.indicator-board,
.layers {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric,
.mini {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  min-height: 74px;
  background: #fbfcfd;
}

.metric b,
.mini b {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.metric span,
.mini span {
  font-size: 20px;
  font-weight: 760;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  background: #ecfdf8;
  font-size: 12px;
  font-weight: 700;
}

.pill.danger {
  color: var(--danger);
  background: #fff1f0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 700;
}

.overview,
.comparison,
.list {
  display: grid;
  gap: 10px;
}

.strategy-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.item {
  border-left: 3px solid var(--accent);
  background: #fbfcfd;
  padding: 10px 12px;
}

.item.warning {
  border-left-color: var(--accent-2);
}

.item.danger {
  border-left-color: var(--danger);
}

@media (max-width: 920px) {
  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.two,
  .metrics,
  .indicator-board,
  .layers {
    grid-template-columns: 1fr;
  }

  .strategy-form {
    grid-template-columns: 1fr;
  }
}
