/* =====================================================================
   IMAGE EDITOR — tam ekran görsel editörü (Picsart düzeni, Postelk dili).
   İZOLE: her sınıf `.ie-` / `.ie__` ile başlar, app.css'teki hiçbir kurala
   dokunmaz. Renkler variables.css token'larından gelir → dark/light hazır.
   ===================================================================== */

.ie-page { overflow: hidden; }                 /* editör kendi kaydırmasını yönetir */
.ie {
  position: fixed; inset: 0; display: grid; grid-template-rows: 52px 1fr;
  background: var(--bg); color: var(--text); font-family: var(--font, Figtree, sans-serif);
}

/* ---------- ÜST ÇUBUK ---------- */
.ie__top {
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-bottom: 1px solid var(--border); background: var(--bg-soft); min-width: 0;
}
.ie__brand { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); flex: none; }
.ie__brand img { display: block; transform: translateY(-3px); }   /* (2026-11-07) logo 30 px → 3 px yukarı (A029 kilidi) */
.ie__brand .pkword { font-size: 18px; font-weight: 700; }
.ie__sep { width: 1px; height: 22px; background: var(--border); flex: none; }
.ie__name {
  flex: none; width: 160px; background: none; border: 1px solid transparent; border-radius: 8px;
  color: var(--text-mute); font: 600 13px/1 var(--font); padding: 7px 8px; min-width: 0;
}
.ie__name:hover { border-color: var(--border); }
.ie__name:focus { outline: none; border-color: var(--violet); color: var(--text); background: var(--bg-card); }

/* bağlamsal araç çubuğu — seçime göre JS doldurur */
.ie__ctx { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none;
  /* Emre: "header ayarlari hep sola yakin" — ortala; tasarken `safe` sol kirpilmayi onler */
  justify-content: center; justify-content: safe center; }
.ie__ctx::-webkit-scrollbar { display: none; }
.ie__ctx:empty { flex: 1; }
.ie__topright { display: flex; align-items: center; gap: 6px; flex: none; }
.ie__icobtn {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid transparent; background: none; color: var(--text-mute); cursor: pointer; transition: background .12s, color .12s;
}
.ie__icobtn:hover:not(:disabled) { background: var(--bg-elev); color: var(--text); }
.ie__icobtn:disabled { opacity: .35; cursor: default; }
.ie__export svg { margin-right: 2px; }

/* ---------- GÖVDE: ray + panel + sahne ---------- */
.ie__body { display: grid; grid-template-columns: auto auto 1fr; min-height: 0; }
/* Izgara ogeleri varsayilan olarak icerik genisliginin ALTINA inmez: 13 cipli
   ayar seridi mobilde sutunu 925px'e sisirip tuvali ekran disina itiyordu. */
.ie__body > * { min-width: 0; }
.ie-chips { min-width: 0; }

/* SOL RAY */
.ie__rail {
  width: 72px; display: flex; flex-direction: column; gap: 2px; padding: 8px 6px;
  border-right: 1px solid var(--border); background: var(--bg-soft); overflow-y: auto; scrollbar-width: thin;
}
.ie__railbtn {
  display: grid; justify-items: center; gap: 4px; padding: 9px 2px 7px; border: 0; border-radius: 11px;
  background: none; color: var(--text-mute); font: 700 10px/1.1 var(--font); cursor: pointer;
  transition: background .12s, color .12s;
}
.ie__railbtn:hover { background: var(--bg-elev); color: var(--text); }
.ie__railbtn.is-on { background: var(--ov-2, rgba(255,255,255,.07)); color: var(--text); }
.ie__railbtn.is-on svg { color: var(--violet-light, #7DD4A8); }
.ie__railbtn svg { display: block; }

/* PANEL */
.ie__panel {
  width: 340px; display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--border); background: var(--bg-soft);
}
/* PANEL KAPALIYKEN: izgara 3 sutunlu kalinca sahne 2. (auto genislikli) sutuna
   dusuyor, 3. sutun (1fr) KOCA BIR OLU ALAN olarak kaliyordu — tuval sola
   yapisip sagda kullanilamayan bosluk olusuyordu. */
.ie.is-collapsed .ie__panel { display: none; }
.ie.is-collapsed .ie__body { grid-template-columns: auto 1fr; }
.ie__panelhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px 9px; }
.ie__panelhead h2 { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.ie__panelx { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-dim); cursor: pointer; }
.ie__panelx:hover { background: var(--bg-elev); color: var(--text); }
.ie__panelbody { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 18px; scrollbar-width: thin; }
.ie__panelbody::-webkit-scrollbar { width: 8px; }
.ie__panelbody::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 99px; }

/* SAHNE */
/* SAHNE
   - `place-items: center` ile buyuyen tuvalin UST/SOL tarafi kaydirilamiyordu
     (ortalanmis tasma tuzagi) -> `safe center`.
   - Kaydirma cubuklari GIZLI: kaydirma bos alani surukleyerek yapiliyor
     (Emre: "sag kenardaki cubuk kotu duruyor, canvasta bos yere basip surukle"). */
.ie__stage { position: relative; min-width: 0; overflow: auto; background: var(--bg); display: grid; place-items: center; place-items: safe center; padding: 26px 26px 64px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.ie__stage::-webkit-scrollbar { width: 0; height: 0; display: none; }
.ie__stage.is-panning { cursor: grabbing; }
.ie__canvaswrap { position: relative; line-height: 0; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.ie__canvaswrap.is-hidden { display: none; }
/* şeffaflık daması — tuvalin ARKASINDA durur */
.ie__canvaswrap::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 2px;
  background-image:
    linear-gradient(45deg, var(--ie-checker, #2a2a2a) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ie-checker, #2a2a2a) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ie-checker, #2a2a2a) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ie-checker, #2a2a2a) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-color: var(--ie-checker2, #1e1e1e);
}
:root[data-theme="light"] .ie__canvaswrap::before { --ie-checker: #e2e5e3; --ie-checker2: #f4f6f5; }
.ie__canvaswrap .canvas-container { position: relative; z-index: 1; }

/* boş durum */
.ie__empty { grid-area: 1 / 1; display: grid; place-items: center; padding: 24px; }
.ie__canvaswrap { grid-area: 1 / 1; }
.ie__emptycard {
  display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 380px;
  padding: 34px 30px; border: 1.5px dashed var(--border-lt); border-radius: 18px; background: var(--bg-soft);
  color: var(--text-mute); transition: border-color .15s, background .15s;
}
.ie__emptycard.is-over { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 7%, var(--bg-soft)); }
.ie__emptycard b { font-size: 16px; color: var(--text); }
.ie__emptycard span { font-size: 12.5px; line-height: 1.55; }
.ie__emptybtns { display: flex; gap: 8px; margin-top: 8px; }

/* yakınlaştırma çubuğu */
.ie__zoom {
  /* IZGARA HUCRESINDE: `left:50% + translateX(-50%)` sutun genisligini sisirip
     tuvali saga kaydiriyordu (mobilde tuval ekran disina tasti). Konum artik
     yalnizca justify-self/align-self ile veriliyor. */
  position: sticky; z-index: 5; bottom: 12px; width: max-content; grid-area: 1 / 1; align-self: end; justify-self: center; margin-bottom: -52px;
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 11px;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.ie__zoom button {
  height: 28px; min-width: 28px; padding: 0 8px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none; color: var(--text-mute);
  font: 700 12px/1 var(--font); cursor: pointer;
}
.ie__zoom button:hover { background: var(--bg-elev); color: var(--text); }
#ieZoomVal { min-width: 52px; font-variant-numeric: tabular-nums; }

/* ---------- PANEL İÇİ ORTAK BİLEŞENLER ---------- */
.ie-sec { margin-top: 16px; }
.ie-sec:first-child { margin-top: 4px; }
.ie-sec__t { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 9px; }
.ie-hint { color: var(--text-dim); font-size: 11.5px; line-height: 1.5; margin: 8px 0 0; }

/* satır: etiket + değer */
.ie-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.ie-row__l { flex: 1; font-size: 12.5px; color: var(--text-mute); min-width: 0; }
.ie-row__v { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

/* kaydırıcı */
.ie-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--bg-elev); outline: none; }
.ie-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--violet); cursor: pointer; border: 2px solid var(--bg-soft); }
.ie-slider::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid var(--bg-soft); border-radius: 50%; background: var(--violet); cursor: pointer; }
.ie-sliderow { display: grid; gap: 6px; margin-bottom: 13px; }
.ie-sliderow__h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-mute); }
.ie-sliderow__h b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* buton / giriş */
.ie-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-card); color: var(--text); font: 700 12.5px/1 var(--font); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.ie-btn:hover { border-color: var(--border-lt); background: var(--bg-elev); }
.ie-btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.ie-btn--primary:hover { background: var(--violet-dark, var(--violet)); border-color: var(--violet-dark, var(--violet)); }
.ie-btn--danger:hover { border-color: rgba(212,66,50,.5); color: var(--red, #E7766A); background: rgba(212,66,50,.10); }
.ie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ie-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg-card); color: var(--text); font: 600 12.5px/1.2 var(--font);
}
.ie-input:focus { outline: none; border-color: var(--violet); }
.ie-num { width: 74px; text-align: left; font-variant-numeric: tabular-nums; }

/* segment */
.ie-seg { display: inline-flex; width: 100%; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.ie-seg button { flex: 1; border: 0; background: none; color: var(--text-mute); font: 700 12px/1 var(--font); padding: 7px 6px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.ie-seg button:hover { color: var(--text); }
.ie-seg button.is-on { background: var(--violet); color: #fff; }

/* renk kutuları */
.ie-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ie-sw { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border-lt); cursor: pointer; padding: 0; position: relative; }
.ie-sw.is-on { box-shadow: 0 0 0 2px var(--violet); border-color: var(--violet); }
.ie-sw--none { background:
  linear-gradient(45deg, transparent 44%, var(--red, #E7766A) 44%, var(--red, #E7766A) 56%, transparent 56%),
  var(--bg-card); }

/* ölçü kılavuzu / preset kartları (Resize + Collage) */
.ie-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
.ie-card {
  /* Emre: "o kutulari 96x96 yap" — kare oran, panel genisligine gore esnek */
  aspect-ratio: 1 / 1; min-height: 88px;
  display: grid; align-content: center; justify-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--border);
  border-radius: 13px; background: var(--bg-card); color: var(--text-mute); cursor: pointer; text-align: center;
  transition: border-color .12s, background .12s, color .12s;
}
.ie-card:hover { border-color: var(--violet); color: var(--text); }
.ie-card.is-on { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, transparent); color: var(--text); }
.ie-card__ic { width: 34px; height: 30px; display: grid; place-items: center; color: var(--text-dim); }
.ie-card__ic i { display: block; border: 1.5px solid currentColor; border-radius: 3px; }
.ie-card b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-card b { font-size: 10.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.ie-card span { font-size: 9.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ie-card.is-on .ie-card__ic { color: var(--violet-light, #7DD4A8); }
/* secili kartin yesil zemininde --text-dim 3.77:1'de kaliyordu */
.ie-card.is-on span { color: var(--text-mute); }

/* katman listesi */
.ie-layer { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.ie-layer:hover { background: var(--bg-elev); }
.ie-layer.is-on { background: var(--bg-elev); border-color: var(--violet); }
.ie-layer__th { width: 30px; height: 30px; flex: none; border-radius: 6px; background: var(--bg-elev); object-fit: cover; display: grid; place-items: center; color: var(--text-dim); overflow: hidden; }
/* onizleme KIRPILMASIN: genis bir yazi katmani "cover" ile ortasindan kesiliyordu */
.ie-layer__th img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ie-layer__n { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-layer__b { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--text-dim); cursor: pointer; }
.ie-layer__b:hover { background: var(--bg-card); color: var(--text); }
.ie-layer.is-hidden .ie-layer__n, .ie-layer.is-hidden .ie-layer__th { opacity: .4; }

/* bağlamsal çubuk öğeleri */
.ie-ctxbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text-mute);
  font: 700 12px/1 var(--font); cursor: pointer; white-space: nowrap;
}
.ie-ctxbtn:hover { background: var(--bg-elev); color: var(--text); }
.ie-ctxbtn.is-on { background: var(--violet); color: #fff; }
.ie-ctxsel { height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text); font: 600 12px/1 var(--font); cursor: pointer; max-width: 150px; }
.ie-ctxnum { height: 30px; width: 58px; padding: 0 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text); font: 600 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.ie-ctxcolor { width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: none; cursor: pointer; }
.ie-ctxsep { width: 1px; height: 20px; background: var(--border); flex: none; margin: 0 2px; }

/* dışa aktarma diyaloğu (rnmodal kalıbının editöre özel eşi) */
.ie-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 20px; }
.ie-modal[hidden] { display: none; }
.ie-modal__box { width: min(420px, 94vw); max-height: 92svh; overflow: auto; background: var(--bg-card); border: 1px solid var(--border-lt); border-radius: 18px; padding: 22px 22px 18px; box-shadow: var(--shadow-lg); }
.ie-modal__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ie-modal__h h3 { font-size: 16px; font-weight: 800; margin: 0; }
.ie-modal__x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-dim); cursor: pointer; font-size: 13px; }
.ie-modal__x:hover { background: var(--bg-elev); color: var(--text); }
.ie-modal__foot { display: flex; gap: 8px; margin-top: 16px; }

/* küçük ekran: ray yatay şeride iner, panel alta oturur */
@media (max-width: 430px) { .ie__name { display: none; } }
@media (max-width: 900px) {
  /* üst çubuk iki satıra sarar: seçim araç çubuğu KENDİ satırında (dar ekranda
     tek satıra sığmıyordu, seçili nesnenin ayarları hiç görünmüyordu). */
  .ie { grid-template-rows: auto 1fr; }
  .ie__top { flex-wrap: wrap; padding: 0 10px 0; row-gap: 0; }
  .ie__brand, .ie__sep, .ie__name, .ie__topright { min-height: 52px; }
  .ie__ctx { order: 9; width: 100%; flex: 1 0 100%; border-top: 1px solid var(--border); padding: 6px 0; }
  .ie__ctx:empty { display: none; border: 0; padding: 0; }
  /* olculdu: marka+ad+sag grup 393px'e sigmayip UCUNCU satira tasiyordu */
  .ie__name { margin-right: auto; width: 96px; font-size: 12px; }
  .ie__topright { min-height: 0; }
  .ie__export { padding: 0 10px; }
  .ie__zoom { margin-bottom: -8px; }
  .ie__stage { padding: 14px 14px 42px; }
  .ie__body { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
  /* masaustundeki "panel kapali" kurali (auto 1fr) mobilde de gecerli olup
     sahneyi daraltiyordu — burada tek sutuna geri alinir */
  .ie.is-collapsed .ie__body { grid-template-columns: 1fr; }
  .ie__stage { order: 1; }
  .ie__panel { order: 2; width: auto; max-height: 42svh; border-right: 0; border-top: 1px solid var(--border); }
  .ie__rail { order: 3; width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-top: 1px solid var(--border); padding: 6px; }
  .ie__railbtn { flex: none; min-width: 62px; }
  .ie__name { width: 96px; }
  .ie__zoom { bottom: 8px; }
}
/* ---------- mobil ayar cipleri (Picsart kalibi: tek kaydirici + cip seridi) ---------- */
.ie-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 2px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
.ie-chips::-webkit-scrollbar { display: none; }
/* cok ogeli seritler (26 gorunum) tek satirda kaybolmasin */
.ie-chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 6px; }
.ie-chip { flex: none; display: grid; justify-items: center; gap: 4px; min-width: 62px; padding: 9px 6px 7px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-card); color: var(--text-mute); font: 700 10px/1.1 var(--font); cursor: pointer; position: relative; }
.ie-chip:hover { color: var(--text); }
.ie-chip.is-on { background: var(--violet); color: #fff; }
.ie-chip.is-on svg { color: #fff; }
.ie-chip.is-set:not(.is-on)::after { content: ""; position: absolute; top: 6px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet-light, #7DD4A8); }
.ie-sliderow--big { margin: 6px 0 14px; }
.ie-sliderow--big .ie-slider { height: 6px; }
.ie-sliderow--big .ie-slider::-webkit-slider-thumb { width: 22px; height: 22px; }
.ie-sliderow--big .ie-slider::-moz-range-thumb { width: 22px; height: 22px; }
.ie-sliderow--big .ie-sliderow__h { font-size: 13px; }

/* "kaldigin yerden devam et" seridi */
.ie-restore { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border: 1px solid var(--border-lt); border-radius: 13px; background: var(--bg-card); box-shadow: var(--shadow-lg); font-size: 12.5px; color: var(--text-mute); max-width: calc(100% - 28px); }
.ie-restore b { color: var(--text); }
.ie-restore span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-restore .ie-btn { width: auto; padding: 7px 12px; white-space: nowrap; }

/* ---------- ozel renk alani (native color input gizli, site dili) ---------- */
.ie-color { position: relative; margin-bottom: 10px; }
.ie-color__trig { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text); font: 600 12.5px/1 var(--font); cursor: pointer; }
.ie-color__trig:hover { border-color: var(--border-lt); }
.ie-color.is-open .ie-color__trig { border-color: var(--violet); }
/* koyu renkler koyu panelde kaybolmasin diye ic halka */
.ie-color__dot { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--border-lt); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); flex: none; }
.ie-color__lbl { flex: 1; text-align: left; color: var(--text-mute); }
.ie-color__caret { color: var(--text-dim); line-height: 0; }
.ie-color__pop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); width: auto; padding: 10px; border: 1px solid var(--border-lt); border-radius: 14px; background: var(--bg-card); box-shadow: var(--shadow-lg); }
.ie-color__pop[hidden] { display: none; }
.ie-color__pop--float { position: fixed; z-index: 60; left: 0; right: auto; top: 0; width: 236px; }

/* ---------- RENK SECICI (native <input type=color> YOK) ---------- */
.ie-pk { display: block; }
.ie-pk__t { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.ie-pk__sv { position: relative; height: 132px; border-radius: 10px; cursor: crosshair; touch-action: none; overflow: hidden; }
.ie-pk__dot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.4); pointer-events: none;
}
.ie-pk__row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ie-pk__eye {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--border);
  border-radius: 9px; background: var(--bg-elev); color: var(--text-mute); cursor: pointer;
}
.ie-pk__eye:hover { color: var(--text); border-color: var(--border-lt); }
.ie-pk__hue {
  position: relative; flex: 1; height: 14px; border-radius: 99px; cursor: pointer; touch-action: none;
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.ie-pk__hdot {
  position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.4); pointer-events: none;
}
.ie-pk__ins { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.ie-pk__in { display: grid; gap: 3px; }
.ie-pk__in input {
  width: 100%; height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-elev); color: var(--text); font: 600 11.5px/1 var(--font);
  font-variant-numeric: tabular-nums; text-align: center;
}
.ie-pk__in input:focus { outline: none; border-color: var(--violet); }
.ie-pk__in span { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--text-dim); text-align: center; }
.ie-pk__sw { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.ie-pk__sw .ie-sw { height: 20px; }

/* Solid'in sonundaki gokkusagi kutusu — basinca secici acilir */
.ie-sw--rainbow { background: conic-gradient(from .25turn, #ff4d4d, #ffe14d, #4dff88, #4de1ff, #6a4dff, #ff4dd8, #ff4d4d) !important; }

/* ---------- stil dugmeleri (B / I / U / caps / hizalama) ---------- */
.ie-tbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 11px; }
.ie-tbtn { flex: 1; min-width: 38px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text-mute); cursor: pointer; font: 700 13px/1 var(--font); }
.ie-tbtn:hover { border-color: var(--border-lt); color: var(--text); }
.ie-tbtn.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.ie-select { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text); font: 600 12.5px/1.2 var(--font); cursor: pointer; margin-bottom: 10px; }
.ie-select:focus { outline: none; border-color: var(--violet); }

/* ---------- KATMAN DOCK'U (sag altta, yukari acilir — Picsart benzeri) ----------
   Emre: "picsart gibi sag alta dropdown gibi drop up olan layers kismi, basinca
   acilip kapanmali, previewli, mobilde de entegre olmali". */
.ie-dock {
  position: sticky; z-index: 6; grid-area: 1 / 1; align-self: end; justify-self: end;
  bottom: 12px; margin-bottom: -52px; margin-right: 2px; width: max-content;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; pointer-events: none;
}
.ie-dock > * { pointer-events: auto; }
.ie-dock__panel {
  width: 244px; max-height: min(48vh, 380px); display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card);
  box-shadow: var(--shadow); overflow: hidden;
  transform-origin: bottom right; animation: ie-dockin .14s ease-out;
}
@keyframes ie-dockin { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.ie-dock__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 7px; border-bottom: 1px solid var(--border); }
/* Emre: "butonlar kocaman yazi kucucuk" — ikisi de 26px yuksekliginde */
.ie-dock__head b { display: flex; align-items: center; height: 26px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute); }
.ie-dock__head .ie-tbtns { margin: 0; gap: 5px; }
.ie-dock__head .ie-tbtn { flex: none; width: 26px; min-width: 26px; height: 26px; border-radius: 7px; }
.ie-dock__list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px; }
.ie-dock__list::-webkit-scrollbar { width: 7px; }
.ie-dock__list::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 99px; }
.ie-dock__empty { padding: 14px 12px; font-size: 12px; line-height: 1.5; color: var(--text-dim); text-align: center; }
.ie-dock__toggle {
  align-self: flex-end; height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--bg-card); color: var(--text-mute);
  font: 700 12px/1 var(--font); cursor: pointer; box-shadow: var(--shadow);
}
.ie-dock__toggle:hover { color: var(--text); border-color: var(--border-lt); }
.ie-dock__toggle.is-on { color: var(--text); border-color: var(--violet); }
.ie-dock__toggle i { font-style: normal; font-variant-numeric: tabular-nums; opacity: .7; }
.ie-dock__toggle svg { transition: transform .15s; }
.ie-dock__toggle.is-on svg { transform: rotate(180deg); }

/* katman satiri — dock icinde daha kompakt */
.ie-dock .ie-layer { padding: 5px 6px; gap: 7px; border-radius: 9px; }
.ie-dock .ie-layer__th { width: 34px; height: 34px; border-radius: 7px; }
.ie-dock .ie-layer__n { font-size: 11.5px; }
.ie-dock .ie-layer__b { width: 22px; height: 22px; }
/* tutamak + surukleme geri bildirimi (Emre: "tutunca parlak yesil border") */
.ie-layer__g { width: 14px; flex: none; display: grid; place-items: center; color: var(--text-dim); cursor: grab; touch-action: none; }
.ie-layer__g:hover { color: var(--text-mute); }
.ie-layer.is-drag { cursor: grabbing; border-color: var(--violet-light, #7DD4A8); box-shadow: 0 0 0 1px var(--violet-light, #7DD4A8), 0 8px 20px rgba(0,0,0,.35); background: var(--bg-elev); }
.ie-layer.is-over { box-shadow: inset 0 0 0 1px var(--violet); }
.is-reorder .ie-layer { user-select: none; }

/* ---------- DEGRADE YAPICI ---------- */
.ie-grad__prev { height: 62px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 10px; }
.ie-swatches--grad { grid-template-columns: repeat(4, 1fr); }
.ie-swatches--grad .ie-sw { height: 40px; border-radius: 10px; }

/* ---------- SAYI ALANI (tam derece / boyut) ---------- */
.ie-numrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ie-numrow > span { flex: 1; font-size: 12px; color: var(--text-mute); }
.ie-num {
  width: 78px; height: 32px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg-card); color: var(--text); font: 600 12.5px/1 var(--font);
  font-variant-numeric: tabular-nums; text-align: right;
}
.ie-num:focus { outline: none; border-color: var(--violet); }
.ie-ctxnum--deg { width: 58px; }
/* Emre: "derece secmenin icinde ok olmasin, sadece yazmali olsun" */
.ie-ctxnum, .ie-num { -moz-appearance: textfield; appearance: textfield; }
.ie-ctxnum::-webkit-outer-spin-button, .ie-ctxnum::-webkit-inner-spin-button,
.ie-num::-webkit-outer-spin-button, .ie-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- KILAVUZ / HIZALAMA (JS canvas'a cizer, burada sadece not) ---------- */

@media (max-width: 900px) {
  /* dock mobilde de sahnenin sag altinda; yakinlastirma cubugunun ustune biner */
  .ie-dock { bottom: 8px; margin-bottom: -46px; margin-right: 4px; }
  .ie-dock__panel { width: min(72vw, 250px); max-height: 42svh; }
  .ie-dock__toggle { height: 32px; }
}

/* ---------- KOMPAKT RENK ALANI (ust cubuk) ----------
   Ust cubuk yatayda kaydigi icin acilir kutu GOVDEYE tasinir (kirpilmasin). */
.ie-color--compact { margin-bottom: 0; }
.ie-color--compact .ie-color__trig { width: auto; padding: 5px; gap: 4px; border-radius: 9px; }
.ie-color--compact .ie-color__dot { width: 18px; height: 18px; border-radius: 5px; }
.ie-color--compact .ie-color__caret { display: none; }
.ie-color__pop--float { position: fixed; z-index: 60; left: 0; right: auto; top: 0; width: 224px; }

/* ust cubuktaki acilir kutu (hizalama) */
.ie-ctxpop { width: 156px; }
.ie-pop__t { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.ie-pop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ie-pop__grid .ie-tbtn { min-width: 0; height: 32px; }
.ie-ctxpopbtn svg + svg { margin-left: 2px; opacity: .6; }

@media (max-width: 900px) {
  /* Telefonda ust cubuk her seyi alamaz; ortalamak yerine YATAY KAYAR.
     Sag kenardaki solme "devami var" isareti. */
  .ie__ctx { -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .ie-ctxlbl { display: none; }        /* "Opacity" yazisi; kaydirici kalir */
}

/* ---------- TIKLI BOLUM BASLIGI (Outline / Shadow) ----------
   Emre: "outline yanina bir tick koy, basip acinca altindaki ayarlar cıksın;
   kapaliyken o konuda hicbir sey gorunmesin — video editorde oyle yaptim". */
.ie-tog {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; margin-top: 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card);
  color: var(--text-mute); font: 700 12.5px/1 var(--font); cursor: pointer; text-align: left;
}
.ie-tog:hover { border-color: var(--border-lt); color: var(--text); }
.ie-tog.is-on { border-color: var(--violet); color: var(--text); }
.ie-tog__box {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 6px;
  border: 1.5px solid var(--border-lt); background: transparent; color: transparent; transition: .12s;
}
.ie-tog.is-on .ie-tog__box { background: var(--violet); border-color: var(--violet); color: #fff; }
.ie-tog__l { flex: 1; }
.ie-tog__body { padding: 12px 0 2px; }

/* dosya birakma geri bildirimi — tum sahne icin */
.ie__stage.is-dropping::after {
  content: ""; position: absolute; inset: 10px; border-radius: 16px; pointer-events: none; z-index: 8;
  border: 2px dashed var(--violet); background: color-mix(in srgb, var(--violet) 8%, transparent);
}

/* ---------- ONIZLEMELI KARE KARTLAR (Looks / Effects / Presets / Grades) ----------
   Emre: "her birinin efektinin nasil gorundugu o kutularda gorunsun, altinda
   ismiyle beraber — resize kismindaki gibi ama resim olacak". */
.ie-pvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 9px; }
.ie-pv {
  display: grid; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center;
}
.ie-pv__im {
  display: block; aspect-ratio: 1 / 1; border-radius: 11px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-elev);
  transition: border-color .12s, box-shadow .12s;
}
.ie-pv__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ie-pv:hover .ie-pv__im { border-color: var(--border-lt); }
.ie-pv.is-on .ie-pv__im { border-color: var(--violet); box-shadow: 0 0 0 2px color-mix(in srgb, var(--violet) 45%, transparent); }
.ie-pv__l {
  font-size: 10.5px; font-weight: 700; color: var(--text-mute); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ie-pv.is-on .ie-pv__l { color: var(--text); }

/* degrade kutulari duz renklerle AYNI sikilikta olsun (Emre: "cok bosluklu") */
.ie-swatches--grad { grid-template-columns: repeat(7, 1fr); }
.ie-swatches--grad .ie-sw { height: auto; aspect-ratio: 1; border-radius: 8px; }

/* ---------- BUYUTECLI DAMLALIK ----------
   Renk secerken imlecin yerine gecer: buyutulmus bolge + tam piksel karesi +
   yaninda rengin kutusu ve HEX'i. */
.ie-loupe { position: fixed; z-index: 90; pointer-events: none; transform: translate(-50%, -50%); transition: opacity .1s; }
.ie-loupe.is-out { opacity: 0; }
.ie-loupe__c {
  display: block; width: 118px; height: 118px; border-radius: 50%;
  border: 3px solid #fff; background: var(--bg-card);
  box-shadow: 0 8px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.35);
}
.ie-loupe__i {
  position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.65);
}
.ie-loupe__f {
  position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 9px;
  background: var(--bg-card); border: 1px solid var(--border-lt); box-shadow: var(--shadow); white-space: nowrap;
}
.ie-loupe__f i { width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--border-lt); display: block; }
.ie-loupe__f b { font: 700 11.5px/1 var(--font); color: var(--text); font-variant-numeric: tabular-nums; }

/* (2026-11-19) "Resize" panelindeki ağ logoları dosyadan çağrılan <img class="netmark"> (js/posting-platforms.js): bölüm başlığının sönük yazı
   tonunda (eski "color: var(--text-dim)" + currentColor; ton süzgeçleri css/variables.css) */
.ie-sec__t { --nm-tone: var(--nmf-dim); }
