/* The actual-app demo shares the site's paper, ink and gold palette. */
.software-recording {
  margin: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5dfd0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}
.software-recording .recording-heading {
  gap: 9px;
  padding: 15px 18px;
  background: #f6f2e7;
  color: #6d5829;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1.2px;
}
.software-recording .recording-badge {
  background: #fffdf7;
  border-color: #dfd2ad;
  font-size: 10px;
  letter-spacing: .8px;
}
#software-recording,
.software-recording .recording-poster-fallback {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1164 / 720;
  object-fit: contain;
  background: #faf9f5;
}
#software-recording[hidden],
#software-recording-expanded[hidden] { display: none; }
.software-recording .recording-stage { padding: 0; border: 0; background: #faf9f5; line-height: 0; }
.recording-progress { height: 3px; background: #eee9db; overflow: hidden; }
.recording-progress > span { display: block; height: 100%; background: #d5a500; transform: scaleX(0); transform-origin: left center; }
.software-recording figcaption {
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid #ece6d8;
}
.software-recording figcaption strong { font-size: 15px; line-height: 1.5; }
.software-recording figcaption span { font-size: 13px; line-height: 1.6; color: #756b57; }
.recording-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.software-recording #recording-toggle,
.software-recording #recording-expand {
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #d4bd7a;
  border-radius: 5px;
  background: #fff9e7;
  color: #644c13;
  font: 600 13px/1.5 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.software-recording #recording-expand { background: #fff; border-color: #d8d2c3; color: #514936; }
.software-recording #recording-toggle:hover,
.software-recording #recording-expand:hover { background: #f7edcd; border-color: #b9912e; }
.software-recording button:focus-visible,
#software-video-viewer button:focus-visible { outline: 3px solid #b58716; outline-offset: 3px; }
.software-recording button:disabled { cursor: default; opacity: .65; }
.software-recording .recording-note { padding: 0 18px 17px; color: #7b705b; font-size: 12px; line-height: 1.75; }
.recording-tour-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0 18px 15px;
  margin: 0;
  list-style: none;
  color: #7d6b42;
  font-size: 11px;
  line-height: 1.6;
}
.recording-tour-stops li + li::before { content: '·'; margin-right: 12px; color: #ac8d42; }
.recording-tour-stops [data-tour-chapter] { padding: 7px 8px; min-height: 32px; border: 0; border-radius: 4px; background: #f6f3eb; color: #6c624e; font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; }
.recording-tour-stops [data-active="true"] { background: #f4e7b4; color: #4c3b08; font-weight: 600; }
.recording-tour-stops [data-tour-chapter]:focus-visible { outline: 2px solid #b58716; outline-offset: 2px; }
#software-video-viewer {
  width: min(1400px, 96vw);
  max-height: 94vh;
  max-height: 94dvh;
  border: 1px solid #ddd6c4;
  padding: 0;
  background: #faf9f5;
}
#software-video-viewer::backdrop { background: #302a1f59; }
#software-video-viewer .viewer-bar { position: relative; color: #514936; background: #f6f2e7; border-bottom: 1px solid #ddd6c4; }
#software-video-viewer .viewer-bar > span { line-height: 1.6; }
#software-video-viewer .viewer-bar button { min-height: 42px; flex-shrink: 0; color: #514936; background: #fff; border: 1px solid #d8d2c3; }
#software-recording-expanded,
#software-video-viewer .recording-poster-fallback {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 90px);
  max-height: calc(94dvh - 90px);
  aspect-ratio: 1164 / 720;
  object-fit: contain;
  background: #faf9f5;
}
.recording-playback-error { padding: 14px 20px 20px; color: #514936; font-size: 14px; line-height: 1.7; }
@media (max-width: 650px) {
  .software-recording .recording-heading { padding: 12px 13px; font-size: 10px; }
  .software-recording .recording-badge { font-size: 9px; }
  .software-recording figcaption { padding: 14px 13px; gap: 12px; }
  .recording-controls { width: 100%; }
  .software-recording #recording-toggle,
  .software-recording #recording-expand { flex: 1; min-height: 44px; padding: 10px 12px; }
  .software-recording .recording-note { padding: 0 13px 14px; }
  .recording-tour-stops { padding: 0 13px 13px; }
  #software-video-viewer .viewer-bar { padding: 10px 12px; gap: 12px; font-size: 12px; }
  #software-recording-expanded { max-height: calc(94dvh - 100px); }
}
@media (prefers-reduced-motion: reduce) {
  .software-recording #recording-toggle,
  .software-recording #recording-expand { transition: none; }
}
