/* Transcript pages for the Model Samples tab.
   Palette and type follow the root site's DESIGN.md, not the original bundle. */

:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --panel: #0f1019;
  --panel-soft: #0f111b;
  --text: #b8d7c6;
  --bright: #d8eee2;
  --muted: #89aa99;
  --dim: #739282;
  --line: #2a3445;
  --line-soft: #293345;
  --accent: #54a0ff;
  --accent-green: #54d9ac;
  --user: #101520;
  --assistant: #0f111b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -12%, oklch(0.3 0.05 154 / 0.26), transparent 34rem),
    radial-gradient(circle at 14% 28%, oklch(0.24 0.045 142 / 0.16), transparent 30rem),
    linear-gradient(180deg, oklch(0.12 0.014 152), oklch(0.085 0.012 152) 48%, oklch(0.075 0.01 152));
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
}

a { color: #91b3a0; text-decoration: none; }
a:hover { color: var(--bright); }

:focus-visible {
  outline: 2px solid #8fb8df;
  outline-offset: 4px;
}

.wrap { width: min(980px, calc(100% - 28px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 15, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 16px;
}

.brand { font-weight: 600; color: var(--bright); }
.brand:hover { color: #eefbf5; }
.nav { display: flex; gap: 14px; font-size: 0.8rem; color: var(--dim); }

/* Compact header. The root site keeps display type for its one rainbow hero. */
.hero { padding: 1.75rem 0 0.6rem; }
h1 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--bright); margin: 0.35rem 0 0.5rem; }
h2 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; color: var(--bright); margin: 0 0 0.4rem; }
h3 { font-size: 0.95rem; font-weight: 600; color: var(--bright); margin: 0 0 0.3rem; }

.eyebrow {
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lede { max-width: 72ch; color: var(--text); margin: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }

.pill {
  border: 1px solid #353d4d;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  color: var(--dim);
  background: #12151f;
}

.pill.good { color: #c9f5e2; border-color: rgba(84, 217, 172, 0.44); }
.pill.warn { color: #ffd9a8; border-color: rgba(255, 173, 92, 0.46); }

.section { padding: 0.5rem 0 2rem; }

.transcript { display: flex; flex-direction: column; gap: 0.85rem; padding-bottom: 2.5rem; }

.message {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--assistant);
}

.message.user { background: var(--user); margin-left: clamp(0px, 5vw, 56px); }
.message.assistant { margin-right: clamp(0px, 3vw, 32px); }
.message.opening { border-color: rgba(84, 217, 172, 0.28); }

.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.7rem;
}

.speaker { color: var(--bright); font-weight: 600; }
.message-body { padding: 0.9rem 1rem; overflow-wrap: anywhere; }
.message-body p { margin: 0.65em 0; }
.message-body p:first-child { margin-top: 0; }
.message-body p:last-child { margin-bottom: 0; }
.message-body font { font-weight: 500; }

.meta-row { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }

.meta-chip {
  border: 1px solid #353d4d;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  background: #12151f;
}

/* Only the metadata block. Tracker <details> come from the preset's own regex
   set and carry their own inline styling - leave those alone. */
details:not([style]) {
  margin-top: 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(15, 16, 26, 0.82);
}

details:not([style]) > summary { cursor: pointer; padding: 0.7rem 0.95rem; font-weight: 600; color: var(--bright); font-size: 0.85rem; }
details:not([style]) > div { padding: 0 0.95rem 0.95rem; color: var(--muted); font-size: 0.82rem; }

.footer {
  border-top: 1px solid var(--line);
  color: var(--dim);
  padding: 1.1rem 0 2.5rem;
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .nav { display: none; }
  .message.user, .message.assistant { margin-left: 0; margin-right: 0; }
  .message-body { padding: 0.8rem 1rem; }
}
