:root {
  --t-bg: #0e1014;
  --t-text: #e8eef4;
  --t-body: #c8d0d8;
  --t-muted: #a8b2bd;
  --t-faint: #3a4250;
  --t-accent: #5be0c8;
  --t-accent-ink: #06221d;
  --t-blue: #7cc7ff;
  --t-green: #7ee787;
  --t-purple: #c4a7e7;
  --t-red: #ff7b72;
  --t-border: #1f242c;
  --t-panel: #161a20;
  --t-panel2: #0a0c10;
  --t-titlebar: #0a0c10;
  --t-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', ui-monospace, monospace;
  --t-sans: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;

  --slidev-theme-primary: var(--t-accent, #67e8f9);
  --slidev-code-background: var(--t-panel, #161a20);
  --slidev-code-foreground: var(--t-body, #dbe1e6);
  --slidev-controls-foreground: var(--t-faint, #3a4250);
  --slidev-click-highlight-color: var(--t-accent, #67e8f9);

  --presentation-page-bg: var(--t-bg, #0b0d10);
  --presentation-panel: var(--t-panel, #161a20);
  --presentation-panel-strong: var(--t-panel, #161a20);
  --presentation-panel-border: var(--t-border, #1f242c);
  --presentation-stage-bg: var(--t-bg, #0b0d10);
  --presentation-stage-shadow: none;
  --presentation-accent: var(--t-accent, #67e8f9);
  --presentation-accent-soft: color-mix(in srgb, var(--t-accent, #67e8f9) 12%, transparent);
  --presentation-text-primary: var(--t-text, #e8eef4);
  --presentation-text-secondary: var(--t-body, #dbe1e6);
  --presentation-text-tertiary: var(--t-muted, #a8b2bd);
  --presentation-line: var(--t-border, #1f242c);
  --presentation-line-strong: var(--t-accent, #67e8f9);
}

html,
body,
#app,
.slidev-layout {
  background: var(--t-bg, #0b0d10);
  color: var(--t-body, #dbe1e6);
  font-family: var(--t-sans);
}

.slidev-layout {
  padding: clamp(2rem, 4vw, 4rem);
}

.slidev-layout,
.slidev-page,
.slidev-slide-container,
.slidev-slide-content {
  background: var(--t-bg, #0b0d10);
}

.slidev-layout * {
  box-sizing: border-box;
}

.slidev-layout h1,
.slidev-layout h2,
.slidev-layout h3,
.slidev-layout h4,
.ppt-slide-body h1,
.ppt-slide-body h2,
.ppt-slide-body h3,
.ppt-slide-body h4,
.ppt-slide .article-content h1,
.ppt-slide .article-content h2,
.ppt-slide .article-content h3,
.ppt-slide .article-content h4,
.ppt-presenter-slide .article-content h1,
.ppt-presenter-slide .article-content h2,
.ppt-presenter-slide .article-content h3,
.ppt-presenter-slide .article-content h4 {
  color: var(--t-text, #e8eef4);
  font-family: var(--t-mono);
  font-weight: 600;
  letter-spacing: 0;
}

.slidev-layout h1::before,
.ppt-slide-body h1::before,
.ppt-slide .article-content h1::before,
.ppt-presenter-slide .article-content h1::before {
  content: '# ';
  color: var(--t-accent, #67e8f9);
}

.slidev-layout h2::before,
.ppt-slide-body h2::before,
.ppt-slide .article-content h2::before,
.ppt-presenter-slide .article-content h2::before {
  content: '## ';
  color: var(--t-accent, #67e8f9);
}

.slidev-layout h3::before,
.ppt-slide-body h3::before,
.ppt-slide .article-content h3::before,
.ppt-presenter-slide .article-content h3::before {
  content: '### ';
  color: var(--t-accent, #67e8f9);
}

.slidev-layout h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.slidev-layout h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.14;
}

.slidev-layout h3 {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.slidev-layout h4 {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.25;
}

.slidev-layout p,
.slidev-layout li,
.slidev-layout dd,
.slidev-layout td,
.slidev-layout figcaption {
  color: var(--t-body, #dbe1e6);
  font-family: var(--t-sans);
}

.slidev-layout strong {
  color: var(--t-text, #e8eef4);
}

.slidev-layout em {
  color: var(--t-muted, #a8b2bd);
}

.slidev-layout a,
.ppt-slide-body a,
.ppt-slide .article-content a,
.ppt-presenter-slide .article-content a {
  color: var(--t-blue, #7cc7ff);
  text-decoration: underline;
  text-decoration-color: var(--t-blue, #7cc7ff);
}

.slidev-layout pre,
.slidev-layout .shiki,
.slidev-layout div[class*='language-'],
.ppt-slide-body pre,
.ppt-slide .article-content pre,
.ppt-presenter-slide .article-content pre {
  overflow-x: auto;
  border: 1px solid var(--t-border, #1f242c);
  border-radius: 0;
  background: var(--t-panel, #161a20) !important;
  color: var(--t-body, #dbe1e6);
  font-family: var(--t-mono);
}

.slidev-layout pre code,
.slidev-layout .shiki code,
.ppt-slide-body pre code,
.ppt-slide .article-content pre code,
.ppt-presenter-slide .article-content pre code {
  display: block;
  padding: 14px 16px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--t-mono);
  line-height: 1.6;
}

.slidev-layout :not(pre) > code,
.ppt-slide-body :not(pre) > code,
.ppt-slide .article-content :not(pre) > code,
.ppt-presenter-slide .article-content :not(pre) > code {
  padding: 1px 6px;
  border-radius: 0;
  background: var(--t-panel, #161a20);
  color: var(--t-green, #7ee787);
  font-family: var(--t-mono);
  font-size: 0.92em;
}

.slidev-layout blockquote,
.ppt-slide-body blockquote,
.ppt-slide .article-content blockquote,
.ppt-presenter-slide .article-content blockquote {
  margin-left: 0;
  padding-left: 1em;
  border-left: 3px solid var(--t-accent, #67e8f9);
  color: var(--t-muted, #a8b2bd);
  font-style: italic;
}

.slidev-layout ul,
.ppt-slide-body ul,
.ppt-slide .article-content ul,
.ppt-presenter-slide .article-content ul {
  list-style: none;
  padding-left: 0;
}

.slidev-layout ul > li,
.ppt-slide-body ul > li,
.ppt-slide .article-content ul > li,
.ppt-presenter-slide .article-content ul > li {
  position: relative;
  padding-left: 1.45em;
}

.slidev-layout ul > li::before,
.ppt-slide-body ul > li::before,
.ppt-slide .article-content ul > li::before,
.ppt-presenter-slide .article-content ul > li::before {
  content: '❯ ';
  position: absolute;
  left: 0;
  color: var(--t-accent, #67e8f9);
  font-family: var(--t-mono);
}

.slidev-layout ol,
.ppt-slide-body ol,
.ppt-slide .article-content ol,
.ppt-presenter-slide .article-content ol {
  list-style: decimal-leading-zero;
  padding-left: 2.2em;
}

.slidev-layout ol > li::marker,
.ppt-slide-body ol > li::marker,
.ppt-slide .article-content ol > li::marker,
.ppt-presenter-slide .article-content ol > li::marker {
  color: var(--t-accent, #67e8f9);
  font-family: var(--t-mono);
}

.slidev-layout table,
.ppt-slide-body table,
.ppt-slide .article-content table,
.ppt-presenter-slide .article-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--t-border, #1f242c);
  color: var(--t-body, #dbe1e6);
  font-family: var(--t-mono);
}

.slidev-layout th,
.slidev-layout td,
.ppt-slide-body th,
.ppt-slide-body td,
.ppt-slide .article-content th,
.ppt-slide .article-content td,
.ppt-presenter-slide .article-content th,
.ppt-presenter-slide .article-content td {
  padding: 8px 12px;
  border: 1px solid var(--t-border, #1f242c);
  text-align: left;
}

.slidev-layout th,
.ppt-slide-body th,
.ppt-slide .article-content th,
.ppt-presenter-slide .article-content th {
  background: var(--t-panel2, #0a0c10);
  color: var(--t-text, #e8eef4);
}

.slidev-page-number,
.slidev-page-number span,
.slidev-progress,
.ppt-counter {
  color: var(--t-faint, #3a4250);
  font-family: var(--t-mono);
  font-variant-numeric: tabular-nums;
}

/* Slidev renders numeric counters differently by mode; format should read as [NN/MM] when custom markup exposes total/current values. */
.slidev-page-number::before {
  content: '[';
}

.slidev-page-number::after {
  content: ']';
}

.slidev-layout header,
.slidev-layout footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--t-border, #1f242c);
  background: var(--t-titlebar, #0a0c10);
  color: var(--t-muted, #a8b2bd);
  font-family: var(--t-mono);
  font-size: 12px;
}

.slidev-layout footer {
  border-top: 1px solid var(--t-border, #1f242c);
  border-bottom: 0;
}

.slidev-layout header::before,
.slidev-layout footer::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: #ff5f57;
  box-shadow: 17px 0 0 #febc2e, 34px 0 0 #28c840;
  margin-right: 42px;
}

.slidev-titlebar,
.t-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--t-border, #1f242c);
  background: var(--t-titlebar, #0a0c10);
  color: var(--t-muted, #a8b2bd);
  font-family: var(--t-mono);
}

.slidev-titlebar__dots,
.t-titlebar__dots {
  display: flex;
  gap: 6px;
}

.slidev-titlebar__dot,
.t-titlebar__dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 99px;
}

.slidev-titlebar__dot--red,
.t-titlebar__dot--red {
  background: #ff5f57;
}

.slidev-titlebar__dot--yellow,
.t-titlebar__dot--yellow {
  background: #febc2e;
}

.slidev-titlebar__dot--green,
.t-titlebar__dot--green {
  background: #28c840;
}

.slidev-notes,
.notes {
  border: 1px solid var(--t-border, #1f242c);
  background: var(--t-panel2, #0a0c10);
  color: var(--t-body, #dbe1e6);
  font-family: var(--t-mono);
}

.slidev-vclick-target,
.slidev-vclick-hidden,
.slidev-vclick-prior,
.slidev-vclick-current {
  --slidev-click-highlight-color: var(--t-accent, #67e8f9);
}

.slidev-layout mark,
.slidev-layout .highlight,
.slidev-layout .slidev-vclick-current {
  background: color-mix(in srgb, var(--t-accent, #67e8f9) 22%, transparent);
  color: var(--t-text, #e8eef4);
}

.slidev-layout .col-left,
.slidev-layout .col-right,
.slidev-layout .col-1,
.slidev-layout .col-2,
.slidev-layout .row-1,
.slidev-layout .row-2 {
  min-width: 0;
}

.slidev-layout .grid,
.slidev-layout [class*='grid-cols-'] {
  min-width: 0;
}

.presentation-page {
  margin: 0;
  min-height: 100vh;
  background: var(--presentation-page-bg);
  color: var(--presentation-text-primary);
  font-family: var(--t-sans);
  -webkit-font-smoothing: antialiased;
}

.presentation-page * {
  box-sizing: border-box;
}

.presentation-page a {
  color: var(--t-blue, #7cc7ff);
  text-decoration: underline;
}

.presentation-page--audience .ppt-audience-app,
.presentation-page--presenter .ppt-presenter-app {
  min-height: 100vh;
  padding: 18px;
}

.presentation-page--audience .ppt-audience-app {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.presentation-page--presenter .ppt-presenter-app {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.ppt-audience-header,
.ppt-presenter-header {
  border: 1px solid var(--presentation-panel-border);
  border-radius: 0;
  background: var(--t-titlebar, #0a0c10);
  box-shadow: none;
}

.ppt-audience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.ppt-presenter-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
}

.ppt-audience-title-wrap {
  min-width: 0;
}

.ppt-audience-title,
.ppt-presenter-title {
  margin: 0;
  color: var(--presentation-text-primary);
  font-family: var(--t-mono);
  letter-spacing: 0;
}

.ppt-audience-title {
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.15;
}

.ppt-presenter-title {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

.ppt-audience-subtitle,
.ppt-presenter-subtitle {
  margin: 8px 0 0;
  color: var(--presentation-text-secondary);
  line-height: 1.55;
}

.ppt-audience-subtitle {
  font-size: 0.95rem;
}

.ppt-presenter-subtitle {
  max-width: 72ch;
  font-size: 0.96rem;
}

.ppt-presenter-kicker {
  margin: 0 0 10px;
  color: var(--presentation-accent);
  font-family: var(--t-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ppt-audience-actions,
.ppt-presenter-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ppt-audience-actions {
  justify-content: flex-end;
}

.ppt-presenter-actions {
  justify-content: flex-end;
}

.ppt-audience-fullscreen,
.ppt-presenter-action,
.ppt-presenter-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--presentation-line);
  border-radius: 0;
  background: var(--presentation-panel-strong);
  color: var(--presentation-text-primary);
  font: inherit;
  font-family: var(--t-mono);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.ppt-audience-fullscreen:hover,
.ppt-presenter-action:hover,
.ppt-presenter-actions button:hover {
  border-color: var(--presentation-line-strong);
  background: var(--t-panel2, #0a0c10);
}

.ppt-shell {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.ppt-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 0;
  background: var(--t-panel, #161a20);
}

.ppt-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--t-accent, #67e8f9);
  transition: width 300ms ease;
}

.ppt-stage {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 18px;
  align-items: center;
  min-height: 0;
}

.ppt-stage[data-ppt-fullscreen-root]:fullscreen,
.ppt-stage[data-ppt-fullscreen-root]:-webkit-full-screen {
  min-height: 100vh;
  padding: 20px;
  background: var(--presentation-page-bg);
}

.ppt-stage[data-ppt-fullscreen-root]:fullscreen .ppt-slide,
.ppt-stage[data-ppt-fullscreen-root]:-webkit-full-screen .ppt-slide {
  height: calc(100vh - 40px);
  aspect-ratio: auto;
}

.ppt-nav {
  width: 56px;
  min-height: 72px;
  border: 1px solid var(--presentation-line);
  border-radius: 0;
  background: var(--presentation-panel);
  color: var(--presentation-text-primary);
  font: inherit;
  font-family: var(--t-mono);
  font-size: 2rem;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.ppt-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--presentation-line-strong);
  background: var(--t-panel2, #0a0c10);
}

.ppt-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ppt-slide,
.ppt-presenter-slide {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: auto;
  padding: clamp(30px, 3.6vw, 64px);
  border-radius: 0;
  border: 1px solid var(--presentation-panel-border);
  background: var(--presentation-stage-bg);
  box-shadow: var(--presentation-stage-shadow);
}

.ppt-slide.is-active,
.ppt-presenter-slide.is-active {
  display: block;
}

.ppt-slide-body,
.ppt-slide-body.article-content,
.ppt-slide-body .article-content,
.ppt-slide .article-content,
.ppt-presenter-slide .article-content {
  margin-top: 0;
  max-width: none;
  color: var(--presentation-text-secondary);
  font-size: clamp(1.08rem, 0.9vw + 0.95rem, 1.48rem);
  line-height: 1.6;
}

.ppt-slide-body h1,
.ppt-slide .article-content h1,
.ppt-presenter-slide .article-content h1 {
  margin-top: 0;
  margin-bottom: 0.6em;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 1.05;
}

.ppt-slide-body h2,
.ppt-slide .article-content h2,
.ppt-presenter-slide .article-content h2 {
  font-size: clamp(1.95rem, 2.5vw, 2.9rem);
  line-height: 1.12;
}

.ppt-slide-body h3,
.ppt-slide .article-content h3,
.ppt-presenter-slide .article-content h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.95rem);
  line-height: 1.18;
}

.ppt-slide-body p,
.ppt-slide-body ul,
.ppt-slide-body ol,
.ppt-slide .article-content p,
.ppt-slide .article-content ul,
.ppt-slide .article-content ol,
.ppt-presenter-slide .article-content p,
.ppt-presenter-slide .article-content ul,
.ppt-presenter-slide .article-content ol {
  max-width: 70ch;
}

.ppt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  color: var(--presentation-text-secondary);
  font-family: var(--t-mono);
  font-size: 0.92rem;
}

.ppt-shortcuts {
  color: var(--presentation-text-tertiary);
}

.ppt-presenter-metrics {
  display: inline-grid;
  gap: 10px;
  justify-items: end;
}

.ppt-presenter-metric {
  min-width: 136px;
  padding: 10px 14px;
  border: 1px solid var(--presentation-panel-border);
  border-radius: 0;
  background: var(--presentation-panel-strong);
  text-align: right;
}

.ppt-presenter-metric-label {
  display: block;
  color: var(--presentation-text-tertiary);
  font-family: var(--t-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ppt-presenter-metric-value {
  display: block;
  margin-top: 4px;
  color: var(--presentation-text-primary);
  font-family: var(--t-mono);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ppt-presenter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.72fr);
  gap: 20px;
  min-height: 0;
}

.ppt-presenter-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--presentation-panel-border);
  border-radius: 0;
  background: var(--presentation-panel);
  box-shadow: none;
}

.ppt-presenter-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--presentation-text-tertiary);
  font-family: var(--t-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ppt-presenter-slide-stage {
  display: grid;
  min-height: 0;
}

.ppt-presenter-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 0;
}

.ppt-presenter-next-empty {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 1px dashed var(--presentation-line);
  border-radius: 0;
  color: var(--presentation-text-tertiary);
  background: var(--t-panel2, #0a0c10);
}

.ppt-presenter-next-empty.is-active {
  display: flex;
}

.ppt-presenter-footer {
  display: grid;
  gap: 10px;
  color: var(--presentation-text-secondary);
  font-family: var(--t-mono);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ppt-audience-app:fullscreen,
.ppt-audience-app:-webkit-full-screen,
.ppt-presenter-app:fullscreen,
.ppt-presenter-app:-webkit-full-screen {
  padding: 24px;
}

@media (max-width: 1120px) {
  .ppt-presenter-header {
    grid-template-columns: 1fr;
  }

  .ppt-presenter-metrics {
    justify-items: start;
    grid-auto-flow: column;
  }

  .ppt-presenter-actions {
    justify-content: flex-start;
  }

  .ppt-presenter-grid {
    grid-template-columns: 1fr;
  }

  .ppt-presenter-side {
    grid-template-rows: auto auto;
  }
}

@media (max-width: 980px) {
  .ppt-audience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ppt-audience-actions {
    justify-content: flex-start;
  }

  .ppt-stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 12px;
  }

  .ppt-nav {
    width: 44px;
    min-height: 60px;
    font-size: 1.7rem;
  }
}
