@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #f1f4f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-hover: #f0f6ff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --tx: #1e293b;
  --tx-2: #334155;
  --mu: #64748b;

  --primary: #1d4ed8;
  --primary-h: #1e40af;
  --primary-soft: #eff6ff;
  --primary-line: #bfdbfe;

  --sky: #0284c7;
  --sky-soft: #e0f2fe;
  --sky-line: #bae6fd;
  --accent: #0284c7;

  --ok: #16a34a;
  --ok-h: #15803d;
  --ok-soft: #f0fdf4;
  --err: #dc2626;
  --err-soft: #fef2f2;

  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 14px 32px rgba(15, 23, 42, 0.12);

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --header-h: 58px;
  --container-w: 980px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--tx);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: 'JetBrains Mono', Consolas, monospace; }
.ico { width: 17px; height: 17px; flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.ico-sm { width: 15px; height: 15px; }

.skip {
  position: fixed;
  left: -9999px;
  top: 10px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 5px; }

.wrap {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 14px;
  width: 100%;
}

/* --- MERKEZİ FERAH BEYAZ SAYFA KUTUSU --- */
.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 28px;
  margin: 14px 0 18px;
  box-shadow: var(--shadow-xs);
}

/* --- SADE VE NET ÜST MENÜ --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.header-inner {
  max-width: var(--container-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--tx);
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { color: var(--primary); font-weight: 800; }
.logo-sub { font-size: 0.68rem; font-weight: 500; color: var(--mu); }

.grade-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.grade-tabs a {
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tx-2);
  transition: background-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}
.grade-tabs a:hover {
  background: var(--surface-hover);
  color: var(--primary);
}
.grade-tabs a.active {
  background: var(--primary);
  color: #ffffff;
}

.header-actions { display: flex; align-items: center; gap: 6px; }
.hdr-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--tx-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
}
.hdr-btn:hover { background: var(--surface-hover); border-color: var(--primary-line); color: var(--primary); }
.hdr-btn.icon-only { width: 36px; padding: 0; }
.mob-toggle { display: none; }

.mob-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.mob-nav-grid {
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.mob-nav-grid a {
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--tx);
  font-weight: 700;
  font-size: 0.86rem;
  text-align: center;
}
.mob-nav-grid a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- KOMPAKT REKLAM ALANLARI --- */
.ad-top { display: flex; justify-content: center; padding: 10px 14px 0; }
.ad-inline { display: flex; justify-content: center; margin: 20px 0; }
.ad-wide { display: flex; justify-content: center; padding: 4px 14px 14px; }
.ad-square, .ad-side { display: flex; justify-content: center; width: 100%; }
.ad-ph {
  position: relative;
  width: 100%;
  max-width: 728px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  padding: 6px 12px;
}
.ad-ph::before {
  content: "REKLAM";
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 0.56rem;
  font-weight: 700;
  color: #94a3b8;
}

/* --- BÖLÜM BAŞLIK ŞERİDİ (SADE SOL ÇİZGİLİ KATEGORİ BAŞLIĞI) --- */
.cat-bar {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tx);
  background: #f4f7fb;
  border-left: 5px solid var(--primary);
  border-radius: 4px;
  padding: 9px 14px;
  margin: 22px 0 12px;
  letter-spacing: -0.01em;
}
.cat-bar:first-child { margin-top: 0; }

/* --- ANA SAYFA HIZLI ARAMA SATIRI --- */
.quick-search {
  position: relative;
  margin-bottom: 16px;
}
.quick-search input[type="search"] {
  width: 100%;
  margin: 0;
  padding: 10px 38px 10px 38px;
  font-size: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--tx);
}
.quick-search input[type="search"]:focus {
  background: #fff;
  border-color: var(--primary);
}
.quick-search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mu);
  display: flex;
  pointer-events: none;
}
.quick-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 4px;
  background: var(--line);
  color: var(--tx);
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.sres-panel {
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
}
.sr-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mu);
  padding: 6px 8px 3px;
}
.sr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
}
.sr-item:hover { background: var(--surface-hover); }
.sr-main { display: flex; flex-direction: column; min-width: 0; }
.sr-name { font-weight: 600; font-size: 0.88rem; color: var(--tx); }
.sr-sub { font-size: 0.75rem; color: var(--mu); }

/* --- ANA SAYFA BÜYÜK NET SINIF BUTONLARI --- */
.class-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.class-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13px 10px;
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.class-btn:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}
.class-btn[data-g="5"] { background: #0d9488; }
.class-btn[data-g="6"] { background: #0284c7; }
.class-btn[data-g="7"] { background: #2563eb; }
.class-btn[data-g="8"] { background: #1e40af; }

/* --- ÖZGÜN NUMARALI KONU KARTLARI --- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.topic-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.12s ease;
}
.topic-item:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  transform: translateY(-1px);
}
.topic-num {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
}
.topic-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.topic-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tx);
  line-height: 1.3;
}
.topic-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

/* --- DİĞER SINIFLAR ÖZET LİSTE SÜTUNLARI --- */
.grade-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grade-col-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.grade-col-head {
  display: block;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--primary);
}
.grade-col-box[data-g="5"] .grade-col-head { background: #0d9488; }
.grade-col-box[data-g="6"] .grade-col-head { background: #0284c7; }
.grade-col-box[data-g="7"] .grade-col-head { background: #2563eb; }
.grade-col-list {
  list-style: none;
  padding: 6px 0;
}
.grade-col-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tx-2);
  border-bottom: 1px solid #f1f5f9;
}
.grade-col-list li:last-child a { border-bottom: none; }
.grade-col-list li a:hover {
  background: var(--surface-hover);
  color: var(--primary);
  font-weight: 600;
}

/* --- SINIF VE KONU SAYFASI: DOĞRUDAN TEST LİSTESİ (SIFIR KARMAŞA) --- */
.page-title {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: var(--tx);
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 14px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--mu);
  margin-bottom: 8px;
}
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs b { color: var(--tx-2); font-weight: 600; }

/* Hızlı Ünite Atlama Çubuğu */
.jump-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.jump-chip {
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--tx-2);
}
.jump-chip:hover {
  background: var(--primary-soft);
  border-color: var(--primary-line);
  color: var(--primary);
}

/* Ünite Başlığı ve Alt Konu Test Listesi */
.unit-section {
  margin-top: 22px;
  scroll-margin-top: calc(var(--header-h) + 14px);
}
.unit-heading {
  text-align: center;
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--primary-h);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 5px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.sub-block {
  margin-bottom: 14px;
  padding-left: 2px;
  scroll-margin-top: calc(var(--header-h) + 14px);
}
.sub-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sub-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.sub-soon {
  font-size: 0.82rem;
  color: #94a3b8;
  padding-left: 14px;
}

/* Tek Satır Net PDF Test Satırı */
.test-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #ef4444;
  border-radius: 5px;
  background: #ffffff;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.test-row:hover {
  background: var(--surface-hover);
  border-color: #93c5fd;
  border-left-color: var(--primary);
}
.test-row-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  font-weight: 600;
  font-size: 0.91rem;
  color: var(--tx);
}
.test-row-link:hover { color: var(--primary); }
.pdf-tag {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  background: #fee2e2;
  color: #b91c1c;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.test-row-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* --- TEKİL TEST SAYFASI (HIZLI İNDİR + KALEMLE ÇÖZ + ÖN İZLEME + AKORDEON) --- */
.test-action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin: 14px 0;
}
.big-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  color: #ffffff;
  text-align: center;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.big-action-btn:hover { filter: brightness(0.94); transform: translateY(-1px); }
.big-action-btn.dl-green { background: var(--ok); }
.big-action-btn.pen-blue { background: var(--primary); }
.big-action-btn.ext-gray {
  background: var(--surface-2);
  color: var(--tx-2);
  border: 1px solid var(--line-strong);
  font-weight: 700;
}
.big-action-btn.ext-gray:hover { background: var(--surface-hover); color: var(--primary); }

/* Akordeon Kutusu (Cevap Anahtarı) */
.acc-box {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  margin: 16px 0;
  overflow: hidden;
}
.acc-box summary {
  cursor: pointer;
  padding: 12px 16px;
  background: #f8fafc;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--tx);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.acc-box summary::-webkit-details-marker { display: none; }
.acc-box summary::after { content: "▾ Aç"; font-size: 0.78rem; color: var(--primary); font-weight: 700; }
.acc-box[open] summary { border-bottom: 1px solid var(--line); }
.acc-box[open] summary::after { content: "▴ Kapat"; }
.acc-body { padding: 14px 16px; }

.ans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 6px;
}
.ans-cell {
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}
.ans-cell b { color: var(--primary); }

/* PDF & Kalemle Çözüm Sahnesi */
.viewer-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 14px 0;
}
.viewer-card.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  border-radius: 0;
  margin: 0;
}
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.viewer-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.scratch-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #eff6ff;
  border-bottom: 1px solid var(--primary-line);
}
.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.color-dot.active { box-shadow: 0 0 0 2px var(--primary); transform: scale(1.1); }

.viewer-stage {
  position: relative;
  width: 100%;
  height: 680px;
  min-height: 460px;
  background: #e2e8f0;
}
.viewer-card.fullscreen .viewer-stage {
  height: calc(100vh - 52px);
  min-height: calc(100vh - 52px);
}
.viewer-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: crosshair;
  touch-action: none;
}
.scratch-canvas.pass-through { pointer-events: none; }
.scratch-canvas.paper-bg {
  background-color: rgba(255, 255, 255, 0.95);
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.10) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- GENEL BUTONLAR, PANEL VE YÖNETİM PANELİ UYUMLULUĞU --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--tx-2);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn:hover:not(:disabled) { border-color: #93c5fd; background: var(--surface-hover); color: var(--primary); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.pri { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.pri:hover:not(:disabled) { background: var(--primary-h); border-color: var(--primary-h); color: #fff; }
.btn.acc { background: var(--sky-soft); border-color: var(--sky-line); color: #0369a1; }
.btn.go { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 0.77rem; border-radius: 5px; }
.btn.del { color: var(--err); border-color: #fecaca; }
.btn.del:hover { background: var(--err-soft); border-color: var(--err); color: var(--err); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.73rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--tx-2);
  white-space: nowrap;
}
.panel {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.empty-box {
  padding: 14px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  text-align: center;
  color: var(--mu);
  font-size: 0.84rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.pill-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-tab {
  padding: 6px 11px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--tx-2);
  font-size: 0.8rem;
  font-weight: 600;
}
.pill-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.inline-search { position: relative; min-width: 220px; flex: 1; max-width: 320px; }
.inline-search input { margin: 0; padding: 7px 12px 7px 32px; font-size: 0.84rem; }
.inline-search span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--mu); display: flex; }

/* --- ARAMA MODALI --- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 14px 20px;
}
.cmd-modal {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cmd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--mu);
}
.cmd-head input {
  border: none;
  background: transparent;
  margin: 0;
  padding: 4px;
  font-size: 0.94rem;
  color: var(--tx);
  width: 100%;
}
.cmd-head input:focus { outline: none; box-shadow: none; }
.cmd-body { max-height: 58vh; overflow-y: auto; padding: 6px; }

/* --- FORMLAR & TABLOLAR --- */
input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--tx);
  margin-top: 4px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
label { font-size: 0.81rem; font-weight: 600; color: var(--tx-2); display: block; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.form .full { grid-column: 1 / -1; }
.login { max-width: 420px; margin: 10vh auto; }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.admin-grid { display: grid; gap: 16px; padding-bottom: 36px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 0.73rem; text-transform: uppercase; color: var(--mu); background: var(--surface-2); }
.note { font-size: 0.8rem; color: var(--mu); margin-top: 6px; }
.okmsg { color: var(--ok); font-weight: 600; font-size: 0.85rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.muted { color: var(--mu); }

/* --- KURUMSAL METİN VE İLETİŞİM --- */
.prose p { margin: 10px 0; color: var(--tx-2); }
.prose h2 { margin: 20px 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--tx); border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 14px; }

/* --- SADE ÖZGÜN ALT ÇUBUK (FOOTER) --- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 16px;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--mu);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 600;
  color: var(--tx-2);
}
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-copy { font-size: 0.8rem; color: var(--mu); }

/* --- DUYARLI (MOBİL) GÖRÜNÜM --- */
@media (max-width: 780px) {
  .grade-tabs { display: none; }
  .mob-toggle { display: inline-flex; }
  .sheet { padding: 16px 14px; margin: 10px 0 14px; }
  .class-btn-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: 1fr; }
  .grade-cols { grid-template-columns: 1fr; }
  .test-action-bar { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .viewer-stage { height: 74vh; min-height: 430px; }
  .test-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .test-row-btns { width: 100%; justify-content: flex-end; }
  .footer-bar { flex-direction: column; text-align: center; justify-content: center; }
}

@media print {
  .site-header, .ad-top, .ad-inline, .ad-wide, .viewer-card, .site-footer, .btn, .skip, .overlay { display: none !important; }
}
