:root {
  --bg: #121022;
  --card: rgba(29, 26, 50, 0.7);
  --text: #f7f3ff;
  --muted: #c3b9db;
  --accent: #b797ff;
  --accent-2: #7dd3fc;
  --good: #86efac;
  --warn: #fbbf24;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -20%, #2f215d 0%, transparent 60%),
              radial-gradient(900px 700px at 110% 20%, #1d4f66 0%, transparent 60%),
              var(--bg);
  min-height: 100vh;
}
.bg-orb { position: fixed; border-radius: 999px; filter: blur(70px); opacity: .24; pointer-events: none; }
.orb-a { width: 260px; height: 260px; background: #a78bfa; top: 10%; left: -40px; }
.orb-b { width: 300px; height: 300px; background: #67e8f9; right: -80px; top: 50%; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.2rem; position: sticky; top: 0; backdrop-filter: blur(12px); z-index: 20;
  background: rgba(18,16,34,.35); border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar h1 { margin: 0; font-size: 1.1rem; letter-spacing: .5px; }
.topbar nav { display: flex; align-items: center; gap: .5rem; }
a, .link-btn { color: #d7c8ff; text-decoration: none; background: none; border: none; cursor: pointer; font: inherit; }
.sep { color: #8f82b3; }
main { max-width: 1100px; margin: 1rem auto 2rem; padding: 0 1rem; }
.card {
  background: var(--card); border: 1px solid rgba(255,255,255,.11); border-radius: 16px;
  padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
button {
  border: 1px solid rgba(255,255,255,.16); color: var(--text); background: rgba(255,255,255,.08);
  padding: .55rem .8rem; border-radius: 10px; cursor: pointer;
}
button.primary { background: linear-gradient(135deg, #8b5cf6, #22d3ee); border: none; }
button.good { background: linear-gradient(135deg, #22c55e, #10b981); border: none; }
button:disabled { opacity: .55; cursor: not-allowed; }
small, .muted { color: var(--muted); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
input, select, textarea {
  width: 100%; padding: .6rem .65rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(8,8,15,.5); color: var(--text);
}
label { font-size: .85rem; color: #d8d1ea; display:block; margin-bottom:.25rem; }
.part-card { border:1px solid rgba(255,255,255,.1); border-radius: 14px; padding:.8rem; background: rgba(255,255,255,.04); }
.part-head { display:flex; justify-content:space-between; align-items:center; }
.pill { border-radius: 999px; padding: .16rem .55rem; font-size:.75rem; border:1px solid rgba(255,255,255,.22); }
.glow { box-shadow: 0 0 0 2px rgba(167,139,250,.45), 0 0 24px rgba(125,211,252,.22) inset; }
.session { display:grid; grid-template-columns: 1fr 1fr; gap:1rem; }
@media (max-width: 900px){ .session { grid-template-columns: 1fr; } }
.transcript { max-height: 410px; overflow:auto; display:flex; flex-direction:column; gap:.45rem; }
.line { padding:.45rem .55rem; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.bubble { font-size:.8rem; color:#dff7ff; border-left: 3px solid #7dd3fc; padding-left:.5rem; }
.insight-card { border:1px solid rgba(134,239,172,.35); background: rgba(16,185,129,.08); }
.burden-card { border:1px solid rgba(255,255,255,.1); border-radius: 12px; padding:.7rem; background: rgba(255,255,255,.03); }
.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.11); overflow:hidden; margin:.25rem 0 .45rem; }
.progress > span { display:block; height:100%; background: linear-gradient(90deg, #f59e0b, #ef4444); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index:50; }
.modal-card { width:min(700px, 92vw); background:#1a1533; border-radius:16px; border:1px solid rgba(255,255,255,.16); padding:1rem; position:relative; }
.close { position:absolute; right:.7rem; top:.5rem; font-size:1.2rem; }
.hidden { display:none; }
footer { text-align:center; padding: 1rem 0 2rem; color:#cfc3e9; }
