/* Presentation viewer in the Agent results tab. The SVG itself carries the
   deck theme; this file only provides the stage, thumbnails and responsive
   shell. */
#result-actions.slides-mode .document-toggles,
#result-actions.slides-mode .document-wrap,
#result-actions.slides-mode .pager,
#result-actions.slides-mode #compare-version,
#result-actions.slides-mode #edit-version,
#result-actions.slides-mode #copy-result,
#result-actions.slides-mode #export-md,
#result-actions.slides-mode #export-docx { display: none !important; }

#slides-actions { margin-top: 1rem; }
.slides-toolbar {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-bottom: .75rem;
}
.slides-toolbar .page { font-variant-numeric: tabular-nums; color: var(--text-dim); }
.slides-theme-choice {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px; border: 1px solid var(--border-3); border-radius: 999px;
  background: var(--canvas);
}
.slides-theme-btn {
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-3); font-size: 0.72rem; font-weight: 600;
  padding: 0.28rem 0.55rem; cursor: pointer;
}
.slides-theme-btn:hover { color: var(--ink); background: var(--hover); }
.slides-theme-btn.on {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.slides-theme-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.slides-notes-toggle {
  border: 1px solid var(--border-3); border-radius: 999px;
  background: transparent; color: var(--ink-2);
  min-height: 1.8rem; padding: 0 0.7rem;
  font-size: 0.74rem; font-weight: 600; cursor: pointer;
}
.slides-notes-toggle:hover { color: var(--ink); border-color: var(--border-2); background: var(--hover); }
.slides-notes-toggle.on {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border-3));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.slides-notes-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* 面板窄，下载只留图标：与全屏按钮同尺寸，不再把文字挤到第二行 */
.slides-download-icon {
  flex: none; width: 1.9rem; height: 1.9rem;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent);
}
.slides-download-icon:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.slides-download-icon .aw-svg { width: 1rem; height: 1rem; }
.slides-stage {
  width: 100%; max-width: 1180px; margin: 0 auto;
  aspect-ratio: 16 / 9; background: #111; border-radius: 14px;
  overflow: hidden; outline: none; box-shadow: 0 18px 50px -24px rgba(0,0,0,.45);
}
.slides-stage:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 18px 50px -24px rgba(0,0,0,.45); }
.slides-svg { display: block; width: 100%; height: 100%; }
.slides-thumbs {
  display: flex; gap: .6rem; overflow-x: auto; padding: .9rem 0 .35rem;
  scrollbar-width: thin;
}
.slides-thumb {
  flex: 0 0 154px; padding: 0; border: 1px solid var(--border);
  border-radius: 9px; overflow: hidden; background: #fff;
  cursor: pointer; opacity: .72; transition: opacity .15s, border-color .15s, transform .15s;
}
.slides-thumb:hover { opacity: 1; transform: translateY(-1px); }
.slides-thumb.on { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.slides-thumb-svg { display: block; width: 100%; aspect-ratio: 16 / 9; }
.slides-notes {
  margin-top: .85rem; padding: .85rem 1rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2, rgba(0,0,0,.03));
  color: var(--text-dim); font-size: .88rem; line-height: 1.65; white-space: pre-wrap;
}
@media (max-width: 720px) {
  .slides-stage { border-radius: 10px; }
  .slides-thumb { flex-basis: 112px; }
  .slides-toolbar { gap: .35rem; }
  .slides-toolbar .btn span:last-child { display: none; }
}

/* Fullscreen preview: the stage keeps the 16:9 SVG and fills the screen. */
#slides-stage:fullscreen {
  width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto;
  border-radius: 0; background: #0b0b0b; display: flex; align-items: center;
  justify-content: center; box-shadow: none;
}
#slides-stage:fullscreen .slides-svg {
  width: min(100vw, 177.777vh); height: auto;
}
