/* Piltidest video tegemine (/tooriistad/piltidest-video/), 22.10.2026. Muutujad generaatori STIIL-ist ja teema.css-ist;
   kiibid ja lohistamisala sama kujuga mis pildi suuruse muutmisel. Laual: vasakul pildid + seaded, paremal kleepuv eelvaade. */
.pv-wrap { max-width: 1100px; }
.pv-ala { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.pv-ala [hidden] { display: none !important; }
.pv-kaart { display: grid; gap: 28px; background: var(--bg-card); border: 1px solid var(--border-light); border-left: 3px solid var(--accent); padding: 24px; }
@media (min-width: 900px) {
  .pv-kaart { grid-template-columns: minmax(0, 1fr) 340px; padding: 32px; align-items: start; }
  .pv-parem { position: sticky; top: 96px; }
}
.pv-vasak, .pv-parem { min-width: 0; }

.pv-lohista { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 130px; padding: 20px; border: 2px dashed var(--border-light); background: var(--bg); text-align: center; cursor: pointer;
  transition: border-color .15s; }
.pv-lohista:hover, .pv-lohista.lohistab, .pv-lohista:focus-within { border-color: var(--accent); }
.pv-lohista input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pv-lohista b { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 18px; color: var(--fg); }
.pv-lohista span { font-size: 14px; color: var(--muted); }

.pv-pildid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.pv-pildid:empty { display: none; }
.pv-pildid li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0;
  padding: 6px; background: var(--bg); border: 1px solid var(--border); }
/* pildi tekst + enne/pärast (23.10.2026) */
.pv-rida2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pv-allkiri { flex: 1 1 180px; min-width: 0; padding: 7px 10px; background: var(--bg-card); color: var(--fg); border: 1px solid var(--border-light);
  font: 14px 'Archivo', sans-serif; }
.pv-allkiri:focus { outline: none; border-color: var(--accent); }
.pv-fookus { padding: 6px 8px; background: var(--bg-card); color: var(--fg-dim); border: 1px solid var(--border-light); font-size: 12px; }
.pv-fookus:focus { outline: none; border-color: var(--accent); }
.pv-paar { padding: 6px 10px; border: 1px solid var(--border-light); background: transparent; color: var(--fg-dim); font-size: 12px; cursor: pointer; white-space: nowrap; }
.pv-paar:hover:not(:disabled), .pv-paar[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.pv-paar[hidden] { display: none; }
.pv-pildid li.enne { border-color: var(--accent); border-bottom-style: dashed; }
.pv-pildid li.parast { border-color: var(--accent); border-top-style: dashed; margin-top: -7px; }
.pv-pildid li.parast span::after { content: ' · pärast'; color: var(--accent); }
.pv-pildid li.enne span::after { content: ' · enne'; color: var(--accent); }
.pv-pildid img { width: 44px; height: 44px; object-fit: cover; display: block; }
.pv-pildid span { font-size: 13px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-noolt { display: flex; gap: 4px; }
.pv-noolt button { width: 34px; height: 34px; border: 1px solid var(--border-light); background: transparent; color: var(--fg);
  font-size: 16px; cursor: pointer; }
.pv-noolt button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pv-noolt button:disabled { opacity: .3; cursor: default; }

.pv-seaded { display: grid; gap: 18px 24px; margin-top: 22px; }
@media (min-width: 600px) { .pv-seaded { grid-template-columns: 1fr 1fr; } .pv-seaded fieldset:first-child, .pv-tekstid, .pv-logo { grid-column: 1 / -1; } }
.pv-seaded fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pv-seaded legend { padding: 0; margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); }
.pv-kiibid { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-kiibid label { position: relative; }
.pv-kiibid input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pv-kiibid span { display: inline-block; padding: 6px 12px; border: 1px solid var(--border-light); border-radius: 999px; font-size: 13px;
  line-height: 1.4; color: var(--fg-dim); background: var(--bg); transition: border-color .15s, color .15s; }
.pv-kiibid label:hover span { border-color: var(--accent); color: var(--fg); }
.pv-kiibid input:checked + span { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.pv-kiibid input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pv-kiibid input:disabled + span { opacity: .5; }
.pv-liugur > span { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-dim); margin-bottom: 4px; }
.pv-liugur output { font-family: 'JetBrains Mono', monospace; color: var(--fg); }
.pv-liugur input { width: 100%; margin: 0; accent-color: var(--accent); }
.pv-linnuke { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--fg-dim); }
.pv-linnuke input { accent-color: var(--accent); }
.pv-tekstid { display: grid; gap: 10px; }
.pv-tekstid label { display: grid; gap: 4px; font-size: 13px; color: var(--fg-dim); }
.pv-tekstid input { padding: 9px 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--border-light); font: 15px 'Archivo', sans-serif; }
.pv-tekstid input:focus { outline: none; border-color: var(--accent); }

.pv-loend { display: flex; justify-content: center; background: var(--bg); border: 1px solid var(--border); padding: 10px; }
.pv-loend canvas { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; }
.pv-nupud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pv-nupp, .pv-teine { padding: 13px 14px; border: 1px solid var(--accent); font-family: 'Oswald', sans-serif; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.pv-nupp { background: var(--accent); color: #0a0a0a; }
.pv-nupp:hover:not(:disabled) { background: #FF7A33; }
.pv-teine { background: transparent; color: var(--fg); }
.pv-teine:hover:not(:disabled) { color: var(--accent); }
.pv-nupp:disabled, .pv-teine:disabled { opacity: .45; cursor: default; }
.pv-edu { height: 6px; margin-top: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border-light); }
.pv-edu i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.pv-teade { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--fg-dim); }
.pv-alla { display: block; margin-top: 8px; padding: 14px; text-align: center; background: var(--accent); color: #0a0a0a; text-decoration: none;
  font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.pv-alla:hover { background: #FF7A33; color: #0a0a0a; }

@media (max-width: 560px) {
  .pv-kaart { padding: 18px; }
  .pv-seaded legend { font-size: 12px; }
}

html[data-teema="hele"] :is(.pv-nupp, .pv-alla, .pv-kiibid input:checked + span) { color: #fff; }
html[data-teema="hele"] :is(.pv-nupp:hover:not(:disabled), .pv-alla:hover) { background: var(--accent); color: #fff; filter: brightness(1.1); }

/* oma heli (23.10.2026) */
.pv-heli-rida { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pv-heli-vali { position: relative; display: inline-block; padding: 8px 14px; border: 1px dashed var(--border-light); background: var(--bg);
  color: var(--fg); font-size: 14px; cursor: pointer; }
.pv-heli-vali:hover, .pv-heli-vali:focus-within { border-color: var(--accent); }
.pv-heli-vali input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pv-heli-nimi { min-width: 0; font: 13px 'JetBrains Mono', monospace; color: var(--fg-dim); overflow-wrap: anywhere; }
.pv-heli-ara { padding: 6px 10px; border: 1px solid var(--border-light); background: transparent; color: var(--fg-dim); font-size: 13px; cursor: pointer; }
.pv-heli-ara:hover { border-color: var(--accent); color: var(--accent); }
.pv-oigus { align-items: flex-start; margin-top: 12px; line-height: 1.45; }
.pv-oigus input { margin-top: 3px; flex: none; }
.pv-oigus.nouab { color: var(--accent); }
.pv-heli-markus { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (min-width: 600px) { .pv-heli { grid-column: 1 / -1; } }
/* logo (23.10.2026) */
.pv-logo .pv-kiibid { margin-top: 10px; }
.pv-logo-valik[hidden] { display: none; }
/* liikumine + rütm (23.10.2026) */
.pv-alamsilt { margin: 12px 0 6px; font-size: 13px; color: var(--fg-dim); }
.pv-rytm-info { color: var(--muted); font-size: 12px; }
