:root,
.lg-theme-google {
  --lg-color-primary-50: #e8f0fe;
  --lg-color-primary-100: #d2e3fc;
  --lg-color-primary-200: #aecbfa;
  --lg-color-primary-300: #8ab4f8;
  --lg-color-primary-400: #669df6;
  --lg-color-primary-500: #4285f4;
  --lg-color-primary-600: #1a73e8;
  --lg-color-primary-700: #1967d2;
  --lg-color-primary-800: #185abc;
  --lg-color-primary-900: #174ea6;

  --lg-color-neutral-50: #f8f9fa;
  --lg-color-neutral-100: #f1f3f4;
  --lg-color-neutral-200: #e8eaed;
  --lg-color-neutral-300: #dadce0;
  --lg-color-neutral-400: #bdc1c6;
  --lg-color-neutral-500: #9aa0a6;
  --lg-color-neutral-600: #80868b;
  --lg-color-neutral-700: #5f6368;
  --lg-color-neutral-800: #3c4043;
  --lg-color-neutral-900: #202124;

  --lg-color-success: #137333;
  --lg-color-warning: #b06000;
  --lg-color-danger: #d93025;
  --lg-color-info: #1a73e8;

  --lg-color-brand: var(--lg-color-primary-600);
  --lg-color-background: #ffffff;
  --lg-color-surface: #ffffff;
  --lg-color-surface-muted: var(--lg-color-neutral-50);
  --lg-color-border: var(--lg-color-neutral-300);
  --lg-color-text-primary: var(--lg-color-neutral-900);
  --lg-color-text-secondary: var(--lg-color-neutral-700);
  --lg-color-text-tertiary: var(--lg-color-neutral-600);

  --lg-space-1: 4px;
  --lg-space-2: 8px;
  --lg-space-3: 12px;
  --lg-space-4: 16px;
  --lg-space-5: 20px;
  --lg-space-6: 24px;
  --lg-space-8: 32px;
  --lg-space-10: 40px;

  --lg-radius-sm: 4px;
  --lg-radius-md: 8px;
  --lg-radius-lg: 12px;
  --lg-radius-xl: 16px;
  --lg-radius-2xl: 28px;
  --lg-radius-pill: 9999px;

  --lg-shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --lg-shadow-md: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  --lg-shadow-lg: 0 4px 16px rgba(60, 64, 67, 0.2);

  --lg-font-family-sans: "Google Sans", "Roboto", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --lg-font-size-xs: 12px;
  --lg-font-size-sm: 14px;
  --lg-font-size-md: 16px;
  --lg-font-size-lg: 18px;
  --lg-font-size-xl: 20px;

  --lg-motion-fast: 120ms;
  --lg-motion-base: 200ms;
  --lg-motion-slow: 300ms;
  --lg-ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* compatibility aliases for legacy repos */
  --color-primary-50: var(--lg-color-primary-50);
  --color-primary-100: var(--lg-color-primary-100);
  --color-primary-200: var(--lg-color-primary-200);
  --color-primary-300: var(--lg-color-primary-300);
  --color-primary-400: var(--lg-color-primary-400);
  --color-primary-500: var(--lg-color-primary-500);
  --color-primary-600: var(--lg-color-primary-600);
  --color-primary-700: var(--lg-color-primary-700);
  --color-primary-800: var(--lg-color-primary-800);
  --color-primary-900: var(--lg-color-primary-900);

  --color-neutral-50: var(--lg-color-neutral-50);
  --color-neutral-100: var(--lg-color-neutral-100);
  --color-neutral-200: var(--lg-color-neutral-200);
  --color-neutral-300: var(--lg-color-neutral-300);
  --color-neutral-400: var(--lg-color-neutral-400);
  --color-neutral-500: var(--lg-color-neutral-500);
  --color-neutral-600: var(--lg-color-neutral-600);
  --color-neutral-700: var(--lg-color-neutral-700);
  --color-neutral-800: var(--lg-color-neutral-800);
  --color-neutral-900: var(--lg-color-neutral-900);

  --color-background: var(--lg-color-background);
  --color-surface: var(--lg-color-surface);
  --color-text-primary: var(--lg-color-text-primary);
  --color-text-secondary: var(--lg-color-text-secondary);
  --color-text-tertiary: var(--lg-color-text-tertiary);
  --color-border: var(--lg-color-border);

  --radius-sm: var(--lg-radius-sm);
  --radius-md: var(--lg-radius-md);
  --radius-lg: var(--lg-radius-lg);
  --radius-xl: var(--lg-radius-xl);
  --radius-2xl: var(--lg-radius-2xl);
  --radius-full: var(--lg-radius-pill);

  --shadow-sm: var(--lg-shadow-sm);
  --shadow-md: var(--lg-shadow-md);

  --font-family-sans: var(--lg-font-family-sans);
  --font-size-sm: var(--lg-font-size-sm);
  --font-size-base: var(--lg-font-size-md);
  --font-size-lg: var(--lg-font-size-lg);
}


:root,
.lg-brand-blog {
  --lg-color-brand: #1a73e8;
  --lg-color-brand-soft: #e8f0fe;
}


.presentation-page {
  --presentation-page-bg:
    radial-gradient(circle at top right, color-mix(in srgb, var(--lg-color-brand-soft) 88%, white) 0%, #eef4fb 28%, #f6f9fc 65%, #edf2f8 100%);
  --presentation-panel: rgba(255, 255, 255, 0.82);
  --presentation-panel-strong: rgba(255, 255, 255, 0.96);
  --presentation-panel-border: rgba(26, 115, 232, 0.12);
  --presentation-stage-bg: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  --presentation-stage-shadow: 0 20px 48px rgba(60, 64, 67, 0.16);
  --presentation-accent: var(--lg-color-brand);
  --presentation-accent-soft: color-mix(in srgb, var(--lg-color-brand) 12%, white);
  --presentation-text-primary: var(--lg-color-text-primary);
  --presentation-text-secondary: var(--lg-color-text-secondary);
  --presentation-text-tertiary: var(--lg-color-text-tertiary);
  --presentation-line: color-mix(in srgb, var(--lg-color-brand) 12%, var(--lg-color-border));
  --presentation-line-strong: color-mix(in srgb, var(--lg-color-brand) 22%, var(--lg-color-border));
  margin: 0;
  min-height: 100vh;
  background: var(--presentation-page-bg);
  color: var(--presentation-text-primary);
  font-family: var(--font-family-sans, var(--lg-font-family-sans));
  -webkit-font-smoothing: antialiased;
}

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

.presentation-page a {
  color: inherit;
  text-decoration: none;
}

.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: 24px;
  background: var(--presentation-panel);
  box-shadow: var(--lg-shadow-sm);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

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

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

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

.ppt-audience-title,
.ppt-presenter-title {
  margin: 0;
  color: var(--presentation-text-primary);
  font-family: var(--font-family-display, var(--font-family-sans, var(--lg-font-family-sans)));
  letter-spacing: -0.02em;
}

.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-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: var(--lg-radius-pill);
  background: var(--presentation-panel-strong);
  color: var(--presentation-text-primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--lg-motion-base) var(--lg-ease-standard),
    border-color var(--lg-motion-base) var(--lg-ease-standard),
    box-shadow var(--lg-motion-base) var(--lg-ease-standard),
    color var(--lg-motion-base) var(--lg-ease-standard);
}

.ppt-audience-fullscreen:hover,
.ppt-presenter-action:hover,
.ppt-presenter-actions button:hover {
  border-color: var(--presentation-line-strong);
  background: color-mix(in srgb, var(--lg-color-brand-soft) 60%, white);
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.12);
}

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

.ppt-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: var(--lg-radius-pill);
  background: color-mix(in srgb, var(--lg-color-brand) 10%, white);
}

.ppt-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--lg-color-primary-500) 0%, var(--lg-color-primary-700) 100%);
  transition: width var(--lg-motion-slow) var(--lg-ease-standard);
}

.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: 20px;
  background: var(--presentation-panel);
  color: var(--presentation-text-primary);
  font: inherit;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--lg-shadow-sm);
  transition:
    transform var(--lg-motion-base) var(--lg-ease-standard),
    border-color var(--lg-motion-base) var(--lg-ease-standard),
    background var(--lg-motion-base) var(--lg-ease-standard);
}

.ppt-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--presentation-line-strong);
  background: var(--presentation-panel-strong);
}

.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: 30px;
  border: 1px solid color-mix(in srgb, var(--lg-color-brand) 10%, var(--lg-color-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-primary);
  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;
  letter-spacing: -0.04em;
}

.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;
  letter-spacing: -0.03em;
}

.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-slide-body pre,
.ppt-slide .article-content pre,
.ppt-presenter-slide .article-content pre {
  overflow-x: auto;
  border-radius: 18px;
  background: var(--lg-color-neutral-900);
  color: #f8f9fa;
}

.ppt-slide-body blockquote,
.ppt-slide .article-content blockquote,
.ppt-presenter-slide .article-content blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 4px solid color-mix(in srgb, var(--lg-color-brand) 30%, white);
  color: var(--presentation-text-secondary);
}

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

.ppt-counter {
  color: var(--presentation-text-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.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: 18px;
  background: var(--presentation-panel-strong);
  text-align: right;
}

.ppt-presenter-metric-label {
  display: block;
  color: var(--presentation-text-tertiary);
  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-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: 28px;
  background: var(--presentation-panel);
  box-shadow: var(--lg-shadow-sm);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.ppt-presenter-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--presentation-text-tertiary);
  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: 22px;
  color: var(--presentation-text-tertiary);
  background: color-mix(in srgb, var(--lg-color-brand-soft) 42%, white);
}

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

.ppt-presenter-footer {
  display: grid;
  gap: 10px;
  color: var(--presentation-text-secondary);
  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;
  }
}
