/* Tasarım editörü (kilifbayim tasarla.php V2 editörünün bayisite uyarlaması). Renkler sitenin temasından gelir. */
.tz{
	--kirmizi:var(--primary); --koyu:var(--primary-dark); --acik:color-mix(in srgb, var(--primary) 12%, #fff);
	--yazi:#1f2937; --gri:#6b7280; --cizgi:#e5e7eb; --r:14px; --r-b:18px;
	--golge:0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
	max-width:1100px; margin:0 auto 24px auto; padding:0; color:var(--yazi); -webkit-tap-highlight-color:transparent; text-size-adjust:100%;
}
.tz *{ box-sizing:border-box; }
.tz button, .tz input, .tz select{ font-family:inherit; }
.tz button{ -webkit-appearance:none; appearance:none; touch-action:manipulation; }
.tz :focus-visible{ outline:3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset:2px; }
.tz input:focus-visible, .tz select:focus-visible{ outline-offset:0; }
.tz-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; height:48px; padding:0 22px; border-radius:13px; border:none; background:var(--gradient); color:#fff; font-size:15px; font-weight:700; cursor:pointer; text-decoration:none; box-shadow:0 4px 14px color-mix(in srgb, var(--primary) 30%, transparent); transition:transform .12s, box-shadow .12s, opacity .12s; white-space:nowrap; }
.tz-btn:active{ transform:scale(.97); }
.tz-btn:disabled{ opacity:.5; cursor:default; box-shadow:none; }
.tz-sec-ozet{ display:flex; align-items:center; gap:12px; }
.tz-sec-ozet > span{ flex:1; min-width:0; }
.tz-sec-ozet .tz-btn{ flex:0 0 auto; }
.tz-ed > .tz-sec-ozet{ margin:12px 0 0 0; padding:12px 14px; background:#fff; border:1px solid var(--cizgi); border-radius:var(--r-b); box-shadow:var(--golge); }
	.tz-ed-bar{ order:0; display:flex; align-items:center; gap:8px; margin-bottom:10px; }
	.tz-ed-bar .ad{ flex:1; min-width:0; font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
	.tz-ed-ib{ width:44px; height:44px; border:1px solid var(--cizgi); background:#fff; border-radius:13px; color:#374151; cursor:pointer; font-size:15px; box-shadow:0 1px 2px rgba(16,24,40,.05); transition:transform .12s, opacity .12s; flex:0 0 auto; }
	.tz-ed-ib:active{ transform:scale(.94); }
	.tz-ed-ib:disabled{ opacity:.35; cursor:default; box-shadow:none; }
	.tz-ed-tools{ order:1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:0 0 10px 0; }
	.tz-ed-tools button{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:60px; padding:6px 2px; border:1.5px solid var(--cizgi); background:#fff; border-radius:14px; font-size:11.5px; font-weight:700; color:var(--yazi); cursor:pointer; box-shadow:0 1px 2px rgba(16,24,40,.05); transition:background .15s, border-color .15s, color .15s, transform .12s; }
	.tz-ed-tools button i{ font-size:18px; color:#4b5563; }
	.tz-ed-tools button:active{ transform:scale(.96); }
	.tz-ed-tools button.aktif{ border-color:var(--kirmizi); background:var(--acik); color:var(--koyu); }
	.tz-ed-tools button.aktif i{ color:var(--kirmizi); }
	.tz-ed-ust{ order:2; background:#fff; border:1px solid var(--cizgi); border-radius:var(--r-b); padding:10px; margin-bottom:10px; max-height:min(46vh,320px); overflow-y:auto; font-size:13px; color:var(--gri); box-shadow:var(--golge); -webkit-overflow-scrolling:touch; }
	.tz-ed-stage{ order:3; position:relative; background:#eef0f4; border:1px solid var(--cizgi); border-radius:var(--r-b); padding:8px; display:flex; justify-content:center; touch-action:pan-y; }
	.tz-ed-stage .canvas-container{ margin:0 auto; border-radius:10px; overflow:hidden; }
	.tz-ed-yuk{ padding:70px 0; color:var(--gri); font-size:13px; display:flex; flex-direction:column; align-items:center; gap:10px; }
	.tz-ed-yuk::before{ content:''; width:28px; height:28px; border-radius:50%; border:3px solid #d1d5db; border-top-color:var(--kirmizi); animation:tzDon .8s linear infinite; }
	@keyframes tzDon{ to{ transform:rotate(360deg); } }
	.tz-ed-panel{ order:4; background:#fff; border:1px solid var(--cizgi); border-radius:var(--r-b); padding:12px; margin-top:10px; font-size:13px; color:var(--gri); line-height:1.5; box-shadow:var(--golge); }
	.tz-ed-panel:empty{ display:none; }
	.tz-ed-not{ order:5; width:100%; height:48px; padding:0 14px; border:1.5px solid var(--cizgi); border-radius:13px; font-size:15px; background:#fff; margin-top:10px; }
	.tz-ed-not:focus{ outline:none; border-color:var(--kirmizi); box-shadow:0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
	.tz-ed > .tz-sec-ozet{ order:6; }
	/* editör: panel + açılır bölümler ortak parçalar */
	.tz-ed-ust .satir, .tz-ed-panel .satir{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; align-items:center; }
	.tz-ed-ust .satir:last-child, .tz-ed-panel .satir:last-child{ margin-bottom:0; }
	.tz-ed-ust .ab, .tz-ed-panel .ab{ flex:1 1 auto; min-width:44px; min-height:44px; padding:0 8px; border:1.5px solid var(--cizgi); background:#fff; border-radius:12px; font-size:13.5px; font-weight:600; color:#374151; cursor:pointer; transition:background .15s, border-color .15s, transform .12s; }
	.tz-ed-ust .ab:active, .tz-ed-panel .ab:active{ transform:scale(.95); }
	.tz-ed-panel .ab.ic{ flex:1 1 0; font-size:17px; padding:0; }
	.tz-ed-panel .ab.sabit{ flex:0 0 48px; }
	.tz-ed-panel .ab.sil{ color:#dc2626; border-color:#fecaca; background:#fff5f5; }
	.tz-ed-ust .ab.aktif, .tz-ed-panel .ab.aktif{ background:var(--acik); border-color:var(--kirmizi); color:var(--koyu); font-weight:700; }
	.tz-ed-panel input[type=text], .tz-ed-panel select{ width:100%; height:46px; padding:0 12px; border:1.5px solid var(--cizgi); border-radius:12px; font-size:16px; background:#fff; color:var(--yazi); }
	.tz-ed-panel input[type=text]:focus, .tz-ed-panel select:focus{ outline:none; border-color:var(--kirmizi); box-shadow:0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
	.tz-ed-panel input[type=range]{ flex:1; height:32px; accent-color:var(--kirmizi); }
	.tz-ed-panel .satir > span{ font-weight:600; color:#374151; }
	.tz-ed-ust .renkler, .tz-ed-panel .renkler{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
	.tz-ed-panel .rk, .tz-ed-ust .rk{ width:32px; height:32px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1.5px #d1d5db; cursor:pointer; padding:0; transition:box-shadow .15s, transform .12s; }
	.tz-ed-panel .rk:active, .tz-ed-ust .rk:active{ transform:scale(.9); }
	.tz-ed-panel .rk.aktif, .tz-ed-ust .rk.aktif{ box-shadow:0 0 0 3px var(--kirmizi); }
	.tz-ed-panel input[type=color], .tz-ed-ust input[type=color]{ width:36px; height:32px; padding:0; border:none; background:none; cursor:pointer; }
	.tz-ed-ust .not, .tz-ed-ust .bos{ font-size:12.5px; color:var(--gri); line-height:1.45; }
	.tz-ed-ust .bos{ padding:12px 6px; text-align:center; }
	.tz-kat .kat{ display:flex; align-items:center; gap:10px; padding:6px; border:2px solid transparent; border-radius:13px; cursor:pointer; transition:background .15s, border-color .15s; }
	.tz-kat .kat + .kat{ margin-top:4px; }
	.tz-kat .kat.aktif{ border-color:var(--kirmizi); background:var(--acik); }
	.tz-kat .on{ flex:0 0 42px; width:42px; height:42px; border-radius:10px; background:#f1f2f5; object-fit:cover; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:19px; color:#374151; }
	.tz-kat .ad{ flex:1; min-width:0; font-size:14px; font-weight:600; color:var(--yazi); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
	.tz-kat .kat-yazi{ flex:1; min-width:0; height:42px; padding:0 10px; border:1.5px solid var(--cizgi); border-radius:10px; font-size:16px; background:#fff; }
	.tz-kat .kat-yazi:focus{ outline:none; border-color:var(--kirmizi); }
	.tz-kat .kb{ flex:0 0 38px; height:38px; border:1.5px solid var(--cizgi); background:#fff; border-radius:10px; color:#374151; cursor:pointer; font-size:13px; }
	.tz-kat .kb.sil{ color:#dc2626; border-color:#fecaca; background:#fff5f5; }
	.tz-ed-yukleniyor{ display:none; position:fixed; inset:0; background:rgba(255,255,255,.94); z-index:60; align-items:center; justify-content:center; text-align:center; font-size:16px; font-weight:600; color:#374151; line-height:1.8; }
	.tz-ed-yukleniyor i{ font-size:30px; color:var(--kirmizi); margin-bottom:8px; }
	@media (hover:hover){ .tz-ed-ib:hover{ color:var(--kirmizi); border-color:#f1948a; } }
.tz-ed{ display:flex; flex-direction:column; max-width:690px; margin:0 auto; position:relative; }
.tz-ed-ib:hover{ color:var(--primary); }
@media (min-width:560px){ .tz-ed-tools button{ flex-direction:row; gap:8px; font-size:13px; min-height:52px; } }
@media (max-width:420px){ .tz-ed-tools button{ font-size:10.5px; } .tz-ed-stage{ padding:6px; } }
@media (prefers-reduced-motion:reduce){ .tz *, .tz *::before{ animation:none !important; transition:none !important; } }
