/* =====================================================================
   Slides - presentations. Chrome follows the system theme; slides keep
   their own theme colours. Slide drawing CSS lives in slides.js (SLIDE_CSS)
   so the editor, print and picture export share one source.
   ===================================================================== */
.app-slides {
  --s-brand: #ea580c;
  --s-canvas: #e4e7ec;
  --s-on: rgba(var(--accent-rgb), .16);
  --s-slide-shadow: 0 0 0 .5px rgba(15, 23, 42, .1), 0 2px 6px rgba(15, 23, 42, .1), 0 14px 34px -12px rgba(15, 23, 42, .32);
  background: var(--surface);
}
:root[data-theme="dark"] .app-slides, :root:not([data-theme]) .app-slides {
  --s-canvas: #11151d;
  --s-slide-shadow: 0 0 0 .5px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -14px rgba(0, 0, 0, .8);
}
.win[data-app="slides"]:has(.slides-docname) .win-title-text { display: none; }
.slides-root { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }

/* title bar */
.slides-docname { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 280px; height: 26px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.slides-docname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slides-docname .ic { flex: 0 0 auto; color: var(--text-3); opacity: 0; transition: opacity .12s; }
.slides-docname:hover { background: var(--hover); }
.slides-docname:hover .ic { opacity: 1; }
.slides-savestate { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); white-space: nowrap; flex: 0 0 auto; }
.slides-savestate.is-saved .ic { color: #22a565; }
.slides-savestate.is-error { color: #e5484d; }
.slides-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5a524; animation: slides-pulse 1s ease-in-out infinite; }
@keyframes slides-pulse { 50% { opacity: .35; } }

/* ---------------------------------------------------------- start screen */
.slides-start { flex: 1; min-height: 0; overflow-y: auto; background: var(--surface); }
.slides-start-inner { max-width: 1060px; margin: 0 auto; padding: 0 28px; }
.slides-start-new { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
.slides-start-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.slides-start-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.slides-start-hint { font-size: 12px; color: var(--text-3); }
.slides-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 20px 18px; }
.slides-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
.slides-tpl-thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; margin-bottom: 8px; box-shadow: 0 0 0 1px var(--line-2), 0 2px 8px rgba(15, 23, 42, .1); transition: box-shadow .15s, transform .15s var(--ease); }
.slides-tpl-plus { position: absolute; inset: 0; display: grid; place-items: center; color: #94a3b8; }
.slides-tpl:hover .slides-tpl-thumb { box-shadow: 0 0 0 2px var(--accent), 0 12px 26px -10px rgba(15, 23, 42, .4); transform: translateY(-2px); }
.slides-tpl:focus-visible { outline: none; }
.slides-tpl:focus-visible .slides-tpl-thumb { box-shadow: 0 0 0 3px var(--accent); }
.slides-tpl-name { font-size: 13px; font-weight: 600; }
.slides-tpl-desc { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.slides-start-recent { padding-top: 22px; padding-bottom: 32px; }
.slides-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px 16px; }
.slides-recent-card { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
.slides-recent-thumb { display: block; aspect-ratio: 16 / 9; width: 176px; max-width: 100%; border-radius: 7px; overflow: hidden; background: var(--surface-3); box-shadow: 0 0 0 1px var(--line-2); margin-bottom: 6px; transition: box-shadow .15s; }
.slides-recent-card:hover .slides-recent-thumb { box-shadow: 0 0 0 2px var(--accent); }
.slides-recent-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slides-recent-date { font-size: 11.5px; color: var(--text-3); }
.slides-recent-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.slides-recent-empty-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--tile); color: var(--text-2); flex: 0 0 auto; }
.slides-recent-empty p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }
.slides-thumbbox { position: relative; display: block; overflow: hidden; flex: 0 0 auto; }
.slides-thumbbox > .slides-slide { position: absolute; left: 0; top: 0; pointer-events: none; }

/* ---------------------------------------------------------- ribbon */
.slides-ribbon { flex: 0 0 auto; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.slides-tabs { display: flex; align-items: center; gap: 2px; height: 40px; padding: 4px 10px 0; overflow-x: auto; scrollbar-width: none; }
.slides-tabs::-webkit-scrollbar { display: none; }
.slides-tabs-spacer { flex: 1; min-width: 8px; }
.slides-tab { position: relative; height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.slides-tab:hover { color: var(--text); background: var(--hover); }
.slides-tab.on { color: var(--text); }
.slides-tab.on::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--s-brand); }
.slides-btn.slides-filebtn { height: 28px; padding: 0 14px; margin-right: 6px; background: var(--s-brand); color: #fff; font-weight: 600; }
.slides-btn.slides-filebtn:hover { background: var(--s-brand); filter: brightness(1.1); }
.slides-presentbtn { display: inline-flex; align-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--s-brand); color: #fff; }
.slides-presentbtn .slides-btn { color: #fff; height: 30px; }
.slides-presentbtn .slides-btn:hover { background: rgba(255, 255, 255, .15); }
.slides-present-main { border-radius: 9px 0 0 9px !important; font-weight: 600 !important; }
.slides-present-more { border-radius: 0 9px 9px 0 !important; min-width: 26px !important; padding: 0 4px !important; border-left: 1px solid rgba(255, 255, 255, .25) !important; }
.slides-tools { display: flex; align-items: center; gap: 2px; min-height: 48px; margin: 4px 8px 8px; padding: 0 6px; background: var(--surface-2); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.slides-tools::-webkit-scrollbar { display: none; }
.slides-panel { display: none; align-items: center; gap: 2px; flex: 0 0 auto; }
.slides-panel.on { display: flex; }
.slides-group { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.slides-sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 6px; flex: 0 0 auto; }
.slides-btn { height: 32px; min-width: 32px; padding: 0 7px; border: 0; border-radius: 8px; background: none; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 500; white-space: nowrap; flex: 0 0 auto; cursor: pointer; transition: background .1s, color .1s; }
.slides-btn:hover { background: var(--hover); }
.slides-btn:active { background: var(--press); }
.slides-btn:disabled { opacity: .35; pointer-events: none; }
.slides-btn.on { background: var(--s-on); color: var(--accent); }
.slides-btn.has-text { padding: 0 10px 0 8px; }
.slides-btn.is-big { height: 42px; flex-direction: column; gap: 1px; padding: 2px 9px; font-size: 11.5px; }
.slides-btn:focus-visible, .slides-dd:focus-visible, .slides-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.slides-caret { display: inline-grid; place-items: center; color: var(--text-3); margin-left: -2px; }
.slides-dd { height: 32px; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 8px 0 10px; border: 0; border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); flex: 0 0 auto; }
.slides-dd:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.slides-dd:disabled { opacity: .45; pointer-events: none; }
.slides-dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.slides-dd-font { width: 150px; }
.slides-dd-layout { width: 140px; margin-left: 4px; }
.slides-size { display: inline-flex; align-items: center; height: 32px; margin-left: 4px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); flex: 0 0 auto; }
.slides-size:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.slides-size-input { width: 38px; height: 30px; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 12.5px; text-align: center; padding: 0 0 0 6px; }
.slides-size-input:disabled { opacity: .45; }
.slides-btn.slides-size-caret { min-width: 22px; width: 22px; height: 30px; padding: 0; color: var(--text-3); }
.slides-split { display: inline-flex; align-items: center; border-radius: 8px; flex: 0 0 auto; }
.slides-split:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.slides-split > .slides-btn:first-child { border-radius: 8px 0 0 8px; }
.slides-btn.slides-split-caret { min-width: 18px; width: 18px; padding: 0; border-radius: 0 8px 8px 0; color: var(--text-3); }
.slides-colorbtn { position: relative; }
.slides-colorbtn::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3.5px; border-radius: 2px; background: var(--c, var(--accent)); }
.slides-colorbtn .ic { margin-top: -3px; }
.slides-field { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0 4px; }
.slides-field-label { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.slides-num { width: 70px; height: 30px; padding: 0 8px; }
.slides-select { height: 30px; font-size: 12.5px; }
.slides-tip { font-size: 12px; color: var(--text-2); padding: 0 8px; white-space: nowrap; }
.slides-themes { display: flex; gap: 6px; flex: 0 0 auto; padding: 4px 0; }
.slides-themecard { width: 76px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; flex: 0 0 auto; box-shadow: 0 0 0 1px var(--line-2); overflow: hidden; transition: box-shadow .12s, transform .12s; }
.slides-themecard:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--text-3); }
.slides-themecard.on { box-shadow: 0 0 0 2.5px var(--accent); }
.slides-themecard-bg { position: relative; display: block; width: 100%; height: 100%; }
.slides-themecard-aa { position: absolute; left: 8px; top: 4px; font-size: 19px; font-weight: 700; line-height: 1.2; }
.slides-themecard-dots { position: absolute; left: 8px; bottom: 6px; display: flex; gap: 3px; }
.slides-themecard-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2); }
.slides-sizeseg button { padding: 0 10px; }

/* ---------------------------------------------------------- main area */
.slides-main { flex: 1; min-height: 0; display: flex; position: relative; }
.slides-thumbs { width: 208px; flex: 0 0 auto; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); min-height: 0; }
.slides-root.no-thumbs .slides-thumbs { display: none; }
.slides-thumblist { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; outline: none; }
.slides-thumb { display: flex; align-items: flex-start; gap: 6px; padding: 6px 6px 6px 2px; border-radius: 10px; cursor: pointer; position: relative; }
.slides-thumb:hover { background: var(--hover); }
.slides-thumb-n { width: 18px; text-align: right; font-size: 11.5px; font-weight: 600; color: var(--text-3); padding-top: 2px; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.slides-thumb-box { position: relative; display: block; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 1px 3px rgba(0, 0, 0, .12); }
.slides-thumb.on .slides-thumb-box { box-shadow: 0 0 0 2.5px var(--s-brand), 0 2px 8px rgba(0, 0, 0, .2); }
.slides-thumb.on .slides-thumb-n { color: var(--s-brand); }
.slides-thumb.is-hidden .slides-thumbbox { opacity: .4; }
.slides-thumb-hid { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); }
.slides-thumb-hid .ic { padding: 4px; width: 24px; height: 24px; border-radius: 6px; background: var(--surface); }
.slides-thumb-fx { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; }
.slides-thumb.dragging { opacity: .4; }
.slides-thumb.drop-before::before, .slides-thumb.drop-after::after { content: ''; position: absolute; left: 22px; right: 4px; height: 3px; border-radius: 2px; background: var(--accent); }
.slides-thumb.drop-before::before { top: -3px; }
.slides-thumb.drop-after::after { bottom: -3px; }
.slides-newslide { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin: 6px 10px 10px; border: 0; border-radius: 9px; background: var(--tile); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.slides-newslide:hover { background: var(--tile-hover); }
.slides-center { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
.slides-canvas { flex: 1; min-height: 0; overflow: auto; background: var(--s-canvas); display: flex; outline: none; }
.slides-stage { position: relative; margin: auto; flex: 0 0 auto; box-shadow: var(--s-slide-shadow); }
.slides-canvas.is-zoomed .slides-stage { margin: 24px; }
.slides-host { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.slides-host .slides-slide { cursor: default; }
.slides-host .slides-o { cursor: move; }
.slides-host .slides-o.is-editing, .slides-host .slides-o.is-editing * { cursor: text; }
.slides-host .slides-txi[contenteditable="true"] { user-select: text; -webkit-user-select: text; caret-color: currentColor; }
.slides-host .slides-tx.is-ph .slides-txi > * { display: none; }
.slides-host .slides-tx.is-ph .slides-txi::before { content: attr(data-ph); opacity: .42; font-weight: inherit; }
.slides-host .slides-tx.is-ph { outline: 1.5px dashed rgba(128, 128, 128, .45); outline-offset: -1px; }
.slides-host .slides-o-image.is-empty { background: rgba(128, 128, 128, .12); outline: 1.5px dashed rgba(128, 128, 128, .5); outline-offset: -1px; display: grid; place-items: center; }
.slides-imgph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(128, 128, 128, .9); font: 600 20px Figtree, system-ui, sans-serif; text-align: center; padding: 10px; }
.slides-host .slides-table td.is-editing, .slides-host .slides-table th.is-editing { outline: 2px solid var(--accent); outline-offset: -2px; user-select: text; -webkit-user-select: text; cursor: text; }
.slides-stage.is-hidden-slide::after { content: 'Hidden slide'; position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.slides-stage.show-grid .slides-host::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(128, 128, 128, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 128, 128, .22) 1px, transparent 1px); background-size: 40px 40px; }
.slides-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.slides-selbox { position: absolute; box-shadow: 0 0 0 1.5px var(--accent); transform-origin: 50% 50%; }
.slides-selbox.is-member { box-shadow: 0 0 0 1px var(--accent); opacity: .7; }
.slides-selbox.is-multi { box-shadow: 0 0 0 1.5px var(--accent); outline: 1px dashed var(--accent); outline-offset: 3px; }
.slides-selbox.is-editing { box-shadow: 0 0 0 1.5px var(--accent); outline: 1px dashed var(--accent); outline-offset: 3px; }
.slides-handle { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1.5px var(--accent), 0 1px 3px rgba(0, 0, 0, .3); pointer-events: auto; z-index: 1; }
.h-nw { left: 0; top: 0; cursor: nwse-resize; } .h-n { left: 50%; top: 0; cursor: ns-resize; } .h-ne { left: 100%; top: 0; cursor: nesw-resize; }
.h-e { left: 100%; top: 50%; cursor: ew-resize; } .h-se { left: 100%; top: 100%; cursor: nwse-resize; } .h-s { left: 50%; top: 100%; cursor: ns-resize; }
.h-sw { left: 0; top: 100%; cursor: nesw-resize; } .h-w { left: 0; top: 50%; cursor: ew-resize; }
.slides-handle.slides-rot { left: 50%; top: -28px; border-radius: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; cursor: grab; }
.slides-rotline { position: absolute; left: 50%; top: -22px; width: 1.5px; height: 22px; margin-left: -.75px; background: var(--accent); }
.slides-guide { position: absolute; background: #ec4899; pointer-events: none; }
.slides-guide.is-v { top: -2000px; bottom: -2000px; width: 1px; }
.slides-guide.is-h { left: -2000px; right: -2000px; height: 1px; }
.slides-stage { overflow: visible; }
.slides-canvas { overflow: auto; }
.slides-marquee { position: absolute; border: 1px solid var(--accent); background: rgba(var(--accent-rgb), .12); pointer-events: none; }
.slides-animbadge { position: absolute; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--s-brand); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.slides-root.is-dragging, .slides-root.is-dragging * { user-select: none !important; }

/* notes + pane + status */
.slides-notes { flex: 0 0 auto; height: 96px; border-top: 1px solid var(--line); background: var(--surface); display: flex; }
.slides-root.no-notes .slides-notes { display: none; }
.slides-notes-ta { flex: 1; border: 0; outline: none; resize: none; background: none; color: var(--text); font: inherit; font-size: 13.5px; line-height: 1.5; padding: 10px 16px; }
.slides-notes-ta::placeholder { color: var(--text-3); }
.slides-pane { width: 0; overflow: hidden; flex: 0 0 auto; background: var(--surface); border-left: 1px solid transparent; display: flex; flex-direction: column; transition: width .18s var(--ease); }
.slides-root.pane-on .slides-pane { width: 270px; border-left-color: var(--line); }
.slides-pane-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 8px 14px; font-size: 13px; min-width: 270px; }
.slides-pane-empty { margin: 4px 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; min-width: 240px; }
.slides-pane-list { flex: 1; overflow-y: auto; padding: 0 6px; min-width: 270px; }
.slides-pane-row { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 9px; cursor: pointer; }
.slides-pane-row:hover { background: var(--hover); }
.slides-pane-row.on { background: var(--s-on); }
.slides-pane-row .icon-btn { width: 24px; height: 24px; }
.slides-pane-n { width: 16px; text-align: center; font-size: 12px; font-weight: 700; color: var(--s-brand); }
.slides-pane-ic { color: var(--text-3); display: grid; }
.slides-pane-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; }
.slides-pane-txt strong { font-size: 12.5px; }
.slides-pane-txt span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slides-pane-foot { padding: 10px 14px; border-top: 1px solid var(--line); min-width: 270px; }
.slides-status { flex: 0 0 auto; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-top: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--text-2); }
.slides-status-info { display: flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; }
.slides-status-theme { color: var(--text-3); }
.slides-badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--tile); font-weight: 600; }
.slides-status .slides-btn { height: 24px; min-width: 24px; font-size: 12px; color: var(--text-2); }
.slides-status .slides-btn.on { color: var(--accent); }
.slides-zoom { display: flex; align-items: center; gap: 2px; }
.slides-zoomrange { width: 100px; height: 4px; }
.slides-zoompct { min-width: 44px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; }
.slides-zoompct:hover { background: var(--hover); color: var(--text); }
.slides-banner { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: rgba(var(--accent-rgb), .12); color: var(--text); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.slides-banner > span:nth-child(2) { flex: 1; }
.slides-banner .icon-btn { width: 26px; height: 26px; }
.slides-busy { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 22px; background: var(--glass-solid); font-size: 13px; box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--line); }
.slides-printframe { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; visibility: hidden; }
.slides-root.drop-on::after { content: 'Drop pictures to add them, or a .pptx file to import it'; position: absolute; inset: 10px; z-index: 50; border-radius: 14px; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--text); background: rgba(var(--accent-rgb), .14); box-shadow: inset 0 0 0 2px var(--accent); pointer-events: none; }

/* ---------------------------------------------------------- popovers */
.slides-pop { position: absolute; z-index: 30; min-width: 160px; padding: 8px; overflow-y: auto; border-radius: 12px; background: var(--glass-solid, var(--surface)); color: var(--text); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--line); animation: slides-drop .12s var(--ease); }
@keyframes slides-drop { from { opacity: 0; transform: translateY(-4px); } }
.slides-pop-title { padding: 4px 6px 6px; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.slides-pop-list { display: flex; flex-direction: column; gap: 1px; }
.slides-pop-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.slides-pop-item:hover { background: var(--hover); }
.slides-pop-item.on { background: var(--s-on); }
.slides-pop-label { flex: 1; }
.slides-pop-check { color: var(--accent); display: grid; }
.slides-pop-fonts { min-width: 230px; }
.slides-pop-fonts .slides-pop-item { font-size: 14px; }
.slides-pop-sizes { min-width: 80px; }
.slides-pop-sizes .slides-pop-item { min-height: 26px; justify-content: center; }
.slides-fontpair { flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 10px; }
.slides-fontpair strong { font-size: 16px; }
.slides-fontpair span { font-size: 12.5px; color: var(--text-2); }
.slides-swatches { display: grid; grid-template-columns: repeat(8, 24px); gap: 5px; padding: 2px 4px 8px; }
.slides-swatches.is-std { grid-template-columns: repeat(7, 24px); }
.slides-swatch { width: 24px; height: 24px; border: 0; padding: 0; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); cursor: pointer; transition: transform .1s; }
.slides-swatch.is-bg { width: 24px; height: 24px; }
.slides-swatch:hover { transform: scale(1.15); }
.slides-pop-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; }
.slides-customcol { position: relative; overflow: hidden; }
.slides-colorinput { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slides-pop-wide { width: 100%; margin: 2px 0 6px; }
.slides-pop-check-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px 2px; font-size: 12.5px; }
.slides-weight { display: block; width: 36px; background: var(--text); border-radius: 2px; }
.slides-shapegrid { display: grid; grid-template-columns: repeat(4, 48px); gap: 6px; padding: 2px 4px 4px; }
.slides-shapebtn { width: 48px; height: 40px; border: 0; border-radius: 8px; background: var(--tile); display: grid; place-items: center; padding: 6px; cursor: pointer; }
.slides-shapebtn:hover { background: var(--tile-hover); box-shadow: inset 0 0 0 1.5px var(--accent); }
.slides-shapebtn svg { width: 34px; height: 24px; overflow: visible; }
.slides-tgrid { display: grid; grid-template-columns: repeat(8, 20px); gap: 3px; padding: 2px 6px 6px; }
.slides-tcell { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.slides-tcell.on { background: rgba(var(--accent-rgb), .35); box-shadow: inset 0 0 0 1.5px var(--accent); }
.slides-layoutgrid { display: grid; grid-template-columns: repeat(3, 132px); gap: 10px; padding: 2px 4px 4px; }
.slides-layoutbtn { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer; text-align: left; }
.slides-layoutbtn .slides-thumbbox { border-radius: 5px; box-shadow: 0 0 0 1px var(--line-2); }
.slides-layoutbtn:hover .slides-thumbbox { box-shadow: 0 0 0 2px var(--accent); }

/* modals */
.slides-modal { position: absolute; inset: 0; z-index: 35; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 22, .4); animation: slides-fade .14s; }
@keyframes slides-fade { from { opacity: 0; } }
.slides-dialog { width: min(480px, 100%); max-height: 100%; padding: 18px; border-radius: 18px; background: var(--glass-solid); display: flex; flex-direction: column; }
.slides-dialog.is-wide { width: min(860px, 100%); }
.slides-dialog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.slides-dialog-head h3 { margin: 0; font-size: 16px; flex: 1; }
.slides-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.slides-chartdlg, .slides-icondlg { display: flex; flex-direction: column; min-height: 0; }
.slides-chartbody { display: flex; gap: 16px; min-height: 0; flex-wrap: wrap; }
.slides-chartgrid { flex: 1 1 320px; max-height: 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.slides-chartgrid table { border-collapse: collapse; font-size: 12.5px; }
.slides-chartgrid th, .slides-chartgrid td { padding: 2px; text-align: left; font-weight: 600; white-space: nowrap; }
.slides-cell-in { width: 96px; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; }
.slides-cell-in:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.slides-cell-in.is-num { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.slides-cell-in.is-head { font-weight: 700; }
.slides-cell-x { width: 22px; height: 22px; vertical-align: middle; }
.slides-chartprev { flex: 0 0 auto; width: 420px; max-width: 100%; height: 280px; border-radius: 10px; padding: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.slides-chartprev svg { width: 100%; height: 100%; display: block; }
.slides-icongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 360px; padding: 2px; }
.slides-iconbtn { height: 44px; border: 0; border-radius: 9px; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.slides-iconbtn:hover { background: var(--hover); color: var(--accent); }

/* ---------------------------------------------------------- slide show */
.slides-show { position: fixed; inset: 0; z-index: 9000; background: #000; color: #fff; display: flex; outline: none; user-select: none; }
.slides-show-main { flex: 1; min-width: 0; position: relative; display: grid; place-items: center; overflow: hidden; }
.slides-show-stage { position: relative; overflow: hidden; perspective: 1800px; }
.slides-show-layer { position: absolute; inset: 0; background: #000; }
.slides-show-layer .slides-slide { transform-origin: 0 0; }
.slides-pv { display: none; }
.slides-show.is-pv { background: #111318; }
.slides-show.is-pv .slides-show-main { margin: 20px 0 20px 20px; border-radius: 10px; }
.slides-show.is-pv .slides-pv { display: flex; flex-direction: column; gap: 8px; width: min(36%, 460px); padding: 20px; min-height: 0; }
.slides-pv-top { display: flex; align-items: center; font-size: 15px; font-weight: 600; color: #cbd5e1; }
.slides-pv-clock { font-variant-numeric: tabular-nums; }
.slides-pv-label { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
.slides-pv-next { border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); flex: 0 0 auto; }
.slides-pv-endcard { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #94a3b8; font-size: 14px; }
.slides-pv-notes { flex: 1; min-height: 80px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); line-height: 1.5; white-space: pre-wrap; color: #f1f5f9; }
.slides-pv-notes.is-empty { color: #64748b; font-style: italic; }
.slides-pv-timerrow { display: flex; align-items: center; gap: 8px; padding-top: 6px; color: #cbd5e1; }
.slides-pv-timer { font: 600 30px var(--font-display); font-variant-numeric: tabular-nums; color: #fff; margin-right: auto; }
.slides-pv-timer.is-paused { color: #f59e0b; }
.slides-show-btn { width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.slides-show-btn:hover { background: rgba(255, 255, 255, .2); }
.slides-pv .slides-show-btn { width: 32px; height: 32px; }
.slides-show-ctrl { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(20, 22, 28, .7); opacity: 0; transition: opacity .25s; z-index: 3; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.slides-show.show-ctrl .slides-show-ctrl, .slides-show-ctrl:hover { opacity: 1; }
.slides-show:not(.show-ctrl) { cursor: none; }
.slides-show.is-pv { cursor: default; }
.slides-laser { position: fixed; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, #ff3b30 30%, rgba(255, 59, 48, .45) 60%, transparent 72%); box-shadow: 0 0 14px 4px rgba(255, 40, 40, .55); pointer-events: none; display: none; z-index: 5; }
.slides-show.laser-on .slides-laser { display: block; }
.slides-show.laser-on, .slides-show.laser-on * { cursor: none !important; }
.slides-show-blank { position: absolute; inset: 0; background: #000; display: none; z-index: 4; }
.slides-show-blank.is-white { background: #fff; }
.slides-show-blank.on { display: block; }
.slides-show-end { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #000; color: #e5e7eb; font-size: 22px; }
.slides-show-end small { font-size: 14px; color: #9ca3af; }
.slides-show-end.on { display: flex; }

/* transitions (slide show + editor preview) */
.slides-tr-in[data-tr="fade"] { animation: slides-tr-fade var(--tr-dur, .6s) ease both; }
.slides-tr-in[data-tr="slide"] { animation: slides-tr-push-in var(--tr-dur, .6s) cubic-bezier(.4, 0, .2, 1) both; }
.slides-tr-out[data-tr="slide"] { animation: slides-tr-push-out var(--tr-dur, .6s) cubic-bezier(.4, 0, .2, 1) both; }
.slides-tr-in[data-tr="zoom"] { animation: slides-tr-zoom var(--tr-dur, .6s) cubic-bezier(.2, .8, .2, 1) both; }
.slides-tr-in[data-tr="flip"] { animation: slides-tr-flip-in calc(var(--tr-dur, .6s) / 2) ease-out calc(var(--tr-dur, .6s) / 2) both; backface-visibility: hidden; }
.slides-tr-out[data-tr="flip"] { animation: slides-tr-flip-out calc(var(--tr-dur, .6s) / 2) ease-in both; backface-visibility: hidden; }
.slides-tr-out[data-tr="fade"], .slides-tr-out[data-tr="zoom"] { z-index: 0; }
.slides-tr-in { z-index: 1; }
@keyframes slides-tr-fade { from { opacity: 0; } }
@keyframes slides-tr-push-in { from { transform: translateX(100%); } }
@keyframes slides-tr-push-out { to { transform: translateX(-100%); } }
@keyframes slides-tr-zoom { from { transform: scale(.55); opacity: 0; } }
@keyframes slides-tr-flip-in { from { transform: rotateY(-90deg); } }
@keyframes slides-tr-flip-out { to { transform: rotateY(90deg); } }

/* entrance animations: individual transform properties keep each object's rotation */
.slides-pre { opacity: 0 !important; }
@keyframes slides-in-fade { from { opacity: 0; } }
@keyframes slides-in-fly { from { opacity: 0; translate: 0 300px; } }
@keyframes slides-in-zoom { from { opacity: 0; scale: .3; } }
@keyframes slides-in-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------------------------------------------------------- narrow + phone */
.slides-root.is-narrow .slides-tabs { padding: 4px 6px 0; }
.slides-root.is-narrow .slides-tab { padding: 0 8px; }
.slides-root.is-narrow .slides-tools { margin: 4px 6px 6px; }
.slides-root.is-narrow .slides-main { flex-direction: column-reverse; }
.slides-root.is-narrow .slides-thumbs { width: auto; height: 104px; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); }
.slides-root.is-narrow .slides-thumblist { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px; gap: 6px; }
.slides-root.is-narrow .slides-thumb { flex-direction: column; padding: 2px; gap: 2px; }
.slides-root.is-narrow .slides-thumb-n { width: auto; text-align: left; padding: 0 2px; position: absolute; left: 6px; top: 4px; z-index: 1; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.slides-root.is-narrow .slides-newslide { width: 44px; margin: 8px 8px 8px 0; height: auto; padding: 0; }
.slides-root.is-narrow .slides-newslide span { display: none; }
.slides-root.is-narrow .slides-root.pane-on .slides-pane, .slides-root.is-narrow.pane-on .slides-pane { position: absolute; right: 0; top: 0; bottom: 0; z-index: 8; box-shadow: var(--shadow-pop); }
.slides-root.is-narrow .slides-zoomrange, .slides-root.is-narrow .slides-status-theme { display: none; }
.slides-root.is-narrow .slides-start-inner { padding: 0 16px; }
.slides-root.is-narrow .slides-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.slides-root.is-narrow .slides-tpl-thumb { width: 100%; }
.slides-root.is-narrow .slides-tpl-thumb .slides-thumbbox { transform-origin: 0 0; }
.slides-root.is-narrow .slides-present-main span { display: none; }
.slides-root.is-narrow .slides-layoutgrid { grid-template-columns: repeat(2, 132px); }
@media (max-width: 759px) {
  .slides-show.is-pv { flex-direction: column; }
  .slides-show.is-pv .slides-show-main { margin: 10px; flex: 0 0 44%; }
  .slides-show.is-pv .slides-pv { width: auto; flex: 1; padding: 0 12px 12px; }
  .slides-show.is-pv .slides-pv-next, .slides-show.is-pv .slides-pv-nextlabel { display: none; }
  .slides-show-ctrl { left: 50%; transform: translateX(-50%); opacity: 1; }
  .slides-show.is-pv .slides-show-ctrl { top: 10px; bottom: auto; }
}
