:root {
  --bg: #0b0f17;
  --card: #121a2a;
  --border: #24324a;
  --text: #e7eefc;
  --muted: #a7b5d6;
  --pill: #1b2a44;
  --danger: #7a1d2a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 18px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
h1 { margin: 0; font-size: 22px; }
h2 { margin: 0 0 10px 0; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }

.label { font-size: 12px; color: var(--muted); }
.big { font-size: 22px; font-weight: 700; margin-top: 4px; }

.kv .k { font-size: 12px; color: var(--muted); }
.kv .v { font-size: 14px; }

.pillrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill {
  background: var(--pill);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.notes { margin-top: 10px; }
.note { font-size: 12px; color: var(--muted); margin-top: 6px; }

.actions { display: flex; gap: 10px; }
button {
  background: #1f2b45;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}
button.secondary { background: transparent; }
button.danger { background: var(--danger); border-color: #a13b48; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.pick {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
}
.pickTop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pickTitle { font-size: 16px; font-weight: 800; }
.pickBtns { display: flex; gap: 8px; }
.pickBody { margin-top: 10px; }
.sizing { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.openTrade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
}

.foot { margin-top: 10px; font-size: 12px; }
