* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --bg: #eef2ef;
  --ink: #14211f;
  --muted: #66736f;
  --panel: #ffffff;
  --line: #d7dfda;
  --green: #0f7a5f;
  --blue: #1d5f94;
  --amber: #a76712;
  --red: #b34040;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 750;
  cursor: pointer;
}
button.secondary { background: #dfe7e2; color: var(--ink); }
button.danger { background: #f1dddd; color: var(--red); }
button:disabled { cursor: not-allowed; opacity: .55; }
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}
.workspace { width: min(1440px, 100%); margin: 0 auto; padding: 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px 0 24px;
}
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(3rem, 9vw, 7rem); line-height: .9; letter-spacing: 0; }
.lead { max-width: 760px; margin: 18px 0 0; color: #33433f; font-size: 1.12rem; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 18px; }
.metrics article, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 33, 31, .04);
}
.metrics article { padding: 16px; }
.metrics span, .small { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; }
.metrics strong { display: block; margin: 8px 0 2px; font-size: 2rem; }
.metrics small { color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(330px, .85fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.panel { padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
h2 { margin: 0; font-size: 1.05rem; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #edf1ef; color: var(--muted); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.pill.green { background: #dff2eb; color: var(--green); }
.pill.amber { background: #f5eadb; color: var(--amber); }
.asset-list, .ledger { display: grid; gap: 10px; }
.asset, .prediction { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfb; }
.row, .form-row { display: flex; align-items: center; gap: 10px; }
.form-row { align-items: stretch; }
.space { justify-content: space-between; }
.symbol { font-weight: 850; font-size: 1.02rem; }
.price { color: var(--muted); font-weight: 700; }
.chart-panel canvas { width: 100%; aspect-ratio: 19 / 8; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfa; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: 0; }
.prediction p { margin: 8px 0 0; color: #3b4946; line-height: 1.45; }
.positive { color: var(--green); }
.negative { color: var(--red); }
@media (max-width: 900px) {
  .workspace { padding: 18px; }
  .hero, .layout, .metrics { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .form-row { flex-direction: column; }
}
