:root { --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --border: #2d3a4f;
  --text: #e7ecf3;
  --muted: #8b9bb4;
  --accent: #3d6fd6;
  --link: #7fa6f3;
  --green: #3ecf8e;
  --red: #f07178;
  --amber: #e6c07b;
  --highlight: #2a4a3a; }
* { box-sizing: border-box; }
body { margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
nav { background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap; }
nav .brand { font-weight: 700;
  color: var(--text);
  margin-right: 0.5rem; }
nav a { color: var(--muted); font-size: 0.95rem; }
nav a.active, nav a:hover { color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; color: var(--muted); font-weight: 600; }
.stats { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem; }
.stat { background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem; }
.stat .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-size: 1.35rem; font-weight: 700; margin-top: 0.25rem; }
.gain { color: var(--green); }
.loss { color: var(--red); }
.note { background: var(--surface2);
  border-left: 3px solid var(--amber);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: 0 8px 8px 0; }
.chart-box { background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  height: 280px; }
table { width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9rem; }
th, td { padding: 0.65rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface2); color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(91, 141, 239, 0.06); }
.badge { display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600; }
.badge-hit { background: #1e4d35; color: var(--green); }
.badge-watch { background: #3a2f1a; color: var(--amber); }
.muted { color: var(--muted); }
.form-card { background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
  max-width: 520px; }
label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
input, select, button, textarea { font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  width: 100%;
  margin-bottom: 0.75rem; }
button { background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  padding: 0.55rem 1.1rem; }
button:hover { filter: brightness(1.08); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.search-bar { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.search-bar input { margin: 0; flex: 1; }
.error { color: var(--red); margin-bottom: 0.75rem; }
.meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.fx { font-size: 0.75rem; color: var(--muted); margin-left: auto; }
.movers-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-bottom: 1.25rem; }
.movers-filters button { margin: 0; }
.toggle-group { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.toggle { padding: 0.4rem 0.85rem; color: var(--muted); background: var(--surface);
  border-right: 1px solid var(--border); font-weight: 600; font-size: 0.85rem; }
.toggle:last-child { border-right: none; }
.toggle.active { background: var(--accent); color: #fff; }
.toggle:hover { text-decoration: none; filter: brightness(1.05); }
.inline-filter { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.85rem; margin: 0; }
.inline-filter.checkbox input { width: auto; margin: 0; }
.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) {
.movers-grid { grid-template-columns: 1fr; }
}
.movers-table .thumb-cell { width: 48px; padding-right: 0; }
.thumb { width: 40px; height: 56px; object-fit: cover; border-radius: 4px;
  background: var(--surface2); display: block; }
.thumb.placeholder { background: var(--surface2); }
.small { font-size: 0.75rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
main.wide, body:has(.movers-grid) main { max-width: 1200px; }
