/* Ajansly Studio · adjust (önek sd-aj-)
 * Renkler studio.css değişkenlerinden gelir. Degrade şeritlerindeki renkler (kanal, ton tayfı, siyah-beyaz düzey
 * tutamaçları) arayüz rengi değil, görüntü içeriğinin kendisidir. */

/* ---- Satırlar ---- */
.sd-aj-dlg, .sd-aj-pbody, .sd-aj-fctl, .sd-aj-gdlg, .sd-aj-nl, .sd-aj-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.sd-aj-row { display: flex; align-items: center; gap: 8px; min-height: 26px; min-width: 0; }
.sd-aj-row.end { justify-content: flex-end; }
.sd-aj-row > .sd-sel { flex: 1; min-width: 84px; }
.sd-aj-row .sd-aj-auto { margin-left: auto; flex: none; }
.sd-aj-lbl { color: var(--tx2); white-space: nowrap; flex: none; }
.sd-aj-sub { color: var(--tx2); margin-bottom: -4px; }
.sd-aj-unit { color: var(--tx3); white-space: nowrap; }
.sd-aj-n { width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.sd-aj-n:disabled { opacity: .5; }
.sd-aj-wide { flex: 1; min-width: 0; }
.sd-aj-wrow .sd-aj-lbl, .sd-aj-nl .sd-aj-row > .sd-aj-lbl:first-child { width: 52px; }
.sd-aj-radios { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sd-aj-radios .dis { opacity: .45; }
.sd-aj-fs { border: 1px solid var(--line2); border-radius: 3px; padding: 8px 10px 10px; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sd-aj-fs > legend { padding: 0 4px; color: var(--tx2); }
.sd-aj-preset .sd-sel { max-width: 100%; }

/* ---- Kaydırıcı (Photoshop: değer alanı + iz + altta üçgen) ---- */
.sd-aj-sl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-aj-sl.dis { opacity: .45; }
.sd-aj-slh { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.sd-aj-sll { color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-aj-slv { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.sd-aj-sln { width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.sd-aj-slt { position: relative; height: 17px; margin: 0 5px; touch-action: none; }
.sd-aj-slbar { position: absolute; left: 0; right: 0; top: 2px; height: 5px; border-radius: 1px; background: var(--line2); border: 1px solid var(--line); }
.sd-aj-zero { position: absolute; top: 0; width: 1px; height: 9px; background: var(--tx3); pointer-events: none; }
.sd-aj-slk { position: absolute; top: 8px; width: 0; height: 0; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--tx); pointer-events: none; }
.sd-aj-rng { position: absolute; left: 0; top: -3px; width: 100%; height: 22px; margin: 0; padding: 0; opacity: 0; cursor: default; -webkit-appearance: none; appearance: none; background: transparent; }
.sd-aj-rng::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 22px; }
.sd-aj-rng::-moz-range-thumb { width: 2px; height: 22px; border: 0; }
.sd-aj-rng:focus-visible ~ .sd-aj-slk { border-bottom-color: var(--acc2); }
.sd-aj-rng:focus-visible { outline: none; }
.sd-aj-slt:has(.sd-aj-rng:focus-visible) .sd-aj-slbar { box-shadow: 0 0 0 1px var(--acc2); }
.sd-aj-slrow { display: grid; grid-template-columns: minmax(62px, auto) 1fr minmax(44px, auto) auto; align-items: center; gap: 6px; }
.sd-aj-slrow .sd-aj-slt { margin: 0; }
.sd-aj-end { color: var(--tx2); font-size: 11.5px; white-space: nowrap; }
.sd-aj-end.r { text-align: left; }

/* ---- Histogram ---- */
canvas.sd-aj-hist { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px; background: var(--in); }
.sd-aj-lvbar { position: relative; height: 21px; margin: 0 6px; }
.sd-aj-lvgrad { position: absolute; left: 0; right: 0; top: 0; height: 8px; border: 1px solid var(--line); }
.sd-aj-tri { position: absolute; top: 8px; width: 13px; height: 12px; margin-left: -6.5px; padding: 0; border: 0; background: transparent; cursor: ew-resize; touch-action: none; }
.sd-aj-tri::before, .sd-aj-tri::after { content: ''; position: absolute; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sd-aj-tri::before { inset: 0; background: var(--tx2); }
.sd-aj-tri::after { left: 2px; right: 2px; top: 3.5px; bottom: 1px; }
.sd-aj-tri.k::after { background: #000; }
.sd-aj-tri.m::after { background: #808080; }
.sd-aj-tri.w::after { background: #fff; }
.sd-aj-tri:focus-visible { outline: none; }
.sd-aj-tri:focus-visible::before { background: var(--acc2); }
.sd-aj-lvnums { display: flex; justify-content: space-between; gap: 8px; margin-top: -2px; }
.sd-aj-lvnums .sd-aj-n { width: 52px; }

/* ---- Eğriler ---- */
.sd-aj-cv { display: grid; grid-template-columns: 9px 1fr; grid-template-rows: auto 9px; gap: 3px; width: 100%; max-width: 330px; align-self: center; }
.sd-aj-pbody .sd-aj-cv { max-width: none; }
.sd-aj-cvc { display: block; width: 100%; height: auto; aspect-ratio: 1; cursor: crosshair; touch-action: none; border: 1px solid var(--line); }
.sd-aj-cvc:focus-visible { outline: 2px solid var(--acc2); outline-offset: 1px; }
.sd-aj-gy, .sd-aj-gx { border: 1px solid var(--line); }
.sd-aj-io .sd-aj-n { width: 50px; }
.sd-aj-gridseg { display: inline-flex; gap: 1px; margin-left: auto; }
.sd-aj-gridseg .sd-ibtn { width: 22px; }

/* ---- Ton/Doygunluk tayf şeritleri, Siyah Beyaz ton rengi ---- */
.sd-aj-specs { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.sd-aj-spec { display: block; width: 100%; height: 10px; border: 1px solid var(--line); image-rendering: auto; }
.sd-aj-tintsw { width: 26px; height: 18px; border: 1px solid var(--line2); border-radius: 2px; margin-left: auto; }
.sd-aj-pfrow .sd-chk { width: 64px; }
.sd-aj-pfrow .sd-sel { flex: 1; min-width: 0; }
.sd-aj-total { color: var(--tx2); display: inline-flex; align-items: center; gap: 6px; }

/* ---- Degrade seçici ---- */
.sd-aj-gpick { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.sd-aj-gstrip { flex: 1; min-width: 60px; height: 24px; padding: 0; border: 1px solid var(--line2); border-radius: 2px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.sd-aj-gstrip:hover { border-color: var(--tx3); }
.sd-aj-gpop { position: fixed; z-index: 1300; width: 236px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; background: var(--p); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.sd-aj-gopt { height: 32px; padding: 0; border: 1px solid var(--line2); border-radius: 2px; cursor: pointer; }
.sd-aj-gopt:hover, .sd-aj-gopt:focus-visible { outline: 2px solid var(--acc2); outline-offset: 1px; }
.sd-aj-dial { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line2); background: var(--in); cursor: pointer; touch-action: none; }
.sd-aj-dial i { position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; margin-top: -.75px; background: var(--tx); transform-origin: 0 50%; pointer-events: none; }
.sd-aj-angle .sd-aj-n { width: 52px; }

/* ---- Diyaloglar ---- */
.sd-aj-dlgw .sd-dlg-b, .sd-aj-fdlgw .sd-dlg-b { min-width: 0; }
.sd-aj-fbox { position: relative; width: 100%; aspect-ratio: 33 / 20; border: 1px solid var(--line); background-color: var(--in); background-image: conic-gradient(var(--hov) 25%, transparent 0 50%, var(--hov) 0 75%, transparent 0); background-size: 16px 16px; cursor: grab; overflow: hidden; touch-action: none; }
.sd-aj-fbox:active { cursor: grabbing; }
.sd-aj-fbox canvas { display: block; width: 100%; height: 100%; }
.sd-aj-fzoom { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: -4px; }
.sd-aj-zl { min-width: 54px; text-align: center; color: var(--tx2); font-variant-numeric: tabular-nums; }
.sd-aj-isz { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
.sd-aj-iprev { width: 180px; height: 180px; display: grid; place-items: center; border: 1px solid var(--line); background-color: var(--in); background-image: conic-gradient(var(--hov) 25%, transparent 0 50%, var(--hov) 0 75%, transparent 0); background-size: 12px 12px; }
.sd-aj-iprev canvas { display: block; max-width: 176px; max-height: 176px; }
.sd-aj-ifields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sd-aj-ifields > .sd-aj-row > .sd-aj-lbl:first-child, .sd-aj-whcol .sd-aj-lbl, .sd-aj-csz .sd-aj-irow > .sd-aj-lbl:first-child { width: 92px; }
.sd-aj-ifields b, .sd-aj-csz b { font-weight: 600; color: var(--tx); }
.sd-aj-irow .sd-aj-n { width: 72px; }
.sd-aj-irow .sd-sel { min-width: 108px; flex: 1; }
.sd-aj-linkgrp { display: flex; align-items: center; gap: 4px; }
.sd-aj-whcol { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sd-aj-linkbar { width: 8px; height: 36px; border: 1px solid var(--line2); border-left: 0; border-radius: 0 3px 3px 0; flex: none; }
.sd-aj-csz { display: flex; flex-direction: column; gap: 10px; }
.sd-aj-anrow { align-items: flex-start; }
.sd-aj-anchor { display: grid; grid-template-columns: repeat(3, 26px); gap: 2px; }
.sd-aj-anchor button { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 2px; background: var(--in); color: var(--tx); cursor: pointer; }
.sd-aj-anchor button:hover { background: var(--hov); }
.sd-aj-anchor button.on { background: var(--act); }
.sd-aj-dot { width: 10px; height: 10px; background: var(--tx); display: block; }
.sd-aj-arr { display: grid; place-items: center; }
.sd-aj-trim { display: flex; flex-direction: column; gap: 10px; }
.sd-aj-trim .sd-aj-radios { flex-direction: column; }
.sd-aj-trim4 { display: grid; grid-template-columns: 1fr 1fr; }
.sd-aj-trim4 > legend { grid-column: 1 / -1; }

/* ---- Özellikler bölümü ---- */
.sd-aj-props { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sd-aj-ph { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--tx); }
.sd-aj-ph .sd-i { color: var(--tx2); }
.sd-aj-pfoot { display: flex; justify-content: flex-end; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.sd-aj-locked { opacity: .5; pointer-events: none; }
.sd-aj-lockmsg { display: flex; align-items: center; gap: 6px; color: var(--tx2); font-size: 11.5px; }
.sd-aj-hex { color: var(--tx2); font-variant-numeric: tabular-nums; }

/* ---- Ayarlamalar paneli ---- */
.sd-aj-ap { padding: 10px 10px 12px; }
.sd-aj-ahead { min-height: 18px; margin: 0 2px 8px; color: var(--tx2); font-size: 11.5px; }
.sd-aj-agrid { display: flex; flex-direction: column; gap: 4px; }
.sd-aj-arow { display: flex; flex-wrap: wrap; gap: 2px; }
.sd-aj-abtn { width: 31px; height: 29px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--tx2); cursor: pointer; }
.sd-aj-abtn:hover, .sd-aj-abtn:focus-visible { background: var(--hov); color: var(--tx); }
.sd-aj-abtn:disabled { opacity: .35; cursor: default; background: transparent; }

/* ---- Histogram paneli ---- */
.sd-aj-hp { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px 10px; }
.sd-aj-hp.compact { padding: 8px; }
.sd-aj-hmini { display: flex; flex-direction: column; gap: 4px; }
.sd-aj-hstats { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 3px 8px; font-size: 11px; color: var(--tx2); }
.sd-aj-hstats b { font-weight: 400; color: var(--tx); text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sd-aj-hcv { cursor: crosshair; }
