/* DijiDers · Eşitlik Terazisi ve Cebir Karoları */
.tz-h { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.tz-sekme { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-sekme button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 700 15px/1.2 inherit; font-family: inherit; cursor: pointer; }
.tz-sekme button[aria-selected="true"] { background: #6366f1; border-color: #6366f1; color: #fff; }
.tz-panel { display: flex; flex-direction: column; gap: 12px; }
.tz-panel[hidden] { display: none; }
.tz-ana { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.tz-sahne { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#tz-svg { width: 100%; height: auto; display: block; border-radius: 18px; border: 1.5px solid var(--line); background: radial-gradient(circle at 50% 35%, #fff, #eef2ff); font-family: Inter, system-ui, sans-serif; user-select: none; -webkit-user-select: none; }
#tz-svg .tz-it { cursor: pointer; }
#tz-svg .tz-hit { cursor: copy; outline: none; }
#tz-svg .tz-hit:focus-visible { stroke: #6366f1; stroke-width: 3; stroke-dasharray: 8 6; }
.tz-ic { transform-box: fill-box; transform-origin: 50% 100%; }
.tz-gel { animation: tz-gel .42s cubic-bezier(.2, .9, .3, 1.3) both; }
.tz-gid { animation: tz-gid .42s ease-in forwards; }
@keyframes tz-gel { from { opacity: 0; transform: translateY(-46px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes tz-gid { to { opacity: 0; transform: translateY(-40px) scale(.7); } }
.tz-denk { text-align: center; font: 800 clamp(26px, 4.4vw, 44px)/1.2 var(--f-d, inherit); letter-spacing: .5px; padding: 10px 14px; border-radius: 16px; background: #fff7ed; color: #9a3412; border: 1.5px solid #fed7aa; }
.tz-denk.is-denge { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.tz-kutla { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 12px 16px; border-radius: 16px; background: #dcfce7; border: 2px solid #22c55e; color: #14532d; animation: tz-pop .5s cubic-bezier(.2, .9, .3, 1.4); }
.tz-kutla[hidden] { display: none; }
.tz-kutla b { font-size: 28px; }
.tz-kutla span { font-weight: 600; }
@keyframes tz-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.tz-uyari { margin: 0; min-height: 1.3em; text-align: center; font-size: 14px; font-weight: 600; color: #b45309; }
.tz-yan { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tz-kutu { background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.tz-kutu h2 { margin: 0; font-size: 16px; }
.tz-not { margin: 0; font-size: 13px; color: var(--soft); line-height: 1.45; }
.tz-palet { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tz-palet button { min-height: 58px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; touch-action: none; padding: 4px; }
.tz-palet button[aria-pressed="true"] { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .25); background: #eef2ff; }
.tz-ops { display: flex; flex-direction: column; gap: 8px; }
.tz-ops > button, #tz-sifir { min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 0; background: #6366f1; color: #fff; font: 700 15px/1.2 inherit; font-family: inherit; cursor: pointer; text-align: center; }
.tz-ops > button:disabled, #tz-sifir:disabled { opacity: .4; cursor: default; }
.tz-sec { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--soft); }
.tz-sec select, .tz-sec input, #tz-ornek { min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px/1.2 inherit; font-family: inherit; }
.tz-sec input { width: 84px; }
#tz-ornek { width: 100%; }
.tz-sira { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tz-ikinci { min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; }
.tz-ikinci[aria-pressed="true"] { border-color: #6366f1; color: #4338ca; background: #eef2ff; }
.tz-gizli summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--soft); min-height: 32px; display: flex; align-items: center; }
.tz-gizli[open] summary { margin-bottom: 8px; }
.tz-adim { margin: 0; padding-left: 22px; max-height: 220px; overflow: auto; font: 500 14px/1.6 var(--f-m, monospace); }
.tz-adim:empty::before { content: "Hazır bir örnek seç ya da teraziyi kendin kur; işlemler burada listelenir."; display: block; margin-left: -22px; font: 400 13px/1.45 inherit; font-family: inherit; color: var(--soft); }
.tz-adim li.is-son { font-weight: 800; color: #15803d; }
.tz-hayalet { position: fixed; z-index: 99999; pointer-events: none; transform: translate(-50%, -50%) scale(1.15); opacity: .9; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }
.tz-hayalet span { display: none; }
/* cebir karoları */
.tz-kpalet { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-kpalet button { min-height: 64px; min-width: 64px; padding: 6px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; touch-action: none; font: 700 14px/1 inherit; font-family: inherit; }
.tz-kpalet button:hover { border-color: #6366f1; }
.tz-ifade-sat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #eef2ff; border: 1.5px solid #c7d2fe; }
.tz-ifade-et { font-weight: 700; color: var(--soft); }
.tz-ifade { font: 800 clamp(24px, 4vw, 38px)/1.2 var(--f-d, inherit); color: #3730a3; }
#tz-mat { width: 100%; height: auto; display: block; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
#tz-mat .tz-karo { cursor: grab; }
#tz-mat .tz-karo .tz-ic { transform-origin: 50% 50%; }
.tz-mat-alt { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); margin-top: -4px; padding: 0 6px; }
#tz-sifir { padding: 10px 18px; }
@media (max-width: 900px) {
  .tz-ana { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tz-palet button { min-height: 52px; }
  .tz-kpalet { display: grid; grid-template-columns: repeat(3, 1fr); }
  .tz-kpalet button { min-width: 0; }
}
