/* Oynatıcı: sahne tüm pencereyi kaplar; paneller sahnenin üstünde sabit durur, model boş alana ortalanır. */
html, body.oynatici { height: 100%; overflow: hidden; }
body.oynatici { background: var(--sahne); font-size: 14px; line-height: 1.45; }
#sahne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body.cek #sahne { cursor: grab; }
body.tutuyor #sahne { cursor: grabbing; }
body.uzerinde #sahne { cursor: pointer; }
body.cek.uzerinde #sahne { cursor: grab; }

.ust { position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 3; background: var(--yuzey); border-bottom: 1px solid var(--cizgi); display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.geri { color: var(--ikincil); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.ust h1 { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gorunus { margin-left: auto; display: flex; flex: none; border: 1px solid var(--cizgi); border-radius: var(--kose); overflow: hidden; }
.gorunus button, .grup button { min-height: 36px; padding: 0 12px; border: 0; background: var(--yuzey); color: var(--murekkep); }
.gorunus button + button, .grup button + button { border-left: 1px solid var(--cizgi); }
.gorunus button:hover, .grup button:hover { background: var(--secili); }
.gorunus button[aria-pressed="true"], .grup button[aria-pressed="true"] { background: var(--murekkep); color: #fff; font-weight: 500; }
.ust .dugme-ikincil { min-height: 36px; padding: 0 14px; flex: none; }
.yapilar-ac { display: none; }
body.lab .ders-btn { display: none; }
.onizleme-serit { position: fixed; top: 56px; left: 50%; transform: translateX(-50%); z-index: 4; background: var(--uyari-z); color: var(--uyari); font-size: 13px; font-weight: 600; padding: 5px 16px; border-radius: 0 0 var(--kose) var(--kose); white-space: nowrap; }

/* Ders paneli */
.ders { position: fixed; top: 56px; right: 0; bottom: 0; width: 380px; z-index: 2; background: var(--yuzey); border-left: 1px solid var(--cizgi); display: none; flex-direction: column; min-height: 0; overflow-y: auto; }
body.ders-acik .ders { display: flex; }
body.ders-acik.sonuc-acik .ders { width: 520px; }
.ders-ilerleme { flex: none; height: 4px; background: var(--cizgi); position: sticky; top: 0; z-index: 1; }
.ders-ilerleme i { display: block; height: 100%; width: 0; background: var(--vurgu); transition: width .25s; }
.ders-icerik { flex: 1 0 auto; padding: 24px; display: flex; flex-direction: column; font-size: 16px; line-height: 1.5; }
.ders-gez { flex: none; position: sticky; bottom: 0; background: var(--yuzey); padding: 16px 24px; border-top: 1px solid var(--cizgi); display: flex; justify-content: space-between; gap: 8px; }
.ders-ust { font-family: var(--yazi-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ikincil); margin-bottom: 6px; }
.ders-icerik h2 { font-size: 26px; line-height: 1.2; font-weight: 700; margin-bottom: 14px; }
.metin { font-size: 17px; line-height: 1.55; }
.soru { font-size: 18px; line-height: 1.45; font-weight: 600; }
.ders-altbaslik { font-weight: 600; margin-bottom: 8px; }
.ders-kazanim { margin: 0 0 24px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ders-eylem { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ders-not { margin-top: 8px; font-size: 13px; color: var(--uyari); background: var(--uyari-z); border-radius: var(--kose); padding: 8px 12px; }
.geri-bildirim { margin-top: 14px; border-radius: var(--kose); padding: 12px 14px; font-weight: 500; font-size: 15px; display: flex; gap: 10px; background: var(--zemin); color: var(--ikincil); }
.geri-bildirim:empty { display: none; }
.geri-bildirim[data-ton="bilgi"] { background: var(--secili); color: var(--murekkep); }
.geri-bildirim[data-ton="dogru"] { background: var(--dogru-z); color: var(--dogru); }
.geri-bildirim[data-ton="yanlis"] { background: var(--yanlis-z); color: var(--yanlis); }
.geri-bildirim svg { flex: none; margin-top: 2px; }
.ipucu { align-self: flex-start; margin-top: 12px; }
.secenekler { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.secenek { min-height: 48px; padding: 8px 14px 8px 42px; display: flex; align-items: center; gap: 10px; text-align: left; line-height: 1.35; background: var(--yuzey); border: 1px solid var(--cerceve); border-radius: var(--kose); color: var(--murekkep); }
.secenek:hover:not(:disabled) { background: var(--secili); border-color: var(--vurgu); }
.secenek:disabled { background: var(--zemin); border-color: var(--cizgi); color: var(--ikincil); }
.secenek[data-durum] { padding-left: 14px; font-weight: 600; border-width: 2px; }
.secenek[data-durum="dogru"] { background: var(--dogru-z); border-color: var(--dogru); color: var(--dogru); }
.secenek[data-durum="yanlis"] { background: var(--yanlis-z); border-color: var(--yanlis); color: var(--yanlis); }
.secenek span { flex: 1; }
.secenek small { flex: none; font-size: 13px; font-weight: 500; }
.secenek svg { flex: none; }
.aciklama { margin-top: 14px; font-size: 15px; }
.puan-ust { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--cizgi); }
.puan-ust h2 { margin-bottom: 4px; }
.puan-ust p { color: var(--ikincil); font-size: 14px; }
.puan { font-size: 48px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--murekkep) !important; }
.sonuc-liste { list-style: none; margin: 0 0 14px; padding: 0; }
.sonuc-liste li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--cizgi); font-size: 14px; line-height: 1.35; }
.sonuc-liste svg { flex: none; margin-top: 2px; }
.sonuc-liste li.dogru svg { color: var(--dogru); }
.sonuc-liste li.yanlis svg { color: var(--yanlis); }
.sonuc-liste small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--ikincil); }

/* Laboratuvar: ölçüm ve kontroller */
.lab-panel { flex: none; border-top: 1px solid var(--cizgi); padding: 14px 24px; display: flex; flex-direction: column; gap: 12px; background: var(--zemin); }
.lab-panel:empty { display: none; }
.olcumler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.olcumler div { min-width: 0; }
.olcumler dt { font-size: 12.5px; color: var(--ikincil); }
.olcumler dd { margin: 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.olcumler div.vurgulu dd { color: var(--vurgu); }
.lab-kontrol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.lab-kontrol .lab-dugmeler { grid-column: 1 / -1; }
.lab-kaydirici { display: block; font-size: 13px; }
.lab-kaydirici > span { display: flex; justify-content: space-between; gap: 8px; }
.lab-kaydirici output { font-weight: 600; font-variant-numeric: tabular-nums; }
.lab-kaydirici input { width: 100%; margin: 4px 0 0; min-height: 24px; }
.lab-dugmeler { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-dugmeler button { min-height: 40px; padding: 0 12px; font-size: 14px; }
.lab-dugmeler button[aria-pressed="true"] { background: var(--murekkep); color: #fff; border-color: var(--murekkep); }
.lab-not { font-size: 13px; color: var(--ikincil); }
.lab-uyari { font-size: 14px; font-weight: 600; color: var(--yanlis); background: var(--yanlis-z); border-radius: var(--kose); padding: 8px 12px; }
.lab-grafik { display: block; width: 100%; height: auto; }

/* Serbest inceleme */
.panel { position: fixed; left: 0; top: 56px; bottom: 0; width: 290px; z-index: 2; background: var(--yuzey); border-right: 1px solid var(--cizgi); display: flex; flex-direction: column; min-height: 0; }
.panel h2 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.katmanlar { padding: 14px 16px; border-bottom: 1px solid var(--cizgi); }
.cipler { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cip { min-height: 32px; padding: 0 10px 0 8px; display: inline-flex; align-items: center; gap: 6px; background: var(--yuzey); border: 1px solid var(--cerceve); border-radius: 99px; font-size: 13px; }
.cip:hover { background: var(--secili); }
.cip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.cip[aria-pressed="false"] { background: var(--zemin); border-style: dashed; color: var(--ikincil); }
.cip[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.kaydirici { display: block; font-size: 13px; }
.kaydirici > span { display: flex; justify-content: space-between; }
.kaydirici input { width: 100%; margin: 6px 0 0; }
.yapilar { flex: 1; min-height: 0; padding: 14px 8px 8px 16px; display: flex; flex-direction: column; }
#ara { width: calc(100% - 8px); min-height: 36px; padding: 0 10px; margin-bottom: 8px; background: var(--yuzey); border: 1px solid var(--cerceve); border-radius: var(--kose); }
.agac, .agac ul { list-style: none; margin: 0; padding: 0; }
.agac { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.agac ul { margin-left: 14px; }
.satir { display: flex; align-items: center; min-height: 30px; border-radius: 4px; }
.satir:hover { background: var(--zemin); }
.satir.secili { background: var(--secili); font-weight: 600; box-shadow: inset 2px 0 0 var(--vurgu); }
.satir.gizli .ad { color: var(--pasif-metin); text-decoration: line-through; }
.ok, .goz { flex: none; width: 24px; height: 30px; padding: 0; border: 0; background: none; color: var(--ikincil); }
.ok::before { content: "▸"; display: inline-block; transition: transform .12s; }
li[aria-expanded="true"] > .satir .ok::before { transform: rotate(90deg); }
.ok.yok { visibility: hidden; }
.ad { flex: 1; min-width: 0; padding: 4px 2px; text-align: left; border: 0; background: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.goz { font-size: 12px; opacity: 0; }
.satir:hover .goz, .goz:focus-visible, .satir.gizli .goz { opacity: 1; }
li[aria-expanded="false"] > ul { display: none; }
.bos { color: var(--ikincil); padding: 8px 6px; }

.kart { position: fixed; right: 0; top: 56px; bottom: 0; width: 300px; z-index: 2; background: var(--yuzey); border-left: 1px solid var(--cizgi); padding: 18px 18px 110px; overflow: auto; }
.kart-bos { color: var(--ikincil); }
#kartDolu { position: relative; }
.kapat { position: absolute; top: -8px; right: -8px; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; color: var(--ikincil); border-radius: var(--kose); }
.kapat:hover { background: var(--secili); }
.yol { font-size: 13px; color: var(--ikincil); padding-right: 24px; }
.kart h2 { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 2px 0; }
.latince { font-style: italic; font-size: 14px; }
.ingilizce, .bilgi { color: var(--ikincil); font-size: 13px; }
.bilgi { margin-top: 10px; }
.ingilizce:empty, .latince:empty { display: none; }
.kart-eylem { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.kart-eylem button { min-height: 40px; font-size: 14px; }
.kart-eylem button[aria-pressed="true"] { background: var(--murekkep); color: #fff; border-color: var(--murekkep); }

.dok { position: fixed; left: 290px; right: 300px; bottom: 0; z-index: 2; background: var(--yuzey); border-top: 1px solid var(--cizgi); padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.grup { display: flex; border: 1px solid var(--cizgi); border-radius: var(--kose); overflow: hidden; }
.grup button { padding: 0 10px; }
#ayrim { width: 110px; margin: 0; }
.secim, .donsun { display: inline-flex; align-items: center; gap: 6px; }
.secim select { min-height: 36px; padding: 0 6px; background: var(--yuzey); border: 1px solid var(--cerceve); border-radius: var(--kose); }
.donsun input { margin: 0; }
.dok .sifirla { margin-left: auto; min-height: 36px; padding: 0 12px; font-size: 14px; }
.elde { position: fixed; z-index: 2; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.elde[hidden] { display: none; }
.elde-ic { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--kose); }
.elde-ad { font-weight: 600; padding: 0 6px; }
.elde button { min-height: 48px; padding: 0 14px; touch-action: none; user-select: none; }
.elde-don { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border: 1px dashed var(--cerceve); border-radius: var(--kose); cursor: grab; touch-action: none; user-select: none; }
.elde-don:active { cursor: grabbing; }
body.ders-acik .panel, body.ders-acik .kart, body.ders-acik .dok, body.ders-acik .yapilar-ac { display: none !important; }

/* Etiketler: görünüm tokens.css içinde */
#etiketler { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.ipucu-fare { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; white-space: nowrap; background: var(--murekkep); color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; }

/* Atıf ve Powered by */
.kaynak { position: fixed; left: 20px; right: 400px; bottom: 6px; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--murekkep); }
.kaynak .powered { flex: none; gap: 6px; font-size: 12px; color: var(--murekkep); }
.kaynak .powered img { height: 16px; }
body.ders-acik.sonuc-acik .kaynak { right: 540px; }
body:not(.ders-acik) .kaynak { left: auto; right: 0; bottom: 0; width: 300px; padding: 10px 18px; z-index: 3; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 11.5px; line-height: 1.4; color: var(--ikincil); }
body:not(.ders-acik) .kaynak .powered { color: var(--ikincil); }

.yukleniyor { position: fixed; inset: 0; z-index: 9; background: var(--sahne); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 18px; font-weight: 500; text-align: center; padding: 24px; }
.yukleniyor i { display: block; width: 220px; height: 4px; background: linear-gradient(90deg, var(--vurgu) 45%, #fff 45%); border-radius: 2px; }

.kaynak-telefon { display: none; }

/* Telefon */
@media (max-width: 760px) {
  .kaynak-telefon { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 16px; border-top: 1px solid var(--cizgi); font-size: 11.5px; line-height: 1.35; color: var(--ikincil); flex: none; }
  .kaynak-telefon .powered { font-size: 12px; gap: 6px; }
  .kaynak-telefon .powered img { height: 16px; }
  .gorunus { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .ust { height: auto; flex-wrap: wrap; gap: 0 10px; padding: 0 12px; }
  .ust h1 { flex: 1; font-size: 15px; }
  .gorunus { order: 3; flex: 1 0 100%; margin: 0 0 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gorunus button { min-height: 44px; padding: 0; }
  .ust .dugme-ikincil { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .ders { top: auto; left: 0; right: 0; width: auto; max-height: 56%; border-left: 0; border-top: 1px solid var(--cizgi); border-radius: 12px 12px 0 0; overflow: hidden; }
  body.ders-acik.sonuc-acik .ders { width: auto; max-height: 72%; }
  .ders-icerik { padding: 12px 16px; font-size: 15px; }
  .ders-icerik h2 { font-size: 18px; margin-bottom: 6px; }
  .metin { font-size: 15px; }
  .soru { font-size: 16px; }
  .secenekler { margin-top: 8px; gap: 6px; }
  .secenek { min-height: 44px; }
  .geri-bildirim { margin-top: 8px; padding: 8px 12px; }
  .ders-gez { padding: 8px 16px; }
  .lab-panel { padding: 10px 16px; gap: 8px; }
  .kaynak, body.ders-acik.sonuc-acik .kaynak { display: none; }
  .ders-gez { flex-wrap: wrap; }
  .telefon-powered { flex: 1 0 100%; }
  .yapilar-ac { display: inline-flex; }
  .panel { left: 0; right: 0; width: auto; top: 96px; bottom: auto; max-height: 62vh; display: none; z-index: 5; border-right: 0; border-bottom: 1px solid var(--cizgi); }
  .panel.acik { display: flex; }
  .kart { top: auto; left: 0; right: 0; width: auto; bottom: 0; max-height: 40%; padding: 12px 16px; border-left: 0; border-top: 1px solid var(--cizgi); z-index: 3; }
  body:not(.ders-acik) .kart:has(#kartDolu[hidden]) { display: none; }
  .kart-eylem { flex-direction: row; flex-wrap: wrap; }
  .kart-eylem button { min-height: 44px; flex: 1 1 auto; }
  .kart .ingilizce, .kart .bilgi { display: none; }
  .dok { left: 0; right: 0; padding: 6px 8px; gap: 6px 8px; justify-content: center; }
  body:not(.ders-acik) .kart ~ .dok { bottom: 0; }
  #ayrim { width: 100%; order: 9; }
  .grup button { min-height: 44px; }
  .donsun { display: none; }
  body:not(.ders-acik) .kaynak { display: none; }
}

/* Tam ekran düğmesi */
.tam-btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .tam-btn span { display: none; }
  .tam-btn[aria-pressed="false"] { display: none; }
}

/* Tam ekran: odak modelde. Üst şerit kalkar, paneller kenardan açılıp kapanır, alt bar boş alanın ortasında durur.
   Canlı sahnede bulanıklık yok: eski ekran kartını yormasın. */
.kenar-tut, .gorev-alan, .tam-alt { display: none; }
body.tam-ekran { --sol: 0px; --sag: 0px; --golge: 0 4px 16px rgba(11, 36, 56, .12); }
body.tam-ekran.sol-acik:not(.ders-acik) { --sol: 302px; }
body.tam-ekran.kart-acik:not(.ders-acik) { --sag: 312px; }
body.tam-ekran.ders-acik.ders-panel-acik { --sag: 392px; }
body.tam-ekran.ders-acik.ders-panel-acik.sonuc-acik { --sag: 532px; }
body.tam-ekran .ust { display: none; }
body.tam-ekran .onizleme-serit { top: 0; }

/* Yan paneller */
body.tam-ekran .panel, body.tam-ekran .kart, body.tam-ekran .ders {
  border: 1px solid var(--cizgi);
  border-radius: var(--kose-buyuk);
  box-shadow: var(--golge);
  visibility: hidden;
  transition: transform .2s ease, visibility 0s linear .2s;
}
body.tam-ekran .panel { top: 12px; left: 12px; bottom: 12px; overflow: hidden; transform: translateX(calc(-100% - 16px)); }
body.tam-ekran .kart { top: 12px; right: 12px; bottom: auto; max-height: calc(100% - 24px); padding: 18px; transform: translateX(calc(100% + 16px)); }
body.tam-ekran .ders { top: 12px; right: 12px; bottom: auto; max-height: calc(100% - 24px); transform: translateX(calc(100% + 16px)); }
body.tam-ekran.sol-acik .panel, body.tam-ekran.kart-acik .kart, body.tam-ekran.ders-panel-acik .ders {
  transform: none;
  visibility: visible;
  transition: transform .2s ease;
}
body.tam-ekran .kapat { top: 4px; right: 4px; }

/* Panel tutamaçları */
body.tam-ekran .kenar-tut {
  position: fixed; top: 24px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 104px; padding: 0;
  background: var(--yuzey); border: 1px solid var(--cizgi); box-shadow: var(--golge);
  color: var(--murekkep); font-size: 12px; font-weight: 500;
  transition: left .2s ease, right .2s ease;
}
body.tam-ekran .kenar-tut:hover { background: var(--secili); }
.kenar-tut span { writing-mode: vertical-rl; }
.kenar-tut svg { transition: transform .2s ease; }
body.tam-ekran .kenar-tut.sol { left: max(0px, calc(var(--sol) - 1px)); border-left: 0; border-radius: 0 var(--kose-buyuk) var(--kose-buyuk) 0; }
.kenar-tut.sol span { transform: rotate(180deg); }
body.tam-ekran .kenar-tut.sag { right: max(0px, calc(var(--sag) - 1px)); border-right: 0; border-radius: var(--kose-buyuk) 0 0 var(--kose-buyuk); }
body.tam-ekran.ders-acik .kenar-tut.sol { display: none; }
.kenar-tut .ad-ders, body.ders-acik .kenar-tut .ad-kart { display: none; }
body.ders-acik .kenar-tut .ad-ders { display: inline; }
body.tam-ekran.sol-acik .kenar-tut.sol svg,
body.tam-ekran.kart-acik:not(.ders-acik) .kenar-tut.sag svg,
body.tam-ekran.ders-acik.ders-panel-acik .kenar-tut.sag svg { transform: rotate(180deg); }

/* Ders paneli kapalıyken görev üstte kalır */
body.tam-ekran.ders-acik:not(.ders-panel-acik) .gorev-alan { position: fixed; left: 0; right: 0; top: 12px; z-index: 3; display: flex; justify-content: center; padding: 0 60px; pointer-events: none; }
.gorev-serit { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 44px; max-width: 100%; padding: 0 16px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--kose-buyuk); box-shadow: var(--golge); color: var(--murekkep); }
.gorev-serit:hover { background: var(--secili); }
.gorev-serit .ders-ust { flex: none; margin: 0; }
.gorev-metin { min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gorev-serit[data-ton="dogru"] .gorev-metin { color: var(--dogru); }
.gorev-serit[data-ton="yanlis"] .gorev-metin { color: var(--yanlis); }

/* Alt blok: boş alanın ortasında durur, boydan boya şerit yok */
body.tam-ekran .tam-alt { position: fixed; left: var(--sol); right: var(--sag); bottom: 6px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 12px; pointer-events: none; transition: left .2s ease, right .2s ease; }
.tam-dok, .tam-mini { pointer-events: auto; align-items: center; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--kose-buyuk); box-shadow: var(--golge); }
.tam-dok { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; max-width: 100%; padding: 8px 10px; }
.tam-mini { display: none; gap: 8px; padding: 6px; }
body.tam-ekran.dok-kucuk .tam-dok { display: none; }
body.tam-ekran.dok-kucuk .tam-mini { display: flex; }
body.tam-ekran .dok { display: contents; }
.tam-dok .asama { order: 1; }
.tam-dok #ayrim { order: 2; }
.tam-dok .arac { order: 3; }
#gorunumKutu { order: 4; }
#ayarKutu { order: 5; }
body.tam-ekran .dok .sifirla { order: 6; margin-left: 0; }
.tam-dok .ders-btn { order: 7; }
.tam-ayrac { order: 8; width: 1px; height: 24px; background: var(--cizgi); }
#dokKucult { order: 9; }
#tamCik { order: 10; }
body.tam-ekran.ders-acik #ayarKutu { display: none; }
.tam-dok .dugme-ikincil { min-height: 36px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
.dok-dugme, .tam-cik { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--kose); white-space: nowrap; }
.dok-dugme { background: var(--yuzey); border: 1px solid var(--cizgi); color: var(--murekkep); }
.dok-dugme:hover, .dok-dugme[aria-expanded="true"] { background: var(--secili); }
.dok-dugme.kare { width: 44px; padding: 0; }
.tam-cik { background: var(--murekkep); border: 0; color: #fff; font-weight: 500; }
.tam-cik:hover { background: var(--vurgu-koyu); }

/* Alt bardan yukarı açılan kutular */
.acilir { position: relative; }
body.tam-ekran .gorunus, .acilir-ic { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--kose-buyuk); box-shadow: var(--golge); }
body.tam-ekran .gorunus { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 216px; margin: 0; padding: 6px; overflow: visible; }
body.tam-ekran .acilir.acik .gorunus { display: grid; }
body.tam-ekran .gorunus button { min-height: 44px; padding: 0; border-radius: var(--kose); }
body.tam-ekran .gorunus button + button { border-left: 0; }
.acilir-ic { display: none; flex-direction: column; gap: 10px; width: 240px; padding: 12px; }
.acilir.acik .acilir-ic { display: flex; }
.acilir-ic .secim { display: flex; justify-content: space-between; }

/* Atıf: küçük kalır, tıklanınca tam metin açılır */
body.tam-ekran .kaynak, body.tam-ekran.ders-acik.sonuc-acik .kaynak, body.tam-ekran:not(.ders-acik) .kaynak {
  position: static; width: auto; max-width: min(100%, 860px); padding: 0; z-index: auto; pointer-events: auto;
  flex-direction: row; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; line-height: 1.35; color: var(--ikincil);
}
body.tam-ekran .kaynak .js-kaynak { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
body.tam-ekran .kaynak.acik .js-kaynak { white-space: normal; }
body.tam-ekran .kaynak .powered { gap: 4px; font-size: 11px; color: var(--ikincil); white-space: nowrap; }
body.tam-ekran .kaynak .powered a { min-height: 0; }
body.tam-ekran .kaynak .powered img { height: 12px; }
