:root {
  --bg: #0b1020;
  --panel: #121a31;
  --panel-2: #18223f;
  --text: #eef3ff;
  --muted: #9fb0d3;
  --accent: #7aa2ff;
  --danger: #ff6b7a;
  --ok: #3ed598;
  --border: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #162449 0, var(--bg) 50%);
}
.shell { max-width: 1280px; margin: 0 auto; padding: 24px; }
.hero, .card {
  background: rgba(18, 26, 49, 0.86);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 50px rgba(0,0,0,0.22);
}
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 24px;
}
.eyebrow { color: var(--accent); margin: 0 0 8px; }
h1 { margin: 0; font-size: 42px; }
.sub { color: var(--muted); max-width: 680px; }
.grid.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 24px; }
.card { padding: 20px; margin-bottom: 24px; }
.card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
h2, h3 { margin: 0; }
canvas, video {
  width: 100%;
  border-radius: 18px;
  background: #050814;
  border: 1px solid var(--border);
}
button, a {
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
button { background: var(--accent); color: #071126; }
button.secondary, a { background: var(--panel-2); color: var(--text); }
button.danger { background: var(--danger); color: white; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.actions, .controls-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.controls-inline { margin-top: 14px; }
.controls-inline.compact { align-items: center; justify-content: space-between; }
input[type="text"] {
  flex: 1;
  min-width: 220px;
  background: #0f1731;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
}
.badge {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(122,162,255,0.16);
  color: var(--accent);
}
.tiny, .empty { color: var(--muted); }
.library { display: grid; gap: 12px; }
.recording-item {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:16px;
  border-radius:18px;
  background: rgba(255,255,255,0.03);
  border:1px solid var(--border);
}
.row-gap { display:flex; gap:8px; align-items:center; flex-wrap: wrap; }
.mini { padding: 10px 12px; border-radius: 12px; }
.details { min-height: 120px; }
.transcript {
  max-height: 260px;
  overflow:auto;
  padding:12px;
  background:#0f1731;
  border-radius:18px;
  border:1px solid var(--border);
  white-space:pre-wrap;
  line-height:1.6;
}
.clip-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap:16px; margin-top: 16px; }
.clip-card { padding:14px; border-radius:18px; background:#0f1731; border:1px solid var(--border); }
.clip-card video { margin-bottom: 10px; }
@media (max-width: 960px) {
  .hero { flex-direction: column; }
  .grid.two { grid-template-columns: 1fr; }
  .recording-item { flex-direction: column; align-items: flex-start; }
}
