/*
 * Layered on the Napster design system (vendor/napster/colors_and_type.css).
 * Brand rules that bind here (see docs/architecture.md):
 *   - pure #000000 background, never near-black
 *   - Napster Pink on ONE element per composition: the submit/primary action.
 *     The mic button is deliberately ghost — it is not the load-bearing noun.
 *   - every section opens with an .eyebrow
 *   - IBM Plex Mono (.meta) for labels, dates, keys
 *   - round every corner; 10px default button radius
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text, #fff);
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
}

/* --- chrome --------------------------------------------------------------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.1));
}

.lockup {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.bar__right { display: flex; align-items: center; gap: 16px; }

/* --- layout --------------------------------------------------------------- */

.centered {
  max-width: 620px;
  margin: 12vh auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lede {
  color: var(--text-muted, rgba(255,255,255,.7));
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px;
  align-items: start;
}

.col { min-width: 0; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

#tracking {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* --- conversation --------------------------------------------------------- */

.conversation {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 8px;
}

.turn p {
  margin: 6px 0 0;
  line-height: 1.6;
  font-size: 16px;
}

.turn--user p { color: var(--text-muted, rgba(255,255,255,.72)); }

.composer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.composer input {
  flex: 1;
  min-width: 0;
  background: var(--bg-panel, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.14));
  border-radius: 10px;
  padding: 12px 16px;
  color: inherit;
  font: inherit;
}

.composer input:focus {
  outline: none;
  border-color: var(--border-pink, rgba(190,54,157,.35));
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  border-radius: 10px;
  padding: 12px 22px;
  font: 600 15px/1 Inter, system-ui, sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.btn:disabled { opacity: .5; cursor: default; }

/* The one pink element per composition. */
.btn--primary {
  background: var(--pink, #DD52CB);
  color: #000;
  text-decoration: none;
  display: inline-block;
}
.btn--primary:hover:not(:disabled) { background: var(--pink-bright, #EA2DD2); }

.btn--ghost {
  background: transparent;
  border-color: var(--border, rgba(255,255,255,.18));
  color: inherit;
}
.btn--ghost:hover { border-color: rgba(255,255,255,.4); }
.btn--ghost.is-on {
  border-color: var(--pink, #DD52CB);
  color: var(--pink, #DD52CB);
}

/* --- live draft panel ----------------------------------------------------- */

.panel {
  background: var(--bg-panel, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 24px;
}

.panel .eyebrow { display: block; margin: 20px 0 8px; }
.panel .eyebrow:first-child { margin-top: 0; }

.panel ul { margin: 0; padding-left: 18px; line-height: 1.6; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px;
}

.kv span:last-child { text-align: right; }
.kv--empty { color: rgba(255,255,255,.35); }

.missing {
  margin-top: 20px;
  color: var(--pink-rim, #FFA1F3);
}

/* --- tracking cards ------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--surface-card, #1A0918);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 16px;
  padding: 20px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.card a { color: inherit; }

/* Chips are one of the two places pill shape is allowed. */
.badge {
  border-radius: 999px;
  padding: 5px 12px;
  font: 500 11px/1 "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .48px;
  background: rgba(255,255,255,.08);
  white-space: nowrap;
}

.badge--stale { opacity: .55; }

.open-q { margin: 12px 0 0; color: var(--pink-rim, #FFA1F3); }

.error { color: var(--pink-rim, #FFA1F3); }
