/* Gorsel araclari ortak bilesenleri (birakma alani, dosya listesi). Ayni blok grubun diger arac.css'lerinde de var. */
.gr-birak {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 150px;
  padding: 22px 16px; text-align: center; color: var(--text); cursor: pointer;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 14px; background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.gr-birak:hover, .gr-birak.gr-ustunde { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.gr-birak:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.gr-birak input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.gr-birak svg { width: 30px; height: 30px; color: var(--accent); }
.gr-birak strong { font-size: 15px; font-weight: 650; }
.gr-birak small { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.gr-bicimler { letter-spacing: .2px; }
.gr-dama {
  background-color: var(--bg);
  background-image: repeating-conic-gradient(color-mix(in srgb, var(--muted) 22%, transparent) 0 25%, transparent 0 50%);
  background-size: 14px 14px;
}
.gr-ozet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.gr-ozet p { margin: 0; font-size: 14px; color: var(--muted); }
.gr-ozet p b { color: var(--text); font-weight: 650; }
.gr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gr-oge {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0;
  padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.gr-oge[data-durum=hata] { border-color: color-mix(in srgb, #ef4444 50%, var(--line)); }
.gr-kucuk { display: block; width: 60px; height: 60px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line); }
.gr-bilgi { display: grid; gap: 3px; min-width: 0; }
.gr-ad { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-ad .arac-rozet { margin-left: 6px; padding: 1px 7px; font-size: 11px; vertical-align: 1px; }
.gr-meta { font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.gr-meta b { color: var(--text); font-weight: 650; }
.gr-meta .arac-rozet { padding: 1px 7px; font-size: 11px; }
.gr-not { font-size: 12px; line-height: 1.5; color: var(--muted); }
.gr-hata { font-size: 12.5px; line-height: 1.5; color: #e5484d; }
.gr-eylem { justify-content: flex-end; gap: 6px; }
.gr-bos { margin: 0; padding: 22px 16px; text-align: center; font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 520px) {
  .gr-oge { grid-template-columns: 52px minmax(0, 1fr); }
  .gr-kucuk { width: 52px; height: 52px; }
  .gr-eylem { grid-column: 1 / -1; }
  .gr-eylem .arac-dugme { flex: 1; }
}


/* Kod icerigi (QR ve barkod okuyucularda ayni blok) */
.gr-icerik th { width: 34%; white-space: nowrap; }
.gr-icerik td { overflow-wrap: anywhere; }
.gr-icerik .gr-deger { font-weight: 600; }
.gr-bag { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.gr-bag:hover { filter: brightness(1.15); }
.gr-uyari { margin: 0; padding: 9px 12px; border-radius: 9px; font-size: 13px; line-height: 1.5; border: 1px solid color-mix(in srgb, #f5a524 45%, var(--line)); background: color-mix(in srgb, #f5a524 9%, var(--bg)); }
.gr-gizli { letter-spacing: 2px; }

/* Gorselden renk secici */
.grs-birak { min-height: 0; padding: 14px 16px; grid-auto-flow: column; justify-content: center; gap: 10px; }
.grs-birak svg { width: 22px; height: 22px; }
.grs-birak strong { font-size: 14px; }
.grs-sahne { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; line-height: 0; }
.grs-sahne canvas#grs-tuval { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: 560px; cursor: crosshair; touch-action: none; }
.grs-sahne canvas#grs-tuval:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.grs-lupa { position: absolute; width: 132px; height: 132px; border-radius: 50%; border: 3px solid #fff; pointer-events: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .35); image-rendering: pixelated; background: #808080; z-index: 2; }
.grs-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.grs-alt .arac-ipucu { flex: 1 1 220px; min-width: 0; font-variant-numeric: tabular-nums; }
.grs-alt .arac-dugme { width: auto; }
.grs-secili { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.grs-ornek { display: block; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.grs-ornek i { display: block; width: 100%; height: 100%; }
.grs-degerler { display: grid; gap: 6px; min-width: 0; }
.grs-satir { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.grs-satir > span { font-size: 12px; font-weight: 650; color: var(--muted); }
.grs-satir output { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.grs-satir .arac-dugme { width: auto; }
.grs-bolum { display: grid; gap: 10px; min-width: 0; }
.grs-bolum-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grs-bolum-ust .arac-panel-baslik { margin: 0; font-size: 16px; }
.grs-gecmis { display: flex; flex-wrap: wrap; gap: 6px; }
.grs-gecmis .gr-not { margin: 0; }
.grs-kutu { display: inline-block; width: 30px; height: 30px; flex: none; padding: 0; border-radius: 8px; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .25); cursor: pointer; }
button.grs-kutu:hover, button.grs-kutu:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grs-palet { display: grid; gap: 6px; }
.grs-palet-oge { display: grid; grid-template-columns: 30px minmax(70px, auto) minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.grs-palet-oge:hover, .grs-palet-oge:focus-visible { border-color: var(--accent); outline: none; }
.grs-palet-bilgi { display: grid; line-height: 1.25; }
.grs-palet-bilgi b { font: 650 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.grs-palet-bilgi small { font-size: 11.5px; color: var(--muted); }
.grs-cubuk { display: block; height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.grs-cubuk i { display: block; height: 100%; border-radius: 99px; }
.grs-aktar-sec { display: grid; gap: 8px; }
@media (max-width: 520px) { .grs-secili { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } .grs-ornek { width: 64px; height: 64px; } .grs-birak { grid-auto-flow: row; } }
