/* Araçlar · Geometri Tahtası */
.gt-h { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.gt-bar { gap: 10px; }
.gt-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); }
.gt-seg button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
.gt-seg button[aria-pressed="true"] { background: #6366f1; color: #fff; }
.gt-renk { display: flex; flex-wrap: wrap; gap: 6px; }
.gt-renk button { width: 34px; height: 34px; margin: 5px 0; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; }
.gt-renk button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px #6366f1; }
.gt-ana { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.gt-sahne { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gt-tahta { display: flex; justify-content: center; border-radius: 18px; background: #f1f5f9; border: 1.5px solid var(--line); padding: 8px; }
#gt-svg { display: block; width: 100%; max-height: min(68vh, 640px); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.gt-plaka { fill: #fffdf7; stroke: #e2d9c3; stroke-width: 0.04; }
.gt-civi { fill: #475569; }
.gt-lastik { stroke-width: 0.12; stroke-linejoin: round; stroke-linecap: round; fill-opacity: 0.16; }
.gt-lastik.gt-acik { fill: none; }
.gt-lastik.is-sel { stroke-width: 0.16; fill-opacity: 0.26; }
.gt-izg line { stroke-width: 0.035; stroke-opacity: 0.75; }
.gt-kose { fill: #fff; stroke-width: 0.07; }
.gt-halka { fill: none; stroke-width: 0.05; stroke-dasharray: 0.12 0.08; animation: gt-nabiz 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gt-nabiz { 50% { transform: scale(1.25); opacity: .5; } }
.gt-olc { font-family: var(--f-m, monospace); font-weight: 700; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #fffdf7; stroke-width: 0.12; stroke-linejoin: round; pointer-events: none; }
.gt-ipucu { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 600; color: #4338ca; }
.gt-eylem { display: flex; flex-wrap: wrap; gap: 8px; }
.gt-eylem button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
.gt-eylem .gt-ana-b { background: #6366f1; border-color: #6366f1; color: #fff; }
.gt-eylem button:disabled { opacity: .4; cursor: default; }
.gt-yan { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gt-sec { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); }
.gt-sec label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.gt-sec input { width: 22px; height: 22px; accent-color: #6366f1; }
.gt-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.gt-liste:empty { display: none; }
.gt-liste button { min-height: 36px; padding: 0 12px 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.gt-liste button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.gt-liste button[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.gt-bilgi { background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; font-size: 15px; line-height: 1.5; }
.gt-bilgi h2 { margin: 0 0 10px; font-size: 21px; }
.gt-bilgi p { margin: 8px 0 0; }
.gt-sayi { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gt-sayi div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 6px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); min-width: 0; }
.gt-sayi span { font-size: 12px; color: var(--soft); }
.gt-sayi b { font-size: 22px; line-height: 1.2; color: #4338ca; overflow-wrap: anywhere; }
.gt-sayi small { font-size: 12px; color: var(--soft); }
.gt-uyari { padding: 8px 10px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 14px; }
.gt-pick { font-size: 14px; color: var(--soft); }
.gt-pick b { color: var(--ink); }
.gt-not { font-size: 13px; color: var(--soft); }
.tool.gt:fullscreen #gt-svg, .tool.gt.is-tam #gt-svg { max-height: calc(100vh - 220px); }
@media (max-width: 860px) {
  .gt-ana { grid-template-columns: 1fr; }
  .gt-tahta { padding: 4px; }
}
