* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
}

.container { max-width: 1120px; margin: 0 auto; padding: 24px; }

/* Header */
.header {
  text-align: center;
  padding: 32px 0 24px;
  border-bottom: 1px solid #222;
  margin-bottom: 24px;
}
.header h1 { font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -0.5px; }
.header p { font-size: 13px; color: #666; margin-top: 6px; }
.header .tagline { color: #4ade80; font-size: 14px; margin-top: 8px; }

/* Task Card */
.task-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.task-card .round-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 8px;
}
.task-card .task-name {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}
.task-card .task-budget {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

/* Freelancer cards */
.freelancers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.freelancer-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.freelancer-card:hover {
  border-color: #4ade80;
  background: #0f1f14;
}
.freelancer-card.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.freelancer-card .name { font-size: 15px; font-weight: 600; color: #fff; }
.freelancer-card .price { font-size: 20px; font-weight: 700; color: #4ade80; margin: 8px 0; }
.freelancer-card .rating { font-size: 12px; color: #888; }
.freelancer-card .trait { font-size: 12px; color: #666; margin-top: 4px; font-style: italic; }
.freelancer-card .agent-rec {
  font-size: 11px;
  color: #f59e0b;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #222;
}

/* Let Agent Decide button */
.agent-decide-row { text-align: center; margin-bottom: 20px; }
.btn-agent-decide {
  background: #1a1a2e;
  border: 1px solid #4ade80;
  color: #4ade80;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-agent-decide:hover { background: #0f1f14; }
.btn-agent-decide:disabled { opacity: 0.4; cursor: not-allowed; }

/* Two-panel layout */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.panel {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}
.panel h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a1a1a;
}

/* Decision log entries */
.decision-entry {
  padding: 10px 0;
  border-bottom: 1px solid #1a1a1a;
}
.decision-entry:last-child { border-bottom: none; }
.decision-entry .round { font-size: 11px; color: #555; }
.decision-entry .choice { font-size: 13px; color: #e0e0e0; margin: 2px 0; }
.decision-entry .outcome { font-size: 12px; margin-top: 4px; }
.outcome.settled { color: #4ade80; }
.outcome.refunded { color: #ef4444; }

/* Memory entries */
.memory-entry {
  padding: 10px;
  margin-bottom: 8px;
  background: #0a0a0a;
  border-radius: 6px;
  border-left: 3px solid #333;
}
.memory-entry.reinforced { border-left-color: #4ade80; }
.memory-entry.decayed { border-left-color: #ef4444; }
.memory-entry .content { font-size: 13px; color: #ccc; }
.memory-entry .meta {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}
.score-bar {
  height: 3px;
  background: #222;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 2px;
  background: #4ade80;
  transition: width 0.5s ease;
}
.score-fill.low { background: #ef4444; }

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-box {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat-box .number { font-size: 24px; font-weight: 700; color: #fff; }
.stat-box .number.green { color: #4ade80; }
.stat-box .label { font-size: 11px; color: #666; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Controls */
.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}
.btn {
  background: #111;
  border: 1px solid #333;
  color: #e0e0e0;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn:hover { border-color: #555; }
.btn.primary { background: #4ade80; color: #0a0a0a; border-color: #4ade80; font-weight: 600; }
.btn.primary:hover { background: #22c55e; }

/* Code modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
}
.modal h3 { font-size: 16px; color: #fff; margin-bottom: 16px; }
.modal pre {
  background: #0a0a0a;
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  color: #4ade80;
}
.modal .install-cmd {
  background: #0a0a0a;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #f59e0b;
  margin-top: 12px;
}
.modal .close-btn {
  margin-top: 16px;
  display: block;
  width: 100%;
  text-align: center;
}
.modal .links {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.modal .links a {
  color: #4ade80;
  text-decoration: none;
  font-size: 13px;
}
.modal .links a:hover { text-decoration: underline; }

/* Outcome reveal */
.outcome-card {
  display: none;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.outcome-card.active { display: block; }
.outcome-card.good { border-color: #4ade80; }
.outcome-card.bad { border-color: #ef4444; }
.outcome-card .emoji { font-size: 32px; margin-bottom: 8px; }
.outcome-card .msg { font-size: 15px; color: #fff; }
.outcome-card .detail { font-size: 13px; color: #888; margin-top: 8px; }

/* Empty state */
.empty-state { color: #444; font-size: 13px; text-align: center; padding: 24px; }

/* Game over */
.game-over {
  display: none;
  text-align: center;
  padding: 32px;
  background: #111;
  border: 1px solid #4ade80;
  border-radius: 12px;
  margin-bottom: 20px;
}
.game-over.active { display: block; }
.game-over h2 { font-size: 20px; color: #4ade80; margin-bottom: 12px; }
.game-over p { font-size: 14px; color: #888; }
