/* Pildi suuruse muutmine (/tooriistad/pildi-suuruse-muutmine/), 22.10.2026. Muutujad generaatori STIIL-ist ja
   teema.css-ist; kiibid sama kujuga mis prompti generaatoris. */
.ps-wrap { max-width: 1100px; }
.ps-ala { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ps-ala [hidden] { display: none !important; }
.ps-kaart { background: var(--bg-card); border: 1px solid var(--border-light); border-left: 3px solid var(--accent); padding: 24px; }
@media (min-width: 1024px) { .ps-kaart { padding: 36px; } }

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

.ps-seaded { display: grid; gap: 16px 28px; margin: 24px 0 0; }
@media (min-width: 900px) { .ps-seaded { grid-template-columns: 1.6fr 1fr 1fr; } }
.ps-seaded fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ps-seaded legend { padding: 0; margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); }
.ps-kiibid { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-kiibid label { position: relative; }
.ps-kiibid input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ps-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; }
.ps-kiibid label:hover span { border-color: var(--accent); color: var(--fg); }
.ps-kiibid input:checked + span { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.ps-kiibid input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ps-oma { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--fg-dim); }
.ps-oma input { width: 7em; padding: 6px 10px; background: var(--bg); color: var(--fg); border: 1px solid var(--border-light);
  font: 14px 'JetBrains Mono', monospace; }
.ps-oma input:focus { outline: none; border-color: var(--accent); }
.ps-kvaliteet label > span { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-dim); margin-bottom: 4px; }
.ps-kvaliteet output { font-family: 'JetBrains Mono', monospace; color: var(--fg); }
.ps-kvaliteet input { width: 100%; margin: 0; accent-color: var(--accent); }
.ps-vihje { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.ps-seaded:not([data-tyyp="image/png"]) .ps-vihje { display: none; }
.ps-seaded[data-tyyp="image/png"] .ps-kvaliteet label { opacity: .4; }

.ps-kokku { display: grid; gap: 12px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); }
@media (min-width: 700px) { .ps-kokku { grid-template-columns: 1fr auto; } }
.ps-kokku p { margin: 0; color: var(--fg); font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.ps-nupud { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-nupp, .ps-teine { padding: 12px 18px; border: 1px solid var(--accent); font-family: 'Oswald', sans-serif; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.ps-nupp { background: var(--accent); color: #0a0a0a; }
.ps-nupp:hover { background: #FF7A33; }
.ps-nupp:disabled { opacity: .5; cursor: progress; }
.ps-teine { background: transparent; color: var(--fg); }
.ps-teine:hover { color: var(--accent); }
.ps-teade { min-height: 0; margin: 12px 0 0; font-size: 14px; color: var(--accent); }
.ps-teade:empty { margin: 0; }

.ps-nimekiri { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ps-rida { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0;
  padding: 10px; background: var(--bg); border: 1px solid var(--border); }
.ps-pisi { width: 64px; height: 64px; background: var(--border); overflow: hidden; }
.ps-pisi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-rida.ootel .ps-pisi { animation: ps-vilgu 1s ease-in-out infinite alternate; }
@keyframes ps-vilgu { to { opacity: .4; } }
.ps-info { display: grid; gap: 2px; min-width: 0; }
.ps-info b { font-weight: 600; font-size: 14px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-info span { font-size: 13px; color: var(--fg-dim); font-family: 'JetBrains Mono', monospace; }
.ps-info .hoiatus { color: var(--muted); }
.ps-rida.viga .ps-info span { color: var(--accent); font-family: inherit; }
.ps-alla { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); border: 1px solid var(--border-light); padding: 8px 12px; white-space: nowrap; }
.ps-alla:hover { border-color: var(--accent); color: var(--accent); }
.ps-privaatsus { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .ps-kaart { padding: 18px; }
  .ps-rida { grid-template-columns: 52px minmax(0, 1fr); }
  .ps-pisi { width: 52px; height: 52px; }
  .ps-alla { grid-column: 1 / -1; text-align: center; }
  .ps-seaded legend { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ps-rida.ootel .ps-pisi { animation: none; } }

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