/*
 * AI for Business Professionals - slide deck theme.
 * Layered on top of reveal.js core. Reuses the Pros theme palette
 * (navy / ivory / teal / coral) but inverts the relationship: most slides
 * are dark with light type, for a confident, Apple-keynote feel on Zoom share.
 */

:root {
  --ivory: #F5F1EA;
  --ivory-deep: #EDE7DA;
  --navy: #0E2340;
  --navy-deep: #081628;
  --navy-soft: #1E3A5F;
  --slate: #4A5766;
  --slate-soft: #8A95A6;
  --teal: #17A9A3;
  --teal-bright: #3FD0C9;
  --teal-dark: #107A76;
  --coral: #EF6F4A;
  --coral-bright: #FF8A65;
  --coral-dark: #C9532E;
  --lavender: #E4E7F2;
  --ink: #0B1628;
}

/* ----- Reveal base overrides ----- */

.reveal {
  font-family: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 36px;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides > section,
.reveal .slides > section > section {
  padding: 0;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ivory);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-transform: none;
}

.reveal h1 { font-size: 2.7em; }
.reveal h2 { font-size: 1.7em; }
.reveal h3 { font-size: 1.25em; }
.reveal h4 {
  font-size: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal-bright);
  font-weight: 700;
  margin-bottom: 1em;
}

.reveal p { line-height: 1.4; margin: 0.6em 0; }

.reveal strong { color: var(--teal-bright); font-weight: 700; }
.reveal em { color: var(--coral-bright); font-style: normal; font-weight: 600; }

.reveal a {
  color: var(--teal-bright);
  text-decoration: none;
  border-bottom: 2px solid rgba(63, 208, 201, 0.4);
}

.reveal ul, .reveal ol {
  display: block;
  padding-left: 1.2em;
  line-height: 1.5;
}

.reveal ul li,
.reveal ol li {
  margin: 0.45em 0;
}

.reveal ul li::marker { color: var(--teal-bright); }

.reveal code {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--coral-bright);
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.reveal pre {
  font-size: 0.55em;
  background: rgba(0,0,0,0.35);
  padding: 1em 1.2em;
  border-radius: 8px;
  box-shadow: none;
  width: 100%;
}

.reveal pre code {
  background: none;
  color: var(--ivory);
  display: block;
  overflow: visible;
  max-height: none;
  padding: 0;
}

/* ----- Page background ----- */

.reveal-viewport {
  background:
    radial-gradient(ellipse at top right, rgba(23, 169, 163, 0.10), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(239, 111, 74, 0.07), transparent 55%),
    var(--navy);
}

/* ----- Layout primitives ----- */

.slide-body {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  padding: 5vh 6vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Centered hero-style content */
.center {
  text-align: center;
  align-items: center;
}
.center .slide-body { align-items: center; text-align: center; }

/* Two-column split */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center;
  width: 100%;
}

/* ----- Special slide types ----- */

/* Title slide */
.slide-title {
  background:
    radial-gradient(circle at 30% 20%, rgba(23, 169, 163, 0.22), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(239, 111, 74, 0.18), transparent 50%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.slide-title .deck-eyebrow {
  font-size: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--teal-bright);
  font-weight: 600;
}

.slide-title h1 {
  font-size: 3.4em;
  margin-top: 0.4em;
  line-height: 1;
}

.slide-title .tagline {
  font-size: 0.9em;
  color: var(--slate-soft);
  margin-top: 1.2em;
  font-weight: 400;
}

/* Section dividers - big numeral on left, title on right */
.slide-section {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.slide-section .slide-body {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4vw;
}

.slide-section .section-num {
  font-size: 9.5em;
  font-weight: 900;
  line-height: 0.85;
  background: linear-gradient(135deg, var(--teal-bright), var(--coral-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.05em;
}

.slide-section h1 {
  font-size: 2.3em;
  margin: 0;
  max-width: 12ch;
}

.slide-section .section-sub {
  color: var(--slate-soft);
  font-size: 0.7em;
  margin-top: 0.6em;
  max-width: 28ch;
  letter-spacing: -0.01em;
}

/* Big idea - one giant sentence, nothing else */
.slide-bigidea h2 {
  font-size: 2.4em;
  max-width: 20ch;
  line-height: 1.05;
  margin: 0;
}

.slide-bigidea .attribution {
  margin-top: 1.4em;
  font-size: 0.7em;
  color: var(--slate-soft);
  letter-spacing: 0.04em;
}

/* Light-themed slide for variety / quotes */
.slide-light {
  background: var(--ivory);
  color: var(--ink);
}
.slide-light h1, .slide-light h2, .slide-light h3 { color: var(--navy); }
.slide-light h4 { color: var(--teal-dark); }
.slide-light strong { color: var(--teal-dark); }
.slide-light em { color: var(--coral-dark); }
.slide-light .slate { color: var(--slate); }

/* TBD placeholder ribbon */
.tbd {
  display: inline-block;
  padding: 0.3em 0.9em;
  background: rgba(239, 111, 74, 0.15);
  border: 2px dashed var(--coral);
  color: var(--coral-bright);
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 1.5em;
}

.tbd-block {
  border: 2px dashed rgba(239, 111, 74, 0.5);
  background: rgba(239, 111, 74, 0.05);
  border-radius: 14px;
  padding: 1.4em 1.6em;
  color: var(--slate-soft);
  font-size: 0.65em;
  line-height: 1.55;
}
.tbd-block .tbd-label {
  color: var(--coral-bright);
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6em;
}

/* Card grid (for demo categories, capability list, etc.) */
.cards {
  display: grid;
  gap: 1.2em;
  width: 100%;
}
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.4em 1.4em 1.6em;
  font-size: 0.7em;
  line-height: 1.45;
}
.card-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(23, 169, 163, 0.15);
  border-radius: 10px;
  color: var(--teal-bright);
  margin-bottom: 0.8em;
}
.card h3 {
  font-size: 1.1em;
  margin: 0 0 0.35em;
  color: var(--ivory);
}
.card .card-meta {
  color: var(--slate-soft);
  font-size: 0.8em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* QR code block */
.qr-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--ivory);
  padding: 1.2em;
  border-radius: 16px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.55em;
  letter-spacing: 0.12em;
}
.qr-block .qr-img {
  width: 260px; height: 260px;
  background: var(--ivory-deep);
  border: 3px dashed var(--slate-soft);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate);
  margin-bottom: 0.6em;
}

/* SVG diagram defaults */
.diagram {
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.diagram text {
  font-family: "Inter", system-ui, sans-serif;
  fill: var(--ivory);
  font-weight: 500;
}
.diagram .label-strong { font-weight: 700; }
.diagram .label-muted { fill: var(--slate-soft); }
.diagram .label-accent { fill: var(--teal-bright); }
.diagram .label-coral  { fill: var(--coral-bright); }
.diagram .stroke-accent { stroke: var(--teal-bright); }
.diagram .stroke-coral  { stroke: var(--coral-bright); }
.diagram .stroke-ivory  { stroke: var(--ivory); }
.diagram .fill-accent   { fill: var(--teal-bright); }
.diagram .fill-coral    { fill: var(--coral-bright); }
.diagram .fill-navy     { fill: var(--navy-soft); }
.diagram .fill-ivory    { fill: var(--ivory); }

/* Quote / pull text */
.pull-quote {
  font-size: 1.6em;
  line-height: 1.25;
  font-weight: 600;
  max-width: 18ch;
  margin: 0 auto;
  letter-spacing: -0.02em;
}
.pull-quote-attrib {
  margin-top: 1.2em;
  font-size: 0.7em;
  color: var(--slate-soft);
  letter-spacing: 0.06em;
}

/* Small footer/credit row */
.slide-foot {
  position: absolute;
  bottom: 2.5vh;
  left: 6vw;
  right: 6vw;
  display: flex;
  justify-content: space-between;
  font-size: 0.45em;
  color: var(--slate-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Reveal controls / progress tuned for our palette */
.reveal .controls {
  color: var(--teal-bright);
}
.reveal .progress {
  color: var(--teal-bright);
  height: 4px;
}
.reveal .progress span { background: linear-gradient(90deg, var(--teal-bright), var(--coral-bright)); }

/* Print-to-PDF tweaks (reveal supports ?print-pdf) */
@media print {
  .reveal-viewport { background: var(--navy) !important; }
}

/* Smaller viewport adjustments */
@media (max-width: 900px) {
  .reveal { font-size: 28px; }
  .slide-section .section-num { font-size: 7em; }
  .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================== */
/* Role-coded palette for message segments (used in tokenization,  */
/* LLM context, and tool-call diagrams). One color per role,       */
/* used consistently across every slide.                           */
/* ============================================================== */

:root {
  --role-system:        #B580FF;
  --role-system-bg:     rgba(181, 128, 255, 0.14);
  --role-user:          #3FD0C9;
  --role-user-bg:       rgba(63, 208, 201, 0.14);
  --role-assistant:     #F5F1EA;
  --role-assistant-bg:  rgba(245, 241, 234, 0.08);
  --role-tool-def:      #F5B547;
  --role-tool-def-bg:   rgba(245, 181, 71, 0.13);
  --role-tool-call:     #EF6F4A;
  --role-tool-call-bg:  rgba(239, 111, 74, 0.14);
  --role-tool-result:   #7FD97F;
  --role-tool-result-bg:rgba(127, 217, 127, 0.13);
}

.msg {
  border-radius: 12px;
  padding: 0.55em 0.9em 0.65em;
  margin: 0.35em 0;
  font-size: 0.55em;
  line-height: 1.5;
  border: 1px solid;
  font-family: "Inter", system-ui, sans-serif;
  display: block;
}
.msg .role {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.25em;
  opacity: 0.95;
}
.msg.system     { background: var(--role-system-bg);      border-color: var(--role-system); }
.msg.system     .role { color: var(--role-system); }
.msg.user       { background: var(--role-user-bg);        border-color: var(--role-user); }
.msg.user       .role { color: var(--role-user); }
.msg.assistant  { background: var(--role-assistant-bg);   border-color: rgba(245,241,234,0.45); }
.msg.assistant  .role { color: var(--ivory); }
.msg.tooldef    { background: var(--role-tool-def-bg);    border-color: var(--role-tool-def); }
.msg.tooldef    .role { color: var(--role-tool-def); }
.msg.toolcall   { background: var(--role-tool-call-bg);   border-color: var(--role-tool-call); }
.msg.toolcall   .role { color: var(--role-tool-call); }
.msg.toolresult { background: var(--role-tool-result-bg); border-color: var(--role-tool-result); }
.msg.toolresult .role { color: var(--role-tool-result); }
.msg code, .msg .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95em;
  background: rgba(0,0,0,0.18);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--ivory);
}

/* Inline token chips with consistent color cycling */
.tok-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  align-items: flex-end;
  justify-content: center;
  margin: 0.4em 0;
}
.tok {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55em;
  padding: 0.4em 0.7em;
  border-radius: 8px;
  border: 1.5px solid;
  background: rgba(255,255,255,0.04);
  line-height: 1.2;
  letter-spacing: 0;
}
.tok .id { font-size: 0.7em; color: var(--slate-soft); margin-top: 0.2em; }
.tok.t1 { border-color: var(--role-user);        background: var(--role-user-bg); }
.tok.t2 { border-color: var(--role-tool-call);   background: var(--role-tool-call-bg); }
.tok.t3 { border-color: var(--role-tool-def);    background: var(--role-tool-def-bg); }
.tok.t4 { border-color: var(--role-system);      background: var(--role-system-bg); }
.tok.t5 { border-color: var(--role-tool-result); background: var(--role-tool-result-bg); }
.tok.t6 { border-color: rgba(245,241,234,0.5);   background: rgba(245,241,234,0.06); }

/* Embedded video frame */
.video-frame {
  width: 100%;
  max-width: 1100px;
  margin: 0.6em auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* "Suggested improved example" pill */
.improved-pill {
  display: inline-block;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(63, 208, 201, 0.12);
  border: 1px solid rgba(63, 208, 201, 0.35);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  margin-bottom: 0.8em;
}

/* Video-idea callout — flags places where Eli plans to drop a generated clip */
.video-idea {
  border: 1px dashed rgba(245, 181, 71, 0.5);
  background: rgba(245, 181, 71, 0.06);
  border-radius: 10px;
  padding: 0.7em 0.9em 0.8em;
  font-size: 0.48em;
  color: var(--slate-soft);
  margin-top: 0.9em;
  max-width: 64ch;
  line-height: 1.45;
}
.video-idea .vi-label {
  color: #F5B547;
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35em;
}
.video-idea .vi-prompt {
  display: block;
  background: rgba(0,0,0,0.18);
  border-radius: 6px;
  padding: 0.6em 0.7em;
  color: var(--ivory);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  margin-top: 0.4em;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* Vibe-coding targets grid */
.targets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1em;
  width: 100%;
  margin-top: 1.4em;
}
.target {
  padding: 1.4em 1.2em 1.6em;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.target h3 { font-size: 1em; margin: 0 0 0.2em; color: var(--ivory); }
.target p  { font-size: 0.55em; color: var(--slate-soft); margin: 0; line-height: 1.45; }
.target .target-ic {
  font-size: 1.4em;
  margin-bottom: 0.4em;
  color: var(--teal-bright);
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.04em;
}

/* Two-up compare layout (e.g. example vs suggested-improved-example) */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  width: 100%;
  margin-top: 0.6em;
}
.compare > .col {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.2em 1.3em 1.4em;
}
.compare h3 { font-size: 0.95em; margin: 0 0 0.5em; }
.compare p  { font-size: 0.6em; color: var(--slate-soft); }
.compare .as-prompt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55em;
  background: rgba(0,0,0,0.22);
  padding: 0.8em 0.9em;
  border-radius: 8px;
  color: var(--ivory);
  white-space: pre-wrap;
  line-height: 1.45;
  margin-top: 0.6em;
}

/* Conversation stack — vertical message bubbles laid out like a chat log */
.convo {
  width: 100%;
  max-width: 920px;
  margin: 0.8em auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

/* Demo-list (numbered cluster for the Demos section) */
.demo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9em;
  margin-top: 0.6em;
  width: 100%;
}
.demo-list .demo {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.9em 1em 1em;
  font-size: 0.55em;
  line-height: 1.45;
  color: var(--ivory);
}
.demo-list .demo .demo-n {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  color: var(--teal-bright);
  font-size: 0.95em;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.demo-list .demo strong { color: var(--ivory); }
.demo-list .demo em { color: var(--coral-bright); }

/* "Who am I" personal bullets, two-column tight layout */
.bio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2em;
  margin-top: 1em;
  width: 100%;
}
.bio-grid h4 { margin-bottom: 0.4em; }
.bio-grid ul { font-size: 0.65em; padding-left: 1.1em; max-width: 32ch; }
.bio-grid ul li { margin: 0.3em 0; }

/* ============================================================== */
/* Question board · audience-question intake (with localStorage)   */
/* and end-of-class review board. Same look, two modes.            */
/* ============================================================== */

.question-board {
  width: 100%;
  max-width: 880px;
  margin: 0.9em auto 0;
}
.qb-form {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.8em;
  width: 100%;
}
.qb-input {
  flex: 1;
  padding: 0.65em 0.95em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 0.5em;
  outline: none;
  letter-spacing: -0.005em;
  transition: border-color 0.15s, background 0.15s;
}
.qb-input::placeholder { color: var(--slate-soft); }
.qb-input:focus {
  border-color: var(--teal-bright);
  background: rgba(63, 208, 201, 0.08);
}

.qb-add, .qb-clear {
  padding: 0.65em 1.3em;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.qb-add {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  color: var(--ink);
}
.qb-add:hover  { background: #5BDED8; border-color: #5BDED8; }
.qb-add:active { transform: translateY(1px); }
.qb-clear {
  background: transparent;
  border-color: rgba(245, 241, 234, 0.3);
  color: var(--slate-soft);
}
.qb-clear:hover {
  border-color: var(--coral);
  color: var(--coral-bright);
}

.qb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: q;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}
.qb-list li {
  counter-increment: q;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--teal-bright);
  border-radius: 10px;
  padding: 0.65em 1em 0.65em 2.6em;
  position: relative;
  font-size: 0.5em;
  line-height: 1.45;
  color: var(--ivory);
}
.qb-list li::before {
  content: counter(q);
  position: absolute;
  left: 0.9em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal-bright);
  font-weight: 700;
  font-size: 1.05em;
  font-family: "JetBrains Mono", monospace;
}

.qb-empty {
  text-align: center;
  font-size: 0.45em;
  color: var(--slate-soft);
  font-style: italic;
  padding: 0.8em 0;
  margin: 0;
}

/* ============================================================== */
/* Tap-to-flip Eli photo on the bio slide.                          */
/* ============================================================== */

/* Bio slide: stack Day Job + Rest of Me in a single left column with a
   constrained width so the photo on the right has clean empty space. */
[data-slide-id="bio"] .slide-body {
  justify-content: flex-start;
  padding-top: 6vh;
}
.bio-stack {
  max-width: 44%;        /* leave the right ~half for the photo */
  font-size: 0.95em;
}
.bio-stack ul {
  padding-left: 1.1em;
  margin: 0;
}
.bio-stack ul li {
  font-size: 0.62em;
  line-height: 1.5;
  margin: 0.3em 0;
}
.bio-stack h4 {
  margin-bottom: 0.5em;
}

/* The bio slide's <section> IS the positioning context (reveal.js sets
   it position:absolute). Pixel coordinates here scale with reveal's
   transform, so the photo always lands in the slide's true bottom-right
   corner regardless of viewport. Explicit width + height — aspect-ratio
   on a <button> doesn't always honor `height: auto`. */
[data-slide-id="bio"] .eli-photo-btn {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width:  720px;   /* ≈ half the 1600-wide slide */
  height: 480px;   /* 3:2 photo aspect */
}
.eli-photo-btn {
  display: block;
  padding: 0;
  background: transparent;
  border: 4px solid rgba(255,255,255,0.85);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.45),
    0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.eli-photo-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.5),
    0 6px 16px rgba(0,0,0,0.3);
}
.eli-photo-btn:active { transform: translateY(0); }
.eli-photo-btn:focus  { outline: none; }
.eli-photo-btn:focus-visible {
  border-color: var(--teal-bright);
}
.eli-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Video overlays the photo, hidden until the flipbook finishes. */
.eli-photo-btn { position: relative; }
.eli-photo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  background: #000;
}
.eli-photo-btn.playing-video .eli-photo-video { opacity: 1; }
.eli-photo-btn.playing-video > img { opacity: 0; }

/* Skeuomorphic gets a thicker, warmer frame. */
html[data-theme="skeuomorphic"] .eli-photo-btn {
  border: 6px solid var(--teal-bright);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset,
    0 24px 50px rgba(0,0,0,0.5),
    0 6px 14px rgba(0,0,0,0.3);
}


/* ============================================================== */
/* Suno audio-player slide: Verse/Chorus prompt block + a track    */
/* list backed by a single <audio> element.                        */
/* ============================================================== */

.suno-prompt {
  width: 100%;
  max-width: 920px;
  margin: 0.5em auto 0.9em;
  padding: 0.9em 1.1em 1em;
  border-radius: 14px;
  border: 1px solid rgba(245, 181, 71, 0.4);
  background: rgba(245, 181, 71, 0.08);
  font-size: 0.5em;
  line-height: 1.5;
}
.suno-prompt-label {
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F5B547;
  margin-bottom: 0.5em;
}
.suno-prompt-body p {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  color: var(--ivory);
  margin: 0.15em 0 0.5em;
  line-height: 1.45;
}
.suno-section {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-bright);
  margin-top: 0.2em;
}

.player {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.7em 0.9em 0.85em;
}
.reveal ol.player-list,
.reveal ul.player-list {
  list-style: none;
  margin: 0 0 0.7em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45em;
}
.reveal .player-list li {
  cursor: pointer;
  padding: 0.55em 0.7em;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--ivory);
  font-size: 0.46em;
  line-height: 1.35;
  margin: 0;
  transition: background 0.15s, border-color 0.15s;
}
.player-list li:hover {
  background: rgba(63,208,201,0.08);
  border-color: rgba(63,208,201,0.4);
}
.player-list li.playing {
  background: rgba(63,208,201,0.15);
  border-color: var(--teal-bright);
}
.player-list li::before {
  content: "▶";
  display: inline-block;
  color: var(--teal-bright);
  margin-right: 0.45em;
  font-size: 0.9em;
}
.player-list li.playing::before { content: "♪"; color: var(--coral-bright); }
.player-list li .tr-style {
  display: block;
  color: var(--slate-soft);
  font-size: 0.85em;
  margin-top: 0.15em;
  letter-spacing: 0.04em;
}

.player-audio {
  width: 100%;
  display: block;
  margin: 0.4em 0 0.3em;
  border-radius: 8px;
  background: transparent;
  filter: invert(0); /* keep native controls; theme tweaks below */
}
html[data-mode="dark"] .player-audio,
html[data-theme="terminal"] .player-audio,
html[data-theme="skeuomorphic"][data-mode="dark"] .player-audio {
  /* Most browsers show a dark native control on dark page; this is a
     gentle nudge for those that don't. */
  filter: brightness(1) contrast(1);
}

.player-now {
  font-size: 0.46em;
  color: var(--slate-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================== */
/* Future-class promo slide: title + bullets on the left, QR on    */
/* the right. Used by the three "Next class" slides.               */
/* ============================================================== */

.class-promo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3vw;
  align-items: center;
  width: 100%;
  margin-top: 0.4em;
}
.class-promo-text { min-width: 0; }
.class-promo-text ul { padding-left: 1.1em; }
.class-promo-text ul li { margin: 0.35em 0; line-height: 1.45; }
.class-promo-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.class-qr {
  width: 260px;
  height: 260px;
  background: var(--ivory);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  image-rendering: pixelated;
}
.class-qr.broken {
  background: rgba(255,255,255,0.05);
  border: 2px dashed var(--slate-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5em;
  color: var(--slate-soft);
}
.qr-caption {
  margin-top: 0.7em;
  font-size: 0.4em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

/* Skeuomorphic gets a beveled tile around the QR. */
html[data-theme="skeuomorphic"] .class-qr {
  background: #FFF8E8;
  border: 1px solid var(--teal-bright);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 18px 36px rgba(0,0,0,0.35),
    0 4px 10px rgba(0,0,0,0.2);
}

/* ============================================================== */
/* Interactive 3D viewer (three.js) for the Demo 6 slide.          */
/* ============================================================== */

.threed-viewer {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  margin: 0.4em auto 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.06), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.18));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  touch-action: none; /* let OrbitControls own pointer gestures */
  cursor: grab;
}
.threed-viewer:active { cursor: grabbing; }
.threed-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}
.threed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--slate-soft);
  letter-spacing: 0.08em;
  pointer-events: none;
  background: inherit;
  transition: opacity 0.4s ease;
}
.threed-loading.hidden { opacity: 0; }
.threed-hint {
  position: absolute;
  left: 50%;
  bottom: 0.9em;
  transform: translateX(-50%);
  font-size: 0.42em;
  color: var(--slate-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.35);
  padding: 0.45em 0.9em;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.85;
  white-space: nowrap;
}

/* Light-mode hint contrast */
html[data-mode="light"] .threed-hint,
html[data-theme="paper"] .threed-hint {
  background: rgba(255,255,255,0.65);
  color: var(--slate);
}

/* Review mode: slightly more spacious bubbles. */
.qb-review .qb-list li {
  font-size: 0.55em;
  border-left-color: var(--coral-bright);
  padding: 0.8em 1.1em 0.8em 2.8em;
}
.qb-review .qb-list li::before { color: var(--coral-bright); }

/* ============================================================== */
/* THEMES + DARK/LIGHT MODE                                         */
/*                                                                  */
/* Switching themes works by overriding the same color tokens the   */
/* deck already uses (--ivory, --navy, --teal-bright, etc.) on the  */
/* root <html>, plus a handful of skeuomorphic-specific selectors   */
/* further down. SVG diagrams keep their original palette by        */
/* design: they're the "branded" content, not the chrome.           */
/* ============================================================== */

/* Smooth color transitions when switching themes. */
.reveal, .reveal-viewport, .card, .msg, .target, .qb-input, .qb-add, .qb-clear,
.qb-list li, .theme-toolbar, .theme-toolbar button {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* ------------- MODERN · light mode (current default = dark) ----- */
html[data-theme="modern"][data-mode="light"] {
  --ivory:       #1A2536;
  --ivory-deep:  #2A3A55;
  --navy:        #F4EFE3;
  --navy-deep:   #E9E1CE;
  --navy-soft:   #FFFFFF;
  --slate:       #4A5766;
  --slate-soft:  #6B7585;
  --teal-bright: #0E8581;
  --teal-dark:   #0B6B66;
  --coral-bright:#C9532E;
  --coral-dark:  #A0411F;
  --ink:         #1A2536;
}
html[data-theme="modern"][data-mode="light"] .reveal-viewport {
  background:
    radial-gradient(ellipse at top right, rgba(14, 133, 129, 0.10), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(201, 83, 46, 0.08), transparent 55%),
    #F4EFE3;
}
html[data-theme="modern"][data-mode="light"] .card,
html[data-theme="modern"][data-mode="light"] .target {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
html[data-theme="modern"][data-mode="light"] .reveal h4 { color: #0E8581; }
html[data-theme="modern"][data-mode="light"] .reveal strong { color: #0B6B66; }
html[data-theme="modern"][data-mode="light"] .reveal em { color: #C9532E; }

/* ------------- PAPER · always light, editorial / newsprint ------ */
html[data-theme="paper"] {
  --ivory:       #1A1A1A;
  --ivory-deep:  #2A2A2A;
  --navy:        #F6F1E4;
  --navy-deep:   #EAE2CD;
  --navy-soft:   #FFFDF7;
  --slate:       #4A4A4A;
  --slate-soft:  #6E6E6E;
  --teal-bright: #1A4D7A;
  --teal-dark:   #14406B;
  --coral-bright:#A8341E;
  --coral-dark:  #7C2614;
  --ink:         #1A1A1A;
}
html[data-theme="paper"] .reveal {
  font-family: "Source Serif 4", "Georgia", "Times New Roman", serif;
}
html[data-theme="paper"] .reveal h1,
html[data-theme="paper"] .reveal h2,
html[data-theme="paper"] .reveal h3 {
  font-family: "Source Serif 4", "Georgia", serif;
  letter-spacing: -0.015em;
}
html[data-theme="paper"] .reveal-viewport {
  background: #F6F1E4;
}
html[data-theme="paper"] .card,
html[data-theme="paper"] .target,
html[data-theme="paper"] .compare > .col {
  background: rgba(0,0,0,0.025);
  border: 1px solid rgba(0,0,0,0.1);
}

/* ------------- TERMINAL · always dark, phosphor green ----------- */
html[data-theme="terminal"] {
  --ivory:       #C4FFC4;
  --ivory-deep:  #80E080;
  --navy:        #050A05;
  --navy-deep:   #000300;
  --navy-soft:   #0B1A0B;
  --slate:       #4A8A4A;
  --slate-soft:  #5A8A5A;
  --teal-bright: #7FFF7F;
  --teal-dark:   #3FA63F;
  --coral-bright:#FFD060;
  --coral-dark:  #D89538;
  --ink:         #050A05;
}
html[data-theme="terminal"] .reveal,
html[data-theme="terminal"] .reveal h1,
html[data-theme="terminal"] .reveal h2,
html[data-theme="terminal"] .reveal h3,
html[data-theme="terminal"] .reveal h4 {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0;
}
html[data-theme="terminal"] .reveal h1 { font-size: 2.6em; }
html[data-theme="terminal"] .reveal h2 { font-size: 1.8em; }
html[data-theme="terminal"] .reveal-viewport {
  background:
    repeating-linear-gradient(180deg, rgba(127,255,127,0.03) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center, rgba(127,255,127,0.06), transparent 70%),
    #050A05;
}
html[data-theme="terminal"] .card,
html[data-theme="terminal"] .target,
html[data-theme="terminal"] .msg,
html[data-theme="terminal"] .compare > .col {
  background: rgba(127,255,127,0.03);
  border: 1px solid rgba(127,255,127,0.25);
  box-shadow: 0 0 12px rgba(127,255,127,0.05) inset;
}
html[data-theme="terminal"] .reveal strong { color: #B5FF6B; }
html[data-theme="terminal"] .reveal em     { color: #FFD060; }
html[data-theme="terminal"] .qb-list li {
  border-left-color: #7FFF7F;
  font-family: "JetBrains Mono", monospace;
}

/* ------------- SKEUOMORPHIC · dark (leather + brass) ------------ */
html[data-theme="skeuomorphic"][data-mode="dark"] {
  --ivory:       #F4E7CB;
  --ivory-deep:  #D8C7A2;
  --navy:        #2A1A18;
  --navy-deep:   #1A0E0C;
  --navy-soft:   #3C2620;
  --slate:       #8E6F50;
  --slate-soft:  #B8956E;
  --teal-bright: #D9B45A;   /* brass */
  --teal-dark:   #A3853B;
  --coral-bright:#D17F4F;   /* copper */
  --coral-dark:  #A0552B;
  --ink:         #1A0E0C;
}
html[data-theme="skeuomorphic"][data-mode="dark"] .reveal {
  font-family: "Inter", "Helvetica Neue", sans-serif;
}
html[data-theme="skeuomorphic"][data-mode="dark"] .reveal h1,
html[data-theme="skeuomorphic"][data-mode="dark"] .reveal h2,
html[data-theme="skeuomorphic"][data-mode="dark"] .reveal h3 {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.01em;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.6),
    0 2px 4px rgba(0,0,0,0.35);
}

/* ------------- SKEUOMORPHIC · light (linen + walnut) ------------ */
html[data-theme="skeuomorphic"][data-mode="light"] {
  --ivory:       #2A1B0C;
  --ivory-deep:  #422B16;
  --navy:        #E8DDC4;
  --navy-deep:   #D6C7A6;
  --navy-soft:   #F7EFD9;
  --slate:       #6C5238;
  --slate-soft:  #7B5E40;
  --teal-bright: #6E4A22;   /* walnut */
  --teal-dark:   #4F341A;
  --coral-bright:#A35420;   /* rust */
  --coral-dark:  #7A3E18;
  --ink:         #2A1B0C;
}
html[data-theme="skeuomorphic"][data-mode="light"] .reveal {
  font-family: "Inter", "Helvetica Neue", sans-serif;
}
html[data-theme="skeuomorphic"][data-mode="light"] .reveal h1,
html[data-theme="skeuomorphic"][data-mode="light"] .reveal h2,
html[data-theme="skeuomorphic"][data-mode="light"] .reveal h3 {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* Shared skeuomorphic chrome: backgrounds, bevels, drop-shadows.
   Avoid background-blend-mode here — headless Chrome chokes on it,
   and the layered gradients give enough warmth on their own. */
html[data-theme="skeuomorphic"][data-mode="light"] .reveal-viewport {
  background:
    repeating-linear-gradient(45deg,
      rgba(110, 74, 34, 0.025) 0 1px,
      transparent 1px 7px),
    repeating-linear-gradient(-45deg,
      rgba(110, 74, 34, 0.02) 0 1px,
      transparent 1px 7px),
    radial-gradient(ellipse at top, rgba(255, 220, 160, 0.4), transparent 60%),
    linear-gradient(180deg, #F2E6CB 0%, #E8DDC4 50%, #DCCFB0 100%);
}
html[data-theme="skeuomorphic"][data-mode="dark"] .reveal-viewport {
  background:
    repeating-linear-gradient(45deg,
      rgba(217, 180, 90, 0.025) 0 1px,
      transparent 1px 7px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.05) 0 1px,
      transparent 1px 7px),
    radial-gradient(ellipse at top, rgba(217, 180, 90, 0.10), transparent 55%),
    linear-gradient(180deg, #3a2420 0%, #2A1A18 50%, #1d0f0d 100%);
}

html[data-theme="skeuomorphic"] .card,
html[data-theme="skeuomorphic"] .target,
html[data-theme="skeuomorphic"] .compare > .col {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.05));
  border: 1px solid var(--teal-bright);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 10px 20px rgba(0,0,0,0.35),
    0 2px 4px rgba(0,0,0,0.25);
  position: relative;
}
html[data-theme="skeuomorphic"][data-mode="light"] .card,
html[data-theme="skeuomorphic"][data-mode="light"] .target,
html[data-theme="skeuomorphic"][data-mode="light"] .compare > .col {
  background: linear-gradient(180deg, #FFF7E4 0%, #F0E3C2 100%);
  border: 1px solid rgba(110, 74, 34, 0.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(0,0,0,0.08) inset,
    0 8px 18px rgba(60,40,15,0.18),
    0 2px 4px rgba(60,40,15,0.10);
}

/* Skeuo: numbered eyebrow becomes an embossed brass tab */
html[data-theme="skeuomorphic"] .card .card-meta {
  display: inline-block;
  padding: 0.18em 0.7em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(217,180,90,0.45), rgba(160,120,40,0.35));
  border: 1px solid var(--teal-bright);
  color: var(--ivory);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset;
}
html[data-theme="skeuomorphic"][data-mode="light"] .card .card-meta {
  background: linear-gradient(180deg, #E0CDA0, #C9B27C);
  color: #2A1B0C;
  border-color: rgba(110, 74, 34, 0.5);
}

/* Skeuo: bullet markers as little 3D pucks */
html[data-theme="skeuomorphic"] .reveal ul li::marker {
  color: var(--teal-bright);
}
html[data-theme="skeuomorphic"] .reveal ul li {
  list-style: none;
  position: relative;
  padding-left: 1.4em;
}
html[data-theme="skeuomorphic"] .reveal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe9a8, var(--teal-bright) 70%, #6a4d12 100%);
  box-shadow:
    0 1px 1px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,0,0,0.25);
}
html[data-theme="skeuomorphic"][data-mode="light"] .reveal ul li::before {
  background: radial-gradient(circle at 30% 30%, #f2e1bb, var(--teal-bright) 70%, #3c2614 100%);
  box-shadow:
    0 1px 1px rgba(60,40,15,0.3),
    0 0 0 1px rgba(60,40,15,0.25);
}

/* Skeuo: buttons (form/clear/Add) get a beveled-metal look */
html[data-theme="skeuomorphic"] .qb-add {
  background: linear-gradient(180deg, #f4d27a, var(--teal-bright) 50%, #a87f2e 100%);
  color: #2A1B0C;
  border: 1px solid #6a4d12;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 2px 4px rgba(0,0,0,0.25);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
html[data-theme="skeuomorphic"] .qb-add:hover {
  background: linear-gradient(180deg, #f9dd91, #d9b45a 50%, #a87f2e 100%);
}
html[data-theme="skeuomorphic"] .qb-clear {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.18));
  color: var(--ivory);
  border-color: rgba(180,140,80,0.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset;
}
html[data-theme="skeuomorphic"][data-mode="light"] .qb-clear {
  background: linear-gradient(180deg, #F0E3C2, #D6C39A);
  color: #2A1B0C;
}

/* Skeuo: message bubbles get felt-and-stitching style */
html[data-theme="skeuomorphic"] .msg {
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 4px 10px rgba(0,0,0,0.2);
}
html[data-theme="skeuomorphic"][data-mode="light"] .msg {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 4px 10px rgba(60,40,15,0.12);
}

/* Section divider huge numeral gets a gilded gradient for skeuo */
html[data-theme="skeuomorphic"] .slide-section .section-num {
  background: linear-gradient(180deg, #ffe9a8 0%, var(--teal-bright) 45%, #6a4d12 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.4));
}

/* ============================================================== */
/* THEME TOOLBAR (fixed, top-right, hideable with 'T' key)         */
/* ============================================================== */

.theme-toolbar {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 9999;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 30, 45, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  color: #f5f1ea;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.theme-toolbar.hidden { display: none; }
.theme-toolbar .group {
  display: flex;
  gap: 0.2rem;
  padding: 0 0.25rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.theme-toolbar .group:last-child { border-right: none; }
.theme-toolbar button {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1;
}
.theme-toolbar button:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.theme-toolbar button.active {
  background: #3FD0C9;
  color: #0B1628;
  border-color: #3FD0C9;
}
.theme-toolbar .tb-label {
  font-size: 0.8em;
  opacity: 0.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 0.3rem;
}
.theme-toolbar button[data-mode-toggle] {
  font-size: 1.05em;
  padding: 0.35rem 0.55rem;
}

/* Light-mode toolbar adapts */
html[data-mode="light"] .theme-toolbar,
html[data-theme="paper"] .theme-toolbar {
  background: rgba(255,253,247,0.7);
  color: #2A1B0C;
  border-color: rgba(0,0,0,0.12);
}
html[data-mode="light"] .theme-toolbar button:hover,
html[data-theme="paper"] .theme-toolbar button:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}
html[data-mode="light"] .theme-toolbar button.active,
html[data-theme="paper"] .theme-toolbar button.active {
  background: #0E8581;
  color: #FFFDF7;
  border-color: #0E8581;
}
html[data-theme="terminal"] .theme-toolbar {
  background: rgba(5, 10, 5, 0.78);
  color: #7FFF7F;
  border-color: rgba(127,255,127,0.3);
  font-family: "JetBrains Mono", monospace;
  box-shadow: 0 0 12px rgba(127,255,127,0.15);
}
html[data-theme="terminal"] .theme-toolbar button.active {
  background: #7FFF7F;
  color: #050A05;
  border-color: #7FFF7F;
}
