/* =====================================================================
 * Atölye — tasarım dosyası
 * EtaKilit panel tasarımından uyarlandı: aynı renk değişkenleri, Exo 2,
 * kartlar, rozetler, alttan açılan pencereler, alt sekme çubuğu.
 * Renkler tema motoru (js/tema.js) tarafından değiştirilir; bileşenlerde
 * sabit renk yazılmaz, yalnız var(--…) kullanılır.
 * ===================================================================== */

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface2: #e2e8f0;
  --border: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --success: #16a34a;
  --success-hover: #15803d;
  --warn: #d97706;
  --mor: #8b5cf6;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --radius: 8px;
  --golge: 0 1px 4px rgba(0, 0, 0, 0.06);
  --golge-buyuk: 0 20px 60px rgba(0, 0, 0, 0.14);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ust-yukseklik: 60px;
  --kenar-genislik: 264px;
  color-scheme: light;
}
:root[data-mod="koyu"] { color-scheme: dark; }

/* Yarı saydam tonlar tek yerden türetilir (koyu temada da doğru görünür). */
:root {
  --ton-accent: color-mix(in srgb, var(--accent) 12%, transparent);
  --ton-success: color-mix(in srgb, var(--success) 13%, transparent);
  --ton-danger: color-mix(in srgb, var(--danger) 13%, transparent);
  --ton-warn: color-mix(in srgb, var(--warn) 15%, transparent);
  --ton-mor: color-mix(in srgb, var(--mor) 15%, transparent);
  --ton-notr: color-mix(in srgb, var(--text3) 20%, transparent);
}

/* ---------- Temel ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.45;
}
input, textarea, select, button { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
.gizli { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Açılış ekranı ---------- */
.acilis {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  /* --surface: hem giriş zemininin üstü hem uygulamanın üst çubuğu bu renk; iOS üst çubuğu açılışta griye boyanmasın */
  background: var(--surface); color: var(--text3); font-size: 13px; font-weight: 600;
  transition: opacity 0.25s ease;
}
.acilis img { width: 72px; height: auto; }
.acilis.bitti { opacity: 0; pointer-events: none; }

/* ---------- Üst çubuk ---------- */
.ust {
  position: sticky; top: 0; z-index: 50;
  height: var(--ust-yukseklik);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--golge);
}
.ust-sol, .ust-sag { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ust-logo { display: flex; align-items: center; gap: 9px; color: var(--text); min-width: 0; }
.ust-logo img { width: 32px; height: auto; flex-shrink: 0; }
.ust-logo h1 { font-size: 18px; font-weight: 700; white-space: nowrap; }
.ust-sayfa { display: none; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dugme-ust {
  width: 36px; height: 36px; border-radius: 6px; border: none; flex-shrink: 0;
  background: var(--surface2); color: var(--text2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  transition: background 0.2s;
}
.dugme-ust:active { background: var(--border); }
@media (hover: hover) { .dugme-ust:hover { background: var(--border); } }

/* ---------- Rozetler ---------- */
.rozet {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; line-height: 1.3;
  padding: 3px 9px; border-radius: 4px; white-space: nowrap;
}
.rozet i { font-size: 10px; }
.rozet.basarili { background: var(--ton-success); color: var(--success); }
.rozet.tehlike { background: var(--ton-danger); color: var(--danger); }
.rozet.uyari { background: var(--ton-warn); color: var(--warn); }
.rozet.bilgi { background: var(--ton-accent); color: var(--accent); }
.rozet.mor { background: var(--ton-mor); color: var(--mor); }
.rozet.notr { background: var(--ton-notr); color: var(--text2); }
.nokta { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ---------- Kenar menü ---------- */
.kenar-arka {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  touch-action: none;
}
.kenar-arka.acik { opacity: 1; pointer-events: auto; }
body.kilitli { overflow: hidden; }
.kenar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 101;
  width: var(--kenar-genislik); max-width: 85vw;
  display: flex; flex-direction: column;
  background: var(--surface);
  transform: translateX(-100%); visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.28s;
  overscroll-behavior: contain;
}
.kenar.acik { transform: translateX(0); visibility: visible; box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
.kenar-baslik {
  height: var(--ust-yukseklik); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px 0 18px; border-bottom: 1px solid var(--border);
}
.kenar-baslik .ust-logo h1 { font-size: 17px; }
.kenar-nav { flex: 1; overflow-y: auto; padding: 8px 0 12px; overscroll-behavior: contain; }
.kenar-grup-baslik {
  padding: 14px 22px 6px; font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.kenar-oge {
  display: flex; align-items: center; gap: 13px;
  margin: 2px 10px; padding: 10px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--text2);
  border: none; background: none; width: calc(100% - 20px); text-align: left;
  transition: background 0.15s, color 0.15s;
}
.kenar-oge i { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.kenar-oge > span:not(.rozet) { flex: 1; min-width: 0; }
.kenar-oge .rozet { padding: 2px 8px; font-size: 10px; flex-shrink: 0; }
.kenar-oge:active { background: var(--surface2); }
@media (hover: hover) { .kenar-oge:hover { background: var(--surface2); } }
.kenar-oge.aktif { color: var(--accent); background: var(--ton-accent); }
.kenar-oge.yakinda { color: var(--text3); }
.kenar-alt { padding: 10px 12px calc(10px + var(--safe-bottom)); border-top: 1px solid var(--border); font-size: 11px; color: var(--text3); text-align: center; }

/* ---------- Sayfa ---------- */
.ana { padding-bottom: calc(76px + max(var(--safe-bottom), 12px)); }
.sayfa { padding: 16px; max-width: 1200px; margin: 0 auto; animation: sayfaGir 0.2s ease; }
@keyframes sayfaGir { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sayfa-baslik { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sayfa-baslik h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.sayfa-baslik p { font-size: 13px; color: var(--text2); margin-top: 3px; }
.bolum-baslik { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin: 22px 0 10px; }

/* ---------- Kartlar ---------- */
.izgara { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.kart {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; position: relative;
}
.kart-baslik { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.kart-baslik h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; min-width: 0; }
.kart-baslik h3 i { color: var(--accent); }
.kart p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.kart-ikon {
  width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  background: var(--ton-accent); color: var(--accent);
}
.karsilama { display: flex; gap: 14px; align-items: center; }
.karsilama h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }

/* Sayı kutucukları */
.sayilar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sayi-kutu { background: var(--surface2); border-radius: 6px; padding: 10px 8px; text-align: center; min-width: 0; }
.sayi-kutu .deger { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sayi-kutu .deger i { font-size: 12px; margin-right: 4px; }
.sayi-kutu .etiket { font-size: 10px; font-weight: 600; color: var(--text3); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.3px; }
.sayi-kutu.basarili .deger { color: var(--success); }
.sayi-kutu.tehlike .deger { color: var(--danger); }
.sayi-kutu.uyari .deger { color: var(--warn); }

/* Adım listesi (yol haritası) */
.adimlar { list-style: none; display: flex; flex-direction: column; }
.adimlar li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.adimlar li:last-child { border-bottom: none; padding-bottom: 0; }
.adim-no {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--surface2); color: var(--text2);
}
.adim-no.tamam { background: var(--success); color: #fff; }
.adim-no.simdi { background: var(--accent); color: #fff; }
.adimlar .metin { flex: 1; min-width: 0; }
.adimlar .metin strong { display: block; font-weight: 600; }
.adimlar .metin span { font-size: 12px; color: var(--text3); }

/* Boş durum */
.bos { text-align: center; padding: 56px 20px; color: var(--text3); }
.bos > i { font-size: 38px; opacity: 0.45; margin-bottom: 14px; }
.bos h3 { font-size: 16px; color: var(--text2); margin-bottom: 6px; }
.bos p { font-size: 13px; max-width: 26rem; margin: 0 auto; line-height: 1.6; }

/* ---------- Düğmeler ---------- */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 6px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
}
.dugme:active:not(:disabled) { transform: scale(0.97); }
.dugme:disabled { opacity: 0.45; cursor: not-allowed; }
.dugme.vurgulu { background: var(--accent); color: #fff; }
.dugme.vurgulu:hover:not(:disabled) { background: var(--accent-hover); }
.dugme.basarili { background: var(--success); color: #fff; }
.dugme.basarili:hover:not(:disabled) { background: var(--success-hover); }
.dugme.tehlikeli { background: var(--danger); color: #fff; }
.dugme.tehlikeli:hover:not(:disabled) { background: var(--danger-hover); }
.dugme.ikincil { background: var(--surface2); color: var(--text); border-color: var(--border); }
.dugme.ikincil:hover:not(:disabled) { background: var(--border); }
.dugme.cizgili { background: transparent; color: var(--accent); border-color: var(--accent); }
.dugme.genis { width: 100%; }
.dugme.kucuk { padding: 7px 12px; font-size: 12px; border-radius: 5px; }
.dugme-ikon {
  width: 38px; height: 38px; border-radius: 6px; border: none; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
  background: var(--surface2); color: var(--text2);
}
.dugme-ikon.ton-accent { background: var(--ton-accent); color: var(--accent); }
.dugme-ikon.ton-success { background: var(--ton-success); color: var(--success); }
.dugme-ikon.ton-danger { background: var(--ton-danger); color: var(--danger); }
.dugme-ikon.ton-warn { background: var(--ton-warn); color: var(--warn); }
.dugme-ikon.ton-mor { background: var(--ton-mor); color: var(--mor); }
.dugme-satir { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Formlar ---------- */
.alan { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.alan label, .alan .etiket { font-size: 13px; font-weight: 500; color: var(--text2); }
.alan .ipucu { font-size: 12px; color: var(--text3); }
.girdi, .alan input:not([type=checkbox]):not([type=radio]):not([type=color]), .alan select, .alan textarea {
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 16px; transition: border-color 0.2s;
}
.girdi:focus, .alan input:focus, .alan select:focus, .alan textarea:focus { outline: none; border-color: var(--accent); }
.alan input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important; -webkit-text-fill-color: var(--text) !important; }

/* Bölümlü seçici (Aydınlık / Koyu / Sistem) */
.bolumlu {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--border);
}
.bolumlu button {
  border: none; border-radius: 4px; padding: 7px 14px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--text3);
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.bolumlu button.aktif { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

/* Renk seçici */
.renkler { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.renk {
  width: 34px; height: 34px; border-radius: 6px; border: 3px solid transparent; padding: 0;
  transition: transform 0.15s, border-color 0.15s; flex-shrink: 0;
}
.renk:hover { transform: scale(1.12); }
.renk.aktif { border-color: var(--text); }
.renk-ozel {
  position: relative; width: 34px; height: 34px; border-radius: 6px; flex-shrink: 0; cursor: pointer;
  background: conic-gradient(#ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444);
  display: inline-flex; align-items: center; justify-content: center; border: 3px solid transparent;
}
.renk-ozel.aktif { border-color: var(--text); }
.renk-ozel i { font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.renk-ozel input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.satir-ayar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.satir-ayar:last-child { border-bottom: none; }
.satir-ayar strong { font-size: 14px; font-weight: 600; display: block; }
.satir-ayar span { font-size: 12px; color: var(--text3); }

/* ---------- Alt sekme çubuğu ---------- */
.sekmeler {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; background: var(--surface);
  border-top: 1px solid var(--border); box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.06);
  padding-bottom: max(var(--safe-bottom), 12px);
}
.sekme {
  flex: 1; min-width: 0; min-height: 56px; padding: 10px 4px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: none; background: none;
  font-size: 10px; font-weight: 600; color: var(--text3);
  white-space: nowrap; overflow: hidden; transition: color 0.2s;
}
.sekme i { font-size: 20px; }
.sekme.aktif { color: var(--accent); }

/* ---------- Bildirimler ---------- */
.bildirimler { position: fixed; top: 12px; left: 16px; right: 16px; z-index: 9000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.bildirim {
  max-width: 480px; width: 100%; pointer-events: auto;
  padding: 13px 18px; border-radius: var(--radius); color: #fff;
  font-size: 14px; font-weight: 600; text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  animation: bildirimGir 0.3s ease;
}
.bildirim.basarili { background: var(--success); }
.bildirim.hata { background: var(--danger); }
.bildirim.uyari { background: var(--warn); }
.bildirim.bilgi { background: var(--accent); }
.bildirim.cik { opacity: 0; transform: translateY(-10px); transition: all 0.3s; }
@keyframes bildirimGir { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

/* Güncelleme ve kurulum bantları */
.bant {
  position: fixed; left: 50%; z-index: 8000;
  bottom: calc(80px + max(var(--safe-bottom), 12px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: calc(100% - 24px); max-width: 440px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
.bant.goster { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bant-ikon {
  width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--ton-accent); color: var(--accent); font-size: 18px;
}
.bant-ikon img { width: 100%; height: 100%; }
.bant-metin { flex: 1; min-width: 0; }
.bant-metin strong { display: block; font-size: 14px; font-weight: 700; }
.bant-metin span { font-size: 12px; color: var(--text3); }
.bant-kapat { border: none; background: none; color: var(--text3); font-size: 17px; padding: 4px; flex-shrink: 0; }

/* ---------- Pencereler (mobilde alttan açılır) ---------- */
.pencere-arka {
  position: fixed; inset: 0; z-index: 7000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  animation: arkaGir 0.2s ease;
}
@keyframes arkaGir { from { opacity: 0; } to { opacity: 1; } }
.pencere {
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 10px 10px 0 0;
  padding: 22px 20px calc(20px + var(--safe-bottom));
  animation: pencereGir 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pencereGir { from { transform: translateY(100%); } to { transform: none; } }
.pencere-baslik { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pencere-baslik h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.pencere-baslik h3 i { color: var(--accent); }
.pencere-kapat { width: 32px; height: 32px; border-radius: 6px; border: none; background: var(--surface2); color: var(--text2); display: inline-flex; align-items: center; justify-content: center; }
.pencere-dugmeler { display: flex; gap: 10px; margin-top: 18px; }
.pencere-dugmeler .dugme { flex: 1; }

/* iOS ana ekrana ekleme adımları */
.adim-kart { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.adim-kart:last-child { border-bottom: none; }
.adim-kart .simge { width: 38px; height: 38px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface2); color: var(--accent); font-size: 17px; }
.adim-kart strong { display: block; font-size: 14px; }
.adim-kart span { font-size: 13px; color: var(--text2); }

/* ---------- Giriş / kayıt ekranları ---------- */
body.giris-modu .ust, body.giris-modu .kenar, body.giris-modu .kenar-arka,
body.giris-modu .sekmeler, body.giris-modu .ana { display: none !important; }
/* Form ayrı bir kartta değil, doğrudan sayfanın zemininde. Üst çubuk her yerde --surface olsun: theme-color (js/tema.js),
   body zemini ve giriş katmanının background-color'ı. iOS 26 Safari theme-color'ı okumuyor, çubuğu body'nin ya da en üstteki
   sabit öğenin background-color'ından boyuyor (degrade sayılmıyor); üçü aynı olunca çubuk sayfadan ayrı durmaz. */
body.giris-modu { background: var(--surface); }
.giris-kap {
  position: fixed; inset: 0; z-index: 400; overflow-y: auto;
  background-color: var(--surface);
  background-image: linear-gradient(to bottom, var(--surface), var(--bg) 55%);
  display: flex; justify-content: center; align-items: flex-start;
  padding: max(24px, env(safe-area-inset-top)) 20px calc(24px + var(--safe-bottom));
}
.giris-kutu {
  width: 100%; max-width: 360px; margin: auto 0; padding: 12px 0;
  animation: sayfaGir 0.25s ease;
}
.giris-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 26px; text-align: center; }
.giris-logo img { width: 84px; height: auto; display: block; }
.giris-logo h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.giris-logo p { font-size: 14px; color: var(--text2); margin-top: -6px; }
.giris-kap .giris-kutu .alan input:not([type=checkbox]):not([type=radio]) { background: var(--surface); }
.giris-kap .alan input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important; }
.giris-kutu .bilgi-kutu { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.bolumlu.tam { display: flex; width: 100%; margin-bottom: 18px; }
.bolumlu.tam button { flex: 1; justify-content: center; }
.onay-kutusu { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text2); cursor: pointer; user-select: none; margin: 2px 0 16px; }
.onay-kutusu input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.giris-baglantilar { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.giris-baglantilar .dugme { width: 100%; }
.giris-not { font-size: 12px; color: var(--text3); line-height: 1.6; margin-top: 14px; text-align: center; }
.geri-baglanti { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text2); border: none; background: none; padding: 4px 0; margin-bottom: 12px; }
.form-hata { display: none; margin: 4px 0 14px; padding: 10px 12px; border-radius: 6px; background: var(--ton-danger); color: var(--danger); font-size: 13px; font-weight: 600; line-height: 1.5; }
.form-hata.goster { display: block; }
.bilgi-kutu { padding: 12px 14px; border-radius: 6px; background: var(--ton-accent); color: var(--text); font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.bilgi-kutu.uyari { background: var(--ton-warn); }
.bilgi-kutu strong { color: var(--accent); }
.kod-girdi { text-transform: uppercase; letter-spacing: 6px; text-align: center; font-weight: 700; font-size: 20px !important; }
.iki-alan { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }

/* ---------- Kod gösterimi ---------- */
.kod-goster {
  display: block; text-align: center; padding: 16px; border-radius: 8px; margin: 6px 0 12px;
  background: var(--ton-accent); color: var(--accent);
  font-size: 30px; font-weight: 800; letter-spacing: 6px; font-variant-numeric: tabular-nums; user-select: all;
}

/* ---------- Listeler ---------- */
.liste { display: flex; flex-direction: column; }
.liste-oge { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.liste-oge:last-child { border-bottom: none; }
.liste-oge .govde { flex: 1; min-width: 0; }
.liste-oge .govde strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-oge .govde > span { display: block; font-size: 12px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-oge .sag { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.avatar {
  width: 34px; height: 34px; border-radius: 6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--ton-accent); color: var(--accent);
}
.avatar.mor { background: var(--ton-mor); color: var(--mor); }
.avatar.yesil { background: var(--ton-success); color: var(--success); }
.avatar.gri { background: var(--ton-notr); color: var(--text2); }
.no { font-variant-numeric: tabular-nums; color: var(--text3); letter-spacing: 1px; }
.dugme-menu { width: 32px; height: 32px; border-radius: 6px; border: none; background: transparent; color: var(--text3); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dugme-menu:hover { background: var(--surface2); color: var(--text2); }
.liste-oge.yeni-gelen { animation: yeniGelen 1.2s ease; }
@keyframes yeniGelen { from { background: var(--ton-success); } to { background: transparent; } }

/* Şube-ders kartları */
.sinif-kart { cursor: pointer; transition: border-color 0.15s, transform 0.1s; display: block; color: inherit; }
.sinif-kart:hover { border-color: var(--accent); }
.sinif-kart:active { transform: scale(0.99); }
.sinif-kart .ust-satir { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sinif-kart .sube-ad { font-size: 18px; font-weight: 800; }
.sinif-kart .ders-ad { font-size: 13px; color: var(--text2); font-weight: 600; }
.sinif-kart .alt-satir { display: flex; flex-wrap: wrap; gap: 6px; }

/* Grup sütunları */
.grup-izgara { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grup-kart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.grup-kart-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.grup-kart-ust h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.grup-kart-govde { padding: 4px 16px 10px; flex: 1; }
.grup-kart-alt { padding: 10px 16px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kod-satir { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.kod-satir .kod { font-size: 20px; font-weight: 800; letter-spacing: 3px; color: var(--success); font-variant-numeric: tabular-nums; }
.kod-satir .sure { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.kod-satir .bosluk { flex: 1; }
.ders-etiketleri { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ders-etiketleri .rozet { white-space: normal; line-height: 1.45; }

/* Kayıt kodu sahnesi (tahtaya yansıtma) */
.kod-sahne {
  position: fixed; inset: 0; z-index: 8500; overflow-y: auto;
  background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: max(20px, env(safe-area-inset-top)) 20px calc(20px + var(--safe-bottom));
  animation: arkaGir 0.2s ease;
}
.kod-sahne .baslik { font-size: clamp(18px, 2.6vw, 30px); font-weight: 700; color: var(--text2); text-align: center; }
.kod-sahne .icerik { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 70px); flex-wrap: wrap; }
.kod-sahne .qr { background: #fff; padding: 14px; border-radius: 8px; border: 1px solid var(--border); line-height: 0; }
.kod-sahne .qr svg { width: clamp(180px, 26vw, 340px); height: auto; }
.kod-sahne .metinler { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kod-sahne .adres { font-size: clamp(15px, 2vw, 24px); color: var(--text2); font-weight: 600; }
.kod-sahne .buyuk-kod { font-size: clamp(56px, 11vw, 150px); font-weight: 800; letter-spacing: 0.12em; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.kod-sahne .geri-sayim { font-size: clamp(15px, 1.8vw, 22px); color: var(--text3); font-weight: 600; font-variant-numeric: tabular-nums; }
.kod-sahne .gelenler { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; }
.kod-sahne .gelenler .rozet { font-size: 14px; padding: 6px 14px; }
.kod-sahne .sayi-gelen { font-size: clamp(16px, 2vw, 22px); font-weight: 700; }
.kod-sahne .dugmeler { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Duyarlı tablo: telefonda kart, geniş ekranda tablo */
.tablo { width: 100%; border-collapse: collapse; }
.tablo thead { display: none; }
.tablo tr { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.tablo td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 13px; }
.tablo td::before { content: attr(data-etiket); font-size: 12px; font-weight: 600; color: var(--text3); flex-shrink: 0; }
.tablo td.baslik-hucre { font-size: 15px; font-weight: 700; padding-bottom: 8px; }
.tablo td.baslik-hucre::before { display: none; }
.tablo td.islem::before { display: none; }
.tablo td.islem { justify-content: flex-end; padding-top: 8px; }
.arac-cubugu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.arac-cubugu .bosluk { flex: 1; }
.arac-cubugu select { padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; }

/* ---------- Yıllık plan ---------- */
.hafta-liste { display: flex; flex-direction: column; gap: 8px; }
.hafta-kart { display: grid; grid-template-columns: 58px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; scroll-margin-top: 80px; }
.hafta-kart.simdi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hafta-kart.tatil { opacity: 0.6; }
.hafta-no { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 2px; }
.hafta-no strong { font-size: 22px; font-weight: 800; line-height: 1; color: var(--text); }
.hafta-kart.simdi .hafta-no strong { color: var(--accent); }
.hafta-no span { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 3px; }
.hafta-govde { min-width: 0; }
.hafta-ust { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.hafta-ust .tarih { font-size: 12px; font-weight: 700; color: var(--text2); margin-right: 4px; }
.hafta-govde .unite { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.3px; }
.hafta-govde .konu { font-size: 14px; font-weight: 600; white-space: pre-line; margin-top: 2px; }
.hafta-govde .kazanimlar { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.hafta-govde .kazanim { font-size: 12px; color: var(--text2); line-height: 1.5; }
.hafta-govde .kazanim b { color: var(--accent); margin-right: 4px; }
.hafta-govde .ek { margin-top: 8px; font-size: 12px; }
.hafta-govde .ek summary { cursor: pointer; color: var(--text3); font-weight: 600; }
.hafta-govde .ek dl { margin-top: 6px; display: grid; grid-template-columns: 1fr; gap: 2px 12px; }
.hafta-govde .ek dt { font-weight: 700; color: var(--text2); margin-top: 6px; }
.hafta-govde .ek dd { color: var(--text2); white-space: pre-line; line-height: 1.5; }
.esleme-tablo select { width: 100%; max-width: 240px; padding: 7px 9px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; }
.ornek { display: block; font-size: 12px; color: var(--text2); max-width: 340px; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.onizleme-kap { max-height: 420px; overflow: auto; }
.tablo tr.soluk { opacity: 0.55; }

/* ---------- Bu Hafta (öğrenci) ---------- */
.ders-blok { margin-bottom: 14px; }
.hafta-blok { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.hafta-blok-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hafta-blok-ust strong { display: block; font-size: 15px; }
.hafta-blok-ust span:not(.rozet) { font-size: 13px; color: var(--text2); }
.ilerleme-cubuk { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin: 6px 0 4px; }
.ilerleme-cubuk span { display: block; height: 100%; background: var(--success); border-radius: 3px; transition: width 0.4s; }
.ilerleme-metin { font-size: 12px; color: var(--text3); margin-bottom: 8px; }
.ders-listesi { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ders-satir { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); transition: border-color 0.15s; }
a.ders-satir:hover { border-color: var(--accent); }
.ders-satir.kilitli { opacity: 0.65; }
.ders-no { width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--surface2); color: var(--text2); }
.ders-no.acik { background: var(--ton-accent); color: var(--accent); }
.ders-no.tamam { background: var(--success); color: #fff; }
.ders-ad { flex: 1; min-width: 0; }
.ders-ad strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ders-ad > span { display: block; font-size: 12px; color: var(--text3); }
.ders-ad i.soluk { opacity: 0.3; }
.ders-ad > span i { margin-right: 5px; }
.ders-ikonlar { display: none; gap: 8px; color: var(--text3); font-size: 12px; }
.ders-satir .ok { color: var(--text3); font-size: 12px; }
details.gecmis { margin-top: 12px; }
details.gecmis > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text2); padding: 6px 0; }
.akis { display: flex; flex-direction: column; margin-top: 6px; }
.akis-satir { display: grid; grid-template-columns: 30px 92px 1fr; gap: 8px; padding: 6px 4px; font-size: 12px; border-bottom: 1px solid var(--border); color: var(--text2); }
.akis-satir .no { font-weight: 700; color: var(--text3); }
.akis-satir.gecti { color: var(--text3); }
.akis-satir.simdi { background: var(--ton-accent); color: var(--text); font-weight: 600; border-radius: 4px; }
.akis-satir.tatil { opacity: 0.55; }

/* ---------- Bu Hafta (öğretmen) ---------- */
.ders-yonetim { display: flex; flex-direction: column; gap: 8px; }
.ders-yonetim-satir { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); flex-wrap: wrap; }
.ders-yonetim-satir.pasif { opacity: 0.6; }
.ders-yonetim-satir .ders-ad { min-width: 180px; }
.ders-islem { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.matris-kap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.matris { border-collapse: collapse; width: 100%; font-size: 12px; }
.matris th { font-weight: 600; color: var(--text3); padding: 9px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: center; background: var(--surface); position: sticky; top: 0; }
.matris th.ad, .matris td.ad { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 140px; }
.matris td { padding: 6px; border-bottom: 1px solid var(--border); text-align: center; }
.matris td.ad strong { display: block; font-size: 13px; }
.matris td.ad span { font-size: 11px; color: var(--text3); }
.matris .hucre { font-weight: 700; border-radius: 0; min-width: 52px; }
.matris .hucre.iyi { background: var(--ton-success); color: var(--success); }
.matris .hucre.orta { background: var(--ton-warn); color: var(--warn); }
.matris .hucre.zayif { background: var(--ton-danger); color: var(--danger); }
.matris .hucre.bos { color: var(--text3); }

/* ---------- Ders oynatıcı ---------- */
.adim-cubugu { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; position: sticky; top: var(--ust-yukseklik); z-index: 20; background: var(--bg); padding-top: 8px; }
.adim-cip { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 6px 10px 6px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.adim-cip .no { width: 22px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface2); font-size: 11px; }
.adim-cip.basladi .no { background: var(--ton-accent); color: var(--accent); }
.adim-cip.tamam { border-color: var(--success); color: var(--success); }
.adim-cip.tamam .no { background: var(--success); color: #fff; }
.adim-cip.pasif { opacity: 0.5; }
.adimlar-liste { display: flex; flex-direction: column; gap: 14px; }
.etkinlik-kart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); scroll-margin-top: 120px; }
.etkinlik-kart.pasif { opacity: 0.6; }
.adim-baslik { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.adim-baslik .govde { flex: 1; min-width: 0; }
.adim-baslik .tur { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.4px; }
.adim-baslik h3 { font-size: 16px; font-weight: 700; }
.adim-govde { padding: 16px; min-width: 0; overflow-wrap: break-word; }
.adim-alt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.adim-alt .ipucu { font-size: 12px; color: var(--text3); }
.adim-aciklama { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.ders-gezinme { margin: 18px 0 8px; }

/* Konu metni (paket HTML parçaları) */
.icerik-metin { font-size: 15px; line-height: 1.7; color: var(--text); }
.icerik-metin > * + * { margin-top: 12px; }
.icerik-metin h3 { font-size: 17px; font-weight: 700; margin-top: 18px; }
.icerik-metin h4 { font-size: 15px; font-weight: 700; margin-top: 14px; }
.icerik-metin ul, .icerik-metin ol { padding-left: 22px; }
.icerik-metin li + li { margin-top: 4px; }
.icerik-metin code { font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; font-size: 0.9em; background: var(--surface2); padding: 1px 5px; border-radius: 4px; }
.icerik-metin pre.cli { font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; font-size: 13px; line-height: 1.55; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
.icerik-metin pre.cli b { color: var(--accent); font-weight: 700; }
.icerik-metin .not, .icerik-metin .uyari, .icerik-metin .ipucu { padding: 12px 14px; border-radius: 6px; font-size: 14px; border-left: 3px solid; }
.icerik-metin .not { background: var(--ton-accent); border-color: var(--accent); }
.icerik-metin .uyari { background: var(--ton-warn); border-color: var(--warn); }
.icerik-metin .ipucu { background: var(--ton-success); border-color: var(--success); }
.icerik-metin .karsilastir { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.icerik-metin .karsilastir > div { min-width: 0; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; background: var(--bg); }
.icerik-metin table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.icerik-metin th, .icerik-metin td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.icerik-metin th { background: var(--surface2); font-weight: 600; }
.icerik-metin details { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; }
.icerik-metin details summary { cursor: pointer; font-weight: 600; }
.icerik-metin figure { text-align: center; }
.icerik-metin figure svg, .icerik-metin figure img { max-width: 100%; height: auto; }
.icerik-metin figcaption { font-size: 12px; color: var(--text3); margin-top: 4px; }
.icerik-metin svg { color: var(--text); }
.icerik-metin .c-vurgu { color: var(--accent); }
.icerik-metin .c-yesil { color: var(--success); }
.icerik-metin .c-kirmizi { color: var(--danger); }
.icerik-metin .c-gri { color: var(--text3); }
.icerik-metin .c-metin { color: var(--text); }

/* Sorular */
.sorular { display: flex; flex-direction: column; gap: 12px; }
.soru-kap { border: 1px solid var(--border); border-radius: 6px; padding: 14px; background: var(--bg); }
.soru-metin { display: flex; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.soru-no { width: 24px; height: 24px; border-radius: 4px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--surface2); color: var(--text2); }
.soru code, .geri-bildirim code, .gorev code, .adim-aciklama code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: var(--surface2); padding: 1px 5px; border-radius: 4px; }
.secenekler { display: flex; flex-direction: column; gap: 6px; }
.secenekler.yan { flex-direction: row; flex-wrap: wrap; }
.secenekler.yan .secenek { flex: 1; min-width: 120px; }
.secenek { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; font-size: 14px; }
.secenek input { position: absolute; opacity: 0; pointer-events: none; }
.secenek .harf { width: 24px; height: 24px; border-radius: 4px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface2); color: var(--text2); font-size: 12px; font-weight: 700; }
.secenek:has(input:checked) { border-color: var(--accent); background: var(--ton-accent); }
.secenek:has(input:checked) .harf { background: var(--accent); color: #fff; }
.secenek:has(input:focus-visible) { outline: 2px solid var(--accent); }
.cevaplandi .secenek { cursor: default; }
.secenek.dogru-secenek { border-color: var(--success); background: var(--ton-success); }
.secenek.dogru-secenek .harf { background: var(--success); color: #fff; }
.cevaplandi.yanlis .secenek:has(input:checked):not(.dogru-secenek) { border-color: var(--danger); background: var(--ton-danger); }
.cevaplandi.yanlis .secenek:has(input:checked):not(.dogru-secenek) .harf { background: var(--danger); }
.komut-girdi { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 0 12px; font-family: ui-monospace, Consolas, monospace; }
.komut-girdi .istem { color: var(--accent); font-weight: 700; }
.komut-girdi input { flex: 1; border: none; background: transparent; padding: 11px 0; font: inherit; font-size: 15px; color: var(--text); outline: none; min-width: 0; }
.soru-ipucu { font-size: 12px; color: var(--text3); margin-top: 6px; }
.siralama { list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: sira; }
.siralama li { counter-increment: sira; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 14px; }
.siralama li::before { content: counter(sira) "."; font-weight: 700; color: var(--text3); width: 20px; }
.siralama li .metin { flex: 1; min-width: 0; }
.siralama li .okl { display: flex; gap: 2px; }
.siralama.kilitli .okl { display: none; }
.eslestirme { display: flex; flex-direction: column; gap: 8px; }
.eslestirme-satir { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.eslestirme-satir .sol { font-size: 14px; font-weight: 600; }
.eslestirme-satir select { padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 14px; width: 100%; }
.soru-alt { margin-top: 10px; }
.geri-bildirim { margin-top: 10px; padding: 10px 12px; border-radius: 6px; font-size: 13px; line-height: 1.6; border-left: 3px solid; }
.geri-bildirim.dogru { background: var(--ton-success); border-color: var(--success); }
.geri-bildirim.yanlis { background: var(--ton-danger); border-color: var(--danger); }
.geri-bildirim strong { display: block; }
.geri-bildirim.dogru strong { color: var(--success); }
.geri-bildirim.yanlis strong { color: var(--danger); }
.geri-bildirim .aciklama { margin-top: 4px; color: var(--text); }
.geri-bildirim .dogru-cevap { margin-top: 4px; }
.test-sonuc { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 6px; margin-bottom: 12px; border: 1px solid var(--border); background: var(--bg); }
.test-sonuc .puan { font-size: 28px; font-weight: 800; min-width: 56px; text-align: center; }
.test-sonuc.iyi .puan { color: var(--success); }
.test-sonuc.orta .puan { color: var(--warn); }
.test-sonuc.zayif .puan { color: var(--danger); }
.test-sonuc strong { display: block; font-size: 14px; }
.test-sonuc span { font-size: 12px; color: var(--text3); }

/* Uygulama: görevler + simülatör */
.uygulama-izgara { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gorev-listesi { border: 1px solid var(--border); border-radius: 6px; background: var(--bg); padding: 10px 12px; align-self: start; }
.gorev-baslik { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.gorev-baslik span { font-weight: 700; color: var(--text3); }
.gorev { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.5; }
.gorev-isaret { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--border); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 11px; margin-top: 1px; }
.gorev.yapildi .gorev-isaret { background: var(--success); border-color: var(--success); color: #fff; }
.gorev.yapildi .gorev-metin { color: var(--text2); }
.gorev-no { font-weight: 700; color: var(--text3); }
.gorev-ipucu { margin-top: 4px; font-size: 12px; color: var(--text2); }
.gorev-ipucu summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.gorev-ipucu .ipucu-not { font-weight: 400; color: var(--text3); }
/* Öğretmenin öğrenciye gönderdiği ipucu: yalnız o öğrencide, açık kutu */
.gorev-ipucu.ogretmenden { margin-top: 6px; padding: 7px 10px; border-radius: 6px; border-left: 3px solid var(--warn); background: var(--ton-warn); color: var(--text); font-size: 13px; }
.gorev-ipucu.ogretmenden .ipucu-baslik { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--warn); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.gorev-ipucu.ogretmenden.yeni { animation: ipucuGeldi 1.2s ease 3; }
@keyframes ipucuGeldi { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 35%, transparent); } }
.gorev .ipucu-gonder, .gorev .ipucu-durum { margin-top: 6px; }

/* Hesap tablosu (alt ağ hesapları) */
.hesap-ust { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hesap-sayac { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text3); }
.hesap-not { font-size: 12px; color: var(--text3); }
.hesap-kap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.hesap-tablo { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.hesap-tablo th, .hesap-tablo td { padding: 7px 8px; text-align: left; vertical-align: middle; }
.hesap-tablo thead th { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.3px; background: var(--bg); border-bottom: 1px solid var(--border); white-space: nowrap; }
.hesap-tablo .hesap-satir > * { border-top: 1px solid var(--border); }
.hesap-tablo .hesap-satir:first-child > * { border-top: none; }
.hesap-tablo .hesap-ad { font-weight: 600; min-width: 140px; }
/* Telefonda tablo yana kayınca satır adı görünür kalsın */
.hesap-tablo .hesap-ad { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--border); }
.hesap-tablo thead th.hesap-ad { background: var(--bg); }
.hesap-tablo .hesap-satir.tamam .hesap-ad { color: var(--success); }
.hesap-tablo td.verilen, .hesap-tablo td.cevap, .hesap-tablo td.dogru, .hesap-tablo td.yanlis { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.hesap-tablo td.verilen { color: var(--text2); background: var(--bg); }
.hesap-tablo td.cevap { color: var(--mor); }
.hesap-tablo td.dogru { color: var(--success); }
.hesap-tablo td.yanlis { color: var(--danger); }
.hesap-tablo .hesap-islem { white-space: nowrap; text-align: right; }
.hesap-dogrusu { display: block; font-size: 11px; color: var(--text3); }
.bos-hucre { color: var(--text3); }
.hesap-girdi { width: 100%; min-width: 112px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); font: 13px/1.3 ui-monospace, Consolas, monospace; }
.hesap-girdi[data-sutun="onek"], .hesap-girdi[data-sutun="blok"], .hesap-girdi[data-sutun="kullanilabilir"] { min-width: 64px; }
.hesap-girdi:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--ton-accent); }
.hesap-girdi.dogru { border-color: var(--success); background: var(--ton-success); }
.hesap-girdi.yanlis { border-color: var(--danger); background: var(--ton-danger); }
.hesap-ipucu-satir td { padding-top: 0; }
.hesap-ipucu-satir .gorev-ipucu { margin-top: 0; }
.hesap-ipucu-satir:not(:has([data-ipucu], details, .ipucu-gonder, .ipucu-durum)) { display: none; }
.sim-kap { min-width: 0; }

/* Kontrol listesi (.pkt) */
.kontrol-listesi { display: flex; flex-direction: column; gap: 6px; }
.kontrol { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); font-size: 13px; }
.kontrol > i { margin-top: 2px; color: var(--text3); }
.kontrol > div { flex: 1; min-width: 0; }
.kontrol strong { display: block; font-weight: 600; }
.kontrol span:not(.puan) { display: block; font-size: 12px; color: var(--text3); }
.kontrol .puan { font-size: 12px; font-weight: 700; color: var(--text3); }
.kontrol.tamam > i { color: var(--success); }
.kontrol.eksik > i { color: var(--danger); }
.kontrol.eksik span:not(.puan) { color: var(--danger); }
.teslim-yok { padding: 12px; border: 1px dashed var(--border); border-radius: 6px; color: var(--text3); font-size: 13px; text-align: center; }
.teslim-sonuc .test-sonuc { margin-bottom: 8px; }

/* ---------- Canlı izleme (öğretmen: öğrenci gözünden) ---------- */
.canli-nokta { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; animation: canliNabiz 1.6s ease-in-out infinite; }
@keyframes canliNabiz { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.rozet.notr .canli-nokta, .rozet.tehlike .canli-nokta { animation: none; }
.canli-rozet { border: 0; font-family: inherit; cursor: pointer; flex-shrink: 0; }
.izleme-bant { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 6px; background: var(--ton-mor); font-size: 13px; }
.izleme-bant > i { color: var(--mor); font-size: 16px; }
.izleme-bant .govde { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.izleme-bant .govde strong { color: var(--mor); }
.izleme-bant select { padding: 7px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; max-width: 100%; }
.konum { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); }
.konum.acik { color: var(--success); font-weight: 600; }
.konum a { color: inherit; text-decoration: underline; }
.etkinlik-kart.su-an { border-color: var(--success); box-shadow: 0 0 0 1px var(--success); }
.su-an-rozet { margin-left: 6px; }
.etkinlik-kart.degisti { animation: degisti 1.6s ease-out; }
@keyframes degisti { from { box-shadow: 0 0 0 3px var(--ton-accent); border-color: var(--accent); } }
.cevapsiz { padding: 8px 10px; border: 1px dashed var(--border); border-radius: 6px; color: var(--text3); font-size: 12px; }
.gorev.siradaki { background: var(--ton-warn); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.siradaki-not { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--warn); }
.izleme-terminal { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dokum-kap { min-width: 0; }
.dokum-baslik { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.dokum-baslik .bosluk { flex: 1; }
.dokum-baslik i { color: var(--text3); }
.dokum-sayi { font-size: 12px; color: var(--text3); }
pre.dokum {
  margin: 0; padding: 10px 12px; max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  border-radius: 6px; background: #0b1220; color: #e2e8f0; font: 12.5px/1.55 ui-monospace, Consolas, monospace;
}
pre.dokum .istem { color: #93c5fd; }
pre.dokum .hatali { color: #fca5a5; }
pre.dokum .hata-not { color: #f87171; font-style: italic; }
pre.dokum .imlec { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #e2e8f0; animation: canliNabiz 1s steps(1) infinite; }
.dokum-kap details.gecmis { margin-top: 6px; }
.dokum-kap details.gecmis pre.dokum { margin-top: 6px; max-height: 300px; }
.ilerleme-ust { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ilerleme-ust .adim-aciklama { flex: 1; margin: 0; }
.matris td.ad a { display: block; color: var(--text); }
.matris td.ad a:hover strong { color: var(--accent); text-decoration: underline; }
.matris .hucre a { display: block; color: inherit; padding: 2px 0; }
.matris .hucre a:hover { text-decoration: underline; }
.matris .hucre.burada { box-shadow: inset 0 0 0 2px var(--success); }
.matris .su-an-sutun { text-align: left; white-space: nowrap; font-size: 12px; min-width: 110px; }

/* ---------- Atölye bilgisayarı (PC) numarası ---------- */
.grup-kart-sag { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.pc-cip {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0;
  min-width: 50px; height: 28px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pc-cip i { font-size: 11px; color: var(--accent); }
.pc-cip.bos { border-style: dashed; color: var(--text3); font-size: 11px; font-weight: 600; }
.pc-cip.bos i { color: var(--text3); }
@media (hover: hover) { .pc-cip:hover, .pc-cip:hover i { border-color: var(--accent); color: var(--accent); } }
.pc-etiket {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 4px; vertical-align: 1px;
  background: var(--ton-accent); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.pc-etiket i { font-size: 9px; }
.matris td.ad .pc-etiket { color: var(--accent); font-size: 10px; padding: 0 5px; }
.pc-aciklama { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.pc-arac { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pc-satir { padding: 8px 0; cursor: text; }
.pc-girdi-kap { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--text3); }
.girdi.pc-girdi { width: 60px; padding: 8px 6px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.girdi.pc-girdi.degisti { border-color: var(--accent); background: var(--ton-accent); }
.girdi.pc-girdi.hatali { border-color: var(--danger); background: var(--ton-danger); }
.pc-ortak { color: var(--warn); font-weight: 600; letter-spacing: 0; }
.pc-uyari { color: var(--danger); font-weight: 600; letter-spacing: 0; }
.karsilama-rozetler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ---------- Grup filtresi ve grup özeti ---------- */
.grup-filtre { margin-bottom: 10px; }
.grup-filtre-etiket { font-size: 12px; font-weight: 700; color: var(--text3); display: inline-flex; align-items: center; gap: 6px; }
.grup-filtre .bolumlu { flex-wrap: wrap; }
.grup-filtre .bolumlu button { display: inline-flex; align-items: center; gap: 6px; }
.grup-filtre .bolumlu button i { font-size: 11px; color: var(--accent); }
.grup-filtre .sayi { font-size: 11px; font-weight: 700; color: var(--text3); background: var(--surface2); border-radius: 4px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.grup-filtre .bolumlu button.aktif .sayi { background: var(--ton-accent); color: var(--accent); }
.matris tfoot td { border-top: 2px solid var(--border); border-bottom: none; }
.matris tfoot td.ad strong { font-size: 12px; }
.grup-kart.benim { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.grup-kart-ust { flex-wrap: wrap; }
.grup-kart-ust h3 .rozet { font-weight: 600; }
.bolumlu.grup-secici { flex-wrap: wrap; }
.bolumlu.grup-secici button i.fa-user-check { color: var(--accent); }
@media (max-width: 560px) {
  .bolumlu.grup-secici button, .grup-filtre .bolumlu button { padding: 7px 10px; }
  .bolumlu.grup-secici [data-gorunum] i { display: none; }
}
/* ---------- Derslerim (şube-ders kartları, bu haftanın ders durumları) ---------- */
.ders-kartlari { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ders-kart { display: flex; flex-direction: column; gap: 12px; }
.ders-kart-ust { display: flex; align-items: center; gap: 12px; }
.ders-kart-ad { flex: 1; min-width: 0; }
.ders-kart-ad a { color: var(--text); }
.ders-kart-ad a:hover strong { color: var(--accent); text-decoration: underline; }
.ders-kart-ad strong { display: block; font-size: 16px; font-weight: 800; }
.ders-kart-ad > span { display: block; font-size: 13px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ders-kart-rozetler { display: flex; flex-wrap: wrap; gap: 6px; }
.ders-seridi { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.ders-cip {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text2); font-variant-numeric: tabular-nums;
}
.ders-cip .no { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; }
.ders-cip .no i { font-size: 9px; }
.ders-cip .alt { font-size: 11px; font-weight: 600; color: var(--text3); }
.ders-cip.basladi { background: var(--ton-success); border-color: transparent; color: var(--success); }
.ders-cip.basladi .alt { color: var(--success); }
.ders-cip.acik { background: var(--ton-accent); border-color: transparent; color: var(--accent); }
.ders-cip.acik .alt { color: var(--accent); }
.ders-cip.bekliyor { border-style: dashed; }
.ders-cip.gelecek, .ders-cip.pasif { background: var(--surface2); color: var(--text3); }
.ders-cip.pasif .no { text-decoration: line-through; }
@media (hover: hover) { .ders-cip:hover { border-color: var(--accent); } }
.ders-kart-alt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.ders-kart-alt .bosluk { flex: 1; }
.ders-kart-not { font-size: 13px; color: var(--text3); }
@media (min-width: 1200px) { .ders-kartlari { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ders-cip.kismi { border-style: dashed; border-color: var(--success); color: var(--success); }

/* ---------- Şube sayfası sekmeleri (5 sekme: dar ekranda kayar) ---------- */
.sinif-sekmeleri { flex-wrap: wrap; }
@media (max-width: 560px) { .sinif-sekmeleri button { padding: 7px 10px; } .sinif-sekmeleri button i { display: none; } }

/* ---------- Yardım ve takılma ---------- */
.durum-rozet { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.durum-rozet.yardim { background: var(--danger); color: #fff; animation: yardimNabiz 1.6s ease-in-out infinite; }
.durum-rozet.takildi { background: var(--ton-warn); color: var(--warn); }
@keyframes yardimNabiz { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); } 50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); } }
.durum-bant { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: 6px; font-size: 13px; }
.durum-bant > i { font-size: 18px; }
.durum-bant .govde { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.durum-bant.yardim { background: var(--ton-danger); border: 1px solid var(--danger); }
.durum-bant.yardim > i, .durum-bant.yardim strong { color: var(--danger); }
.durum-bant.takildi { background: var(--ton-warn); }
.durum-bant.takildi > i, .durum-bant.takildi strong { color: var(--warn); }
.yardim-dugmesi {
  position: fixed; right: 16px; z-index: 60; bottom: calc(84px + max(var(--safe-bottom), 12px));
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}
.yardim-dugmesi i { color: var(--warn); font-size: 18px; }
.yardim-dugmesi span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.yardim-dugmesi small { font-size: 11px; font-weight: 600; opacity: 0.85; }
.yardim-dugmesi.istendi { background: var(--danger); border-color: var(--danger); color: #fff; animation: yardimNabiz 1.6s ease-in-out infinite; }
.yardim-dugmesi.istendi i { color: #fff; }
.yardim-dugmesi:disabled { opacity: 0.7; }
@media (min-width: 1024px) { .yardim-dugmesi { bottom: 24px; right: 24px; } }
/* "Atölye'yi yükle" ya da güncelleme bandı açıkken telefonda düğme bandın üstüne çıkar */
@media (max-width: 1023px) { body:has(#guncellemeBandi.goster) .yardim-dugmesi { bottom: calc(170px + max(var(--safe-bottom), 12px)); } }
/* Ders sayfasında "Atölye'yi yükle" bandı dersin üstüne binmesin (öbür sayfalarda yine çıkar); "Yeni sürüm" bandı kalır */
body.odak #kurulumBandi { display: none !important; }
.pc-liste .govde > span { white-space: normal; }
/* Canlı harita ekrana sığsın (yükseklik sınırı) */
.plan-canli .plan-tuval { max-width: max(560px, calc((100vh - 250px) * var(--g) / var(--y))); margin: 0 auto; }
.yardim-ust { position: relative; width: auto; padding: 0 10px; gap: 6px; background: var(--danger); color: #fff; font-size: 15px; }
.yardim-ust .sayi { font-size: 13px; font-weight: 800; }
@media (hover: hover) { .yardim-ust:hover { background: var(--danger-hover); } }
.yardim-ust.titre { animation: yardimTitre 0.6s ease 2; }
@keyframes yardimTitre { 0%, 100% { transform: none; } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.kart-ikon.yardim-ikon { background: var(--ton-danger); color: var(--danger); font-size: 15px; }

/* ---------- Atölye yerleşim planı ----------
 * Oda üstten görünür: duvar (çerçeve), zemin, eşyalar. Ölçüler kare boyuna (--hucre) göre em ile büyür;
 * düzenleyici --hucre'yi yakınlaştırmaya göre yazar. Renkler tema değişkenlerinden karıştırılır (koyu temada da doğru). */
.plan-kap { overflow-x: auto; }
.plan-tuval {
  --duvar: 4px;
  --plan-zemin: color-mix(in srgb, var(--surface2) 28%, var(--surface));
  --plan-duvar: color-mix(in srgb, var(--text2) 62%, var(--surface));
  --plan-ekran: color-mix(in srgb, var(--text) 80%, var(--surface));
  --plan-ahsap: color-mix(in srgb, var(--warn) 18%, var(--surface));
  --plan-ahsap-k: color-mix(in srgb, var(--warn) 50%, var(--surface));
  --plan-ahsap-y: color-mix(in srgb, var(--warn) 60%, var(--text));
  --plan-cam: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --plan-cam-k: color-mix(in srgb, var(--accent) 42%, var(--surface));
  --plan-golge: 0 1px 2px color-mix(in srgb, var(--text) 14%, transparent);
  display: grid; grid-template-columns: repeat(var(--g), minmax(0, 1fr)); grid-template-rows: repeat(var(--y), minmax(0, 1fr));
  gap: 3px; width: 100%; min-width: 560px; padding: 6px; border: var(--duvar) solid var(--plan-duvar); border-radius: 6px;
  background-color: var(--plan-zemin); position: relative; user-select: none; -webkit-user-select: none;
  font-size: clamp(9px, calc(var(--hucre, 24px) * 0.45), 14px); line-height: 1.15;
}
.plan-oge {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 0.35em; container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text2); box-shadow: var(--plan-golge);
}
.plan-tuval.duzenle .plan-oge { cursor: grab; }
.plan-tuval.duzenle .plan-oge:active { cursor: grabbing; }
.plan-oge.secili { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 2; box-shadow: 0 0 0 5px var(--ton-accent), var(--plan-golge); }
/* Eşya adı: yer darsa önce simge, çok darsa yazı gizlenir; dikey eşyada yazı aşağıdan yukarı okunur */
.oge-ad { display: inline-flex; align-items: center; gap: 0.4em; max-width: 100%; padding: 0 0.35em; font-weight: 700; white-space: nowrap; overflow: hidden; }
.oge-ad i { flex-shrink: 0; opacity: 0.85; }
.oge-yazi { min-width: 0; min-height: 0; overflow: hidden; text-overflow: ellipsis; }
.plan-oge.dikey .oge-ad { writing-mode: vertical-rl; transform: rotate(180deg); max-width: none; max-height: 100%; padding: 0.35em 0; }
@container (max-width: 78px) { .plan-oge:not(.dikey) .oge-ad i { display: none; } }
@container (max-width: 30px) { .plan-oge:not(.dikey) .oge-ad i { display: inline-block; } .plan-oge:not(.dikey) .oge-yazi { display: none; } }
@container (max-height: 78px) { .plan-oge.dikey .oge-ad i { display: none; } }
@container (max-height: 30px) { .plan-oge.dikey .oge-ad i { display: inline-block; } .plan-oge.dikey .oge-yazi { display: none; } }
/* Eşyalar */
.plan-oge.tur-tahta { background: var(--plan-ekran); border-color: var(--plan-ekran); color: var(--surface); box-shadow: inset 0 0 0 0.22em color-mix(in srgb, var(--surface) 16%, transparent), var(--plan-golge); }
.plan-oge.tur-ogretmen { background: var(--plan-ahsap); border-color: var(--plan-ahsap-k); color: var(--plan-ahsap-y); }
.plan-oge.tur-masa { background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 32%, var(--surface)); color: var(--plan-ahsap-y); }
.plan-oge.tur-kapi { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border: 1.5px dashed color-mix(in srgb, var(--success) 55%, var(--surface)); color: var(--success); box-shadow: none; }
.plan-oge.tur-pencere {
  background-color: var(--plan-cam); border-color: var(--plan-cam-k); color: color-mix(in srgb, var(--accent) 75%, var(--text)); box-shadow: none;
  background-image: linear-gradient(90deg, var(--plan-cam-k) 1px, transparent 1px); background-size: var(--hucre, 24px) 100%; background-position: calc(var(--hucre, 24px) / 2) 0;
}
.plan-oge.tur-pencere.dikey { background-image: linear-gradient(0deg, var(--plan-cam-k) 1px, transparent 1px); background-size: 100% var(--hucre, 24px); background-position: 0 calc(var(--hucre, 24px) / 2); }
.plan-oge.tur-dolap {
  --dolap-k: color-mix(in srgb, var(--text3) 60%, var(--surface));
  background-color: color-mix(in srgb, var(--text3) 14%, var(--surface)); border-color: var(--dolap-k); color: var(--text2);
  background-image: linear-gradient(90deg, transparent calc(50% - 0.5px), var(--dolap-k) 0 calc(50% + 0.5px), transparent 0);
}
.plan-oge.tur-dolap.dikey { background-image: linear-gradient(0deg, transparent calc(50% - 0.5px), var(--dolap-k) 0 calc(50% + 0.5px), transparent 0); }
.plan-oge.tur-pencere .oge-ad, .plan-oge.tur-dolap .oge-ad { background: color-mix(in srgb, var(--surface) 82%, transparent); border-radius: 0.25em; padding: 0.1em 0.4em; }
.plan-oge.dikey.tur-pencere .oge-ad, .plan-oge.dikey.tur-dolap .oge-ad { padding: 0.4em 0.1em; }
.plan-oge.tur-yazici { background: var(--surface); color: var(--text2); }
.plan-oge.tur-etiket { background: transparent; border-color: transparent; box-shadow: none; color: var(--text2); }
/* Bilgisayar: ekran (numarası üstünde), klavye, sandalye; katman ekranın baktığı yöne döner, numara düz kalır */
.plan-oge.tur-pc { background: var(--surface); border-color: var(--border); color: var(--text); }
.plan-oge.don-90 { --aci: 90deg; }
.plan-oge.don-180 { --aci: 180deg; }
.plan-oge.don-270 { --aci: 270deg; }
.pc-katman { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; width: 100cqw; height: 100cqh; transform: translate(-50%, -50%) rotate(var(--aci, 0deg)); pointer-events: none; }
.plan-oge.don-90 .pc-katman, .plan-oge.don-270 .pc-katman { width: 100cqh; height: 100cqw; }
.pc-ekran {
  position: absolute; top: 0.28em; left: 50%; transform: translateX(-50%); min-width: 42%; height: 1.5em; padding: 0 0.35em; border-radius: 0.3em;
  display: flex; align-items: center; justify-content: center;
  background: var(--plan-ekran); color: var(--surface); font-weight: 800; font-variant-numeric: tabular-nums;
}
.pc-ekran::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1.1em; height: 0.22em; transform: translateX(-50%); background: var(--plan-ekran); opacity: 0.45; border-radius: 0 0 0.15em 0.15em; }
.pc-ekran b { display: inline-block; transform: rotate(calc(-1 * var(--aci, 0deg))); }
.plan-oge.ayni-no .pc-ekran { background: var(--danger); color: #fff; }
.pc-klavye { position: absolute; top: 2.2em; left: 50%; width: 48%; height: 0.42em; transform: translateX(-50%); border-radius: 0.15em; background: var(--surface2); }
.pc-sandalye { position: absolute; bottom: -0.6em; left: 50%; width: 1.9em; height: 1.5em; transform: translateX(-50%); border-radius: 50%; background: color-mix(in srgb, var(--text3) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--text3) 45%, var(--surface)); }
@container (max-width: 36px) or (max-height: 36px) { .pc-klavye, .pc-sandalye { display: none; } }
/* Üst üste binen öğeler (eşya renklerinin üstüne yazılır) */
.plan-tuval .plan-oge.cakisiyor { border-color: var(--danger); background: var(--ton-danger); }
/* Boyutlandırma tutamacı (dokunmatikte yalnız seçili öğede, daha büyük) */
.plan-oge .tutamac { position: absolute; right: 0; bottom: 0; z-index: 1; width: 14px; height: 14px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--accent) 50%); opacity: 0.5; }
.plan-oge.secili .tutamac { opacity: 1; }
@media (hover: hover) { .plan-oge:hover .tutamac { opacity: 1; } }
@media (pointer: coarse) {
  .plan-tuval.duzenle .plan-oge:not(.secili) .tutamac { display: none; }
  .plan-oge.secili .tutamac { width: 18px; height: 18px; }
}
/* Düzenleyici: kaydırılabilir, yakınlaştırılabilir kutu */
.plan-arac { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.plan-ekle { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-cubuk { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.plan-ozet { font-size: 12px; color: var(--text3); }
.plan-cubuk .plan-ozet { flex: 1; min-width: 0; }
.plan-yakinlik { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.plan-yakinlik button { min-width: 34px; height: 32px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
@media (hover: hover) { .plan-yakinlik button:hover { background: var(--surface2); } }
.plan-yakinlik .yuzde { min-width: 54px; color: var(--text2); font-variant-numeric: tabular-nums; }
.plan-yakinlik [data-kaydet] { display: none; color: var(--accent); }
.plan-yakinlik [data-kaydet].kirli { background: var(--accent); color: #fff; }
/* Plan kutudan darsa yatayda ortada durur; genişse kenar boşluğu sıfırlanır ve her yeri kaydırılabilir */
.duzenle-kap { display: flex; align-items: flex-start; overflow: auto; max-height: max(300px, calc(100svh - 220px)); border-radius: 6px; user-select: none; -webkit-user-select: none; }
.duzenle-kap .plan-tuval { flex-shrink: 0; min-width: 0; margin: 0 auto; touch-action: none; }
/* Düzenlerken kare köşelerinde nokta ızgara */
.duzenle-kap .plan-tuval.duzenle {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text3) 75%, transparent) 1px, transparent 1.4px);
  background-size: var(--hucre) var(--hucre); background-position: calc(4.5px - var(--hucre) / 2) calc(4.5px - var(--hucre) / 2);
}
/* Tam ekran: plan bütün ekranı kaplar (telefonda düzenlemek için) */
.plan-editor.tam {
  position: fixed; inset: 0; z-index: 300; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column; padding: 10px 10px max(10px, var(--safe-bottom)); overflow: hidden; overscroll-behavior: contain; background: var(--surface);
}
.plan-editor.tam .duzenle-kap { flex: 1; min-height: 0; max-height: none; }
.plan-editor.tam .plan-ipucu { display: none; }
.plan-editor.tam .plan-yakinlik [data-kaydet] { display: inline-flex; }
body:has(.plan-editor.tam) .bant { display: none !important; }
@media (max-width: 700px) {
  /* Telefonda araç düğmeleri tek satırda yana kayar, plana yer kalır */
  .plan-arac { gap: 6px; }
  .plan-arac .plan-ekle { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .plan-arac .plan-ekle::-webkit-scrollbar { display: none; }
  .plan-arac .plan-ekle > * { flex-shrink: 0; }
  .plan-editor .plan-secili { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .plan-editor .plan-secili::-webkit-scrollbar { display: none; }
  .plan-editor .plan-secili > * { flex-shrink: 0; }
  .plan-cubuk .plan-ozet { font-size: 11px; }
}
.plan-ipucu { font-size: 12px; color: var(--text3); margin-bottom: 8px; }
.plan-secili { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border-radius: 6px; background: var(--ton-accent); font-size: 13px; }
.plan-secili strong { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.plan-secili label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text2); }
.plan-secili .girdi { width: auto; padding: 6px 8px; font-size: 14px; }
.plan-secili [data-no] { width: 56px; text-align: center; font-weight: 800; }
.plan-secili [data-etiket] { width: 150px; }
.plan-boyut { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text2); }
.plan-boyut button { width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface); font-weight: 800; color: var(--text); }
.plan-boyut b { min-width: 18px; text-align: center; }
.plan-baslik { align-items: center; flex-wrap: wrap; }
.plan-duzen { padding: 12px; }
.secenek-satir { cursor: pointer; }
.secenek-satir input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
/* Canlı harita: PC durum renkleri */
.plan-canli { padding: 10px; }
/* Kare boyu haritanın genişliğinden (yazılar büyük ekranda büyür) */
.plan-canli .plan-kap { container-type: inline-size; }
.plan-canli .plan-tuval { --hucre: calc(max(560px, min(100cqw, (100vh - 250px) * var(--g) / var(--y))) / var(--g)); }
.plan-canli .plan-oge.tur-pc { cursor: pointer; }
/* Öğrenci bilgisi ayrı katmanda; ekranın olduğu kenarda boşluk bırakır */
.pc-govde { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 3px; }
.plan-oge.don-0 .pc-govde { padding-top: 2em; }
.plan-oge.don-90 .pc-govde { padding-right: 2em; }
.plan-oge.don-180 .pc-govde { padding-bottom: 2em; }
.plan-oge.don-270 .pc-govde { padding-left: 2em; }
/* Küçük karede (telefon) ekran incelir, ikinci satırın yazısı gizlenir (ilerleme çubuğu kalır) */
@container (max-width: 60px) or (max-height: 60px) {
  .plan-canli .pc-ekran { top: 0.15em; height: 1.25em; }
  .plan-canli .pc-ekran::after { display: none; }
  .plan-oge .pc-govde .pc-kim { -webkit-line-clamp: 1; }
  .plan-oge .pc-govde .pc-alt { font-size: 0; }
  .plan-oge.don-0 .pc-govde { padding-top: 1.5em; }
  .plan-oge.don-90 .pc-govde { padding-right: 1.5em; }
  .plan-oge.don-180 .pc-govde { padding-bottom: 1.5em; }
  .plan-oge.don-270 .pc-govde { padding-left: 1.5em; }
}
.plan-canli .plan-oge.tur-pc:not(.pc-bosta) .pc-klavye, .plan-canli .plan-oge.tur-pc:not(.pc-bosta) .pc-sandalye { display: none; }
.plan-canli .plan-oge.tur-pc:focus-visible { outline: 2px solid var(--accent); }
.plan-oge .pc-kim { position: relative; font-weight: 700; font-size: max(10px, 0.9em); max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.plan-oge .pc-alt { position: relative; font-size: max(9px, 0.8em); opacity: 0.85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.plan-oge .pc-ilerleme { display: block; width: 80%; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.12); overflow: hidden; }
.plan-oge .pc-ilerleme span { display: block; height: 100%; background: currentColor; }
.plan-oge .pc-durum-ikon { position: absolute; top: 3px; right: 4px; font-size: 11px; }
.plan-oge .canli-nokta { position: absolute; top: 5px; right: 5px; }
.plan-oge.pc-bosta { background: transparent; border-style: dashed; box-shadow: none; }
.plan-oge.pc-yok { background: var(--surface); color: var(--text2); }
.plan-oge.pc-derste { background: var(--ton-success); border-color: var(--success); color: var(--success); }
.plan-oge.pc-bitti { background: var(--ton-accent); border-color: var(--accent); color: var(--accent); }
.plan-oge.pc-takildi { background: var(--ton-warn); border-color: var(--warn); color: var(--warn); }
.plan-oge.pc-yardim { background: var(--danger); border-color: var(--danger); color: #fff; animation: yardimNabiz 1.6s ease-in-out infinite; }
.atolye-ust { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.atolye-ust .bosluk { flex: 1; }
.atolye-ust .atolye-ad { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.atolye-ust .atolye-ad i { color: var(--text3); }
.atolye-ust select { padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; }
.atolye-lejant { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text2); }
.lejant { display: inline-flex; align-items: center; gap: 5px; }
.lejant .kutu { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.lejant.yardim .kutu { background: var(--danger); border-color: var(--danger); }
.lejant.takildi .kutu { background: var(--ton-warn); border-color: var(--warn); }
.lejant.derste .kutu { background: var(--ton-success); border-color: var(--success); }
.lejant.bitti .kutu { background: var(--ton-accent); border-color: var(--accent); }
.yersizler { margin-top: 12px; }
.yersiz-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.yersiz { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; }
.yersiz .kutu { width: 10px; height: 10px; border-radius: 3px; background: var(--surface2); }
.yersiz.yardim .kutu { background: var(--danger); } .yersiz.takildi .kutu { background: var(--warn); }
.yersiz.derste .kutu { background: var(--success); } .yersiz.bitti .kutu { background: var(--accent); }
/* Atölyeler listesi */
.atolye-kartlari { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.atolye-kart { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.atolye-kart:hover { border-color: var(--accent); }
.atolye-onizleme { pointer-events: none; overflow: hidden; }
.atolye-onizleme .plan-tuval { --duvar: 2px; --hucre: 10px; min-width: 0; gap: 2px; padding: 4px; font-size: 5px; }
.atolye-onizleme .plan-oge { box-shadow: none; }
.atolye-onizleme .oge-ad, .atolye-onizleme .pc-ekran b, .atolye-onizleme .pc-ekran::after, .atolye-onizleme .pc-klavye { display: none; }
.atolye-onizleme .pc-ekran { min-width: 55%; height: 3px; top: 2px; padding: 0; border-radius: 1px; }
.atolye-kart-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.atolye-kart-alt strong { display: block; font-size: 15px; }
.atolye-kart-alt span { font-size: 12px; color: var(--text3); }
.atolye-kart-alt > i { color: var(--text3); }
@media (min-width: 900px) { .atolye-kartlari { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grup-atolye { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }
.grup-atolye select { padding: 6px 8px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px; }

/* ---------- Ders programı ---------- */
.program-karti { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: inherit; border-color: var(--accent); }
.program-karti.simdi { background: var(--ton-accent); }
.program-karti-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.program-karti-metin span { font-size: 12px; color: var(--text2); }
.program-karti-metin strong { font-size: 16px; }
.program-karti .ok { color: var(--accent); }
.program-bant { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px; border-radius: 6px; background: var(--ton-accent); font-size: 13px; }
.program-bant > i { color: var(--accent); }
.program-bant span { flex: 1; min-width: 180px; }
.program-bant a { font-weight: 700; }
.program-kap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.program-tablo { border-collapse: collapse; width: 100%; min-width: 620px; table-layout: fixed; }
.program-tablo th, .program-tablo td { border-bottom: 1px solid var(--border); padding: 4px; }
.program-tablo thead th { font-size: 12px; font-weight: 700; color: var(--text3); padding: 9px 4px; }
.program-tablo thead th.bugun { color: var(--accent); }
.program-tablo .saat-sutun { width: 84px; text-align: left; font-size: 11px; color: var(--text3); font-weight: 600; padding-left: 10px; }
.program-tablo .saat-sutun b { color: var(--text); margin-right: 4px; }
.program-tablo .saat-sutun span { display: block; font-variant-numeric: tabular-nums; }
.program-tablo td.simdi { background: var(--ton-success); }
.program-hucre {
  width: 100%; min-height: 46px; border-radius: 5px; border: 1px dashed var(--border); background: transparent; color: var(--text3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px; position: relative; font-size: 11px;
}
@media (hover: hover) { .program-hucre:hover { border-color: var(--accent); color: var(--accent); } }
.program-hucre.dolu { border-style: solid; color: var(--text); }
.program-hucre.dolu strong { font-size: 13px; }
.program-hucre.dolu span { font-size: 10px; color: var(--text2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.program-hucre .oto { position: absolute; top: 3px; right: 4px; font-size: 10px; color: var(--warn); }
.program-hucre.renk-0 { background: var(--ton-accent); border-color: var(--accent); }
.program-hucre.renk-1 { background: var(--ton-mor); border-color: var(--mor); }
.program-hucre.renk-2 { background: var(--ton-success); border-color: var(--success); }
.program-hucre.renk-3 { background: var(--ton-warn); border-color: var(--warn); }
.program-hucre.renk-4 { background: var(--ton-danger); border-color: var(--danger); }
.program-hucre.renk-5 { background: var(--surface2); border-color: var(--text3); }
.zil-liste { display: flex; flex-direction: column; gap: 6px; }
.zil-satir { display: flex; align-items: center; gap: 8px; }
.zil-satir b { width: 26px; color: var(--text3); font-size: 13px; }
.zil-satir .girdi { width: auto; padding: 7px 8px; font-size: 14px; }
.onay-kutusu span i { color: var(--warn); }
/* Öğretmenin kendi ders saatleri (blok günleri) */
.program-tablo td.yok { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface2) 6px 7px); }
.program-tablo .ozel-gun { color: var(--accent); font-size: 10px; }
.program-hucre .hucre-saat { font-size: 9.5px; color: var(--text3); font-variant-numeric: tabular-nums; }
.gun-secici { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.gun-secici button { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); font-size: 13px; font-weight: 600; }
.gun-secici button.aktif { background: var(--accent); border-color: var(--accent); color: #fff; }
.gun-secici button i { font-size: 10px; }
.zilim-mod { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 14px; }
.zilim-mod label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.zilim-mod small { color: var(--text3); }
.zil-ara { margin: -2px 0 -2px 34px; font-size: 11px; color: var(--text3); }
.zil-ara.blok { color: var(--accent); font-weight: 700; }
.zil-ara.eksik { color: var(--danger); font-weight: 700; }

/* Üst çubuk: ders/teneffüs göstergesi (öğretmen) */
.zil-gosterge { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text2); font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zil-gosterge.ders { background: var(--ton-accent); border-color: transparent; color: var(--accent); }
.zil-gosterge.ders.son { background: var(--ton-warn); color: var(--warn); }
.zil-gosterge.teneffus { background: var(--ton-success); border-color: transparent; color: var(--success); }
@media (max-width: 420px) { .zil-gosterge { padding: 0 8px; font-size: 12px; } .zil-gosterge i { display: none; } }
.zil-bugun { display: flex; flex-direction: column; gap: 3px; }
.zil-bugun-satir { display: grid; grid-template-columns: 26px 96px 1fr; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; font-size: 13px; }
.zil-bugun-satir b { color: var(--text3); }
.zil-bugun-satir .saat { font-variant-numeric: tabular-nums; color: var(--text2); }
.zil-bugun-satir .ders { color: var(--text3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zil-bugun-satir.dolu .ders { color: var(--text); font-weight: 600; }
.zil-bugun-satir.dolu .ders i { color: var(--warn); font-size: 11px; }
.zil-bugun-satir.simdi { background: var(--ton-accent); }
.zil-bugun-ara { padding-left: 40px; font-size: 11px; color: var(--text3); }
.zil-bugun-ara.simdi { color: var(--success); font-weight: 700; }

/* ---------- Rapor ve yazdırma ---------- */
.rapor-baslik { margin-bottom: 12px; }
.rapor-baslik h3 { font-size: 17px; font-weight: 800; }
.rapor-baslik p { font-size: 13px; color: var(--text2); margin-top: 2px; }
.rapor-sayilar { grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
@media (min-width: 768px) { .rapor-sayilar { grid-template-columns: repeat(4, 1fr); } }
.sayi-kutu.iyi .deger { color: var(--success); } .sayi-kutu.orta .deger { color: var(--warn); } .sayi-kutu.zayif .deger { color: var(--danger); }
.rapor-tablo tbody tr td.ad a { display: block; color: var(--text); }
.rapor-tablo tbody tr td.ad a:hover strong { color: var(--accent); text-decoration: underline; }
.rapor-tablo tfoot td { border-top: 2px solid var(--border); border-bottom: none; }
.rapor-kazanimlar p { font-size: 13px; line-height: 1.6; margin-bottom: 4px; }
.rapor-not { margin-top: 10px; }
.karne-liste { display: flex; flex-direction: column; gap: 10px; }
.karne-satir { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.karne-metin { font-size: 13px; line-height: 1.5; }
.karne-cubuk { height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.karne-cubuk span { display: block; height: 100%; background: var(--text3); }
.karne-cubuk.iyi span { background: var(--success); } .karne-cubuk.orta span { background: var(--warn); } .karne-cubuk.zayif span { background: var(--danger); }
.karne-deger { font-size: 12px; font-weight: 700; color: var(--text2); }
.yazdir-alani { display: none; }
@media print {
  body.tek-yazdir > *:not(.yazdir-alani) { display: none !important; }
  body.tek-yazdir .yazdir-alani { display: block; padding: 0; color: #000; }
  .yazdir-alani .matris-kap { overflow: visible; border: none; }
  .yazdir-alani .matris { font-size: 10px; }
  .yazdir-alani .matris th.ad, .yazdir-alani .matris td.ad { position: static; }
  .yazdir-alani .hucre, .yazdir-alani .karne-cubuk span, .yazdir-alani .sayi-kutu { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .yazdir-alani .rapor-not { font-size: 10px; }
}

/* ---------- Alt sekmeleri düzenle ---------- */
.kenar-alt { display: flex; flex-direction: column; gap: 8px; }
.kenar-sekme-duzenle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--text2); font-size: 13px; font-weight: 600; }
@media (min-width: 1024px) { .kenar-sekme-duzenle { display: none; } }
.sekme-slotlar { display: flex; flex-direction: column; gap: 5px; }
.sekme-slot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; border: 1px dashed var(--border); min-height: 44px; }
.sekme-slot.dolu { border-style: solid; border-color: var(--accent); background: var(--ton-accent); }
.sekme-slot > i { color: var(--accent); width: 18px; text-align: center; }
.slot-no { width: 20px; height: 20px; border-radius: 4px; background: var(--surface2); color: var(--text3); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.slot-ad { flex: 1; font-size: 13px; font-weight: 600; }
.slot-bos { flex: 1; font-size: 13px; color: var(--text3); font-style: italic; }
.slot-dugmeler { display: flex; gap: 3px; }
.slot-dugmeler button { width: 30px; height: 30px; border-radius: 5px; border: none; background: var(--surface); color: var(--text2); }
.slot-dugmeler button:disabled { opacity: 0.35; }
.slot-dugmeler button.sil { color: var(--danger); }
.sekme-havuz { display: flex; flex-direction: column; gap: 2px; }
.havuz-oge { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: none; border-radius: 6px; background: transparent; color: var(--text2); font-size: 13px; font-weight: 600; text-align: left; }
.havuz-oge > i { width: 18px; text-align: center; color: var(--text3); }
.havuz-oge > span:not(.havuz-isaret) { flex: 1; }
.havuz-isaret { width: 28px; height: 28px; border-radius: 6px; background: var(--surface2); display: inline-flex; align-items: center; justify-content: center; }
.havuz-oge.secili > i { color: var(--accent); }
.havuz-oge.secili .havuz-isaret { background: var(--accent); color: #fff; }
.havuz-oge:disabled { opacity: 0.45; }
@media (hover: hover) { .havuz-oge:hover:not(:disabled) { background: var(--surface2); } }
.yedek-bilgi p { font-size: 13px; line-height: 1.65; color: var(--text2); margin-bottom: 10px; }
.yedek-bilgi code { font-size: 12px; background: var(--surface2); padding: 1px 5px; border-radius: 4px; }

/* Pencere ya da tahta sahnesi açıkken "Atölye'yi yükle" bandı üstte kalmasın */
body.kilitli .bant { visibility: hidden; }

/* ---------- Topoloji sayfası (lib/pt/topo.js çizer; renkler sistem değişkenlerinden) ---------- */
.topo-duzen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.topo-kart { padding: 12px; min-width: 0; }
.topo-durum { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 320px; color: var(--text3); font-size: 13px; text-align: center; }
.topo-durum i { font-size: 26px; }
.topo-durum.hata { color: var(--danger); }
.topo-ozet { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tp {
  --tp-canvas: #ffffff; --tp-grid: #eef1f4; --tp-ink: #1c2430; --tp-note: #3d4a59; --tp-up: #22a447; --tp-down: #d93025;
  --tp-con: #1e9bd7; --tp-ser: #d32f2f; --tp-fib: #ef8a00; --tp-coax: #00897b; --tp-tel: #8d6e63; --tp-wifi: #7d8998;
  display: grid; gap: 10px;
}
.tp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.tp-bar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); color: var(--text); font-size: 13px; font-weight: 600;
}
.tp-bar button:hover { background: var(--border); }
.tp-bar label { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); font-weight: 500; cursor: pointer; user-select: none; }
.tp-bar input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); }
.tp-sp { flex: 1; }
.tp-meta { color: var(--text3); font-size: 12px; font-weight: 600; }
.tp-main { display: flex; min-height: 0; }
.tp-stage { position: relative; flex: 1 1 auto; min-width: 0; }
.tp-svg {
  display: block; width: 100%; height: clamp(340px, 64vh, 680px); border: 1px solid var(--border); border-radius: 6px;
  touch-action: none; cursor: grab; user-select: none; background-color: var(--tp-canvas);
  background-image: linear-gradient(var(--tp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--tp-grid) 1px, transparent 1px); background-size: 24px 24px;
}
.tp-svg.grab { cursor: grabbing; }
.tp-warn { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px 10px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: 12px; }
.tp-dlg {
  margin: auto; width: min(620px, calc(100vw - 32px)); max-height: min(86vh, 900px); overflow: auto; padding: 0;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: var(--golge-buyuk);
}
.tp-dlg::backdrop { background: rgba(15, 23, 42, 0.5); }
.tp-info { padding: 0 18px 18px; font-size: 13px; }
.tp-ih {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 -18px 8px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 16px;
}
.tp-info h4 { margin: 16px 0 4px; font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.tp-x { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--text3); font-size: 22px; line-height: 1; }
.tp-x:hover { background: var(--surface2); color: var(--text); }
.tp-kv { width: 100%; border-collapse: collapse; }
.tp-kv th, .tp-kv td { text-align: left; vertical-align: top; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--border); font-weight: 400; }
.tp-kv th { color: var(--text2); white-space: nowrap; width: 1%; }
.tp-kv small, .tp-muted { color: var(--text3); }
.tp-info .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.tp-info details { margin-top: 12px; }
.tp-info summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.tp-pre {
  margin-top: 6px; padding: 8px 10px; max-height: 360px; overflow: auto; white-space: pre; border: 1px solid var(--border); border-radius: 6px;
  background: #0f172a; color: #e2e8f0; font: 12px/1.5 ui-monospace, Consolas, monospace;
}
.tp-ok { color: var(--success); font-weight: 600; }
.tp-bad { color: var(--danger); font-weight: 600; }
.tp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text2); }
.tp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tp-legend svg { background: var(--tp-canvas); border-radius: 2px; }
.tp-cable { fill: none; stroke: var(--tp-ink); stroke-width: 1.8; stroke-linejoin: round; }
.tp-cable.c-dash { stroke-dasharray: 6 4; }
.tp-cable.c-con { stroke: var(--tp-con); }
.tp-cable.c-ser { stroke: var(--tp-ser); stroke-width: 2; }
.tp-cable.c-fib { stroke: var(--tp-fib); stroke-width: 2.2; }
.tp-cable.c-coax { stroke: var(--tp-coax); }
.tp-cable.c-tel { stroke: var(--tp-tel); }
.tp-cable.c-usb { stroke: #5c6bc0; }
.tp-cable.c-wifi { stroke: var(--tp-wifi); stroke-width: 1.3; stroke-dasharray: 2 4; }
.tp-cable.c-bad { stroke-dasharray: 2 3; opacity: 0.7; }
.tp-clock circle { fill: #fff; stroke: var(--tp-ser); stroke-width: 1.5; }
.tp-clock path { fill: none; stroke: var(--tp-ser); stroke-width: 1.4; stroke-linecap: round; }
.tp-led { stroke: #fff; stroke-width: 1; }
.tp-led.up { fill: var(--tp-up); }
.tp-led.down { fill: var(--tp-down); }
.tp-port, .tp-model, .tp-name { paint-order: stroke; stroke: var(--tp-canvas); stroke-width: 3px; stroke-linejoin: round; }
.tp-port { font: 600 10px/1 'Exo 2', system-ui, sans-serif; fill: #34495e; }
.tp-model { font: 500 10.5px/1 'Exo 2', system-ui, sans-serif; fill: #5c6878; }
.tp-name { font: 700 12px/1 'Exo 2', system-ui, sans-serif; fill: var(--tp-ink); }
.tp-note { font: 12px/1.2 'Exo 2', system-ui, sans-serif; fill: var(--tp-note); }
.tp-hit { fill: transparent; stroke: none; }
.tp-dev { cursor: pointer; outline: none; }
.tp-dev:hover .tp-hit, .tp-dev:focus-visible .tp-hit { fill: color-mix(in srgb, var(--accent) 8%, transparent); stroke: color-mix(in srgb, var(--accent) 40%, transparent); }
.tp-dev.sel .tp-hit { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 1.5; }
.tp-dev.off > :not(.tp-hit):not(text) { opacity: 0.45; filter: grayscale(1); }
.tp-svg.no-ports .tp-ports, .tp-svg.no-notes .tp-notes { display: none; }
.tp:fullscreen, .tp.tp-big { margin: 0; padding: 14px; background: var(--bg); }
.tp:fullscreen .tp-svg, .tp.tp-big .tp-svg { height: calc(100vh - 100px); max-height: none; }
.tp.tp-big { position: fixed; inset: 0; z-index: 1000; overflow: auto; }
@media (max-width: 560px) {
  .tp-svg { height: 58vh; }
  .tp-info { padding: 0 14px 16px; }
  .tp-ih { margin: 0 -14px 8px; padding: 10px 14px; }
  .tp-kv th { white-space: normal; }
}
@media (min-width: 1400px) { .topo-duzen { grid-template-columns: minmax(0, 1fr) 320px; } }

/* =====================================================================
 * Tablet (768px+)
 * ===================================================================== */
@media (min-width: 768px) {
  .ust { padding: 0 24px; }
  .sayfa { padding: 22px 24px; }
  .izgara.iki { grid-template-columns: repeat(2, 1fr); }
  .izgara.uc { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .sayilar { grid-template-columns: repeat(4, 1fr); }
  .sekme { flex-direction: row; justify-content: center; gap: 7px; padding: 12px 14px; font-size: 13px; }
  .sekme i { font-size: 16px; }
  .girdi, .alan input:not([type=checkbox]):not([type=radio]):not([type=color]), .alan select, .alan textarea { font-size: 14px; }
  .pencere-arka { align-items: center; }
  .pencere { border-radius: 10px; max-width: 440px; padding-bottom: 22px; animation-name: pencereGirOrta; }
  @keyframes pencereGirOrta { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
  .bildirimler { left: auto; right: 20px; top: 76px; align-items: flex-end; }
  .bildirim { width: auto; min-width: 280px; text-align: left; }
  .giris-kap { align-items: center; }
  .ders-ikonlar { display: inline-flex; }
  .icerik-metin .karsilastir { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .eslestirme-satir { grid-template-columns: 1fr 1fr; align-items: center; }
  .uygulama-izgara { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
  .grup-izgara { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .tablo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
  .tablo thead { display: table-header-group; }
  .tablo th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text3); padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
  .tablo tr { display: table-row; border: none; border-radius: 0; padding: 0; margin: 0; background: none; }
  .tablo td { display: table-cell; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .tablo tr:last-child td { border-bottom: none; }
  .tablo td::before { display: none; }
  .tablo td.baslik-hucre { font-size: 14px; font-weight: 600; padding-bottom: 10px; }
  .tablo td.islem { text-align: right; white-space: nowrap; }
  .tablo td.islem > * { margin-left: 4px; }
}

/* =====================================================================
 * Masaüstü (1024px+): kenar menü sabit, alt sekme çubuğu gizli.
 * ☰ menüyü gizler/gösterir (body.menu-gizli, tercih saklanır; js/uygulama.js). Ders sayfalarında (body.odak)
 * menü kendiliğinden gizli, ☰ telefondaki gibi çekmece açar.
 * ===================================================================== */
@media (min-width: 1024px) {
  .kenar, .kenar.acik { transform: none; visibility: visible; box-shadow: none; border-right: 1px solid var(--border); z-index: 60;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
  .kenar-arka, #menuKapat { display: none !important; }
  .ust, .ana { margin-left: var(--kenar-genislik); transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
  .ust .ust-logo { display: none; }
  .ust .ust-sayfa { display: block; }
  .ana { padding-bottom: 32px; }
  .sekmeler { display: none; }
  .bant { bottom: 24px; left: calc(50% + var(--kenar-genislik) / 2); }

  body.menu-gizli .kenar, body.odak .kenar { transform: translateX(-100%); visibility: hidden; border-right: none; z-index: 101;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.28s; }
  body.menu-gizli .ust, body.menu-gizli .ana, body.odak .ust, body.odak .ana { margin-left: 0; }
  body.menu-gizli .bant, body.odak .bant { left: 50%; }
  body.odak .kenar.acik { transform: none; visibility: visible; box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
  body.odak .kenar-arka { display: block !important; }
  body.odak #menuKapat { display: inline-flex !important; }
  body.odak .sayfa { max-width: 1320px; padding: 22px 32px; }
}
.sayfa-baslik .baslik-sag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
