/* Ajansly Studio · layers: Katmanlar, Geçmiş, Özellikler panelleri ve Katman Stili diyaloğu. Önek: sd-ly- */
.sd, .sd-dlg, .sd-menu {
  --ly-red: #b8463f; --ly-orange: #c47a2c; --ly-yellow: #bfa636; --ly-green: #4f9a54;
  --ly-blue: #3f78b8; --ly-violet: #8a5bb3; --ly-gray: #7a7a7a;
  --ly-check: repeating-conic-gradient(#cfcfcf 0% 25%, #ffffff 0% 50%) 0 0 / 8px 8px;
}

/* ---- Katmanlar paneli ---- */
.sd-ly { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sd-ly-top { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sd-ly-r1, .sd-ly-r2, .sd-ly-r3 { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sd-ly-ftype { width: 74px; flex: none; }
.sd-ly-fctl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 1px; }
.sd-ly-fctl .sd-sel, .sd-ly-fname { flex: 1; min-width: 0; width: 100%; }
.sd-ly-fk { width: 24px; height: 22px; }
.sd-ly-foff .sd-ly-fctl { opacity: .45; }
.sd-ly-fsw { flex: none; width: 22px; height: 12px; margin-left: 2px; border: 1px solid var(--line2); border-radius: 7px; background: var(--in); padding: 0; position: relative; cursor: pointer; }
.sd-ly-fsw::after { content: ""; position: absolute; top: 1px; left: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--tx3); transition: transform .12s, background .12s; }
.sd-ly-fsw.on { background: var(--acc); border-color: var(--acc); }
.sd-ly-fsw.on::after { transform: translateX(10px); background: #fff; }
.sd-ly-bslot { flex: 1; min-width: 0; display: flex; }
.sd-ly-blend { width: 100%; min-width: 0; }
.sd-ly-numw { flex: none; display: inline-flex; align-items: center; gap: 0; }
.sd-ly-numw .sd-num { gap: 3px; }
.sd-ly-numw .sd-num .sd-in { width: 46px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.sd-ly-numw .sd-num.dis { opacity: .5; }
.sd-ly-drop { width: 16px; height: var(--sd-ctl); display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-left: 0; border-radius: 0 3px 3px 0; background: var(--in); color: var(--tx2); cursor: pointer; }
.sd-ly-drop:hover { color: var(--tx); }
.sd-ly-drop:disabled { opacity: .45; cursor: default; }
.sd-ly-locks { flex: 1; display: flex; align-items: center; gap: 1px; min-width: 0; }
.sd-ly-kl { color: var(--tx2); margin-right: 3px; }
.sd-ly-lkb { width: 22px; height: 22px; }
.sd-ly-pop { position: fixed; z-index: 1150; width: 168px; padding: 8px 10px; background: var(--p); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.sd-ly-pop input { width: 100%; accent-color: var(--acc); }

.sd-ly-list { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; outline: none; }
.sd-ly-list:focus-visible { box-shadow: inset 0 0 0 1px var(--acc2); }
.sd-ly-none { padding: 14px; color: var(--tx3); text-align: center; }
.sd-ly-row { --rh: 36px; position: relative; display: flex; align-items: center; gap: 4px; height: var(--rh); padding: 0 6px 0 0; border-bottom: 1px solid var(--line); cursor: default; white-space: nowrap; }
.sd-ly[data-tsz="none"] .sd-ly-row, .sd-ly[data-tsz="small"] .sd-ly-row { --rh: 28px; }
.sd-ly[data-tsz="large"] .sd-ly-row { --rh: 54px; }
.sd-ly-row:hover { background: var(--hov); }
.sd-ly-row.on { background: var(--act); }
.sd-ly-row.act .sd-ly-name { font-weight: 600; }
.sd-ly-row.hid .sd-ly-name, .sd-ly-row.hid .sd-ly-th, .sd-ly-row.hid .sd-ly-gi { opacity: .55; }
.sd-ly-eye { flex: none; position: relative; width: 28px; height: 100%; display: grid; place-items: center; padding: 0; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--tx); cursor: pointer; }
.sd-ly-eye:hover { background: color-mix(in srgb, var(--tx) 8%, transparent); }
.sd-ly-eye[aria-disabled="true"] { cursor: not-allowed; color: var(--tx3); }
.sd-ly-eye.lab-red { background: color-mix(in srgb, var(--ly-red) 70%, transparent); }
.sd-ly-eye.lab-orange { background: color-mix(in srgb, var(--ly-orange) 70%, transparent); }
.sd-ly-eye.lab-yellow { background: color-mix(in srgb, var(--ly-yellow) 70%, transparent); }
.sd-ly-eye.lab-green { background: color-mix(in srgb, var(--ly-green) 70%, transparent); }
.sd-ly-eye.lab-blue { background: color-mix(in srgb, var(--ly-blue) 70%, transparent); }
.sd-ly-eye.lab-violet { background: color-mix(in srgb, var(--ly-violet) 70%, transparent); }
.sd-ly-eye.lab-gray { background: color-mix(in srgb, var(--ly-gray) 70%, transparent); }
.sd-ly-deny { position: absolute; right: 1px; bottom: 1px; color: var(--warn); }
.sd-ly-sp { flex: none; width: var(--ind, 0px); }
.sd-ly-tri { flex: none; width: 14px; height: 18px; margin-right: -2px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--tx2); cursor: pointer; }
.sd-ly-tri:hover { color: var(--tx); }
.sd-ly-clipi { flex: none; color: var(--tx2); margin: 0 -2px 0 4px; display: grid; }
.sd-ly-row.clip { --clipi: 1; }
.sd-ly-gi { flex: none; display: grid; place-items: center; width: 22px; color: var(--tx2); }
.sd-ly-th { --th: 30px; flex: none; position: relative; width: var(--th); height: var(--th); display: grid; place-items: center; border: 1px solid transparent; }
.sd-ly-th canvas { display: block; background: var(--ly-check); box-shadow: 0 0 0 1px rgba(0,0,0,.35); max-width: 100%; max-height: 100%; }
.sd-ly-th.smart::after { content: ""; position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; background: var(--p); border: 1px solid var(--tx2); border-radius: 1px; box-shadow: inset -3px -3px 0 -1px var(--tx2); }
.sd-ly-th.tgt { border-color: var(--tx); box-shadow: 0 0 0 1px var(--p); }
.sd-ly-tt { background: var(--in); border-color: var(--line2); font: 700 calc(var(--th) * .55)/1 Georgia, "Times New Roman", serif; color: var(--tx); }
.sd-ly-ti { background: var(--in); border-color: var(--line2); color: var(--tx2); }
.sd-ly-mth canvas { background: #000; }
.sd-ly-mth.mdis::before, .sd-ly-mth.mdis::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 2px; background: #e02020; z-index: 1; transform: translate(-50%, -50%) rotate(45deg); }
.sd-ly-mth.mdis::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sd-ly-chain { flex: none; width: 12px; height: 18px; display: grid; place-items: center; padding: 0; margin: 0 -2px; border: 0; background: transparent; color: var(--tx2); cursor: pointer; }
.sd-ly-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.sd-ly-name.bg { font-style: italic; }
.sd-ly-ren { flex: 1; min-width: 0; height: 22px; margin-left: 2px; }
.sd-ly-end { flex: none; display: flex; align-items: center; gap: 2px; color: var(--tx2); }
.sd-ly-ic { display: grid; place-items: center; width: 16px; height: 18px; padding: 0; border: 0; background: transparent; color: var(--tx2); }
.sd-ly-ic.full { color: var(--tx); }
.sd-ly-bglk { cursor: pointer; }
.sd-ly-bglk:hover { color: var(--tx); }
.sd-ly-fxb { display: inline-flex; align-items: center; gap: 1px; height: 18px; padding: 0 2px; border: 0; background: transparent; color: var(--tx2); cursor: pointer; }
.sd-ly-fxb i, .sd-ly-fxt2 { font: italic 700 11.5px/1 Georgia, "Times New Roman", serif; }
.sd-ly-fxb.off { opacity: .5; }
.sd-ly-fxb:hover { color: var(--tx); }
.sd-ly-fxr { --rh: 24px; }
.sd-ly[data-tsz] .sd-ly-fxr { --rh: 24px; }
.sd-ly-fxr .sd-ly-sp { width: calc(var(--ind, 0px) + 40px); }
.sd-ly-fxr:not(.fxh) .sd-ly-sp { width: calc(var(--ind, 0px) + 54px); }
.sd-ly-fxn { color: var(--tx2); overflow: hidden; text-overflow: ellipsis; }
.sd-ly-fxlbl { color: var(--tx); }
.sd-ly-into { box-shadow: inset 0 0 0 2px var(--acc2); }
.sd-ly-ind { position: absolute; right: 2px; height: 2px; background: var(--acc2); pointer-events: none; z-index: 2; }
.sd-ly-ind::before { content: ""; position: absolute; left: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--acc2); background: var(--p); }
.sd-ly-dragging, .sd-ly-dragging * { cursor: grabbing !important; }
.sd-ly-clipcur .sd-ly-row, .sd-ly-clipcur .sd-ly-row * { cursor: alias; }
.sd-ly-tools { justify-content: center; gap: 4px; }
.sd-ly-tb { width: 28px; }
.sd-ly-tb[hidden] { display: none; }
.sd-ly-tb.sd-ly-locked { position: relative; }
.sd-ly-tb.sd-ly-locked::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 5px; height: 4px; border-radius: 1px; background: var(--warn); }
.sd-ly-tb.sd-ly-drop-on { background: var(--acc); color: #fff; }

/* ---- Diyalog formları ---- */
.sd-ly-form { display: grid; gap: 10px; }
.sd-ly-fr { display: flex; align-items: center; gap: 8px; }
.sd-ly-fr > span:first-child { width: 58px; flex: none; text-align: right; color: var(--tx2); }
.sd-ly-fi { margin-left: 66px; }
.sd-ly-wide { flex: 1; min-width: 0; }
.sd-ly-fr .sd-sel { min-width: 140px; }
.sd-ly-fl2 { margin-left: 12px; color: var(--tx2); }
.sd-ly-n3 { width: 52px; }
.sd-ly-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sd-ly-thopts { display: flex; gap: 18px; align-items: flex-end; padding: 6px 2px; }
.sd-ly-thopt { display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.sd-ly-thbox { display: block; border: 1px solid var(--line2); background: var(--in); }

/* ---- Katman Stili ---- */
.sd-ly-fxdlg .sd-dlg-row { padding: 12px 12px 12px 12px; }
.sd-ly-fxd { display: grid; grid-template-columns: 190px 1fr; gap: 12px; min-height: 380px; }
.sd-ly-fxnav { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--in); border-radius: 2px; padding: 2px 0; overflow: auto; }
.sd-ly-fxh { padding: 6px 10px; font-weight: 600; color: var(--tx2); }
.sd-ly-fxi { display: flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 10px; cursor: default; outline: none; }
.sd-ly-fxi.top { font-weight: 600; padding-left: 10px; }
.sd-ly-fxi:hover { background: var(--hov); }
.sd-ly-fxi.on { background: var(--act); }
.sd-ly-fxi:focus-visible { box-shadow: inset 0 0 0 1px var(--acc2); }
.sd-ly-fxi input { margin: 0; accent-color: var(--acc); }
.sd-ly-fxpage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sd-ly-fxt { font-weight: 600; font-size: 12.5px; }
.sd-ly-fs { display: grid; gap: 8px; }
.sd-ly-srow { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.sd-ly-sl { width: 112px; flex: none; text-align: right; color: var(--tx2); }
.sd-ly-srow .sd-sel { min-width: 150px; }
.sd-ly-slide { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.sd-ly-slide input[type="range"] { flex: 1; min-width: 80px; max-width: 220px; accent-color: var(--acc); }
.sd-ly-nb { width: 52px; }
.sd-ly-dialw { display: inline-flex; align-items: center; gap: 8px; }
.sd-ly-dial { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; outline: none; }
.sd-ly-dial:focus-visible { box-shadow: 0 0 0 2px var(--acc2); }
.sd-ly-dial svg circle:first-child { fill: var(--in); stroke: var(--line2); stroke-width: 1.2; }
.sd-ly-dial svg line { stroke: var(--tx); stroke-width: 1.6; stroke-linecap: round; }
.sd-ly-dial svg .dot { fill: var(--tx); }
.sd-ly-gstrip { width: 180px; height: 22px; padding: 0; border: 1px solid var(--line2); border-radius: 2px; background-color: transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.sd-ly-fxbtns { display: flex; gap: 8px; justify-content: flex-start; padding-left: 120px; }
.sd-ly-fxprev { margin-top: 10px; display: grid; place-items: center; }
.sd-ly-fxprev canvas { width: 64px; height: 64px; background: var(--ly-check); border: 1px solid var(--line2); }

/* ---- Geçmiş ---- */
.sd-ly-hist { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sd-ly-hlist { flex: 1; min-height: 0; overflow-y: auto; outline: none; }
.sd-ly-hrow { display: flex; align-items: center; gap: 6px; min-height: 26px; padding-right: 8px; cursor: default; }
.sd-ly-hrow:hover { background: var(--hov); }
.sd-ly-hrow.on { background: var(--act); }
.sd-ly-hrow.fut { color: var(--tx3); }
.sd-ly-hrow.fut .sd-ly-hic { opacity: .5; }
.sd-ly-snap { min-height: 40px; }
.sd-ly-hsrc { flex: none; width: 24px; align-self: stretch; display: grid; place-items: center; padding: 0; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--tx); cursor: pointer; }
.sd-ly-hsrc:hover { background: color-mix(in srgb, var(--tx) 8%, transparent); }
.sd-ly-hth { width: 30px; height: 30px; object-fit: contain; background: var(--ly-check); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.sd-ly-hic { display: grid; place-items: center; width: 20px; color: var(--tx2); }
.sd-ly-hl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-ly-hsep { height: 1px; background: var(--line); margin: 2px 0; }

/* ---- Özellikler ---- */
.sd-ly-props { min-height: 100%; }
.sd-ly-ph { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sd-ly-ph .sd-muted { font-weight: 400; margin-left: auto; }
.sd-ly-ptog { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--tx); font: inherit; font-weight: 600; cursor: pointer; }
.sd-ly-psec .sd-sect-h { margin-bottom: 6px; }
.sd-ly-pb[hidden] { display: none; }
.sd-ly-xrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sd-ly-xrow .sd-num .sd-scrub { width: 14px; justify-content: center; }
.sd-ly-xrow .sd-num.dis, .sd-prow .sd-num.dis { opacity: .5; }
.sd-ly-xsp { width: 26px; flex: none; }
.sd-ly-ro > div { display: flex; align-items: baseline; gap: 6px; }
.sd-ly-ro b { font-weight: 500; }
.sd-ly-pbtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.sd-ly-chks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sd-ly-tag { padding: 1px 6px; border-radius: 3px; background: var(--in); border: 1px solid var(--line); }
.sd-ly-pblend { flex: 1; min-width: 0; }
