:root {
  --ink: #12181F;
  --paper: #FAFAFA;
  --signal-blue: #1E56E8;
  --caution-amber: #C97A2E;
  --data-slate: #5B6472;
  --line: #D8D3C8;
  --candle-up: #5F7D68;
  --candle-down: #9A5E55;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

[hidden] { display: none !important; }

.dash {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.35rem 1.15rem 3rem;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.2rem;
  margin: 0 0 1.15rem;
}

.dash-copy { min-width: 0; }

.eyebrow,
.caption,
.strip-heading,
.rule-note {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--data-slate);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.run-engine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.05rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.run-engine:disabled {
  cursor: wait;
  opacity: 0.72;
}

.closed-card {
  margin: 0 0 1.15rem;
}

.roster {
  position: relative;
}

.roster-head {
  margin: 0 0 0.85rem;
}

.strip-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.rule-note {
  font-size: 0.75rem;
  margin: 0;
}

.roster-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 768px) {
  .roster-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .roster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .run-engine {
    width: 100%;
  }
}

.roster-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.92);
  color: inherit;
  text-decoration: none;
}

.roster-card:hover {
  border-color: var(--ink);
}

.roster-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.inst {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}

.ck-plan { color: var(--ink); }
.ck-approaching { color: var(--caution-amber); }
.ck-confirmed { color: var(--signal-blue); }
.ck-none { color: var(--data-slate); }

.roster-status {
  font-size: 0.95rem;
  font-weight: 500;
}

.pulse-buyers { color: var(--candle-up); }
.pulse-sellers { color: var(--candle-down); }
.pulse-balanced { color: var(--data-slate); }

.roster-pulse {
  font-size: 0.8rem;
}

.roster-go {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--data-slate);
}

.weak-note {
  font-size: 0.75rem;
  color: var(--data-slate);
  margin: 0.2rem 0 0;
}

.error {
  color: var(--caution-amber);
  font-size: 0.9rem;
  margin: 1rem 0 0;
}
