:root {
  --bg: #0b0e1a;
  --panel: #141930;
  --ink: #e6e6f0;
  --muted: #9aa3c0;
  --accent: #d4af37;
  --accent2: #8ea6f0;
  --line: #2a3355;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
header {
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 2rem; border-bottom: 1px solid var(--line);
}
header h1 { margin: 0; font-size: 1.3rem; color: var(--accent); letter-spacing: .05em; }
nav a { color: var(--muted); text-decoration: none; margin-right: 1.2rem; }
nav a.active, nav a:hover { color: var(--ink); }
main { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.hidden { display: none; }
.error { color: #ff8080; margin-top: .75rem; }
form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
input, select {
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .7rem; font-size: 1rem;
}
button {
  margin-top: .5rem; padding: .6rem 1.4rem; border: none; border-radius: 8px;
  background: var(--accent); color: #1a1408; font-weight: 700; cursor: pointer;
}
button:hover { filter: brightness(1.1); }
.chart-layout { display: grid; grid-template-columns: minmax(420px, 1fr) 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .chart-layout { grid-template-columns: 1fr; } }
#wheel svg { width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1rem; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
h3 { color: var(--accent2); margin: .8rem 0 .4rem; font-size: 1rem; }
.aspect-line { stroke-width: 1.5; fill: none; }
.trine, .sextile { stroke: #6fd08f; }
.square, .opposition { stroke: #e06565; }
.conjunction { stroke: #d4af37; }
.retro { color: #e06565; font-weight: 700; }