/* Library viewer (L10–L1A): a full-window page without the navigation. The toolbar, the stage and each
   format's preview; the page's own policy allows no inline styles, so everything visual lives here. Sizes that
   depend on the file (PDF pages, slides, zoomed images) are set by public/library-viewer.js through the CSSOM. */

body.viewer-page {
  background: #e9e6e0;
  overflow: hidden;
}
.viewer-frame {
  flex: none;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.viewer-frame > .flashes {
  margin: 0;
}
.viewer-frame > .attribution {
  margin: 0;
  flex: none;
  padding: 6px 14px;
  font-size: 12px;
  color: #5d646c;
  text-align: center;
  background: #f7f6f3;
  border-top: 1px solid #e2dfd9;
}
.viewer-frame > .attribution a {
  color: #5d646c;
}
.viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #e9e6e0;
  outline: none;
}

/* ----- Toolbar ------------------------------------------------------------------------------------------ */

.viewer-bar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid #e2dfd9;
}
.vw-ident {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 280px;
}
.viewer-title-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.viewer-name {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: #13181d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewer-meta {
  font-size: 12.5px;
  color: #5d646c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vw-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1efeb;
  border: 1px solid #e2dfd9;
  font-size: 12px;
  font-weight: 600;
  color: #4a525b;
  white-space: nowrap;
}
.vw-pill[hidden] {
  display: none;
}
a.vw-pill-old {
  height: 24px;
  padding: 0 9px;
  background: #fbf5f0;
  border-color: #f0e2d7;
  color: #8a4526;
  text-decoration: none;
}
a.vw-pill-old:hover {
  border-color: #d99468;
}

/* File-type badge: a coloured tag with the extension, hue by family. */
.vw-badge {
  width: 34px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #5d646c;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.vw-badge-large {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
}
.vw-badge[data-ext="pdf"] {
  background: oklch(0.5 0.12 28);
}
.vw-badge:is([data-ext="doc"], [data-ext="docx"], [data-ext="docm"], [data-ext="dot"]) {
  background: oklch(0.5 0.12 255);
}
.vw-badge:is([data-ext="xls"], [data-ext="xlsx"], [data-ext="xlsm"], [data-ext="csv"], [data-ext="tsv"]) {
  background: oklch(0.5 0.12 150);
}
.vw-badge:is([data-ext="ppt"], [data-ext="pptx"], [data-ext="pptm"]) {
  background: oklch(0.5 0.12 55);
}
.vw-badge:is(
  [data-ext="png"],
  [data-ext="jpg"],
  [data-ext="jpeg"],
  [data-ext="gif"],
  [data-ext="webp"],
  [data-ext="svg"],
  [data-ext="heic"],
  [data-ext="tif"],
  [data-ext="tiff"]
) {
  background: oklch(0.5 0.12 305);
}
.vw-badge:is(
  [data-ext="mp3"],
  [data-ext="wav"],
  [data-ext="m4a"],
  [data-ext="mp4"],
  [data-ext="mov"],
  [data-ext="webm"]
) {
  background: oklch(0.5 0.12 195);
}

/* Toolbar buttons (links and buttons share the look). */
.vw-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d6d2ca;
  background: #fff;
  color: #13181d;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.vw-btn:hover {
  background: #f7f6f3;
  color: #13181d;
}
.vw-btn[aria-pressed="true"] {
  background: #fbf5f0;
  border-color: #d99468;
}
.vw-btn[aria-disabled="true"],
.vw-btn:disabled {
  opacity: 0.45;
  cursor: default;
  background: #fff;
}
.vw-btn[hidden] {
  display: none;
}
.vw-primary,
.vw-primary:hover {
  border-color: #13181d;
  background: #13181d;
  color: #fff;
}
.vw-primary:hover {
  background: #2a323b;
  border-color: #2a323b;
}
.vw-large {
  height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 15px;
}
.viewer-nav [data-viewer-prev],
.viewer-nav [data-viewer-next] {
  padding: 0 10px;
}
.viewer-page :is(.vw-btn, .vw-tool, .viewer-controls input, .viewer-controls select):focus-visible {
  outline: none;
  border-color: #b8683f;
  box-shadow: 0 0 0 3px rgba(184, 104, 63, 0.18);
}
.vw-sep {
  width: 1px;
  height: 22px;
  flex-shrink: 0;
  background: #e2dfd9;
  margin: 0 2px;
}
.vw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.viewer-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.viewer-position {
  min-width: 58px;
  text-align: center;
  font-size: 13px;
  color: #4a525b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Format controls (page, zoom, fit, sheet, slide, wrap …), filled per format by the script. */
.viewer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.viewer-controls:empty {
  display: none;
}
.vw-tool {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #d6d2ca;
  background: #fff;
  color: #13181d;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.vw-tool:hover {
  background: #f7f6f3;
  color: #13181d;
}
.vw-tool[aria-pressed="true"] {
  background: #fbf5f0;
  border-color: #d99468;
}
.vw-tool:disabled {
  opacity: 0.45;
  cursor: default;
  background: #fff;
}
.vw-tool.vw-wide {
  padding: 0 12px;
}
.vw-icon {
  width: 32px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.vw-zoom {
  min-width: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #13181d;
}
.vw-control-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #13181d;
  white-space: nowrap;
}
.vw-control-text {
  font-size: 13.5px;
  white-space: nowrap;
}
.vw-slide-count {
  min-width: 92px;
  text-align: center;
}
.viewer-controls input[type="number"] {
  width: 52px;
  min-height: 0;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid #d6d2ca;
  font-size: 13.5px;
  text-align: center;
}
.viewer-controls select {
  width: auto;
  max-width: 220px;
  min-height: 0;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #d6d2ca;
  background: #fff;
  font-size: 13.5px;
}
.viewer-controls .vw-sep {
  margin: 0 4px;
}

/* ----- Stage and Details ---------------------------------------------------------------------------------- */

.viewer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
}
.viewer-stage {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #e9e6e0;
  color: #13181d;
}
.viewer-details {
  width: min(340px, 40vw);
  flex-shrink: 0;
  overflow: auto;
  background: #fff;
  border-left: 1px solid #e2dfd9;
  padding: 18px 18px 24px;
  outline: none;
}
.viewer-details[hidden] {
  display: none;
}
.vw-eyebrow {
  margin: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a525b;
}
.vw-eyebrow-gap {
  margin-top: 22px;
}
.vw-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  margin: 12px 0 0;
  font-size: 14px;
}
.vw-details dt {
  color: #5d646c;
}
.vw-details dd {
  margin: 0;
  word-break: break-word;
}
.vw-details dd a {
  color: inherit;
}
.vw-details .vw-hash {
  font-family: var(--font-mono);
  font-size: 12px;
}
.vw-restore {
  margin: 14px 0 0;
}
.vw-restore[hidden] {
  display: none;
}
.vw-restore .vw-btn {
  height: 36px;
  padding: 0 14px;
}
.viewer-versions {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.viewer-versions li {
  padding: 10px 0;
  border-top: 1px solid #eeebe6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vw-version-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.vw-version-head strong {
  font-size: 14px;
}
.vw-version-head span {
  font-size: 12.5px;
  color: #5d646c;
  white-space: nowrap;
}
.viewer-versions li.is-shown .vw-version-head strong {
  color: #8a4526;
}
.vw-version-meta {
  font-size: 12.5px;
  color: #4a525b;
}
.vw-version-links {
  display: flex;
  gap: 12px;
  font-size: 13px;
}
.vw-history-link {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #eeebe6;
  font-size: 13px;
}

/* ----- Shared preview pieces ------------------------------------------------------------------------------ */

.pv-sheetpaper {
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
}
.pv-caption {
  flex: none;
  margin: 10px auto 0;
  max-width: 900px;
  font-size: 12.5px;
  color: #4a525b;
  text-align: center;
}
.pv-caption-top {
  margin: 0 auto;
}
.pv-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: #4a525b;
}
.pv-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #d6d2ca;
  border-top-color: #b8683f;
  animation: pv-spin 0.9s linear infinite;
}
@keyframes pv-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pv-spinner {
    animation-duration: 3s;
  }
}

/* L1A: no preview, errors and the no-JavaScript card. */
.pv-info {
  margin: auto;
  width: min(520px, 100%);
  flex-shrink: 0;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
  text-align: center;
}
.pv-info-title {
  margin: 14px 0 4px;
  font-family: var(--font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: #13181d;
  overflow-wrap: anywhere;
}
.pv-info .pv-reason {
  margin: 0 auto;
  max-width: 400px;
  font-size: 14.5px;
  color: #4a525b;
  text-wrap: pretty;
}
.pv-info.is-error .pv-info-title {
  color: #b3261e;
}
.pv-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  max-width: 320px;
  margin: 18px auto 20px;
  font-size: 14px;
  text-align: left;
}
.pv-info dt {
  color: #5d646c;
}
.pv-info dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pv-info-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pv-info-actions .vw-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 15px;
}
.pv-info-actions .vw-primary {
  border: none;
}

/* L11 PDF: pages rendered on demand on the stage background. */
.pv-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: min-content;
}
.pv-page {
  position: relative;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
}
.pv-page canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.pv-page.pv-page-error::after {
  content: "This page couldn’t be drawn.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #5d646c;
}

/* L12 Image and SVG: fit without cropping, 100 %, zoom and drag to pan. */
.pv-imagewrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 14px;
}
.pv-image {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.pv-image.is-svg img {
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
}
.pv-image.is-zoomed {
  display: block;
  cursor: grab;
}
.pv-image.is-zoomed img {
  max-width: none;
  max-height: none;
  margin: 0 auto;
}
.pv-image.is-panning {
  cursor: grabbing;
}
.pv-imagewrap .pv-caption:empty {
  display: none;
}

/* L13 HTML and L16 DOCX: sandboxed frames, never part of this page. */
.pv-framewrap {
  flex: 1 0 auto;
  width: min(1040px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pv-framewrap.is-docx {
  width: min(820px, 100%);
  gap: 10px;
}
.pv-frame {
  flex: 1 0 620px;
  width: 100%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
}
.pv-notice {
  flex: none;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2dfd9;
  border-radius: 10px;
  font-size: 13.5px;
  color: #2b3137;
}
.pv-notice-status {
  font-weight: 600;
}
.pv-notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 20px;
  margin-top: 10px;
}
.pv-notice-grid:empty {
  display: none;
}
.pv-notice-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a525b;
}
.pv-notice ul {
  margin: 4px 0 0;
  padding-left: 18px;
  max-height: 140px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #4a525b;
  word-break: break-all;
}
.pv-notice-more {
  margin-top: 8px;
  font-size: 12.5px;
  color: #4a525b;
}

/* L14 Text, JSON and Markdown. */
.pv-text {
  flex-shrink: 0;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: #13181d;
  white-space: pre;
  overflow-x: auto;
  tab-size: 4;
}
.pv-text.is-wrapped {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pv-text.is-json {
  width: min(900px, 100%);
}
.pv-text.is-source {
  width: min(760px, 100%);
}
.pv-text[hidden],
.pv-markdown[hidden] {
  display: none;
}
.pv-markdown {
  flex-shrink: 0;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 40px 48px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
  font-size: 15.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.pv-markdown > :first-child {
  margin-top: 0;
}
.pv-markdown > :last-child {
  margin-bottom: 0;
}
.pv-markdown h1 {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 12px;
}
.pv-markdown h2 {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 22px 0 8px;
}
.pv-markdown h3 {
  font-size: 17px;
  margin: 18px 0 6px;
}
.pv-markdown p {
  margin: 0 0 14px;
}
.pv-markdown ul,
.pv-markdown ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.pv-markdown pre {
  background: #f4f2ee;
  padding: 12px 14px;
  border-radius: 8px;
  overflow: auto;
  font-size: 13px;
}
.pv-markdown table {
  border-collapse: collapse;
  margin: 0 0 14px;
}
.pv-markdown th,
.pv-markdown td {
  border: 1px solid #d6d2ca;
  padding: 6px 8px;
  text-align: left;
}
.pv-markdown th {
  background: #f7f6f3;
}
.pv-markdown img {
  max-width: 100%;
}
.pv-markdown a {
  color: #8a4526;
}

/* L15 CSV and L17 XLSX tables. */
.pv-sheet {
  flex-shrink: 0;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
}
.pv-sheet-scroll {
  overflow-x: auto;
}
.pv-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.pv-table.is-workbook {
  min-width: 640px;
}
.pv-table th,
.pv-table td {
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #eeebe6;
  border-right: 1px solid #eeebe6;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13.5px;
  color: #13181d;
  background: #fff;
}
.pv-table.is-workbook th,
.pv-table.is-workbook td {
  padding: 6px 10px;
}
.pv-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 700;
  background: #f7f6f3;
}
.pv-table .pv-rownum,
.pv-table .pv-colname {
  width: 48px;
  min-width: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #5d646c;
  background: #f4f2ee;
  text-align: center;
}
.pv-table .pv-rownum {
  position: sticky;
  left: 0;
}
.pv-table thead .pv-rownum {
  z-index: 2;
}
.pv-table .pv-colname {
  width: auto;
}
.pv-table td.is-number {
  text-align: right;
}
.pv-table tr.is-first td {
  font-weight: 700;
}
.pv-sheet-empty {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: #5d646c;
}
.pv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  border-top: 1px solid #e2dfd9;
  background: #f7f6f3;
}
.pv-tab {
  min-height: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #13181d;
  font-size: 13px;
  font-weight: 400;
}
.pv-tab:hover {
  background: #fff;
  color: #13181d;
}
.pv-tab[aria-selected="true"] {
  background: #fff;
  border-color: #d6d2ca;
  font-weight: 600;
}

/* L18 PPTX: one slide at a time. */
.pv-slides {
  margin: auto;
  width: min(1060px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pv-slide {
  position: relative;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
  overflow: hidden;
}
.pv-slides .pv-caption {
  margin: 0;
}
.pv-shape {
  position: absolute;
  overflow: hidden;
  color: #13181d;
}
.pv-shape p {
  margin: 0 0 0.2em;
  line-height: 1.18;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pv-shape p.bullet::before {
  content: "•";
  margin-right: 0.45em;
}
.pv-shape img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pv-shape.pv-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cfcbc3;
  color: #5d646c;
  font-size: 12px;
  text-align: center;
}
.pv-shape table {
  border-collapse: collapse;
  width: 100%;
  height: 100%;
}
.pv-shape td {
  border: 1px solid #cfcbc3;
  padding: 2px 4px;
  vertical-align: top;
}
.pv-flow {
  position: static;
  padding: 0 4%;
}
.pv-slide > .pv-flow:first-child {
  padding-top: 6%;
}

/* L19 Audio and video: WPR's player controls over the browser's media element (byte-range seeking). */
.pv-audio {
  margin: auto;
  width: min(560px, 100%);
  flex-shrink: 0;
  padding: 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.12);
}
.pv-media-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pv-media-meta {
  margin-top: 2px;
  font-size: 13px;
  color: #5d646c;
}
.pv-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.pv-play {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #13181d;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.pv-play:hover {
  background: #2a323b;
}
.pv-seek {
  flex: 1;
  min-width: 0;
  margin: 0;
  accent-color: #b8683f;
}
.pv-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #4a525b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pv-media audio {
  display: none;
}
.pv-video {
  margin: auto;
  width: min(1100px, 100%);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #13181d;
  box-shadow: 0 2px 10px rgba(19, 24, 29, 0.2);
}
.pv-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 190px);
  background: #000;
  object-fit: contain;
  cursor: pointer;
}
.pv-video .pv-player {
  margin: 0;
  padding: 10px 14px;
}
.pv-video .pv-play {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #13181d;
  font-size: 13px;
}
.pv-video .pv-play:hover {
  background: #e9e6e0;
}
.pv-video .pv-seek {
  accent-color: #d99468;
}
.pv-video .pv-time {
  color: #e9ecef;
}

/* ----- Narrow windows ---------------------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .viewer-bar {
    gap: 8px 10px;
    padding: 8px 10px;
  }
  .vw-ident {
    flex-basis: 100%;
  }
  .vw-actions {
    margin-left: 0;
  }
  .viewer-stage {
    padding: 14px;
  }
  .pv-imagewrap {
    padding: 14px 14px 10px;
  }
  .viewer-details {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: min(340px, 90vw);
    box-shadow: -10px 0 30px rgba(19, 24, 29, 0.18);
  }
  .pv-markdown {
    padding: 24px 20px;
  }
  .pv-frame {
    flex-basis: 480px;
  }
}
@media (max-width: 560px) {
  .vw-pill-old,
  .vw-pill {
    display: none;
  }
  .viewer-nav [data-viewer-prev],
  .viewer-nav [data-viewer-next] {
    padding: 0 8px;
  }
}
