/* ОСТРО — presenter / public viewer chrome. Shared with the standalone HTML export. */
.vw-root {
  position: fixed; inset: 0; z-index: 50; background: #0b0809; color: #f2ece9; overflow: hidden;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif; outline: none; user-select: none; -webkit-user-select: none;
}
.vw-stage { position: absolute; inset: 0 0 0 0; display: flex; align-items: center; justify-content: center; cursor: default; }
.vw-notes-on .vw-stage { bottom: 30%; }
.vw-frame { position: relative; overflow: hidden; background: #000; }
.vw-layer { position: absolute; inset: 0; overflow: hidden; }
.vw-layer > .os-slide { position: absolute; left: 0; top: 0; }
.vw-blade { position: absolute; inset: 0; pointer-events: none; visibility: hidden; z-index: 5; }
.vw-blade::before {
  content: ""; position: absolute; top: -6%; bottom: -6%; left: 0; width: 14%;
  background: #390517; box-shadow: inset 3px 0 0 #a2845e, inset -1px 0 0 rgba(162, 132, 94, .35);
}

.vw-curtain { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.vw-curtain[data-on="black"] { background: #000; opacity: 1; pointer-events: auto; }
.vw-curtain[data-on="white"] { background: #fff; opacity: 1; pointer-events: auto; }

/* control bar */
.vw-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: 64px; padding: 0 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: linear-gradient(to top, rgba(11, 8, 9, .92), rgba(11, 8, 9, .6) 60%, rgba(11, 8, 9, 0));
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.vw-active .vw-bar, .vw-bar:focus-within, .vw-notes-on .vw-bar { opacity: 1; transform: none; pointer-events: auto; }
.vw-bar-left { min-width: 0; display: flex; align-items: center; gap: 12px; }
.vw-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 236, 233, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-bar-mid { display: flex; align-items: center; gap: 6px; }
.vw-bar-right { display: flex; justify-content: flex-end; gap: 4px; }
.vw-counter { min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; letter-spacing: .08em; }
.vw-counter b { font-weight: 900; font-size: 16px; }
.vw-counter span { color: rgba(242, 236, 233, .55); }
.vw-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 0; cursor: pointer;
  background: transparent; color: #f2ece9; transition: background .15s ease, color .15s ease;
}
.vw-btn:hover { background: rgba(242, 236, 233, .1); }
.vw-btn:focus-visible { outline: 2px solid #a2845e; outline-offset: -2px; }
.vw-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.vw-btn-close { margin-left: 8px; background: rgba(242, 236, 233, .08); }
.vw-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 21; background: rgba(242, 236, 233, .08); }
.vw-progress-fill { height: 100%; background: #a2845e; transition: width .5s cubic-bezier(.22, 1, .36, 1); }

.vw-hint {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%); z-index: 22; padding: 9px 16px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 236, 233, .78);
  background: rgba(11, 8, 9, .72); transition: opacity .6s ease; pointer-events: none;
}
.vw-hint-off { opacity: 0; }

/* speaker notes */
.vw-notes {
  position: absolute; left: 0; right: 0; bottom: 64px; height: calc(30% - 64px); z-index: 19; display: none;
  grid-template-columns: 1fr auto; gap: 24px; padding: 20px 28px; background: #141012; border-top: 1px solid #2b2124;
}
.vw-notes-on .vw-notes { display: grid; }
.vw-notes-text { font-size: 19px; line-height: 1.5; color: #e8e1de; overflow: auto; white-space: pre-wrap; user-select: text; }
.vw-notes-time { font-weight: 900; font-size: 28px; font-variant-numeric: tabular-nums; color: #a2845e; }

/* overview */
.vw-overview { position: absolute; inset: 0; z-index: 40; background: rgba(11, 8, 9, .97); overflow: auto; padding: 28px 32px 48px; }
.vw-ov-head { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(242, 236, 233, .55); margin-bottom: 18px; }
.vw-ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.vw-ov-item { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: inherit; }
.vw-ov-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; outline: 1px solid rgba(242, 236, 233, .08); }
.vw-ov-thumb > .os-slide { position: absolute; left: 0; top: 0; pointer-events: none; }
.vw-ov-item.is-current .vw-ov-thumb, .vw-ov-item:focus-visible .vw-ov-thumb { outline: 2px solid #a2845e; }
.vw-ov-item:hover .vw-ov-thumb { outline-color: rgba(242, 236, 233, .5); }
.vw-ov-cap { margin-top: 7px; font-size: 12px; font-weight: 900; letter-spacing: .08em; color: rgba(242, 236, 233, .6); }

/* reading mode (phones) */
.vw-reader { position: absolute; inset: 0; z-index: 35; overflow-y: auto; background: #0b0809; padding: 14px 12px 80px; -webkit-overflow-scrolling: touch; }
.vw-reader-list { display: grid; gap: 12px; }
.vw-reader-item { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vw-reader-item > .os-slide { position: absolute; left: 0; top: 0; }
.vw-reading .vw-bar { opacity: 1; pointer-events: auto; transform: none; z-index: 38; background: rgba(11, 8, 9, .94); }
.vw-reading .vw-bar-mid { visibility: hidden; }

@media (max-width: 640px) {
  .vw-bar { grid-template-columns: auto 1fr auto; padding: 0 6px; gap: 4px; }
  .vw-title { display: none; }
  .vw-bar-mid { justify-content: center; }
  .vw-btn { width: 36px; height: 40px; }
}
@media (hover: none) {
  .vw-bar { opacity: 1; transform: none; pointer-events: auto; }
}

/* print / PDF: one slide per page, final states, no UI */
.vw-print { display: none; }
@media print {
  @page { size: 1600px 900px; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.vw-printing > *:not(.vw-print) { display: none !important; }
  body.vw-printing .vw-print { display: block !important; }
  .vw-page { width: 1600px; height: 900px; overflow: hidden; break-after: page; page-break-after: always; position: relative; }
  .vw-page:last-child { break-after: auto; page-break-after: auto; }
  .vw-page .os-slide * { animation: none !important; transition: none !important; }
}

/* Reduced motion: no transitions at all (slide changes, bar fades, progress). */
@media (prefers-reduced-motion: reduce) {
  .vw-root *, .vw-root *::before, .vw-root *::after { transition: none !important; animation: none !important; }
}
