/* CBT Engine page-only enhancements (theme keeps primary styling in style.css) */

.apt-cbt-tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;}
.apt-cbt-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(241,245,249,.88);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.apt-cbt-two{display:grid; grid-template-columns: 1fr 1fr; gap:12px;}
@media (max-width: 820px){.apt-cbt-two{grid-template-columns:1fr;}}

.apt-cbt-micro{font-size:12px; color: rgba(154,164,178,.92); line-height:1.55; font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;}

/* Progress dashboard */
.apt-cbt-metrics{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin-top:14px;}
@media (max-width: 980px){.apt-cbt-metrics{grid-template-columns: repeat(2, 1fr);}}
@media (max-width: 520px){.apt-cbt-metrics{grid-template-columns: 1fr;}}

.apt-cbt-metric{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 14px 14px 12px;
}
.apt-cbt-metric .label{
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(154,164,178,.92);
}
.apt-cbt-metric .value{font-size: 28px; font-weight: 700; margin-top: 10px; letter-spacing: -.01em;}
.apt-cbt-metric .sub{margin-top: 6px; font-size: 12px; color: rgba(154,164,178,.92);}

.apt-cbt-charts{display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-top:12px;}
@media (max-width: 980px){.apt-cbt-charts{grid-template-columns: 1fr;}}

.apt-cbt-chart{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 16px;
}

.apt-cbt-spark{width:100%; height:110px; margin-top: 10px; display:block;}
.apt-cbt-spark .gridline{stroke: rgba(255,255,255,.06); stroke-width: 1;}
.apt-cbt-spark .line-start{stroke: rgba(154,164,178,.85); fill:none; stroke-width: 2; stroke-dasharray: 4 4;}
.apt-cbt-spark .line-end{stroke: rgba(47,107,255,.92); fill:none; stroke-width: 2;}
.apt-cbt-spark .dot-end{fill: rgba(47,107,255,.95);}

.apt-cbt-legend{display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top: 10px;}
.apt-cbt-legend span{display:inline-flex; align-items:center; gap:8px; font-size:12px; color: rgba(154,164,178,.92); font-family:'IBM Plex Mono', monospace;}
.apt-cbt-swatch{width:16px; height:2px; border-radius: 2px; display:inline-block; background: rgba(154,164,178,.85);}
.apt-cbt-swatch.end{background: rgba(47,107,255,.92);}

/* Insight block (end of session) */
.apt-cbt-insight{padding:18px;}
.apt-cbt-insight-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.apt-cbt-insight-title{font-size:20px; font-weight:800; letter-spacing:-.01em; margin-top:10px; color: rgba(241,245,249,.92);}

.apt-cbt-highlight{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.apt-cbt-highlight-text{
  margin-top: 10px;
  color: rgba(241,245,249,.86);
  line-height: 1.6;
  font-size: 13px;
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.apt-cbt-cta-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 980px){
  .apt-cbt-cta-grid{grid-template-columns: 1fr;}
}

.apt-cbt-cta{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.apt-cbt-cta-title{font-weight:800; letter-spacing:-.01em; margin-top:10px; color: rgba(241,245,249,.92);}

/* Details accordion */
.apt-cbt-details{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(9,12,18,.35);
  overflow:hidden;
}
.apt-cbt-details summary{
  cursor:pointer;
  padding: 12px 14px;
  color: rgba(154,164,178,.92);
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  list-style:none;
}
.apt-cbt-details summary::-webkit-details-marker{display:none;}
.apt-cbt-details[open] summary{border-bottom:1px solid rgba(255,255,255,.08);}
.apt-cbt-details .output{
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
