/* markdown.org tools — presentation editor chrome (the slide styles themselves live in
   presentation-editor.js, so the downloaded deck uses exactly the same ones) */
.pres .mde-panes { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); height: 74vh; min-height: 460px; }
.pres-theme { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; color: var(--heading); }
.pres-theme select { font: inherit; font-weight: 500; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--fg); }

.pres-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; padding: 16px; background: var(--surface-soft); }
.pres-main { flex: 0 0 auto; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-md); }
.pres-nav { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.pres-nav .mde-btn { min-width: 34px; font-size: 1rem; line-height: 1; }
.pres-count { font-weight: 700; color: var(--heading); }
.pres-warn { margin-left: auto; color: var(--warn-fg); background: var(--warn-bg); border: 1px solid var(--warn-bd); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 0.8rem; }
.pres-warn[hidden], .pres-notes[hidden] { display: none; }
.pres-notes { font-size: 0.88rem; color: var(--fg); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; white-space: pre-wrap; }

.pres-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; padding-top: 4px; }
.pres-thumb { position: relative; display: block; width: 100%; min-width: 0; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 0.15s; }
.pres-thumb:hover { border-color: var(--border-strong); }
.pres-thumb.on { border-color: var(--accent); }
.pres-thumb .pres-slide { pointer-events: none; }
.pres-thumb.is-full::after { content: "!"; position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--warn-fg); color: #fff; font: 700 11px/16px var(--font); text-align: center; }

/* present: a full-screen black stage */
.pres-presenting { overflow: hidden; }
.pres-show { position: fixed; inset: 0; z-index: 9500; background: #0b0f19; outline: 0; cursor: pointer; }
.pres-show > .pres-stage { position: absolute; top: 50%; left: 50%; width: min(100vw, 177.78vh); transform: translate(-50%, -50%); }
.pres-show-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.6); color: #fff; font: 600 0.85rem var(--font); transition: opacity 0.6s; pointer-events: none; }
.pres-show-hint.gone { opacity: 0; }
.pres-print-frame { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; visibility: hidden; }

@media (max-width: 720px) {
  .pres .mde-panes { height: auto; min-height: 0; }
  .pres .mde-panes .mde-src { height: 60vh; }
  .pres .mde-panes:not(.show-preview) .pres-side { display: none; }
}
