/* Slide show styles: thumbnails (left), the slide and notes (centre), properties and history (right), the show. */
#main { display: flex; flex-direction: row; flex: 1; min-width: 0; min-height: 0; background: var(--panel); }

/* a slide as drawn (editor, thumbnails, show, print) */
.ss-render { position: relative; overflow: hidden; background: #fff; transform-origin: 0 0; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; color: #000; }
.ss-el { position: absolute; box-sizing: border-box; transform-origin: 50% 50%; }
.ss-deco { pointer-events: none; }
.ss-geom { position: absolute; left: 0; top: 0; overflow: visible; transform-origin: 50% 50%; }
.ss-text { position: absolute; inset: 0; display: flex; flex-direction: column; box-sizing: border-box; overflow: visible; }
.ss-text.nowrap .ss-paras { white-space: nowrap; }
.ss-paras { outline: none; min-height: 1em; overflow-wrap: break-word; white-space: pre-wrap; }
.ss-p { margin: 0; padding: 0; line-height: 1.2; min-height: 1em; }
.ss-p.bu::before { content: attr(data-bu); display: inline-block; text-indent: 0; width: var(--bu-width, 0.9em); min-width: 0.6em; color: var(--bu-color, inherit); font-size: var(--bu-size, 1em); font-family: var(--bu-font, inherit); white-space: nowrap; overflow: visible; }
.ss-prompt { color: #8c8c96 !important; }
.ss-r { white-space: pre-wrap; }
.ss-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ss-table td { box-sizing: border-box; overflow: hidden; }
.ss-cell { position: relative; inset: auto; display: block; }
.ss-image img { user-select: none; }
.ss-missing { background: repeating-linear-gradient(45deg, #eee 0 8px, #f7f7f7 8px 16px); outline: 1px dashed #bbb; }
.ss-placeholder { background: #f1f2f5; outline: 1px dashed #b9bcc6; display: flex; align-items: center; justify-content: center; }
.ss-ph-label { font: 600 14px "Segoe UI", Arial, sans-serif; color: #6a6e7a; }
.ss-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ss-play .material-symbols-outlined { font-size: 64px; color: rgba(255, 255, 255, 0.9); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.ss-chart { position: absolute; inset: 0; }

/* left: thumbnails */
#ss-left { min-height: 0; }

/* centre: slide and notes */
#ss-center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#ss-stage { position: relative; flex: 1; min-height: 120px; overflow: auto; background: var(--desk); display: flex; align-items: center; justify-content: center; outline: none; padding: 20px; box-sizing: border-box; }
.ss-canvaswrap { position: relative; flex: none; margin: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 6px 18px rgba(0, 0, 0, 0.1); background: #fff; }
.ss-canvas, .ss-over { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ss-over { pointer-events: none; }
.ss-over .ss-handle { pointer-events: auto; }
.ss-selbox { position: absolute; border: 1.5px solid var(--sel); box-sizing: border-box; transform-origin: 50% 50%; pointer-events: none; }
.ss-selbox.editing { border-style: dashed; }
.ss-handle { position: absolute; box-sizing: border-box; background: #fff; border: 1.3px solid var(--sel); border-radius: 2px; pointer-events: auto; }
.ss-handle.round, .ss-handle.rot { border-radius: 50%; }
.ss-handle.rot { cursor: grab; background: #fff; }
.ss-rotstem { position: absolute; background: var(--sel); pointer-events: none; }
.ss-guide { position: absolute; background: var(--guide); pointer-events: none; }
.ss-marquee, .ss-createbox { position: absolute; border: 1px dashed var(--sel); background: var(--sel-soft); box-sizing: border-box; }
.ss-createline { position: absolute; background: var(--sel); transform-origin: 0 50%; }
.ss-sizelabel { position: absolute; transform-origin: 0 0; background: var(--sel); color: #fff; font: 11px Geist, "Segoe UI", sans-serif; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ss-editnode .ss-paras.ss-editing { cursor: text; caret-color: currentColor; }
.ss-editing { -webkit-user-select: text; user-select: text; }
#ss-stage .ss-render { user-select: none; }
#ss-stage .ss-el:not(.ss-deco) .ss-empty { outline: 1px dashed #9aa0ad; outline-offset: -1px; }
#ss-notesbar { flex: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); background: var(--surface); }
#ss-notes { height: 84px; resize: vertical; border: 0; padding: 8px 14px; font: 13px/1.45 "Segoe UI", Geist, sans-serif; color: var(--text); outline: none; background: var(--surface); }
#ss-notes::placeholder { color: var(--faint); }
body.ss-nonotes #ss-notesbar { display: none; }

/* right: properties and history */
#ss-side { min-height: 0; }
#ss-props { flex: 1; min-height: 0; overflow: auto; padding-bottom: 12px; }
.ss-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ss-theme { display: flex; height: 26px; border: 1px solid #d8d8de; border-radius: 6px; overflow: hidden; padding: 0; cursor: pointer; background: #fff; }
.ss-theme:hover { border-color: var(--prog); box-shadow: 0 0 0 1px var(--prog); }
.ss-theme span { flex: 1; }
.ss-theme.cur { border-color: var(--prog); box-shadow: 0 0 0 2px var(--prog); }

/* top bar widgets */
.w-font .cmd-lab { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-font .cmd-lab.muted { color: var(--muted); }

/* pickers */
.ss-cpick { width: 262px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ss-cpick-title { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ss-cpick-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.ss-cpick-sw { aspect-ratio: 1; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 3px; cursor: pointer; padding: 0; }
.ss-cpick-sw:hover, .ss-cpick-sw:focus-visible { outline: 2px solid var(--prog); outline-offset: 1px; }
.ss-cpick-sw.cur { outline: 2px solid #18181b; outline-offset: 1px; box-shadow: inset 0 0 0 1.5px #fff; }
.ss-cpick-name { font-size: 12px; color: var(--text-2); min-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-cpick-row { display: flex; gap: 6px; justify-content: space-between; margin-top: 4px; }
.ss-tabledlg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* the slide show */
.ss-present { position: fixed; inset: 0; z-index: 950; background: #000; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; outline: none; cursor: none; }
.ss-present:hover { cursor: default; }
.sp-main { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-frame { position: absolute; overflow: hidden; }
.sp-side, .sp-bar { display: none; }
.ss-present.presenter { grid-template-columns: 62fr 38fr; grid-template-rows: 1fr 44px; background: #1c1d21; gap: 0; }
.ss-present.presenter .sp-main { margin: 18px; }
.ss-present.presenter .sp-side { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 8px 0; min-height: 0; color: #e6e6ea; }
.ss-present.presenter .sp-bar { display: flex; grid-column: 1 / 3; align-items: center; justify-content: space-between; padding: 0 20px; color: #c9c9d1; font: 14px "Segoe UI", sans-serif; background: #141518; }
.sp-label { font: 600 12px "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: #9a9aa5; }
.sp-next { position: relative; height: 34%; display: flex; align-items: center; justify-content: center; }
.sp-next .sp-frame { position: relative; }
.sp-end { color: #9a9aa5; font: 14px "Segoe UI", sans-serif; }
.sp-notes { flex: 1; min-height: 0; overflow: auto; font: 20px/1.45 "Segoe UI", sans-serif; white-space: pre-wrap; color: #f2f2f5; padding-right: 6px; }
.sp-timer { font-variant-numeric: tabular-nums; }
.sp-blank { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.sp-blank.black, .sp-blank.end { background: #000; opacity: 1; pointer-events: auto; }
.sp-blank.white { background: #fff; opacity: 1; }
.sp-blank.end::after { content: 'End of the slide show – click to exit'; position: absolute; top: 18px; left: 0; right: 0; text-align: center; color: #8a8a96; font: 15px "Segoe UI", sans-serif; }
.tr-fade { animation: sp-fade 0.6s ease both; }
.tr-push { animation: sp-push 0.6s ease both; }
.tr-wipe { animation: sp-wipe 0.6s ease both; }
.tr-cover { animation: sp-cover 0.6s ease both; }
.tr-split { animation: sp-split 0.6s ease both; }
.tr-zoom { animation: sp-zoom 0.6s ease both; }
@keyframes sp-fade { from { opacity: 0; } }
@keyframes sp-push { from { transform: translateY(100%); } }
@keyframes sp-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sp-cover { from { transform: translateX(100%); } }
@keyframes sp-split { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes sp-zoom { from { transform: scale(0.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tr-fade, .tr-push, .tr-wipe, .tr-cover, .tr-split, .tr-zoom { animation: none; } }

/* printing */
.ss-print { display: none; }
@media print {
  body.ss-printing > *:not(.ss-print) { display: none !important; }
  body.ss-printing .ss-print { display: block; }
  .ss-print-page { break-after: page; overflow: hidden; }
  .ss-print-page .ss-render { transform: none; }
}

.kbd-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.kbd-table td { padding: 5px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
kbd { font: 12px var(--mono); background: var(--hover); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
ul.feat { padding-left: 18px; margin: 4px 0; line-height: 1.55; font-size: 13px; }
.small { font-size: 12px; }
.load-error { max-width: 520px; padding: 16px; color: #b3261e; line-height: 1.5; }

@media (max-width: 700px) {
  #main { flex-direction: column; }
  #ss-left { order: 2; width: auto; height: 120px; border-right: 0; border-top: 1px solid var(--line); }
  #ss-center { order: 1; min-height: 0; }
  #ss-notes { height: 54px; }
}
