/* Yazı şablonları sayfası. Sitenin style.css'i üstüne; sınıflar tt- önekli. */
.tt-page .tool-head p { max-width: 68ch; }
.tt-root { display: block; }
.tt-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.tt-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); border-radius: 12px; padding: 0 12px; min-height: 44px; }
.tt-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .6; flex: none; }
.tt-search input { flex: 1; background: none; border: 0; color: inherit; font: inherit; outline: none; min-width: 0; }
.tt-bar select { min-height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #12141f; color: inherit; font: inherit; padding: 0 12px; }
.tt-count { opacity: .7; font-size: .92rem; }
.tt-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.tt-chip { flex: none; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: inherit; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.tt-chip[aria-pressed="true"] { background: #e8302a; border-color: #e8302a; color: #fff; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tt-card { position: relative; display: block; padding: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; background: #15171c; cursor: pointer; color: #fff; aspect-ratio: 1; transition: transform .15s, border-color .15s; }
.tt-card:hover, .tt-card:focus-visible { transform: translateY(-2px); border-color: #e8302a; }
.tt-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tt-card span { position: absolute; left: 8px; bottom: 8px; font-size: .72rem; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 999px; }
.tt-empty { padding: 24px 0; text-align: center; opacity: .85; }
.tt-more { display: flex; justify-content: center; padding: 18px 0 6px; min-height: 20px; }
.tt-dialog { width: min(1040px, 96vw); max-height: 94vh; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #0f111b; color: #f3f4f8; padding: 0; }
.tt-dialog::backdrop { background: rgba(5,6,12,.72); }
.tt-d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 8px; }
.tt-d-head h2 { margin: 4px 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.tt-d-nav { display: flex; gap: 6px; flex: none; }
.tt-d-nav .icon-button { min-width: 40px; min-height: 40px; font-size: 1.3rem; }
.tt-d-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; padding: 8px 18px 18px; }
.tt-stage { position: relative; }
.tt-stage canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 14px; }
.tt-checker { background: repeating-conic-gradient(#3a3d48 0 25%, #262833 0 50%) 0 0 / 24px 24px; }
.tt-wait { position: absolute; inset: auto 0 12px; text-align: center; font-size: .85rem; opacity: .8; margin: 0; }
.tt-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tt-line label, .tt-lbl { display: block; font-size: .82rem; font-weight: 600; opacity: .8; margin-bottom: 6px; }
.tt-line textarea { width: 100%; box-sizing: border-box; resize: vertical; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit; font: inherit; padding: 10px 12px; }
.tt-sw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.tt-sw button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); background: var(--c); cursor: pointer; padding: 0; }
.tt-sw button[aria-pressed="true"] { outline: 2px solid #e8302a; outline-offset: 2px; }
.tt-sw .tt-orig { width: auto; border-radius: 999px; padding: 0 10px; color: inherit; background: rgba(255,255,255,.06); font: inherit; font-size: .78rem; }
.tt-sw .tt-none { background: repeating-conic-gradient(#888 0 25%, #ddd 0 50%) 0 0 / 10px 10px; }
.tt-pick { position: relative; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px dashed rgba(255,255,255,.35); margin: 0 !important; cursor: pointer; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.tt-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tt-actions .btn[disabled] { opacity: .6; cursor: progress; }
.tt-note { font-size: .8rem; opacity: .7; margin: 0; }
.tt-page .header .search, .tt-page #workspace { display: none; }
@media (max-width: 760px) {
  .tt-d-body { grid-template-columns: 1fr; }
  .tt-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .tt-dialog { max-height: 100vh; width: 100vw; border-radius: 0; }
}
