/* YAML dogrulayici: satir numarali duz metin editoru. Satir yuksekligi (20px) ve ust bosluk (12px)
   arac.js icindeki SATIR_Y / UST_BOSLUK ile ayni olmali. */
.yd { display: grid; gap: 12px; }
.yd-arac-cubugu { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
.yd-grup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yd-grup .arac-dugme { width: auto; }
.yd-gizli {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.yd-durum { overflow-wrap: anywhere; }
.yd-durum[data-durum=bekle]::before { animation: none; }
.yd-git {
  margin-left: 4px; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface2); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer;
}
.yd-git:hover { border-color: var(--accent); color: var(--accent); }

.yd-editor {
  display: flex; height: 520px; min-height: 200px; resize: vertical; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.yd-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.yd-satirlar {
  flex: none; min-width: 46px; margin: 0; padding: 12px 10px 12px 8px; overflow: hidden;
  text-align: right; color: var(--muted); background: var(--surface2); border-right: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 20px;
  user-select: none; opacity: .85;
}
.yd-satirlar b { font-weight: 700; }
.yd-satirlar b.hata { color: #ef4444; }
.yd-satirlar b.uyari { color: #d98a0b; }
.yd-alan { position: relative; flex: 1; min-width: 0; }
.yd-vurgu { position: absolute; left: 0; right: 0; height: 20px; pointer-events: none; }
.yd-vurgu.hata { background: color-mix(in srgb, #ef4444 16%, transparent); box-shadow: inset 3px 0 0 #ef4444; }
.yd-vurgu.uyari { background: color-mix(in srgb, #f5a524 14%, transparent); box-shadow: inset 3px 0 0 #f5a524; }
.arac-panel .yd-alan textarea {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0;
  padding: 12px 14px; border: 0; border-radius: 0; background: transparent; resize: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 20px;
  white-space: pre; overflow: auto; tab-size: 4; box-shadow: none;
}
.arac-panel .yd-alan textarea:focus { box-shadow: none; }

.yd-json summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text); padding: 4px 0; width: fit-content;
}
.yd-json summary:hover { color: var(--accent); }
.yd-json .arac-cikti { margin-top: 10px; }
.yd-json pre { max-height: 420px; }
@media (max-width: 720px) {
  .yd-editor { height: 400px; }
  .yd-arac-cubugu { justify-content: flex-start; }
}
