/* Kolay Yoklama Sistemi — tasarım: iOS HIG, sade, tek iş/ekran. Kırmızı YALNIZ hata/tehlike.
   HERKES AÇIK TEMA (Patron 2026-09-14): beyaz zemin, siyah buton; cihaz koyu modda olsa da. Koyu tema YOK. */
:root {
  color-scheme: light;
  --zemin: #f4f4f6; --kart: #ffffff; --metin: #111114; --ikincil: #6b6b73; --cizgi: #e2e2e7;
  --vurgu: #0a5bd6; --vurgu-metin: #ffffff; --buton: #111114; --buton-metin: #ffffff;
  --pasif: #c9c9cf; --hata: #d0342c; --hata-zemin: #fdecea; --iyi: #1f7a3a; --iyi-zemin: #e8f5ec;
  --uyari-zemin: #fff5d6; --uyari-metin: #6a4b00; --golge: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --r: 16px; --r-kucuk: 12px; --lacivert: #1d2f5e; --turuncu: #c25e00;
  /* Grafik kategorik paleti (Patron 2026-10-30 "düzgün renkli grafikler"): sabit sıra, renk körlüğüne göre doğrulandı
     (dataviz validate_palette: bitişik CVD ΔE ≥ 9,1, normal ≥ 19,6); kırmızı YOK. 3:1 altındakiler hep yazıyla birlikte. */
  --kat1: #2a78d6; --kat2: #eb6834; --kat3: #1baf7a; --kat4: #eda100; --kat5: #e87ba4; --kat6: #008300; --kat7: #6250d6;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--zemin); color: var(--metin);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.4; min-height: 100dvh; padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior-y: none;
}
a { color: var(--vurgu); text-decoration: none; }
h1, h2, h3 { margin: 0 0 8px; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; color: var(--ikincil); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
p { margin: 0 0 12px; }
.ikincil { color: var(--ikincil); }
.kucuk { font-size: 14px; }
.orta { text-align: center; }
.sag { text-align: right; }
.gizli, [hidden] { display: none !important; }

/* Düzen */
.sayfa { max-width: 560px; margin: 0 auto; padding: 16px 16px 96px; }
.sayfa.dar { max-width: 420px; }
.ust { display: flex; align-items: center; gap: 12px; padding: 8px 0 14px; position: sticky; top: 0; background: var(--zemin); z-index: 5; }
.ust .geri { font-size: 17px; color: var(--vurgu); padding: 8px 8px 8px 0; }
.ust .baslik { flex: 1; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marka { font-size: 13px; color: var(--ikincil); letter-spacing: .06em; text-transform: uppercase; }
.kart { background: var(--kart); border-radius: var(--r); padding: 16px; box-shadow: var(--golge); margin-bottom: 14px; }
.kart + .kart { margin-top: 0; }
.kart.sikisik { padding: 4px 16px; }
.satir { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cizgi); min-height: 52px; }
.satir:last-child { border-bottom: 0; }
.satir .buyu { flex: 1; min-width: 0; }
.satir .ad { font-weight: 500; }
.satir .alt { color: var(--ikincil); font-size: 14px; }
.izgara-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 54px; padding: 12px 18px; border-radius: var(--r-kucuk); border: 0; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 600; background: var(--buton); color: var(--buton-metin);
  transition: transform .08s ease, opacity .15s ease;
}
.btn:active { transform: scale(.985); }
.btn:disabled { background: var(--pasif); color: var(--kart); cursor: default; }
.btn.ikincil { background: transparent; color: var(--vurgu); border: 1.5px solid var(--cizgi); }
.btn.duz { background: transparent; color: var(--vurgu); min-height: 44px; }
.btn.tehlike { background: transparent; color: var(--hata); border: 1.5px solid var(--cizgi); }
.btn.iki-satir { flex-direction: column; gap: 2px; margin-bottom: 8px; }
.btn.iki-satir .alt { font-size: 14px; font-weight: 400; opacity: .8; }
.btn.kucuk { min-height: 40px; font-size: 15px; width: auto; padding: 8px 14px; }
.btn.vurgu { background: var(--vurgu); color: var(--vurgu-metin); }
.btn-satir { display: flex; gap: 10px; }
.btn-satir .btn { flex: 1; width: auto; }
.btn-satir form { flex: 1; display: flex; }
.numpad button:disabled { visibility: hidden; }
.dikey { display: flex; flex-direction: column; gap: 10px; }

/* Form */
label { display: block; font-size: 14px; color: var(--ikincil); margin: 10px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=tel], input[type=time], input[type=date], input[type=email], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 14px; border-radius: var(--r-kucuk);
  border: 1.5px solid var(--cizgi); background: var(--kart); color: var(--metin); outline: none; min-height: 52px;
}
input:focus, select:focus, textarea:focus { border-color: var(--vurgu); }
textarea { min-height: 120px; resize: vertical; }
/* Dosya seçici: yerel düğme İngilizce yazıyor → input gizlenir, label düğme olur (ölçüldü: "Choose File"). */
.dosya-sec { position: relative; overflow: hidden; display: inline-flex; width: auto; margin: 6px 0; }
.dosya-sec input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
input[type=file] { font: inherit; width: 100%; padding: 8px 0; }
.form .btn { margin-top: 16px; }
.yardim { font-size: 13px; color: var(--ikincil); margin-top: 6px; }

/* Bildirimler */
.serit { padding: 12px 14px; border-radius: var(--r-kucuk); margin-bottom: 12px; font-size: 15px; }
.serit.mesaj { background: var(--iyi-zemin); color: var(--iyi); }
.serit.hata { background: var(--hata-zemin); color: var(--hata); }
.serit.uyari { background: var(--uyari-zemin); color: var(--uyari-metin); }
.serit a { color: inherit; text-decoration: underline; }
.rozet { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--cizgi); color: var(--ikincil); }
.rozet.iyi { background: var(--iyi-zemin); color: var(--iyi); }
.rozet.hata { background: var(--hata-zemin); color: var(--hata); }

/* Alt sekme çubuğu (hoca) */
.sekmeler {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--kart); border-top: 1px solid var(--cizgi);
  padding-bottom: env(safe-area-inset-bottom); z-index: 10;
}
.sekmeler a { flex: 1; text-align: center; padding: 10px 4px 8px; font-size: 11px; color: var(--ikincil); font-weight: 500; }
.sekmeler a .s { display: block; font-size: 20px; line-height: 1; margin-bottom: 4px; }
.sekmeler a.aktif { color: var(--vurgu); }

/* NUMPAD — hoca ve öğrenci aynı bileşen */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; user-select: none; touch-action: manipulation; }
.numpad button {
  font: inherit; font-size: 28px; font-weight: 500; min-height: 64px; border-radius: var(--r); border: 0;
  background: var(--kart); color: var(--metin); box-shadow: var(--golge); cursor: pointer; transition: transform .06s, opacity .2s;
}
.numpad button:active { transform: scale(.96); background: var(--cizgi); }
.numpad button.sil { font-size: 22px; color: var(--ikincil); }
.numpad.pasif button { opacity: .35; pointer-events: none; }
/* Kod alanı: TEK alan, imleç yok, ortadan iki yana büyür */
.kod-alan {
  text-align: center; font-size: 56px; font-weight: 700; letter-spacing: .18em; min-height: 84px; line-height: 84px;
  font-variant-numeric: tabular-nums; margin: 6px 0 14px; transition: letter-spacing .15s; padding-left: .18em;
}
.kod-alan.bos::before { content: "····"; color: var(--pasif); letter-spacing: .18em; }
.kod-alan.titre { animation: titre .4s; }
@keyframes titre { 0%,100% { transform: translateX(0) } 20% { transform: translateX(-10px) } 40% { transform: translateX(10px) } 60% { transform: translateX(-6px) } 80% { transform: translateX(6px) } }
.durum-metni { text-align: center; min-height: 26px; color: var(--ikincil); font-size: 16px; margin-bottom: 8px; }
.durum-metni.hata { color: var(--hata); }
.durum-metni.iyi { color: var(--iyi); }
.geri-sayim { text-align: center; font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 56px; }
.geri-sayim.bekliyor { font-size: 18px; font-weight: 500; color: var(--ikincil); }
.tik { width: 96px; height: 96px; border-radius: 50%; background: var(--iyi); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 56px; margin: 18px auto; animation: belir .3s ease-out; }
@keyframes belir { from { transform: scale(.6); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* Hoca yoklama ekranı — tek ekran, aşamalar */
.yoklama-ust { transition: all .35s ease; }
.asama-2 .yoklama-ust .buyuk { display: none; }
.asama-2 .yoklama-ust .kucuk-bilgi { display: flex; }
.yoklama-ust .kucuk-bilgi { display: none; align-items: baseline; justify-content: space-between; gap: 12px; }
.yoklama-ust .kucuk-bilgi .kod { font-size: 28px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.asama-1 .asama2, .asama-2 .asama1 { display: none; }
.asama2 { animation: kay .35s ease-out; }
@keyframes kay { from { transform: translateY(24px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.sayaclar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.sayaclar .sayac { background: var(--kart); border-radius: var(--r); padding: 14px 8px; text-align: center; box-shadow: var(--golge); }
.sayaclar .sayac .n { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sayaclar .sayac .e { font-size: 12px; color: var(--ikincil); margin-top: 4px; }
.link-kutu { background: var(--kart); border-radius: var(--r-kucuk); padding: 12px 14px; font-size: 15px; word-break: break-all; border: 1.5px dashed var(--cizgi); margin-bottom: 10px; }

/* Öğrenci sayfası */
.devamsizlik-buyuk { font-size: 40px; font-weight: 700; line-height: 1.1; }
.devamsizlik-buyuk.asildi { color: var(--hata); }
.baglantilar a.buyuk-link { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--kart); border-radius: var(--r); box-shadow: var(--golge); margin-bottom: 10px; color: var(--metin); font-weight: 600; font-size: 18px; }
.baglantilar a.buyuk-link::after { content: "›"; color: var(--ikincil); font-size: 24px; }

/* Liste seçimi */
.madde { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--kart); border-radius: var(--r-kucuk); margin-bottom: 8px; box-shadow: var(--golge); cursor: pointer; border: 2px solid transparent; }
.madde .m { flex: 1; font-weight: 500; }
.madde .a { font-size: 13px; color: var(--ikincil); font-weight: 400; }
.madde.secili { border-color: var(--iyi); }
.madde.dolu { opacity: .55; cursor: default; }
.madde.dolu .durum { font-size: 12px; color: var(--ikincil); }
.madde.benim { border-color: var(--vurgu); background: var(--kart); }

/* Tablo */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
/* Tablo içi eylem bağlantıları ve açılır başlıklar parmakla rahat basılsın (HIG 44 px). */
td a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
details > summary { min-height: 44px; display: flex; align-items: center; }
.sira-btn { width: 44px; height: 44px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--cizgi); vertical-align: top; }
th { color: var(--ikincil); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kaydir { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pdf { width: 100%; height: 75dvh; border: 0; border-radius: var(--r-kucuk); background: var(--kart); }
/* Syllabus sayfa resimleri: her telefonda açılır, indirme yok. Beyaz zemin (PDF sayfası), alt alta akar.
   🔴 Sınıf adı `.sayfa` DEĞİL — o sayfa sarmalayıcısı (yukarıda). Ölçüldü 2026-09-15: aynı adı verince
   bütün öğrenci sayfası beyaz gölgeli kutuya döndü, Patron "tasarımı niye değiştirdin" dedi. */
.sayfalar { display: flex; flex-direction: column; gap: 8px; }
.pdf-sayfa { display: block; width: 100%; height: auto; background: #fff; border-radius: var(--r-kucuk); }

/* Terim sıralama */
.sira-btn { background: transparent; border: 1px solid var(--cizgi); border-radius: 8px; width: 36px; height: 36px; font-size: 16px; color: var(--metin); cursor: pointer; }
details summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }

/* Davet listesi: her satır kendi formunu açar (details). Ok işareti yok; satırın kendisi düğme gibi. */
.satir-blok { border-bottom: 1px solid var(--cizgi); }
.satir-blok:last-of-type { border-bottom: 0; }
.satir-blok > summary { list-style: none; padding: 0; font-weight: 400; }
.satir-blok > summary::-webkit-details-marker { display: none; }
.satir-blok > summary .satir { border-bottom: 0; width: 100%; }
.satir-blok[open] > summary .ad { color: var(--vurgu); }

/* Şerit düğme: tıklanabilir uyarı şeridi (bekleyen yoklamalar) — görünümü şeritle aynı. */
.serit-btn { display: block; width: 100%; text-align: left; border: 0; font: inherit; cursor: pointer; }

/* Panodan yapıştırma / sürükle-bırak alanı (dosya yükleme formları). */
.yapistir-alan {
  margin-top: 8px; padding: 14px; border: 1.5px dashed var(--cizgi); border-radius: var(--r-kucuk);
  color: var(--ikincil); font-size: 14px; text-align: center;
}
.yapistir-alan.uzerinde { border-color: var(--vurgu); color: var(--vurgu); }

/* Devamsızlık kutusu tıklanabilir (döküm penceresini açar) ve <button> olarak da kart görünür. */
.devamsizlik-kart { display: block; width: 100%; border: 0; font: inherit; color: inherit; cursor: pointer; text-align: center; }

/* Açılır pencere (dialog): döküm gibi ikincil ayrıntılar için. */
.pencere { border: 0; border-radius: var(--r); padding: 18px; background: var(--kart); color: var(--metin); max-width: min(520px, 92vw); width: 100%; }
.pencere::backdrop { background: rgba(0, 0, 0, .45); }

/* Sınıf ekranı: elle tek öğrenci ekleme (Patron 2026-09-16). Düğme açar, form kartın içinde açılır. */
.ekle-blok { margin-top: 12px; }
.ekle-form { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--cizgi); }
/* Wi-Fi yoklama denemesi (Patron 2026-09-30) */
.wifi-baslik { margin-top: 4px; font-size: 22px; }
.ust-bosluk { margin-top: 2vh; }
.wifi-kopyala { flex: 0 0 auto; }
/* Karekod ekranı — perdeye yansır (Patron 2026-09-30 / 2026-10-01: öğrenci ekranının düzeni; 400 kişilik amfi,
   4×6 m perde, gündüz ışığı). Saf beyaz zemin + saf siyah karekod: soluk projeksiyonda en yüksek karşıtlık. Karekod
   ekranın boyunu doldurur; sağında başlık + sayı, altında gelenlerin adları. Geri sayım YOK. */
.perde { position: fixed; inset: 0; z-index: 50; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; gap: 3vw; padding: 3vh 3vw; cursor: pointer; }
.perde-qr { width: min(94vh, 58vw); aspect-ratio: 1; flex: 0 0 auto; }
.perde-qr svg { width: 100%; height: 100%; display: block; }
.perde-bilgi { align-self: stretch; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding-block: 1vh; }
.perde-ust { display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw; border-bottom: 2px solid #000; padding-bottom: 1.4vh; }
.perde-ust-sol { min-width: 0; }
.perde-ust-sag { text-align: right; flex: 0 0 auto; }
.perde-kod { font-size: clamp(16px, 3vh, 40px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.perde-ad { font-size: clamp(20px, 4.6vh, 64px); font-weight: 700; line-height: 1.1; margin: .6vh 0; }
.perde-yonerge { font-size: clamp(16px, 3.2vh, 44px); font-weight: 600; }
.perde-sayi { font-size: clamp(40px, 11vh, 150px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.perde-alt { font-size: clamp(12px, 2vh, 28px); font-weight: 600; }
.perde .perde-dugme { margin-top: 1vh; color: #000; }
/* Gelenler: düz metin gibi yan yana, KUTU YOK; her adın harfleri kendi parlak renginde (beyaz perdede okunacak
   koyulukta — sarı/açık tonlar bilerek yok). Yazı boyunu teacher-qr.js sığdırır; hiçbir ad kenardan taşmaz. */
.isimler { position: relative; flex: 1 1 0; min-height: 0; margin-top: 1.6vh; overflow: hidden; line-height: 1.35; padding: .15em .1em; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: baseline; column-gap: .55em; row-gap: .15em; transition: font-size .3s ease-out, opacity .25s ease; }
.isimler.sonuk { opacity: 0; }
.isimler span { font-weight: 800; white-space: nowrap; }
/* Hızlı: gerçekte 10 sn'de 100 kişi okutabilir; adlar teacher-qr.js'de GELİŞ SIRASIYLA tek tek açılır (40–160 ms arayla). */
/* Yeni gelen yalnız belirir (saydamlık); hareketi FLIP yapar — ikisi aynı "transform"u paylaşıp çakışmasın. */
.isimler span.yeni { animation: ad-gir .3s ease-out both; }
@keyframes ad-gir { from { opacity: 0; } to { opacity: 1; } }
.isimler .r0 { color: #e6194b; } .isimler .r1 { color: #f36f0a; } .isimler .r2 { color: #1f9e3a; } .isimler .r3 { color: #1e63e9; }
.isimler .r4 { color: #8e24d6; } .isimler .r5 { color: #e0189a; } .isimler .r6 { color: #0097a7; } .isimler .r7 { color: #d81b60; }
.isimler span.dogum { font-size: 2em; }
.isimler span.dogum::before { content: "🎂 "; }
/* Bitince karekodun yerinde: doğum günü olanlar + pasta (yoksa yalnız "Yoklama tamamlandı") */
.perde-sol-bitti { width: min(94vh, 58vw); flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.perde-sol-bitti[hidden] { display: none; }
.perde-sol-bitti .pasta { width: 40vh; height: 40vh; animation: pasta-gir 1s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes pasta-gir { from { transform: scale(0) rotate(-12deg); } to { transform: none; } }
.perde-sol-bitti .alev { transform-box: fill-box; transform-origin: center bottom; animation: alev .35s ease-in-out infinite alternate; }
@keyframes alev { from { transform: scaleY(.85) skewX(-4deg); } to { transform: scaleY(1.1) skewX(4deg); } }
.pasta-baslik { font-size: clamp(20px, 5vh, 64px); font-weight: 800; margin-top: 2vh; }
.pasta-adlar { font-size: clamp(24px, 7vh, 96px); font-weight: 800; line-height: 1.15; margin-top: 1vh; }
.perde-bitti { font-size: clamp(22px, 7vh, 96px); font-weight: 800; }
.perde-ipucu { position: absolute; left: 50%; bottom: calc(1.5vh + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-size: 15px; color: var(--ikincil); }
.perde-hata { position: absolute; top: calc(1.5vh + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); background: var(--hata); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .isimler span.yeni, .perde-sol-bitti .pasta, .perde-sol-bitti .alev { animation: none; } }

/* Hoca ana ekranı yoklama kartı (Patron 2026-10-01): "Başka sınıf" kutusu, iki saat tiki, yan yana üç tür düğmesi.
   Düğmeler lacivert (Patron: "siyah değil lacivertimsi"); yazı/ikon beyaz. */
.sinif-sec { width: 100%; margin: 0 0 14px; font-size: 15px; padding: 10px 12px; min-height: 44px; color: var(--ikincil); }
.iki-saat { display: flex; align-items: center; gap: 12px; padding: 14px 0 4px; margin-top: 14px; border-top: 1px solid var(--cizgi); cursor: pointer; color: var(--metin); font-size: 17px; font-weight: 400; }
.iki-saat input { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; accent-color: var(--lacivert); }
.iki-saat .baslik { display: block; font-weight: 600; }
.iki-saat .alt { display: block; color: var(--ikincil); font-size: 14px; }
.tur-uclu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.tur-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 14px 6px; border: 0; border-radius: var(--r-kucuk); background: var(--lacivert); color: #fff; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.25; text-align: center; cursor: pointer; transition: transform .08s ease; }
.tur-btn:active { transform: scale(.97); }
.tur-btn .ikon { height: 40px; display: flex; align-items: center; justify-content: center; }
.tur-btn svg { width: 38px; height: 38px; }
.tur-btn .otp { display: flex; gap: 4px; }
.tur-btn .otp span { width: 17px; height: 24px; border: 2px solid currentColor; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; line-height: 1; }

/* Öğrenci: doğum tarihi (Patron 2026-10-01: "agresif olmasın") — kutuların altında sade tek satır, dokununca açılır. */
.dogum-satir { margin-top: 14px; padding: 0 4px; }
.dogum-satir summary { list-style: none; cursor: pointer; color: var(--ikincil); font-size: 15px; font-weight: 400; padding: 10px 0; }
.dogum-satir summary::-webkit-details-marker { display: none; }
.dogum-satir[open] summary { color: var(--metin); }
.dogum-satir form { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.dogum-satir form .ikincil { margin: 0; }

/* ── Açılır kutu (ui.js): kendi tasarımımız (Patron 2026-10-24). Kapalıyken giriş kutusuyla AYNI ölçü; açılınca kart. ── */
.secim-kutu { position: relative; }
.secim-gizli { position: absolute !important; inset: 0; width: 100% !important; opacity: 0; pointer-events: none; }
.secim-dugme {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 14px;
  font: inherit; font-size: 17px; text-align: left; color: var(--metin); background: var(--kart);
  border: 1.5px solid var(--cizgi); border-radius: var(--r-kucuk); cursor: pointer;
}
.secim-dugme:focus-visible, .secim-dugme[aria-expanded=true] { border-color: var(--vurgu); outline: none; }
.secim-yazi { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.secim-yazi.bos { color: var(--ikincil); }
.secim-ok { width: 12px; height: 8px; flex: 0 0 auto; color: var(--ikincil); transition: transform .15s ease; }
.secim-dugme[aria-expanded=true] .secim-ok { transform: rotate(180deg); }
.secim-dugme.sinif-sec { margin: 0 0 14px; font-size: 15px; padding: 10px 12px; min-height: 44px; }
.secim-dugme.sinif-sec .secim-yazi { color: var(--ikincil); }
.secim-liste {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: min(50vh, 340px); overflow-y: auto;
  background: var(--kart); border-radius: var(--r-kucuk); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.16); padding: 6px 0;
  -webkit-overflow-scrolling: touch; animation: secim-ac .12s ease-out;
}
.secim-liste.yukari { top: auto; bottom: calc(100% + 6px); }
@keyframes secim-ac { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.secim-satir { display: flex; align-items: center; min-height: 48px; padding: 10px 44px 10px 16px; font-size: 17px; color: var(--metin); cursor: pointer; position: relative; border-bottom: 1px solid var(--cizgi); }
.secim-satir:last-child { border-bottom: 0; }
.secim-satir.bos { color: var(--ikincil); }
.secim-satir.odak, .secim-satir:hover { background: var(--zemin); }
.secim-satir.secili { color: var(--vurgu); font-weight: 600; }
.secim-satir.secili::after { content: "✓"; position: absolute; right: 16px; color: var(--vurgu); font-weight: 700; }
.secim-satir.pasif { color: var(--pasif); cursor: default; }
/* Boş seçenek ("Tür seçin…") seçili olsa da yer tutucudur: mavi + ✓ almaz. */
.secim-satir.bos.secili { color: var(--ikincil); font-weight: 400; }
.secim-satir.bos.secili::after { content: none; }

/* ── Bölüm sekmesi (Yoklama · Geçmiş, Sınavlar · Soru Bankası) — iOS bölümlü denetim, mevcut ölçülerle ── */
.bolum-sekme { display: flex; background: var(--cizgi); border-radius: var(--r-kucuk); padding: 3px; margin: 0 0 14px; }
.bolum-sekme a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 10px; color: var(--metin); font-weight: 600; font-size: 15px; }
.bolum-sekme a.aktif { background: var(--kart); box-shadow: var(--golge); }
/* Sekmeli bölüm başlığı: bölüm adı (h1) + Şifre + Çıkış, bir bölümün iki sekmesinde BİREBİR aynı. Yükseklik sabit:
   sekme çubuğu dört sayfada aynı y'de durur. */
.bolum-ust { min-height: 62px; }
.bolum-ust h1 { margin: 0; }
.ust-form { margin: 0; }
.bolum-eylem { margin-bottom: 14px; }
/* Kartın üstündeki bölüm başlığı (Sınavlar: Mevcut / Tamamlanmış): kartın parçası gibi değil, üstünde. */
.bolum-h3 { margin: 18px 4px 8px; }
/* Perde önizleme penceresi: 16:9 kutu, telefonda dik tutarken de tam görünür. */
dialog.pencere.perde-onizle { max-width: min(960px, 96vw); padding: 12px 14px 14px; }
.perde-cerceve { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-kucuk); overflow: hidden; border: 1px solid var(--cizgi); background: var(--kart); margin: 4px 0 10px; }
/* Perde gerçek boyda (1280×720) çizilir, kutuya orantılı küçültülür (teacher-exam.js ölçek): yazıların en küçük px sınırı
   küçük kutuda oranı bozmasın, pencerede perdenin birebir küçüğü görünsün. */
.perde-cerceve iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; }
.perde-link { display: block; word-break: break-all; font-size: 15px; color: var(--vurgu); margin: 4px 0 2px; }
/* Tamamlanmış sınavlarda simülasyon önizlemesinin altı: gerçek sınav açıklanınca böyle görüneceği (Patron isteği: kırmızı). */
.onizleme-not { color: var(--hata); font-size: 13px; line-height: 1.35; padding: 0 0 10px; }

/* ── SINAV MODÜLÜ (2026-10-24) — yalnız mevcut renk/ölçü değişkenleri; yeni renk YOK ── */
.rozet.uyari { background: var(--uyari-zemin); color: var(--uyari-metin); }
.sayaclar.iki { grid-template-columns: 1fr 1fr; }
/* Seçim çipleri: ders/sınıf. Kapalı = giriş kutusu çerçevesi, seçili = lacivert (ana ekrandaki tür düğmeleriyle aynı). */
.ders-cipler { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.cip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-kucuk); background: var(--kart); border: 1.5px solid var(--cizgi); color: var(--metin); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.cip.aktif { background: var(--lacivert); border-color: var(--lacivert); color: #fff; }
.cip.ekle { color: var(--vurgu); }
.cip.secim { padding: 0; overflow: hidden; position: relative; margin: 0; }
.cip.secim input { position: absolute; opacity: 0; pointer-events: none; }
.cip.secim span { display: flex; align-items: center; min-height: 41px; padding: 8px 14px; }
.cip.secim input:checked + span { background: var(--lacivert); color: #fff; }
.cip.secim input:focus-visible + span { outline: 2px solid var(--vurgu); }
.soru-ozet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.soru-onizleme p { margin: 0 0 8px; }
.dipnot { font-size: 13px; color: var(--ikincil); }
.soru-resim { max-width: 100%; height: auto; display: block; margin: 6px 0 10px; border-radius: var(--r-kucuk); }
.soru-tablo { border-collapse: collapse; margin: 6px 0 10px; font-size: 15px; }
.soru-tablo td { border: 1px solid var(--cizgi); padding: 6px 8px; }
.ortak-metin { background: var(--zemin); border-left: 3px solid var(--lacivert); padding: 10px 14px; border-radius: var(--r-kucuk); margin: 6px 0 10px; font-size: 15px; }
.sik-liste { margin: 6px 0 0; padding-left: 26px; }
.sik-liste li { padding: 4px 0; }
.sik-liste li.dogru { color: var(--iyi); font-weight: 600; }
.sik-girdi .sik-satir { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.sik-girdi .sik-satir input[type=text] { flex: 1; }
.sik-dogru { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.sik-dogru input { position: absolute; opacity: 0; }
.harf { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--cizgi); font-weight: 600; font-size: 15px; color: var(--ikincil); flex: 0 0 auto; background: var(--kart); }
.sik-dogru input:checked + .harf, .sik-sec-satir input:checked + .harf { background: var(--iyi); border-color: var(--iyi); color: #fff; }
.sik-sil { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ikincil); font-size: 24px; cursor: pointer; }
.aday.soluk { opacity: .55; }
.aday-ust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; color: var(--metin); margin: 0 0 8px; }
.tumu-sec { cursor: pointer; color: var(--ikincil); font-size: 15px; }
.aday-ust input, .kagit-satir input[type=checkbox], .tumu-sec input[type=checkbox], .banka-satir input[type=checkbox] { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; accent-color: var(--lacivert); }
.sik-sec-satir { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; margin: 0; color: var(--metin); font-size: 17px; cursor: pointer; position: relative; }
.sik-sec-satir input { position: absolute; opacity: 0; }
.yapiskan-alt { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 4; padding: 8px 0; background: var(--zemin); }
.kagit-satir .puan { width: 72px; text-align: right; padding: 10px; min-height: 44px; flex: 0 0 auto; }
.sira-btnlar { display: flex; flex-direction: column; gap: 4px; }
.sira-no { font-weight: 600; }
.adet-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.adet { display: flex; align-items: center; gap: 8px; margin: 0; }
.adet input { min-width: 0; }
.grup-harf { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 2px solid var(--metin); font-weight: 700; font-size: 17px; color: var(--metin); border-radius: 8px; flex: 0 0 auto; }
.grup-harf.kucuk-harf { width: 24px; height: 24px; font-size: 13px; border-radius: 6px; }
/* Not rakamları: devamsızlık rakamıyla aynı ölçek (40/700); satırda h2 ölçeği (20/700). */
.not { min-width: 40px; text-align: right; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.not.g, .buyuk-not.g { color: var(--ikincil); }
.buyuk-not { font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.satir.bak { background: var(--uyari-zemin); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.iptal-satir .buyu { min-width: 0; }
.iptal-sec > summary { list-style: none; padding: 0; }
.iptal-sec > summary::-webkit-details-marker { display: none; }
.iptal-secenek { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sec-dugmeler { display: flex; gap: 8px; flex-wrap: wrap; }
/* Belirsiz satır: bütün şıklar + Boş yan yana sığmaz (390 px) → düğmeler yazının altında tam satır. */
.satir.cok-sik { flex-wrap: wrap; }
.satir.cok-sik .buyu { flex-basis: 100%; }
.kagit-kap { position: relative; background: var(--kart); border-radius: var(--r-kucuk); overflow: hidden; box-shadow: var(--golge); margin-bottom: 14px; }
.kagit-kap img { display: block; width: 100%; height: auto; }
.kagit-kap svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dogru-halka { fill: none; stroke: var(--iyi); stroke-width: .8; }
/* Şüpheli okunan satır yalnız çerçeve (Patron 2026-10-29: "highlight yapma, sadece çerçeveye al"). */
.kagit-kap rect.belirsiz, .kagit-kap rect.cift { fill: none; stroke: var(--turuncu); stroke-width: .6; }
/* Belirsiz satır teyidi (Patron 2026-11-05; static/teyit.js): sayaç zeminsiz kırmızı; kâğıtta satır dokunulur, ayrı katmanda zoom. */
.teyit-sayac { margin: 0 0 14px; }
.teyit-sayac .teyit-metin { margin: 0; color: var(--hata); font-weight: 600; font-size: 17px; }
.teyit-sayac.tamam .teyit-metin { color: var(--metin); }
.teyit-sayac .teyit-puan { margin: 4px 0 0; color: var(--ikincil); font-size: 15px; }
.teyit-sayac .teyit-puan b { color: var(--metin); }
.kagit-kap rect.teyitli { fill: none; stroke: var(--metin); stroke-width: .6; }
.kagit-kap .teyit-isaret { fill: none; stroke: var(--metin); stroke-width: .7; }
.kagit-kap .teyit-satir { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.teyit-katman { position: fixed; inset: 0; z-index: 60; background: transparent; transition: background .28s ease; }
.teyit-katman.acik { background: rgba(0, 0, 0, .45); }
.teyit-pencere { position: absolute; overflow: hidden; background: var(--kart); border-radius: var(--r-kucuk); box-shadow: var(--golge); transform-origin: 0 0; transition: transform .28s ease; cursor: pointer; touch-action: manipulation; }
.teyit-pencere img { position: absolute; max-width: none; height: auto; display: block; }
.teyit-pencere svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.teyit-pencere .cerceve { fill: none; stroke: var(--turuncu); stroke-width: .35; }
.teyit-pencere .cerceve.teyitli { stroke: var(--metin); }
.teyit-pencere .isaret { fill: none; stroke: var(--metin); stroke-width: .5; }
.teyit-pencere.yaziliyor { opacity: .7; }
.teyit-bilgi { position: absolute; left: 16px; right: 16px; margin: 0; text-align: center; color: var(--kart); font-size: 15px; opacity: 0; transition: opacity .28s ease; }
.teyit-katman.acik .teyit-bilgi { opacity: 1; }
.teslim-anlatim { display: flex; gap: 12px; align-items: flex-start; }
.teslim-sema { flex: none; width: 84px; height: 90px; margin: 2px 0 0; color: var(--metin); }
.teslim-cumle { margin: 0 0 14px; }
/* Canlı kamera: karekod okununca kendiliğinden çeker (Patron 2026-10-24). Çerçeve kâğıt oranında (A4 dik). */
.vizor { position: relative; border-radius: var(--r-kucuk); overflow: hidden; background: #000; margin-bottom: 12px; }
.vizor video { display: block; width: 100%; height: auto; max-height: 62dvh; object-fit: contain; }
.vizor-durum { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: 8px 12px; border-radius: var(--r-kucuk); background: rgba(0, 0, 0, .62); color: #fff; font-size: 15px; text-align: center; }
.vizor.bulundu .vizor-durum { background: var(--iyi); }
.vizor.cekti::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flas .35s ease-out forwards; }
@keyframes flas { from { opacity: .9; } to { opacity: 0; } }
.kamera-btn { position: relative; }
.donen { width: 44px; height: 44px; margin: 16px auto; border-radius: 50%; border: 4px solid var(--cizgi); border-top-color: var(--lacivert); animation: don 1s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }
.okunan { display: flex; flex-wrap: wrap; gap: 6px; font-variant-numeric: tabular-nums; }
.okunan span { padding: 4px 10px; border-radius: 8px; background: var(--zemin); font-weight: 600; font-size: 15px; }
.okunan span.bos { color: var(--ikincil); font-weight: 400; }
.okunan span.cift { background: var(--uyari-zemin); color: var(--uyari-metin); }

/* ONLINE SINAV (Patron 2026-10-29): soru soru; altta GEÇ (turuncu) · SEÇ (yeşil); liste aynı sayfada pencere. */
.os { padding-bottom: 96px; }
.os-kvkk { margin: 8px 0 0; color: var(--ikincil); }
.os-ust { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; background: var(--zemin); padding: 8px 0 10px; }
.os-ust .no { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.os-ust .sure { flex: 1; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ikincil); }
.os-ust .sure.az { color: var(--hata); }
.os-ortak { background: var(--zemin); border-radius: var(--r-kucuk); padding: 10px 12px; margin-bottom: 10px; font-size: 15px; }
.os-govde { font-size: 17px; line-height: 1.45; }
.os-siklar { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.os-sik { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; min-height: 56px; padding: 12px 14px; border-radius: var(--r-kucuk); border: 1.5px solid var(--cizgi); background: var(--kart); color: var(--metin); font: inherit; font-size: 16px; cursor: pointer; }
.os-sik .h { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--cizgi); display: grid; place-items: center; font-weight: 700; }
.os-sik.secili { border-color: var(--iyi); background: var(--iyi-zemin); }
.os-sik.secili .h { background: var(--iyi); border-color: var(--iyi); color: #fff; }
.os-alt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--zemin); border-top: 1px solid var(--cizgi); }
.os-alt .btn { flex: 1; width: auto; margin: 0; }
.btn.gec { background: var(--turuncu); color: #fff; }
.btn.sec { background: var(--iyi); color: #fff; }
.os-grup { margin: 12px 0 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.os-grup.gec { color: var(--turuncu); } .os-grup.bos { color: var(--ikincil); } .os-grup.cevap { color: var(--iyi); }
.os-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.os-liste button { min-width: 64px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--cizgi); background: var(--kart); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--metin); }
.os-liste.gec button { border-color: var(--turuncu); } .os-liste.cevap button { border-color: var(--iyi); }
.pencere.os-pencere { max-height: 86dvh; overflow: auto; }
.rozet.gec { background: var(--turuncu); color: #fff; }

/* ── 10'ar liste + takvim (2026-10-29) ── */
.onar-gizli { display: none !important; }
.onar-dugme { display: block; width: 100%; margin: -6px 0 14px; padding: 12px; border: 0; border-radius: var(--r-kucuk); background: transparent; color: var(--vurgu); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
[data-onar-baslik] { cursor: pointer; }
.takvim { padding: 10px 12px 12px; max-height: none; }
.takvim-ust { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 16px; }
.takvim-git { width: 40px; height: 40px; border: 0; background: transparent; color: var(--vurgu); font-size: 24px; line-height: 1; border-radius: 10px; cursor: pointer; }
.takvim-git:hover { background: var(--zemin); }
.takvim-izgara { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.takvim-gun-ad { font-size: 12px; color: var(--ikincil); padding: 4px 0; }
.takvim-gun { height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--metin); font: inherit; font-size: 16px; cursor: pointer; }
.takvim-gun:hover { background: var(--zemin); }
.takvim-gun.bugun { color: var(--vurgu); font-weight: 700; }
.takvim-gun.secili { background: var(--lacivert); color: #fff; font-weight: 600; }
.takvim-gun:disabled { color: var(--pasif); cursor: default; background: transparent; }
.takvim-temizle { margin-top: 6px; width: 100%; padding: 10px; border: 0; background: transparent; color: var(--ikincil); font: inherit; font-size: 15px; cursor: pointer; }
.takvim-ikon { width: 16px; height: 16px; }
.secim-dugme[aria-expanded=true] .takvim-ikon { transform: none; }
/* Seçenek düğmeleri (Kâğıt | Online, Sıralı | Karışık): açılır kutu yerine, bölüm sekmesiyle aynı görünüm. */
.secenek { display: flex; background: var(--cizgi); border-radius: var(--r-kucuk); padding: 3px; margin: 4px 0 6px; }
/* Yarılar içerikten bağımsız eşit (1 1 0 + min-width 0); boy giriş kutusuyla aynı (48 + 2×3 ≈ 54 px). */
.secenek label { flex: 1 1 0; min-width: 0; position: relative; margin: 0; }
.secenek input { position: absolute; opacity: 0; pointer-events: none; }
.secenek span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; min-width: 0; padding: 0 8px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--metin); cursor: pointer; white-space: nowrap; text-align: center; }
.secenek input:checked + span { background: var(--kart); box-shadow: var(--golge); }
.secenek input:focus-visible + span { outline: 2px solid var(--vurgu); }
.kitapcik-sec { display: flex; align-items: center; gap: 10px; }
.kitapcik-sec .btn { margin: 0; }
.kitapcik-harfler { flex: 1; font-weight: 700; letter-spacing: .12em; text-align: center; }
.olustur-soru { cursor: pointer; }
.olustur-soru input { width: 20px; height: 20px; flex: 0 0 auto; }

/* ── SINAV EKRANLARI v2 (Patron 2026-10-30; tasarım: scratchpad sonA.md) ─────────────────────────────────────────
   Hoca telefonunda en büyük yazı 22 px; başlık kartın İÇİNDE; ekran başına en çok 4 kart; tek siyah düğme;
   kırmızı YALNIZ .btn.tehlike. Rakamlar tabular. */
.sv-bilgi { margin: 4px 0 16px; }
.sv-bilgi h1 { font-size: 20px; font-weight: 600; line-height: 25px; margin: 0 0 4px; }
.sv-bilgi p { font-size: 15px; line-height: 20px; color: var(--ikincil); margin: 0; }
.kart > h3:first-child, .kart > .kart-baslik:first-child { margin: 0 0 4px; }
.kart-baslik { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kart-baslik h3 { margin: 0; }
.kart-baslik .sag { font-size: 13px; font-weight: 600; color: var(--ikincil); }
.kart-baslik .sag.iyi, .iyi-yazi { color: var(--iyi); }
.turuncu-yazi { color: var(--turuncu); }
.ikincil-yazi { color: var(--ikincil); }
.sv-satir { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--cizgi); }
.sv-satir:last-child { border-bottom: 0; }
.sv-satir .buyu { flex: 1; min-width: 0; }
.sv-satir .ad { font-size: 17px; font-weight: 500; }
.sv-satir .alt { font-size: 15px; color: var(--ikincil); }
a.sv-satir { color: inherit; }
.sv-satir .sag { font-size: 15px; font-weight: 600; white-space: nowrap; }
.sv-satir .ok { color: var(--ikincil); }
.sv-eylem { font-size: 17px; color: var(--vurgu); background: none; border: 0; padding: 0; font-family: inherit; text-align: left; cursor: pointer; }
.mini { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 12px; border: 0; border-radius: var(--r-kucuk); background: var(--zemin); color: var(--vurgu); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; position: relative; white-space: nowrap; }
.mini::after { content: ""; position: absolute; inset: -6px -2px; }
.mini.siyah { background: var(--buton); color: var(--buton-metin); }
.mini-grup { display: flex; gap: 8px; flex: 0 0 auto; }
.dipnot { font-size: 13px; line-height: 18px; color: var(--ikincil); margin: 6px 0 0; }
.ilerleme { height: 4px; border-radius: 2px; background: var(--cizgi); overflow: hidden; margin: 8px 0 4px; }
.ilerleme span { display: block; height: 100%; background: var(--lacivert); }
.kahraman { font-size: 22px; font-weight: 700; line-height: 26px; font-variant-numeric: tabular-nums; }
.teslim-sayi { display: flex; align-items: baseline; gap: 8px; width: 100%; background: none; border: 0; padding: 4px 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.teslim-sayi .yazi { flex: 1; font-size: 15px; color: var(--ikincil); }
.sil-arasi { margin-top: 32px; }
/* ÖĞRENCİ SATIRI: iki satır, ad kesilmez; ikinci satır doğru/yanlış */
.ogr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ad puan" "alt eylem"; column-gap: 12px; row-gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--cizgi); }
.ogr:last-child { border-bottom: 0; }
.ogr.tek { grid-template-areas: "ad puan"; min-height: 48px; align-items: center; padding: 6px 0; }
.ogr-ad { grid-area: ad; font-size: 17px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.ogr-puan { grid-area: puan; font-size: 17px; font-weight: 700; line-height: 22px; font-variant-numeric: tabular-nums; text-align: right; min-width: 3ch; }
.ogr-puan.g { color: var(--ikincil); }
.ogr-alt { grid-area: alt; font-size: 15px; line-height: 20px; color: var(--ikincil); align-self: center; font-variant-numeric: tabular-nums; }
.ogr-alt b { font-weight: 600; color: var(--metin); }
.ogr-neden { color: var(--turuncu); font-weight: 600; }
.ogr-eylem { grid-area: eylem; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.ogr.yeni .ogr-ad { animation: degisti .6s ease-out; }
.kendisi { color: var(--iyi); font-weight: 700; }
.info { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--zemin); color: var(--vurgu); font-size: 17px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.info::after { content: ""; position: absolute; inset: -8px; }
/* CANLI */
.canli-uclu { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 8px 0; }
.canli-uclu b { display: block; font-size: 22px; font-weight: 700; line-height: 26px; font-variant-numeric: tabular-nums; }
.canli-uclu span { font-size: 13px; color: var(--ikincil); }
.canli-uclu.ikinci { border-top: 1px solid var(--cizgi); }
.canli-uclu.ikinci b { font-size: 17px; line-height: 22px; }
.canli-uclu button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.canli-uclu button b { color: var(--vurgu); }
.canli-uclu .iyi b, b.iyi { color: var(--iyi); }
.canli-uclu .turuncu b { color: var(--turuncu); }
.degisti { animation: degisti .6s ease-out; }
@keyframes degisti { from { color: var(--vurgu); } }
.balon { position: absolute; z-index: 30; max-width: 260px; max-height: 144px; overflow: auto; padding: 8px 12px; border-radius: var(--r-kucuk); background: var(--metin); color: var(--kart); font-size: 13px; line-height: 18px; box-shadow: var(--golge); }
.eylem-cubugu { display: flex; align-items: center; gap: 12px; }
.eylem-cubugu .kalan { flex: 1; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.eylem-cubugu .kalan.az { color: var(--turuncu); }
.eylem-cubugu .btn { width: auto; margin: 0; min-height: 44px; }
.sure-ray { height: 3px; background: var(--cizgi); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.sure-ray span { display: block; height: 100%; background: var(--lacivert); }
/* KENDİ ONAY PENCEREMİZ (iOS uyarı görünümü) */
dialog.onay { border: 0; border-radius: var(--r); padding: 0; width: 270px; background: var(--kart); color: var(--metin); }
dialog.onay::backdrop { background: rgba(0, 0, 0, .45); }
.onay-metin { margin: 0; padding: 20px 16px 16px; font-size: 15px; line-height: 20px; text-align: center; white-space: pre-line; }
.onay-dugmeler { display: flex; border-top: 1px solid var(--cizgi); }
.onay-dugmeler button { flex: 1; min-height: 44px; border: 0; background: none; font: inherit; font-size: 17px; color: var(--vurgu); cursor: pointer; }
.onay-dugmeler button + button { border-left: 1px solid var(--cizgi); font-weight: 600; }
.onay-dugmeler button.tehlike { color: var(--hata); }
/* ALT PENCERE */
dialog.pencere.alt { margin: auto 0 0; max-width: none; width: 100%; max-height: 86dvh; border-radius: var(--r) var(--r) 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); overflow: auto; animation: altGel .25s ease-out; }
@keyframes altGel { from { transform: translateY(40px); opacity: .4; } }
.alt-tutamak { width: 36px; height: 5px; border-radius: 3px; background: var(--cizgi); margin: 0 auto 8px; }
.alt-baslik { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.alt-baslik b { font-size: 17px; }
/* MİNİ SEGMENT (sıralama) */
.mini-segment { display: inline-flex; background: var(--cizgi); border-radius: 10px; padding: 2px; }
.mini-segment button { min-height: 28px; padding: 2px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--metin); cursor: pointer; text-transform: none; letter-spacing: 0; }
.mini-segment button.aktif { background: var(--kart); box-shadow: var(--golge); }
/* ANAHTAR (switch) */
.anahtar-sw { position: relative; width: 51px; height: 31px; flex: 0 0 auto; }
.anahtar-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.anahtar-sw span { position: absolute; inset: 0; border-radius: 16px; background: var(--cizgi); transition: background .2s; }
.anahtar-sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.anahtar-sw input:checked + span { background: var(--lacivert); }
.anahtar-sw input:checked + span::after { transform: translateX(20px); }
/* İSTATİSTİK (hoca) */
.perde-dugme { background: var(--lacivert); color: #fff; }
.bulgu { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--cizgi); }
.bulgu:last-child { border-bottom: 0; }
.bulgu .nokta { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; background: var(--ikincil); }
.bulgu .nokta.turuncu { background: var(--turuncu); } .bulgu .nokta.iyi { background: var(--iyi); }
.bulgu b { font-size: 17px; font-weight: 500; display: block; }
.bulgu span { font-size: 15px; color: var(--ikincil); }
.cubuk-satir { display: grid; grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 15px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.cubuk-satir .ray { height: 8px; border-radius: 4px; background: var(--zemin); overflow: hidden; }
.cubuk-satir .ray span { display: block; height: 100%; background: var(--lacivert); }
.cubuk-satir.dogru .ray span { background: var(--iyi); }
.cubuk-satir b { text-align: right; font-weight: 600; }
.yazdir-cerceve { position: fixed; width: 0; height: 0; border: 0; right: 0; bottom: 0; }
.sv-dugme { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--cizgi); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.kart > .sv-dugme:last-child, .kart > form:last-child > .sv-dugme { border-bottom: 0; }
.liste-baslik { margin: 14px 0 0; }
details.etmeyen > summary, details.diger > summary, details > summary.sv-satir { list-style: none; cursor: pointer; }
details.etmeyen > summary::-webkit-details-marker, details.diger > summary::-webkit-details-marker, details > summary.sv-satir::-webkit-details-marker { display: none; }
details.diger[open] > summary { border-bottom: 1px solid var(--cizgi); }
details.diger .btn.kucuk { margin: 8px 0; }
.iptal-secenek { display: flex; gap: 8px; padding: 0 0 10px; }
.iptal-satiri .soru-ozet { font-size: 15px; }
.sv-satir.sv-eylem { width: 100%; border-bottom: 1px solid var(--cizgi); }
.link-kutu { font-family: inherit; }
.sinav-kart .sv-satir { min-height: 64px; }
.sinav-kart .sv-satir .sag { font-size: 15px; }
/* SORU BANKASI (Sınavlar sekmesiyle tek tasarım). Satır tiki "›" ile AYNI 20 px sağ yuvaya gelir (24 px tik sola 4 px
   taşar): seçim satırı kaydırmaz; "›" sağa yaslı = Sınavlar ve arşiv kartıyla aynı x; dar yuva + 10 px ara yazıya yer bırakır. */
.banka-ara { margin: 6px 0 14px; }
.ders-ekle-form { display: flex; gap: 8px; align-items: flex-end; }
.ders-ekle-form > div { flex: 1; }
.ders-ekle-form .btn { min-height: 52px; margin: 0; }
.liste-duzenle { margin: 4px 0 10px; }
.liste-duzenle-form { display: flex; gap: 8px; margin-top: 8px; }
.liste-duzenle .btn, .toplu-cubuk .btn, .sinav-kart .btn.kucuk { margin: 0; }
.liste-duzenle .liste-sil, .toplu-cubuk .toplu-sil { margin-top: 6px; }
.btn.duz.sil-yazi { color: var(--hata); }
.toplu-cubuk p { margin: 0 0 6px; }
.banka-satir a { color: inherit; }
.banka-satir input[type=checkbox], .sv-satir.tumu-sec input[type=checkbox] { order: 2; }
.banka-satir { gap: 10px; }
.banka-satir .ok { width: 20px; flex: 0 0 auto; text-align: right; }
.banka-satir input[type=checkbox] { margin-left: -4px; }
.banka-satir input:not([hidden]) ~ .ok { display: none; }
.sinav-kart .sv-satir.tumu-sec { min-height: 48px; margin: 0; }
.olustur-soru { cursor: pointer; align-items: flex-start; }
.olustur-soru input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; accent-color: var(--lacivert); }
.olustur-soru .soru-ozet { font-size: 15px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.olustur-soru.soluk .soru-ozet { color: var(--ikincil); }
/* Süre + soru sırası yan yana: sütunlar eşit boy (stretch), seçici kalan yeri doldurur → alt kenarı süre kutusuyla aynı. */
.olustur-yanyana { display: flex; gap: 12px; align-items: stretch; }
.sure-kutu { width: 104px; flex: 0 0 auto; }
.sira-kutu { flex: 1; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
.sira-secenek { flex: 1; margin: 0; }
.sira-secenek label { display: flex; }
.sira-secenek span { flex: 1; }
.karistir-ikon { width: 16px; height: 16px; flex: 0 0 auto; }
/* Dar telefonda (≈ 360 px altı) simgeli "Karışık" yarıya sığmaz (88 px gerekir): simge düşer, metin izde kalır. */
@container (max-width: 190px) { .sira-secenek span { padding: 0 4px; } .sira-secenek .karistir-ikon { display: none; } }
.birimli { position: relative; }
.birimli input { padding-right: 36px; }
.birimli span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ikincil); font-size: 15px; }
.kitapcik-harfler { flex: 1; font-weight: 600; text-align: left; letter-spacing: 0; }
.teslim-bilgi .kart-baslik { align-items: center; }
.teslim-bilgi h1 { margin: 0; }
/* İSTATİSTİKLER sekmesi (sonB §3.2): Perde kartı, Deste / Size özel / Perdeye yansıt alt pencereleri. En büyük yazı 20 px. */
.perde-ozet { font-size: 15px; color: var(--ikincil); margin: 0 0 12px; }
.perde-neden { font-size: 14px; line-height: 18px; color: var(--ikincil); margin: 8px 0 0; }
.perde-kart > .btn + .sv-dugme, .perde-kart > .perde-neden + .sv-dugme { margin-top: 8px; }
.alt-baslik.buyuk b { font-size: 20px; font-weight: 600; }
.pencere-not { font-size: 15px; color: var(--ikincil); margin: 0 0 8px; }
.pencere-ara { margin-top: 18px; }
.deste-satir .buyu { display: flex; flex-direction: column; }
.deste-satir .alt { font-size: 14px; }
.deste-adim { padding-left: 20px; }
.deste-soru { gap: 12px; align-items: flex-start; }
.deste-soru input[type=checkbox] { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--lacivert); }
.deste-soru .buyu { display: flex; flex-direction: column; min-width: 0; }
.deste-soru .alt { font-size: 14px; color: var(--ikincil); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.deste-onizle { color: inherit; }
.deste-neden { font-size: 15px; line-height: 20px; color: var(--ikincil); min-height: 0; }
.deste-ac .ok { transition: transform .15s; }
.deste-ac[aria-expanded="true"] .ok { transform: rotate(90deg); }
#deste-pencere .sv-satir:last-child { border-bottom: 1px solid var(--cizgi); } /* liste ile açılır başlıklar arasında çizgi */
.yansit-metin { font-size: 17px; margin: 0 0 12px; }
.yansit-ara { font-size: 15px; color: var(--ikincil); margin: 0 0 6px; }

/* Telefondan kumanda (views/hoca/kumanda*.ejs): tek el, büyük başparmak alanı; hoca telefonunda en büyük yazı 22 px. */
.kumanda-kod { font-size: 22px; text-align: center; letter-spacing: .5em; font-variant-numeric: tabular-nums; }
.kumanda-sinav { font-size: 20px; font-weight: 600; }
.kumanda-durum { font-size: 15px; color: var(--ikincil); margin-top: 4px; }
.kumanda-kart-ad { font-size: 17px; font-weight: 600; }
.kumanda-not { margin: 8px 0 0; padding-left: 18px; font-size: 15px; line-height: 21px; }
.kumanda-not li + li { margin-top: 4px; }
.kumanda-dugmeler { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 12px; }
.kumanda-dugmeler .btn { min-height: 96px; font-size: 22px; touch-action: manipulation; }
.kumanda-dugmeler .kumanda-karart { grid-column: 1 / -1; min-height: 56px; font-size: 17px; }

/* PDF ekranı (hoca/belge.ejs): düğmeler alt alta, aralıklı. */
.belge-dugmeler { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
/* Belge satırı: ad solda, sağda iki simge (göz = Görüntüle, yazıcı = Yazdır); dokunma alanı 44 px. */
.mini.simge { min-width: 44px; min-height: 40px; padding: 0 10px; }
.mini.simge svg { width: 22px; height: 22px; display: block; }
/* Belge ekranı: yalnız belge; sayfalar alt alta, A4 oranında yer tutar (resim gelmeden kaymasın); sağ altta yüzen ✕ ve
   paylaşma düğmesi (alttaki boşluk son sayfayı düğmelerin altından çıkarır). */
.sayfa.belge-tam { max-width: none; padding: 8px 8px 160px; }
.belge-durum { text-align: center; color: var(--ikincil); margin: 40vh 0 0; }
.belge-sayfalar { display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; }
.belge-yuzen { position: fixed; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; z-index: 10; }
.belge-yuzen-dugme { width: 56px; height: 56px; border-radius: 28px; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.belge-yuzen-dugme svg { width: 24px; height: 24px; display: block; }
.belge-yuzen-dugme.paylas { background: var(--buton); color: var(--buton-metin); }
.belge-yuzen-dugme.kapat { background: var(--kart); color: var(--metin); }
.belge-sayfalar img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; background: var(--kart); border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
