:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #18211f;
  --muted: #60706b;
  --line: #d9e2de;
  --panel: #ffffff;
  --bg: #f5f7f3;
  --green: #176f52;
  --red: #a83b3b;
  --gold: #c58b2c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status span {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 999px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

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

.controls {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 16px;
}

.controls h2 {
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  background: #fbfcfb;
}

input[type="range"] {
  padding: 0;
}

output {
  color: var(--ink);
}

button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
  cursor: pointer;
}

.workbench {
  display: grid;
  gap: 20px;
}

.hero {
  min-height: 220px;
  display: flex;
  align-items: end;
  padding: 26px;
  background:
    linear-gradient(120deg, rgba(23, 111, 82, 0.92), rgba(24, 33, 31, 0.72)),
    url("https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin-top: 10px;
}

.hero .eyebrow {
  color: #ffe4a6;
}

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

.metrics article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.metrics strong {
  font-size: 24px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 20px;
}

.grid .panel {
  padding: 18px;
}

.tableWrap {
  overflow-x: auto;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 10px 8px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sideBuy {
  color: var(--green);
  font-weight: 800;
}

.sideSell {
  color: var(--red);
  font-weight: 800;
}

.notes {
  padding-left: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 920px) {
  .topbar,
  .layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .layout,
  .grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .controls {
    position: static;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

