/* Beaver Skill Replay Eval deck, based on html-ppt tech-sharing template. */
.replay-root {
  background: #08111d;
}

.tpl-beaver-replay {
  --bg: #08111d;
  --bg-soft: #0d1726;
  --surface: #101b2c;
  --surface-2: #132235;
  --border: rgba(147, 197, 253, .18);
  --border-strong: rgba(147, 197, 253, .34);
  --text-1: #eef6ff;
  --text-2: #a9bfd7;
  --text-3: #6f879f;
  --accent: #64e3a1;
  --accent-2: #7cc7ff;
  --accent-3: #d9a6ff;
  --good: #64e3a1;
  --warn: #ffd166;
  --bad: #ff7b7b;
  --grad: linear-gradient(120deg, #64e3a1 0%, #7cc7ff 52%, #d9a6ff 100%);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .38);
  --letter-tight: 0;
  --letter-normal: 0;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text-1);
}

.tpl-beaver-replay .slide {
  padding: 50px 72px;
  background:
    linear-gradient(rgba(124, 199, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 199, 255, .04) 1px, transparent 1px),
    linear-gradient(135deg, #08111d 0%, #0b1524 54%, #101426 100%);
  background-size: 40px 40px, 40px 40px, auto;
  color: var(--text-1);
}

.tpl-beaver-replay .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(100, 227, 161, .1), transparent 22%, transparent 78%, rgba(124, 199, 255, .08)),
    linear-gradient(180deg, rgba(217, 166, 255, .07), transparent 30%, transparent 82%, rgba(100, 227, 161, .05));
  opacity: .7;
  pointer-events: none;
  z-index: 0;
}

.tpl-beaver-replay .slide > * {
  position: relative;
  z-index: 1;
}

.tpl-beaver-replay .h1 {
  font-size: 62px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 20px;
  color: #fff;
}

.tpl-beaver-replay .h2 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 16px;
}

.tpl-beaver-replay h3,
.tpl-beaver-replay h4 {
  color: #fff;
  letter-spacing: 0;
}

.tpl-beaver-replay .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 66ch;
}

.tpl-beaver-replay .kicker {
  color: var(--accent);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.tpl-beaver-replay .kicker::before {
  content: "> ";
}

.tpl-beaver-replay .mono {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

.tpl-beaver-replay .gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tpl-beaver-replay .deck-footer {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  letter-spacing: 0;
}

.tpl-beaver-replay .card {
  background: rgba(16, 27, 44, .92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.tpl-beaver-replay .card-accent {
  border-top: 3px solid var(--accent);
}

.tpl-beaver-replay .panel {
  padding: 20px 22px;
  background: rgba(8, 17, 29, .68);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tpl-beaver-replay .tag,
.tpl-beaver-replay .pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(19, 34, 53, .9);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0;
}

.tpl-beaver-replay .tag.good {
  color: var(--good);
  border-color: rgba(100, 227, 161, .34);
  background: rgba(100, 227, 161, .1);
}

.tpl-beaver-replay .tag.warn {
  color: var(--warn);
  border-color: rgba(255, 209, 102, .34);
  background: rgba(255, 209, 102, .1);
}

.tpl-beaver-replay .tag.bad {
  color: var(--bad);
  border-color: rgba(255, 123, 123, .34);
  background: rgba(255, 123, 123, .1);
}

.tpl-beaver-replay .terminal {
  background: #050a12;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.62;
}

.tpl-beaver-replay .terminal .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0d1726;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

.tpl-beaver-replay .terminal .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7b7b;
}

.tpl-beaver-replay .terminal .dot:nth-child(2) {
  background: #ffd166;
}

.tpl-beaver-replay .terminal .dot:nth-child(3) {
  background: #64e3a1;
}

.tpl-beaver-replay .terminal pre {
  margin: 0;
  padding: 20px 22px;
  color: #dbeafe;
  overflow: auto;
  max-height: 420px;
}

.tpl-beaver-replay .kw { color: #ff9f9f; }
.tpl-beaver-replay .fn { color: #d9a6ff; }
.tpl-beaver-replay .str { color: #9fe6ff; }
.tpl-beaver-replay .num { color: #7cc7ff; }
.tpl-beaver-replay .cmt { color: #6f879f; }

.tpl-beaver-replay .speaker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.tpl-beaver-replay .speaker .av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad);
}

.tpl-beaver-replay .speaker b {
  display: block;
  color: #fff;
  font-size: 17px;
}

.tpl-beaver-replay .speaker span {
  color: var(--text-3);
  font-size: 13px;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

.tpl-beaver-replay .agenda-row {
  display: grid;
  grid-template-columns: 58px 1fr 190px;
  gap: 22px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px dashed var(--border);
}

.tpl-beaver-replay .agenda-row .num {
  color: var(--accent);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

.tpl-beaver-replay .agenda-row .t {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.tpl-beaver-replay .agenda-row .d {
  color: var(--text-3);
  font-size: 13px;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

.tpl-beaver-replay .flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
}

.tpl-beaver-replay .flow-step {
  min-height: 120px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(16, 27, 44, .94);
  border: 1px solid var(--border);
}

.tpl-beaver-replay .flow-step .n {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 13px;
}

.tpl-beaver-replay .flow-step h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tpl-beaver-replay .flow-step p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.tpl-beaver-replay .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.tpl-beaver-replay .compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tpl-beaver-replay .compare .side {
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 17, 29, .72);
}

.tpl-beaver-replay .compare .side.candidate {
  border-color: rgba(100, 227, 161, .4);
  background: rgba(100, 227, 161, .08);
}

.tpl-beaver-replay .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tpl-beaver-replay .metric {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(16, 27, 44, .9);
  min-height: 104px;
}

.tpl-beaver-replay .metric b {
  display: block;
  font-size: 23px;
  line-height: 1.1;
  color: #fff;
}

.tpl-beaver-replay .metric span {
  color: var(--text-3);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 12px;
}

.tpl-beaver-replay .matrix {
  display: grid;
  grid-template-columns: 190px repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.tpl-beaver-replay .matrix > div {
  min-height: 76px;
  padding: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(16, 27, 44, .78);
  font-size: 14px;
}

.tpl-beaver-replay .matrix > div:nth-child(4n) {
  border-right: 0;
}

.tpl-beaver-replay .matrix .head {
  min-height: 48px;
  color: var(--accent-2);
  background: rgba(124, 199, 255, .08);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 12px;
}

.tpl-beaver-replay .matrix .rowhead {
  color: #fff;
  font-weight: 700;
}

.tpl-beaver-replay .pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.tpl-beaver-replay .pipeline .phase {
  min-height: 250px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(16, 27, 44, .88);
}

.tpl-beaver-replay .phase h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.tpl-beaver-replay ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpl-beaver-replay ul.clean li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.tpl-beaver-replay ul.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.tpl-beaver-replay .large-number {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 96px;
  line-height: .9;
  font-weight: 800;
  color: var(--accent);
}

.tpl-beaver-replay .source-line {
  color: var(--text-3);
  font-size: 12px;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

.tpl-beaver-replay .roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tpl-beaver-replay .roadmap .item {
  min-height: 150px;
  padding: 18px;
  background: rgba(16, 27, 44, .9);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tpl-beaver-replay .roadmap .item b {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}

.tpl-beaver-replay .roadmap .item span {
  color: var(--accent);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 12px;
}

.tpl-beaver-replay .roadmap .item p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.tpl-beaver-replay .center-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(100, 227, 161, .38);
  background: rgba(100, 227, 161, .08);
  color: var(--accent);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 46px;
  font-weight: 800;
}
