:root {
  --accent: #c9a032;
  --accent-2: #7cc5e8;
  --bg: #080b14;
  --panel: rgba(12, 16, 32, 0.92);
  --panel-2: rgba(17, 22, 40, 0.78);
  --border: rgba(140, 170, 220, 0.15);
  --text: #e4e8f0;
  --muted: #8a92a8;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Satoshi", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(124, 197, 232, 0.1), transparent 55%),
    radial-gradient(circle at bottom right, rgba(201, 160, 50, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.app {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--accent);
}

#subtitle {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-card {
  min-width: 220px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 6px;
  color: var(--muted);
}

.legend, .toolbar, .tabs {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.legend-label {
  margin-right: 8px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.item .status {
  width: 86px;
  min-width: 86px;
  height: 86px;
  min-height: 86px;
  padding: 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
  font-size: 0.78rem;
}

.legend .status {
  width: fit-content;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.complete { background: rgba(16, 185, 129, 0.18); color: #bbf7d0; border-color: rgba(52, 211, 153, 0.42); }
.partial { background: rgba(250, 204, 21, 0.18); color: #fef3c7; border-color: rgba(250, 204, 21, 0.45); }
.placeholder { background: rgba(249, 115, 22, 0.18); color: #fed7aa; border-color: rgba(251, 146, 60, 0.44); }
.not-started { background: rgba(239, 68, 68, 0.18); color: #fecaca; border-color: rgba(248, 113, 113, 0.45); }
.disabled { background: rgba(100, 116, 139, 0.25); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.38); }
.testing { background: rgba(59, 130, 246, 0.2); color: #bfdbfe; border-color: rgba(96, 165, 250, 0.48); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.toolbar label {
  color: var(--muted);
  font-weight: 700;
  display: grid;
  gap: 6px;
}

select, textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.75);
  color: var(--text);
  padding: 10px 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  height: 100%;
  min-height: 680px;
  display: flex;
  flex-direction: column;
}

.card h2 {
  margin: 0 0 16px;
  color: var(--accent-2);
}

.item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.item:first-of-type { border-top: 0; }

.item h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.takeaway, .notes {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 23, 42, 0.74));
}

.takeaway h2, .notes h2 {
  margin: 0 0 8px;
  color: var(--accent-2);
}

.takeaway p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

.notes textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  margin-top: 10px;
}

.note-hint {
  color: var(--muted);
  margin-bottom: 0;
}

body[data-accent="gold"] { --accent: #c9a032; --accent-2: #7cc5e8; }
body[data-accent="blue"] { --accent: #4a7ec2; --accent-2: #7cc5e8; }
body[data-accent="green"] { --accent: #4caf7d; --accent-2: #7cc5e8; }
body[data-accent="orange"] { --accent: #d4893a; --accent-2: #e8c07a; }
body[data-accent="red"] { --accent: #e05555; --accent-2: #f0a0a0; }

@media (max-width: 1200px) {
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .content-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .item { grid-template-columns: 1fr; }
}
