@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
#arac-kok{
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
& {
    --blue: #1a6fd4;
    --blue-light: #e8f2fd;
    --blue-mid: #b5d4f4;
    --bg: #f4f6f9;
    --surface: #ffffff;
    --border: rgba(0,0,0,0.09);
    --border-md: rgba(0,0,0,0.15);
    --text: #1a1c1e;
    --text-2: #5a6070;
    --text-3: #9aa0ad;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  }
& {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
  }
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
.topbar-icon {
    width: 36px; height: 36px;
    background: var(--blue);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
.topbar-icon svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-info { flex: 1; }
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.2; }
.topbar-sub { font-size: 12px; color: var(--text-3); }
.topbar-count { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--blue); background: var(--blue-light); padding: 4px 10px; border-radius: 20px; font-weight: 500; }
.layout { display: flex; max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; gap: 2rem; }
.sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 76px;
    height: fit-content;
  }
.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
  }
.sidebar-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.alpha-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.alpha-btn {
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    font-size: 12px; font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'DM Mono', monospace;
  }
.alpha-btn:hover:not(.disabled) { background: var(--blue-light); color: var(--blue); border-color: var(--blue-mid); }
.alpha-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.alpha-btn.disabled { opacity: 0.25; cursor: default; }
.sidebar-divider { height: 1px; background: var(--border); margin: 1rem 0; }
.clear-btn {
    width: 100%; height: 34px;
    border: 1px solid var(--border-md);
    border-radius: 8px;
    background: transparent;
    font-size: 13px; color: var(--text-2);
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
  }
.clear-btn:hover { background: var(--bg); color: var(--text); }
.main { flex: 1; min-width: 0; }
.search-wrap { position: relative; margin-bottom: 1.25rem; }
.search-wrap input {
    width: 100%; height: 48px;
    border: 1px solid var(--border-md);
    border-radius: var(--radius-lg);
    padding: 0 48px 0 18px;
    font-size: 15px; color: var(--text);
    background: var(--surface);
    outline: none;
    font-family: 'DM Sans', sans-serif;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,212,0.12), var(--shadow); }
.search-wrap input::placeholder { color: var(--text-3); }
.search-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.stats-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.stats-text { font-size: 13px; color: var(--text-3); }
.stats-text strong { color: var(--text-2); font-weight: 500; }
.filter-tag { display: flex; align-items: center; gap: 6px; background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px; }
.filter-tag button { background: none; border: none; cursor: pointer; color: var(--blue); font-size: 14px; line-height: 1; padding: 0; }
.section-head {
    font-family: 'DM Mono', monospace;
    font-size: 13px; font-weight: 500;
    color: var(--blue);
    padding: 1.5rem 0 0.6rem;
    border-bottom: 2px solid var(--blue);
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 8px;
  }
.section-head .letter-badge {
    width: 28px; height: 28px;
    background: var(--blue); color: white;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
  }
.section-count { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: auto; }
.term-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: var(--shadow);
  }
.term-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.term-card.expanded { border-color: var(--blue); }
.term-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.term-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4; }
.term-arrow { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: all 0.2s; margin-top: 2px; }
.term-arrow svg { width: 12px; height: 12px; stroke: var(--text-3); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.term-card.expanded .term-arrow { background: var(--blue-light); }
.term-card.expanded .term-arrow svg { stroke: var(--blue); transform: rotate(180deg); }
.term-preview { font-size: 13px; color: var(--text-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-def { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: none; }
.term-card.expanded .term-def { display: block; }
.term-card.expanded .term-preview { display: none; }
mark { background: rgba(26,111,212,0.15); color: #0d4f9e; border-radius: 2px; padding: 0 2px; }
.no-results { text-align: center; padding: 4rem 1rem; color: var(--text-3); }
.no-results svg { width: 48px; height: 48px; stroke: var(--border-md); fill: none; stroke-width: 1.5; margin-bottom: 1rem; display: block; margin-left: auto; margin-right: auto; }
.no-results p { font-size: 15px; }
@media (max-width: 768px) {
    .layout { flex-direction: column; padding: 1rem; gap: 1rem; }
    .sidebar { width: 100%; position: static; }
    .topbar { padding: 0 1rem; }
    .topbar-count { display: none; }
  }
.term-card { animation: fadeUp 0.2s ease both; }
}

/* Sunucu tarafı terim listesi (dl.sozluk > div.terim) */
#arac-kok dl.sozluk{margin:0}
#arac-kok .terim{background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:12px;padding:14px 18px;margin-bottom:10px}
#arac-kok .terim[hidden]{display:none}
#arac-kok .terim dt{font-size:14px;font-weight:600;color:var(--text,#1e293b);line-height:1.4;cursor:pointer;margin:0}
#arac-kok .terim dd{font-size:13px;color:var(--text-2,#475569);line-height:1.65;margin:8px 0 0;padding-top:8px;border-top:1px solid var(--border,#e2e8f0)}
#arac-kok .terim.kapali dd{display:none}
#arac-kok .terim mark{background:#fde68a;border-radius:3px}
#arac-kok .no-results[hidden]{display:none}
