/* Assistance lives inside the selected form and uses its existing light/dark palette. */
#manual-doc-form button.pv-prompt,
[data-pv-guide] .pv-prompt {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px;
  padding: 8px 12px; background: var(--dz-soft); color: var(--dz-ink);
  border: 1px solid var(--dz-line); border-radius: 10px; text-align: left;
  font: inherit; cursor: pointer; text-decoration: none;
}
.pv-prompt strong, .pv-prompt small { display: block; }
.pv-prompt strong { font-size: .95rem; }
.pv-prompt small { margin-top: 3px; color: var(--dz-copy); font-size: .8rem; }
.pv-thumb { position: relative; flex: 0 0 42px; height: 48px; overflow: hidden; border-radius: 5px; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pv-thumb b {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%; color: white; background: #162b42df; font-size: 11px;
}
#manual-doc-form button.pv-link {
  display: block; padding: 5px 0; margin: 0 0 5px; min-height: 28px;
  border: 0; background: transparent; color: var(--dz-accent); cursor: pointer;
  font: inherit; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; text-align: left;
}
#manual-doc-form .pv-link[hidden], #prikaz-video [hidden] { display: none; }
#prikaz-video {
  background: #101b29; color: #f4eee5; border: 1px solid #425368; border-radius: 16px;
  width: min(960px, calc(100vw - 48px)); height: min(880px, calc(100dvh - 40px));
  max-width: none; max-height: none; margin: auto; padding: 0; box-sizing: border-box; overflow: hidden;
}
#prikaz-video[open] { display: flex; flex-direction: column; }
#prikaz-video::backdrop { background: #071321c9; }
html:has(#prikaz-video[open]) { overflow: hidden; }
#prikaz-video button { font: inherit; color: inherit; cursor: pointer; }
#prikaz-video button:focus-visible, #manual-doc-form [data-pv-topic]:focus-visible { outline: 3px solid #e29766; outline-offset: 2px; }
.pv-header, .pv-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
#prikaz-video .pv-header, #prikaz-video .pv-controls { position: static; margin: 0; background: #192839; color: #f4eee5; padding: 10px 18px; }
#prikaz-video h2 { margin: 0; font-size: 1.12rem; color: inherit; line-height: 1.3; }
.pv-header button, .pv-controls button { border: 1px solid #65788c; border-radius: 8px; padding: 8px 13px; background: transparent; min-height: 42px; }
.pv-header button { white-space: nowrap; }
.pv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 30%); flex: 1; min-height: 0; }
.pv-stage { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #080f18; }
#prikaz-video video { display: block; width: 100%; height: 100%; object-fit: contain; max-width: none; }
#prikaz-video.pv-zoomed video { width: 150%; height: auto; }
.pv-error { position: absolute; inset: auto 10px 40px; padding: 12px; background: #192839; color: white; }
.pv-error a { color: #ffbf95; }
.pv-chapters { overflow-y: auto; padding: 16px; }
#prikaz-video h3 { margin: 0 0 14px; color: inherit; font-size: 1.05rem; }
.pv-chapters ol { list-style: none; margin: 0; padding: 0; }
.pv-chapters button {
  display: flex; gap: 10px; padding: 9px 4px; min-height: 42px; width: 100%; text-align: left;
  border: 0; border-bottom: 1px solid #35475a; background: transparent;
}
.pv-chapters button span { color: #ffbf95; font-variant-numeric: tabular-nums; }
.pv-chapters button b { font-weight: 500; }
.pv-chapters button:hover { background: #243447; }
.pv-controls [data-pv-chapters] { display: none; }
#prikaz-video .pv-controls { justify-content: flex-end; }
@media (max-width: 700px) {
  #prikaz-video {
    position: fixed; inset: 0; width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0;
  }
  #prikaz-video h2 { font-size: .94rem; }
  #prikaz-video .pv-header { padding: max(6px, env(safe-area-inset-top)) 10px 6px; }
  #prikaz-video .pv-controls { padding: 6px 10px max(6px, env(safe-area-inset-bottom)); justify-content: space-between; }
  .pv-layout { position: relative; display: flex; flex-direction: column; }
  .pv-stage { flex: 1; }
  .pv-controls [data-pv-chapters] { display: block; }
  .pv-chapters { display: none; }
  .pv-steps-open .pv-chapters {
    display: block; position: absolute; inset: auto 0 0; max-height: 75%; background: #192839;
    border-top: 1px solid #65788c; box-shadow: 0 -4px 18px #0005;
  }
}
@media (max-height: 450px) and (orientation: landscape) {
  #prikaz-video { width: 100%; height: 100dvh; border-radius: 0; }
  #prikaz-video .pv-header, #prikaz-video .pv-controls { padding-block: 2px; }
}
