* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #64748b;
  --dark: #0f172a;
  --darker: #1e293b;
  --card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 2rem;
}
.container { max-width: 1200px; margin: 0 auto; }
header { text-align: center; margin-bottom: 2rem; }
header h1 { font-size: 2.5rem; font-weight: 700; color: #fff; }
header .subtitle { color: var(--primary); }

.help-section {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.help-section h3 { color: var(--primary); margin-bottom: 1rem; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.help-item { padding: 0.5rem; color: var(--text-muted); }

.controls-section, .panel-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.controls-section h3, .panel-section h3 { color: #fff; margin-bottom: 1rem; }
.control-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.control-group { display: flex; flex-direction: column; gap: 0.5rem; }
.control-group label { font-size: 0.875rem; color: var(--secondary); }
.control-group input, .control-group select { padding: 0.75rem; border-radius: 6px; border: 1px solid var(--border); background: var(--dark); color: var(--text); }

.exposure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.exposure-item { display: flex; flex-direction: column; gap: 0.5rem; }

.instrument-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.instrument-card { background: var(--dark); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; cursor: pointer; transition: all 0.2s; }
.instrument-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.instrument-card.selected { border-color: var(--primary); background: rgba(59, 130, 246, 0.1); }
.instrument-card h3 { color: var(--primary); margin-bottom: 0.25rem; }
.instrument-card .cost { font-size: 0.75rem; color: var(--secondary); }

.results-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.results-section h3 { color: #fff; margin-bottom: 1rem; }
.strategy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.strategy-card { background: var(--dark); border-radius: 8px; padding: 1rem; }
.strategy-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.strategy-card.recommended { border: 2px solid var(--success); position: relative; }
.strategy-card.recommended::after { content: 'Recommended'; position: absolute; top: -8px; right: 8px; background: var(--success); color: #000; padding: 2px 8px; border-radius: 4px; font-size: 0.625rem; font-weight: bold; }
.metric { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.metric .value { font-weight: 600; }
.metric .value.good { color: var(--success); }

.ai-section {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.ai-section h3 { color: #fff; margin-bottom: 1rem; }
.ai-insight { margin-bottom: 1rem; }
.ai-metrics { display: flex; gap: 2rem; }
.ai-metric { font-size: 0.875rem; }
.ai-metric .value { color: var(--primary); font-weight: 600; }

.actions-section { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }
.btn { padding: 0.75rem 1.5rem; border-radius: 6px; border: none; background: var(--primary); color: #fff; cursor: pointer; font-size: 0.875rem; }
.btn:hover { background: var(--primary-dark); }

.attribution { text-align: center; padding: 2rem; color: var(--secondary); font-size: 0.875rem; }