/* Tahtaya At — eminalagoz.com ile aynı renkler ve yazı tipi */
:root {
  --paper: #FBFAF7;
  --paper-2: #F3F1EC;
  --ink: #1A1815;
  --muted: #6F6862;
  --rule: #E4DED2;
  --amber: #9A6F0F;
  --amber-soft: #F6ECD4;
  --amber-line: #E0C989;
  --ok: #2F7D4F;
  --ok-soft: #E3F1E8;
  --bad: #B3261E;
  --bad-soft: #FBE7E5;
  --sahne: #14130F;
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within {
  outline: 2px solid var(--amber); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Ana sitenin üst menüsü ─────────────────────────────── */
.eh-ust { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.eh-ust-ic { max-width: 1260px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.eh-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.eh-logo img { width: 32px; height: 32px; border-radius: 50%; }
.eh-logo span { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.eh-nav { display: none; gap: 16px; font-size: 14px; white-space: nowrap; }
.eh-nav a { text-decoration: none; color: var(--muted); }
.eh-nav a:hover { color: var(--ink); }
.eh-nav a.aktif { color: var(--amber); font-weight: 600; }
.eh-menu-btn { font-size: 24px; line-height: 1; background: none; border: 0; padding: 4px; }
.eh-mobil { position: absolute; right: 16px; top: 64px; width: 224px; padding: 8px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 10px 40px rgba(0,0,0,.18); z-index: 50; }
.eh-mobil a { display: block; padding: 12px 16px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.eh-mobil a:hover { background: var(--paper-2); }
.eh-mobil a.aktif { color: var(--amber); font-weight: 700; background: var(--amber-soft); }
@media (min-width: 1280px) { .eh-nav { display: flex; } .eh-menu-btn, .eh-mobil { display: none !important; } }

.eh-alt { border-top: 1px solid var(--rule); margin-top: 80px; }
.eh-alt-ic { max-width: 72rem; margin: 0 auto; padding: 40px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.eh-alt-ic p { margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.eh-alt-ic a:hover { color: var(--ink); }

/* ── Ortak parçalar ─────────────────────────────────────── */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 800; text-decoration: none; transition: background .12s, border-color .12s, color .12s;
  background: var(--ink); color: var(--paper);
}
.dugme:hover { background: var(--amber); }
.dugme:disabled { opacity: .5; cursor: default; }
.dugme.ikincil { background: transparent; color: var(--ink); border-color: var(--rule); }
.dugme.ikincil:hover { border-color: var(--amber-line); background: var(--amber-soft); }
.dugme.tehlike { background: transparent; color: var(--bad); border-color: var(--rule); }
.dugme.tehlike:hover { background: var(--bad-soft); border-color: var(--bad); }
.dugme.kucuk { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.dugme svg { flex-shrink: 0; }
.etiket { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--amber-soft); color: var(--amber); }
.soluk { color: var(--muted); }

/* ── Tanıtım sayfası ────────────────────────────────────── */
.sayfa { max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.kahraman { padding: 56px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.kahraman > * { min-width: 0; }
@media (min-width: 900px) { .kahraman { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-top: 72px; } }
.kahraman h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 16px 0 16px; font-weight: 800; }
.kahraman h1 em { font-style: normal; color: var(--amber); }
.kahraman .giris { font-size: 18px; color: var(--muted); max-width: 34rem; margin: 0 0 28px; }
.secimler { display: grid; gap: 14px; }
.secim {
  display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 14px;
  border: 1px solid var(--rule); background: #fff; text-decoration: none; transition: border-color .12s, transform .12s;
}
.secim:hover { border-color: var(--amber-line); transform: translateY(-1px); }
.secim .ikon { width: 56px; height: 56px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; flex-shrink: 0; }
.secim b { display: block; font-size: 19px; font-weight: 800; }
.secim span { color: var(--muted); font-size: 15px; }
.secim .ok { margin-left: auto; color: var(--muted); }
.kod-kutu { padding: 20px; border-radius: 14px; border: 1px solid var(--rule); background: #fff; }
.kod-kutu label { font-weight: 800; display: block; margin-bottom: 10px; }
.kod-satir { display: flex; gap: 10px; }
.kod-satir input {
  flex: 1; min-width: 0; width: 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper);
  font-size: 22px; font-weight: 800; letter-spacing: .25em; text-align: center;
}
.kod-satir input:focus { outline: 2px solid var(--amber); border-color: transparent; }
.hata-yazi { color: var(--bad); font-size: 14px; margin: 8px 0 0; min-height: 1em; }

.cizim { border-radius: 18px; background: var(--paper-2); border: 1px solid var(--rule); padding: 28px; }
.cizim svg { width: 100%; height: auto; display: block; }

.bolum { padding-top: 64px; }
.bolum h2 { font-size: 26px; letter-spacing: -.01em; margin: 0 0 24px; font-weight: 800; }
.adimlar { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: adim; }
@media (min-width: 760px) { .adimlar { grid-template-columns: repeat(3, 1fr); } }
.adimlar li { counter-increment: adim; padding: 22px; border-radius: 14px; border: 1px solid var(--rule); background: #fff; }
.adimlar li::before { content: counter(adim); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; margin-bottom: 12px; }
.adimlar b { display: block; font-size: 17px; margin-bottom: 4px; }
.adimlar p { margin: 0; color: var(--muted); }
.ozellikler { display: grid; gap: 12px 32px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .ozellikler { grid-template-columns: 1fr 1fr; } }
.ozellikler li { display: flex; gap: 12px; align-items: flex-start; }
.ozellikler li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232F7D4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.sss details { border-top: 1px solid var(--rule); padding: 16px 0; }
.sss details:last-child { border-bottom: 1px solid var(--rule); }
.sss summary { font-weight: 800; cursor: pointer; font-size: 17px; }
.sss details p { color: var(--muted); margin: 10px 0 0; max-width: 68ch; }
.metin { max-width: 46rem; padding-top: 40px; }
.metin h1 { font-size: 32px; letter-spacing: -.01em; }
.metin h2 { font-size: 20px; margin-top: 32px; }
.metin p, .metin li { color: #3d3933; }

/* ── Tahta ekranı ───────────────────────────────────────── */
body.tahta { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.t-ust { height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.t-ust .eh-logo span small { font-weight: 700; color: var(--amber); }
.t-durum { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin-left: 8px; min-width: 0; }
.t-durum .nokta { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); flex-shrink: 0; }
.t-durum.bagli .nokta { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.t-durum.bagli { color: var(--ink); }
.t-durum span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-ust .bosluk { flex: 1; }
.t-ust .kod-rozet { font-weight: 800; letter-spacing: .12em; padding: 6px 12px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); border: 0; }
.t-ust .dugme { padding: 10px 16px; }
@media (max-width: 760px) { .t-ust .yazi-gizle { display: none; } }

.t-govde { flex: 1; min-height: 0; display: flex; }
.t-sahne { flex: 1; min-width: 0; position: relative; background: var(--sahne); display: flex; align-items: center; justify-content: center; }
.t-sahne .icerik { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.t-sahne img, .t-sahne video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.t-sahne iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.t-sahne .bilgi-kart { background: var(--paper); border-radius: 18px; padding: 36px; max-width: 460px; text-align: center; }
.t-sahne .bilgi-kart .buyuk-ikon { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); font-weight: 800; font-size: 18px; }
.t-sahne .bilgi-kart h3 { margin: 0 0 6px; font-size: 22px; word-break: break-word; }
.t-sahne .bilgi-kart p { margin: 0 0 20px; color: var(--muted); }
.t-sahne .yukleniyor { color: #d9d4c9; text-align: center; font-size: 20px; }
.ilerleme { width: 320px; max-width: 70vw; height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; margin: 16px auto 0; }
.ilerleme i { display: block; height: 100%; width: 0; background: var(--amber-line); transition: width .2s; }
.t-ok { position: absolute; top: 50%; transform: translateY(-50%); width: 64px; height: 96px; border: 0; border-radius: 14px; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; z-index: 2; }
.t-ok:hover { background: rgba(0,0,0,.6); }
.t-ok.sol { left: 16px; } .t-ok.sag { right: 16px; }
.t-sahne-alt { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; display: flex; align-items: center; gap: 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; z-index: 2; }
.t-sahne-alt .ad { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sahne-alt .dugme { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); color: #fff; }
.t-sahne-alt .dugme:hover { background: rgba(255,255,255,.28); }
.t-sahne:fullscreen .t-sahne-alt { opacity: 0; transition: opacity .2s; }
.t-sahne:fullscreen:hover .t-sahne-alt { opacity: 1; }

/* Bekleme ekranı: kocaman QR ve kod (sınıfın arkasından okunsun) */
.t-bekle { position: absolute; inset: 0; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; z-index: 5; }
.t-bekle-ic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1100px; width: 100%; margin: auto; }
.t-bekle-ic > * { min-width: 0; }
@media (min-width: 900px) { .t-bekle-ic { grid-template-columns: auto minmax(0, 1fr); } }
.t-qr { background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 22px; justify-self: center; }
.t-qr svg, .t-qr img { width: min(46vh, 380px, calc(100vw - 96px)); height: min(46vh, 380px, calc(100vw - 96px)); display: block; }
.t-bekle h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.t-bekle ol { margin: 0 0 24px; padding-left: 1.3em; font-size: 20px; color: #3d3933; }
.t-bekle ol li { margin-bottom: 8px; }
.t-bekle .adres { font-weight: 800; color: var(--ink); }
.t-kod { font-size: clamp(56px, 9vw, 104px); font-weight: 800; letter-spacing: .08em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-kod span { color: var(--amber); }
.t-bekle .alt-not { color: var(--muted); margin-top: 18px; font-size: 16px; }
.t-bekle .kapat-x { position: absolute; top: 16px; right: 16px; }

/* Sağ panel: gelen dosyalar */
.t-panel { width: 300px; flex-shrink: 0; border-left: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; min-height: 0; }
.t-panel-bas { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.t-panel-bas b { font-size: 16px; }
.t-panel-bas button { background: none; border: 0; color: var(--amber); font-weight: 700; padding: 4px; }
.t-liste { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; min-height: 0; }
.t-liste li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.t-liste li:hover { background: var(--paper-2); }
.t-liste li.acik { border-color: var(--amber-line); background: var(--amber-soft); }
.t-liste .kucuk-resim { width: 64px; height: 48px; border-radius: 6px; background: var(--paper-2) center/cover no-repeat; flex-shrink: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--amber); border: 1px solid var(--rule); overflow: hidden; }
.t-liste .kucuk-resim video { width: 100%; height: 100%; object-fit: cover; }
.t-liste .bilgi { flex: 1; min-width: 0; }
.t-liste .bilgi b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-liste .bilgi small { color: var(--muted); font-size: 12px; }
.t-liste .bilgi small.indi { color: var(--ok); font-weight: 700; }
.t-liste input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--amber); flex-shrink: 0; cursor: pointer; }
.t-panel-alt { padding: 12px; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.t-panel-alt .dugme { width: 100%; }
.anahtar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; cursor: pointer; user-select: none; }
.anahtar input { position: absolute; opacity: 0; pointer-events: none; }
.anahtar i { width: 42px; height: 24px; border-radius: 999px; background: var(--rule); position: relative; transition: background .15s; flex-shrink: 0; }
.anahtar i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.anahtar input:checked + i { background: var(--ok); }
.anahtar input:checked + i::after { transform: translateX(18px); }
.anahtar input:focus-visible + i { outline: 2px solid var(--amber); outline-offset: 2px; }
.t-cihazlar { padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; display: grid; gap: 6px; }
.t-cihazlar div { display: flex; align-items: center; gap: 8px; }
.t-cihazlar .nokta { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.t-cihazlar .bagli .nokta { background: var(--ok); }
.t-cihazlar button { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 2px; }
@media (max-width: 760px) { .t-govde { flex-direction: column; } .t-panel { width: auto; height: 40%; border-left: 0; border-top: 1px solid var(--rule); } }

/* Bildirim ve onay kutuları */
.bildirimler { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 60; max-width: min(420px, calc(100vw - 40px)); }
.bildirim { background: var(--ink); color: var(--paper); padding: 14px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 600; animation: gir .2s ease-out; }
.bildirim.onay { background: #fff; color: var(--ink); border: 2px solid var(--amber-line); }
.bildirim.onay b { display: block; font-size: 17px; margin-bottom: 4px; }
.bildirim.onay p { margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.bildirim.onay .satir { display: flex; gap: 8px; }
@keyframes gir { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.kapali-ekran { position: fixed; inset: 0; background: var(--paper); z-index: 80; display: grid; place-items: center; text-align: center; padding: 24px; }
.kapali-ekran h2 { font-size: 30px; margin: 0 0 8px; }
.kapali-ekran p { color: var(--muted); margin: 0 0 24px; }

/* ── Telefon ekranı ─────────────────────────────────────── */
body.telefon { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.k-ust { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.k-ust .eh-logo span { font-size: 16px; }
.k-ust .eh-logo span small { color: var(--amber); font-weight: 700; }
.k-govde { flex: 1; width: 100%; max-width: 32rem; margin: 0 auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
.k-kart { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.k-kart h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.k-kart > p { color: var(--muted); margin: 0 0 18px; }
.k-durum { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; margin-bottom: 16px; }
.k-durum.bekle { background: var(--amber-soft); color: var(--amber); }
.k-durum.kopuk { background: var(--bad-soft); color: var(--bad); }
.k-durum .nokta { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.k-durum.bekle .nokta { animation: nabiz 1.2s infinite; }
.k-durum small { margin-left: auto; font-weight: 600; opacity: .8; }
@keyframes nabiz { 50% { opacity: .3; } }
.k-sec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 34px 16px; border-radius: 16px; border: 2px dashed var(--amber-line); background: var(--amber-soft); color: var(--ink); text-align: center; cursor: pointer; }
.k-sec:active { background: var(--amber-line); }
.k-sec b { font-size: 21px; }
.k-sec span { color: var(--muted); font-size: 15px; }
.k-sec svg { color: var(--amber); }
.k-sec input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.k-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.k-iki label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--rule); font-weight: 700; cursor: pointer; background: #fff; }
.k-iki label:active { background: var(--paper-2); }
.k-iki input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.k-liste { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.k-liste li { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.k-liste .kucuk-resim { width: 48px; height: 48px; border-radius: 8px; background: var(--paper-2) center/cover no-repeat; flex-shrink: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--amber); }
.k-liste .bilgi { flex: 1; min-width: 0; }
.k-liste .bilgi b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-liste .bilgi small { font-size: 13px; color: var(--muted); }
.k-liste .bilgi small.tamam { color: var(--ok); font-weight: 700; }
.k-liste .bilgi small.hata { color: var(--bad); font-weight: 700; }
.k-liste .ilerleme { width: 100%; max-width: none; height: 6px; margin: 6px 0 0; background: var(--paper-2); }
.k-liste .ilerleme i { background: var(--amber); }
.k-liste button { background: none; border: 0; color: var(--amber); font-weight: 700; font-size: 13px; padding: 4px; }
.k-not { font-size: 13px; color: var(--muted); text-align: center; margin: 18px 0 0; }
.k-alt-baglanti { display: flex; justify-content: center; gap: 18px; margin-top: 22px; font-size: 14px; }
.k-alt-baglanti button { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 4px; }
.donen { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--amber-line); border-top-color: var(--amber); animation: don 0.8s linear infinite; flex-shrink: 0; }
@keyframes don { to { transform: rotate(360deg); } }

/* Tam ekranda yalnızca sahne kalır */
body.tam .t-ust, body.tam .t-panel { display: none; }
.secimler { display: flex; flex-direction: column; }
@media (max-width: 760px) { .secimler .kod-kutu { order: -1; } }

/* PDF gösterici */
.pdf-kap { position: absolute; inset: 0; overflow: auto; display: flex; padding: 12px 12px 72px; -webkit-overflow-scrolling: touch; }
.pdf-kap canvas { margin: auto; display: block; background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.4); border-radius: 2px; }
.pdf-kap.genislik canvas { margin-top: 0; }
.pdf-kap .yukleniyor { margin: auto; }
.pdf-kontrol { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.pdf-kontrol .dugme { min-width: 44px; font-size: 18px; }
.pdf-kontrol #pdf-sigdir { font-size: 14px; }
@media (max-width: 760px) { .pdf-kontrol #pdf-sigdir { display: none; } }

/* ── Sürüm 2 ─────────────────────────────────────────────── */
/* Yakınlaştırılabilir resim */
.yakin-kap { position: absolute; inset: 0; overflow: auto; display: flex; -webkit-overflow-scrolling: touch; }
.yakin-kap img { margin: auto; display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.yakin-kap.buyuk, .pdf-kap { cursor: grab; }
.yakin-kap.surukleniyor, .pdf-kap.surukleniyor { cursor: grabbing; }
.t-sahne iframe.ofis { background: var(--sahne); }
.sunum-cik { position: fixed; top: 12px; right: 12px; z-index: 70; opacity: .35; }
.sunum-cik:hover { opacity: 1; }

/* Tahta paneli: öğrenci modu, onay bekleyenler, telefona gönder */
.t-ayar { padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.t-cihazlar details summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 2px 0; }
.t-cihazlar details[open] summary { margin-bottom: 4px; }
.t-cihazlar details div { padding-left: 4px; }
.t-bekleyen { padding: 10px 12px; border-bottom: 1px solid var(--rule); background: var(--amber-soft); max-height: 40%; overflow-y: auto; }
.t-bekleyen > b { display: block; font-size: 14px; margin-bottom: 6px; color: var(--amber); }
.t-bekleyen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.t-bekleyen li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--amber-line); border-radius: 10px; padding: 6px 8px; }
.t-bekleyen .kucuk-resim { width: 40px; height: 40px; border-radius: 6px; background: var(--paper-2); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--amber); flex-shrink: 0; }
.t-bekleyen .bilgi { flex: 1; min-width: 0; }
.t-bekleyen .bilgi b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-bekleyen .bilgi small { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-bekleyen .dugme.kucuk { padding: 6px 10px; font-size: 13px; }
.t-telefona { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 4px; border-top: 1px dashed var(--rule); }
.t-telefona span { width: 100%; font-weight: 700; }
.t-telefona .dugme { flex: 1; cursor: pointer; }
.ogrenci-not { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-weight: 700; font-size: 16px; }
.bildirim.onay .satir { flex-wrap: wrap; }

/* Telefon: sekmeler */
.k-sekmeler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-2); margin-bottom: 16px; }
.k-sekmeler button { border: 0; background: transparent; padding: 10px 6px; border-radius: 9px; font-weight: 800; color: var(--muted); position: relative; }
.k-sekmeler button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rozet { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; margin-left: 4px; }
.k-ogrenci-not { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-weight: 700; }
.k-liste li > button + button { margin-left: 2px; }

/* Telefon: kumanda */
.km-bilgi { padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); margin-bottom: 12px; }
.km-bilgi b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-bilgi small { color: #cfc8bb; font-size: 14px; }
.km-oklar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.km-dugme { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 22px 10px; border-radius: 14px; border: 1px solid var(--rule); background: #fff; font-weight: 800; font-size: 19px; color: var(--ink); touch-action: manipulation; }
.km-dugme:active { background: var(--amber-soft); border-color: var(--amber-line); }
.km-dugme.kucuk { padding: 13px 10px; font-size: 15px; }
.km-dugme.genis { width: 100%; margin-top: 10px; }
.km-dugme.acik { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.km-ped { margin-top: 10px; height: 150px; border-radius: 14px; border: 2px dashed var(--rule); display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: 14px; touch-action: none; user-select: none; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.015) 10px 20px); }
.km-ped.yakin { height: 220px; border-color: var(--amber-line); color: var(--amber); font-weight: 700; background-color: var(--amber-soft); }
.km-satir { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.km-anahtar { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--rule); background: #fff; font-weight: 700; font-size: 15px; }
.km-bekleyen { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--amber-soft); border: 1px solid var(--amber-line); }
.km-bekleyen > b { display: block; color: var(--amber); margin-bottom: 8px; }
.km-bekleyen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.km-bekleyen li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 8px 10px; }
.km-bekleyen .bilgi { flex: 1; min-width: 0; }
.km-bekleyen .bilgi b { display: block; font-size: 15px; }
.km-bekleyen .bilgi small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-dosyalar { margin-top: 12px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; padding: 12px 14px; }
.km-dosyalar summary { font-weight: 800; cursor: pointer; }
.km-dosyalar ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow-y: auto; }
.km-dosyalar li button { width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--paper-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-dosyalar li.acik button { background: var(--amber-soft); color: var(--amber); font-weight: 800; }

/* Telefon: tahtadan gelen dosyanın önizlemesi */
.k-onizleme { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.k-onizleme-ust { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #fff; }
.k-onizleme-ust b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-onizleme-ic { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.k-onizleme-ic img, .k-onizleme-ic video { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Tahta ekranı telefonda ve dar ekranda ── */
@media (max-width: 760px) {
  .t-ust { height: 56px; gap: 8px; padding: 0 12px; }
  .t-ust .eh-logo span { display: none; }
  .t-ust .eh-logo img { width: 30px; height: 30px; }
  .t-durum { margin-left: 0; font-size: 13px; flex: 1; }
  .t-ust .bosluk { display: none; }
  .t-ust .kod-rozet { padding: 5px 8px; font-size: 13px; letter-spacing: .06em; }
  .t-ust .dugme { padding: 8px 10px; }
  .t-bekle { padding: 16px; align-items: flex-start; }
  .t-bekle-ic { gap: 20px; }
  .t-qr { padding: 12px; border-radius: 16px; }
  .t-bekle h1 { font-size: 24px; margin-bottom: 10px; }
  .t-bekle ol { font-size: 16px; margin-bottom: 14px; }
  .t-kod { font-size: clamp(44px, 14vw, 64px); }
  .t-bekle .alt-not, .ogrenci-not { font-size: 14px; }
  .t-bekle .kapat-x { top: 8px; right: 8px; }
  .t-ok { width: 44px; height: 64px; border-radius: 10px; }
  .t-ok.sol { left: 6px; } .t-ok.sag { right: 6px; }
  .t-sahne-alt { flex-wrap: wrap; gap: 6px 8px; padding: 10px; }
  .t-sahne-alt .ad { flex-basis: 100%; font-size: 14px; }
  .t-sahne-alt .dugme.kucuk { padding: 7px 10px; font-size: 13px; }
  .pdf-kontrol .dugme { min-width: 36px; font-size: 16px; }
  .t-panel { height: 45%; }
  .bildirimler { right: 10px; left: 10px; bottom: 10px; max-width: none; }
}
@media (max-width: 380px) {
  .t-durum span { display: none; }
}
