:root {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #1e88e5;
  --border: #1f2937;
}

* { box-sizing: border-box; }
body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
}
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.container { max-width: 1080px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input, select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: #0b1220; color: var(--text); }
.analyst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.analyst { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #0b1220; color: var(--text); cursor: pointer; transition: all 0.2s ease; }
.analyst img { width: 32px; height: 32px; object-fit: contain; }
.analyst.active { outline: 2px solid var(--primary); background: #1e88e5; color: white; transform: scale(1.05); }
.actions { margin: 12px 0; }
#startBtn { background: var(--primary); color: white; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; }
.status { margin-top: 8px; color: var(--muted); font-size: 13px; }
.output-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.md-output { min-height: 360px; line-height: 1.6; }
.md-output h1,h2,h3 { color: #ffffff; }
.md-output pre { background: #0b1220; padding: 12px; border-radius: 6px; overflow: auto; }
.md-output code { background: #0b1220; padding: 2px 4px; border-radius: 4px; }
.app-footer { padding: 16px 24px; color: var(--muted); border-top: 1px solid var(--border); }

@media (max-width: 900px) { .container { grid-template-columns: 1fr; } }