/* Prompti generaator (/tooriistad/prompti-generaator/), 22.10.2026. Muutujad tulevad generaatori STIIL-ist ja
   teema.css-ist (hele/tume), siin ainult tööriista paigutus. Laual: vasakul valikud, paremal kleepuv tulemus. */
.pg-wrap { max-width: 1200px; }   /* sissejuhatus tööriistaga ühel joonel */
.pg-ala { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pg-ala [hidden] { display: none !important; }
.pg-pealkiri, .pg-kast legend, .pg-alam, .pg-tulemus-pais, .pg-neg-kast > span, .pg-ajalugu > span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

.pg-eelseaded { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.pg-pealkiri { flex-basis: 100%; margin-bottom: 2px; }
.pg-eelseaded button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px;
  background: var(--bg-card); border: 1px solid var(--border-light); color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
.pg-eelseaded button:hover, .pg-eelseaded button:focus-visible { border-color: var(--accent); }
.pg-eelseaded b { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 14px; }
.pg-eelseaded span { font-size: 12px; color: var(--muted); }

.pg-vorm { display: grid; gap: 12px; }
.pg-idee, .pg-seaded { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 700px) { .pg-seaded { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .pg-vorm { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "idee tulemus" "seaded tulemus"; align-items: start; }
  .pg-idee { grid-area: idee; } .pg-seaded { grid-area: seaded; }
  .pg-tulemus { grid-area: tulemus; position: sticky; top: 96px; }
}
.pg-vorm[data-liik="pilt"] .ainult-video, .pg-vorm[data-liik="video"] .ainult-pilt { display: none; }

.pg-kast { margin: 0; min-width: 0; background: var(--bg-card); border: 1px solid var(--border-light); padding: 16px 18px 18px; }
.pg-kast legend { padding: 0 6px; margin-left: -6px; }
.pg-alam { display: block; margin: 14px 0 8px; color: var(--muted); }
.pg-alam:first-child { margin-top: 0; }
.pg-vihje { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.pg-kiibid { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-kiibid + .pg-kiibid, .pg-kiibid + .pg-liugur, .pg-liugur + .pg-liugur { margin-top: 14px; }
.pg-kiibid label { position: relative; }
.pg-kiibid input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pg-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; }
.pg-kiibid label:hover span { border-color: var(--accent); color: var(--fg); }
.pg-kiibid input:checked + span { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.pg-kiibid input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-liik { margin-top: 12px; }

.pg-liugur { display: block; }
.pg-liugur > span { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--fg-dim); margin-bottom: 4px; }
.pg-liugur output { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--fg); white-space: nowrap; }
.pg-liugur input { width: 100%; margin: 0; accent-color: var(--accent); }
.pg-linnud { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--fg-dim); }
.pg-linnud input { accent-color: var(--accent); }

.pg-kast textarea, .pg-tekst input { display: block; width: 100%; margin: 0; padding: 10px 12px; background: var(--bg); color: var(--fg);
  border: 1px solid var(--border-light); font: 15px/1.5 'Archivo', sans-serif; resize: vertical; }
.pg-kast textarea:focus, .pg-tekst input:focus { outline: none; border-color: var(--accent); }
.pg-tekst { display: block; margin-top: 14px; font-size: 13px; color: var(--fg-dim); }
.pg-tekst input { margin-top: 6px; }

.pg-tulemus { min-width: 0; background: var(--bg-card); border: 1px solid var(--border-light); border-left: 3px solid var(--accent); padding: 18px; }
.pg-tulemus-pais { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pg-tulemus-pais span + span { color: var(--muted); }
.pg-tulemus pre, .pg-neg-kast pre { margin: 0; padding: 14px; background: var(--bg); border: 1px solid var(--border); color: var(--fg);
  font: 13px/1.6 'JetBrains Mono', monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-tolkimata { font-size: 13px; color: var(--accent); margin: 10px 0 0; }
.pg-neg-kast { margin-top: 12px; }
.pg-neg-kast > span { display: block; margin-bottom: 6px; color: var(--muted); }
.pg-nupud { display: grid; gap: 8px; margin-top: 14px; }
.pg-kopeeri, .pg-teine { padding: 14px 18px; border: 1px solid var(--accent); font-family: 'Oswald', sans-serif; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.pg-kopeeri { background: var(--accent); color: #0a0a0a; }
.pg-kopeeri:hover { background: #FF7A33; }
.pg-teine { background: transparent; color: var(--fg); }
.pg-teine:hover { color: var(--accent); }
.pg-teade { min-height: 1.5em; margin: 8px 0 0; font-size: 13px; color: var(--accent); }
.pg-ajalugu { margin-top: 10px; border-top: 1px solid var(--border-light); padding-top: 12px; }
.pg-ajalugu ul { list-style: none; padding: 0; margin: 8px 0 0; }
.pg-ajalugu li { margin: 0; }
.pg-ajalugu button { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%;
  padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--fg-dim);
  font: 12px/1.5 'JetBrains Mono', monospace; text-align: left; cursor: pointer; }
.pg-ajalugu button:hover { color: var(--fg); }

/* telefonis/tahvlis: kopeerimisnupp ekraani all, kui peamine nupp pole nähtaval (JS) */
.pg-alla { position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 20; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
@media (min-width: 1024px) { .pg-ala .pg-alla { display: none !important; } }

@media (max-width: 560px) {
  .pg-kast { padding: 14px 14px 16px; }
  .pg-pealkiri, .pg-kast legend, .pg-alam, .pg-tulemus-pais { font-size: 12px; }
  .pg-eelseaded button { padding: 8px 12px; }   /* telefonis kiibid: kirjeldus ära, muidu 7 kaarti enne tööriista */
  .pg-eelseaded button span { display: none; }
}

html[data-teema="hele"] :is(.pg-kopeeri, .pg-kiibid input:checked + span) { color: #fff; }
html[data-teema="hele"] .pg-kopeeri:hover { background: var(--accent); filter: brightness(1.1); }
html[data-teema="hele"] .pg-alla { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
