/* ============================================================ */
/* Lab 10 — per-lab styles.                                       */
/* Base palette / typography / chrome / .viz / .callout /         */
/* presentation mode / glossary widget live in ../_shared/        */
/* lab-base.css. Per-lab only stuff below.                        */
/* ============================================================ */

/* ============================================================ */
/*  Course-frame + terminal snippet + time-tag                    */
/*  (Also used in lab-01 and lab-05 — third adopter; consider     */
/*   lifting to ../_shared/lab-base.css on next change.)          */
/* ============================================================ */
.course-frame {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 10px 0 24px 0;
  padding: 6px 0 6px 16px;
  border-left: 3px solid var(--accent-soft);
}
.course-frame strong { color: var(--ink); }
body.presentation-mode .course-frame {
  font-size: 22px;
  padding-left: 22px;
  margin: 14px 0 32px 0;
}

.time-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-mute);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  vertical-align: 2px;
}

pre.term-snippet {
  background: #14110d;
  color: #e8e1d5;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
  margin: 6px 0 12px 0;
}
pre.term-snippet .term-comment      { color: #6fab5c; }
pre.term-snippet .term-cmd          { color: #f6efe1; }
pre.term-snippet .term-prompt-echo  { color: #b2d3e8; }
pre.term-snippet .term-hl {
  background: rgba(177, 74, 46, 0.28);
  color: #ffd8c4;
  padding: 0 3px;
  border-radius: 2px;
}

/* ============================================================ */
/*  Collapsible details block (for the egress note)               */
/* ============================================================ */
details.setup-details {
  margin: 14px 0 20px 0;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
details.setup-details > summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 4px;
}
details.setup-details > summary::marker { color: var(--accent); }
details.setup-details[open] > summary {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

/* ============================================================ */
/*  Numbered best-practice list                                   */
/* ============================================================ */
.practice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 12px 0;
  padding: 12px 16px 12px 12px;
  background: var(--bg-elev);
  border-radius: 6px;
  border-left: 3px solid var(--accent-soft);
}
.practice-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
}
.practice strong { color: var(--ink); }

/* ============================================================ */
/*  Widget 1 · agentic-pentest animated transcript                */
/* ============================================================ */
.ap-screen-wrap {
  background: #14110d;
  border: 1px solid #2d2620;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0 4px;
}
.ap-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #d3c5b3;
  background: #221c16;
  padding: 6px 12px;
  border-bottom: 1px solid #2d2620;
}
.ap-screen {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: #e8e1d5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  max-height: 460px;
}
.ap-screen .ap-phase {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f2b88b;
  border-top: 1px solid #3d352b;
  padding-top: 8px;
}
.ap-screen .ap-think { color: #b2d3e8; }
.ap-screen .ap-tool  { color: #f6efe1; }
.ap-screen .ap-tool::before { content: "$ "; color: #6fab5c; }
.ap-screen .ap-obs   { color: #c9bfae; padding-left: 14px; border-left: 2px solid #3d352b; margin: 3px 0 6px; }
.ap-screen .ap-hl    { background: rgba(177, 74, 46, 0.3); color: #ffd8c4; padding: 0 3px; border-radius: 2px; }
.ap-screen .ap-good  { color: #7fb38c; }
.ap-screen .ap-warn  { color: #f2b88b; }
.ap-screen .ap-note  { color: #8a857d; font-style: italic; }

.ap-verdict {
  padding: 10px 14px;
  border-top: 1px solid #2d2620;
  font-family: var(--sans);
  font-size: 13px;
  color: #d3c5b3;
  background: #1a1612;
  min-height: 1.6em;
}
.ap-verdict.ok { color: #9cd1a7; }
.ap-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ap-hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  flex-grow: 1;
}
.ap-hint code {
  background: var(--bg-code);
  padding: 1px 5px;
  border-radius: 3px;
}

body.presentation-mode .ap-screen { font-size: 14.5px; max-height: 560px; }

/* ============================================================ */
/*  Widget 2 · PTES phases timeline                               */
/* ============================================================ */
.phases-svg {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  background: var(--bg-elev);
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.phases-svg .phase-band { fill: var(--bg-viz); }
.phases-svg .phase-chip {
  fill: var(--bg-viz);
  stroke: var(--rule);
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.1s, stroke 0.1s;
}
.phases-svg .phase-chip:hover,
.phases-svg .phase-chip.active {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.6;
}
.phases-svg .phase-num {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-mute);
  text-anchor: middle;
}
.phases-svg .phase-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
  pointer-events: none;
}
.phases-svg .phase-arrow {
  stroke: var(--ink-mute);
  stroke-width: 1;
  fill: none;
  opacity: 0.5;
}

.phases-detail {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--ink);
  min-height: 5em;
}
.phases-detail .phase-detail-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.phases-detail code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-code);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ============================================================ */
/*  Widget 3 · hack-skills hierarchy tree                         */
/* ============================================================ */
.hierarchy-svg {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  background: var(--bg-elev);
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.hierarchy-svg .h-node {
  fill: var(--bg-viz);
  stroke: var(--ink-soft);
  stroke-width: 1.2;
  rx: 6; ry: 6;
}
.hierarchy-svg .h-node.master  { fill: #f4ece0; stroke: var(--accent); stroke-width: 1.6; }
.hierarchy-svg .h-node.router  { fill: var(--neg); stroke: var(--neg-stroke); }
.hierarchy-svg .h-node.skill   { fill: var(--pos); stroke: var(--pos-stroke); }
.hierarchy-svg .h-node.skill.p0 { fill: var(--accent-soft); stroke: var(--accent); }
.hierarchy-svg .h-text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: middle;
}
.hierarchy-svg .h-text.small {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  fill: var(--ink-soft);
}
.hierarchy-svg .h-edge {
  stroke: var(--ink-mute);
  stroke-width: 1;
  fill: none;
  opacity: 0.55;
}
.hierarchy-svg .h-tier {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  fill: var(--ink-mute);
  text-anchor: end;
}
