/* SAHNE · İŞLEM GEÇMİŞİ VE «ONUN GÖZÜNDEN GÖR» (includes/scenes/audit-log.php) — adımlar:
   s0 personel kartı › Hesap & Yetki · s1 «Onun gözünden gör» → onay · s2 «Evet» → öğretmenin çalışma masası + «Başarılı» ·
   s3 «Tamam» → salt okunur kip şeridi · s4 «Görüntülemeden çık» → İndirim Tipleri formu · s5 «Varsayılan değer» 50,00 → 40 ·
   s6 «Kaydet» → onay · s7 «Evet, kaydet» → yenilenir, «Güncellendi.», kart %40 ·
   s8 sayfa «Değişiklik geçmişi»ne kayar: eski 50.00 üstü çizilir → yeni 40.00 (son durum) */
.aud { container-type: inline-size; --d: 0s; --aud-h: 430px; --aud-bg: #f7f8fa; --aud-ink: #27272a; --aud-ok: #047857;
  --aud-spring: cubic-bezier(.34, 1.56, .64, 1); }
.aud.s2 { --d: .55s; } .aud.s4 { --d: .6s; } .aud.s5 { --d: .7s; } .aud.s7 { --d: .6s; }
.aud-i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* çapraz geçiş: katmanlar aynı ızgara hücresinde üst üste; on-A-B = A. adımdan B. adıma kadar görünür */
.aud-x { display: inline-grid; min-width: 0; }
.aud-x > * { grid-area: 1 / 1; min-width: 0; }
.aud [class*="on-"] { opacity: 0; transform: translateY(3px); transition: opacity .3s var(--ui-ease) var(--d), transform .35s var(--ui-ease) var(--d); }
.aud:not(.s2) .on-0-2, .aud:not(.s5) .on-0-5, .aud:not(.s7) .on-0-7, .aud.s2:not(.s4) .on-2-4,
.aud.s4 .on-4, .aud.s5:not(.s7) .on-5-7, .aud.s7 .on-7 { opacity: 1; transform: none; }

/* imleç: .aud-hit tıklama noktasıdır; ok ucu tam orada, halka dalgası çevresinde */
.aud-hit { position: absolute; z-index: 7; width: 0; height: 0; pointer-events: none; }
.aud-hit .ui-cur { left: -5px; top: -3px; transform: translate(14px, 12px); transition: opacity .2s var(--ui-ease); }
.aud-rip { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(29, 79, 134, .55); opacity: 0; }
@keyframes aud-cur { 0% { opacity: 0; transform: translate(14px, 12px); } 34% { opacity: 1; transform: none; scale: 1; } 50% { scale: .8; } 64%, 100% { opacity: 1; transform: none; scale: 1; } }
@keyframes aud-cur-out { 0% { opacity: 0; transform: translate(14px, 12px); } 30% { opacity: 1; transform: none; scale: 1; } 44% { scale: .8; } 56% { scale: 1; } 76% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes aud-rip { 0% { opacity: 0; scale: .25; } 12% { opacity: .9; } 100% { opacity: 0; scale: 1.7; } }
@keyframes aud-push { 50% { scale: .94; } }
@keyframes aud-type { to { width: 2ch; } }
@keyframes aud-blink { 50% { opacity: 0; } }
@keyframes aud-reload { 0% { opacity: 1; } 30% { opacity: .3; } 100% { opacity: 1; } }
@keyframes aud-hl { 0% { background-color: rgba(230, 238, 248, 0); } 18% { background-color: #e9f0f9; } 100% { background-color: rgba(230, 238, 248, 0); } }
@keyframes aud-pop { 0% { scale: .4; } 60% { scale: 1.12; } 100% { scale: 1; } }

/* ── pencere + üst çubuk ── */
.aud-win { position: relative; background: #fff; }
.aud-top { position: relative; z-index: 4; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 14px; background: #fff;
  box-shadow: inset 0 -1px 0 var(--ui-line), 0 1px 2px rgba(16, 37, 64, .04); }
.aud-logo { flex: none; width: 26px; height: 26px; }
.aud-bc { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ui-muted); white-space: nowrap; }
.aud-bc > * { display: flex; align-items: center; min-width: 0; }
.aud-bc__u { display: inline-flex; align-items: center; }
.aud-bc__s { width: 12px; height: 12px; margin: 0 4px; color: #a1a1aa; }
.aud-bc b { font-weight: 800; color: var(--ui-text); }
.aud-bell { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #52525b; }
.aud-bell > .aud-i { width: 17px; height: 17px; stroke-width: 1.8; }
.aud-bell > i { position: absolute; top: -1px; right: -5px; display: inline-grid; height: 15px; min-width: 15px; padding: 0 3px; border-radius: 8px; background: #dc2626;
  box-shadow: 0 0 0 2px #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 15px; color: #fff; text-align: center; font-variant-numeric: tabular-nums; }
.aud-me { flex: none; }
.aud-me > span { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.aud-me b { font-size: 12px; font-weight: 800; color: var(--ui-text); white-space: nowrap; }
.aud-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, var(--navy-soft), var(--navy)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }

/* ── sahne gövdesi: üç ekran aynı hücrede üst üste ── */
.aud-body { position: relative; display: grid; height: var(--aud-h); overflow: hidden; background: var(--aud-bg); }
.aud-p { position: relative; grid-area: 1 / 1; min-width: 0; overflow: hidden; }
.aud-pa { transition: opacity .35s var(--ui-ease) var(--d), scale .45s var(--ui-ease) var(--d); }
.aud:not(.s4) .aud-pa { opacity: 0; scale: .985; }
/* sayfa alttan devam ediyor: kıvrımda yumuşak geçiş (yarım satır sert kesilmez) */
.aud-pa::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 16px; background: linear-gradient(rgba(247, 248, 250, 0), var(--aud-bg)); pointer-events: none; }
.aud-pb, .aud-pc { opacity: 0; translate: 0 10px; transition: opacity .35s var(--ui-ease) var(--d), translate .45s var(--ui-ease) var(--d); }
.aud:not(.s2) .aud-pb, .aud.s2:not(.s4) .aud-pc { opacity: 1; translate: 0 0; }

/* ortak parçalar */
.aud-btn { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 9px;
  font-size: 12px; font-weight: 800; white-space: nowrap; }
.aud-btn .aud-i { width: 13px; height: 13px; }
.aud-btn--o { background: #fff; color: #3f3f46; box-shadow: inset 0 0 0 1.5px #d4d4d8, 0 1px 1px rgba(16, 37, 64, .04); }
.aud-btn--n, .aud-btn--save { color: #fff; background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(16, 37, 64, .2), 0 6px 14px -8px rgba(20, 61, 107, .75); }
.aud-btn--s { height: 28px; padding: 0 10px; font-size: 11.5px; }
.aud-btn--xs { height: 26px; padding: 0 9px; border-radius: 8px; font-size: 11px; gap: 5px; }
.aud-btn--xs .aud-i { width: 12px; height: 12px; }
.aud-pill { display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 6px; border-radius: 9px; font-style: normal; font-size: 10px; font-weight: 800; line-height: 17px; white-space: nowrap; }
.aud-pill .aud-i { width: 10px; height: 10px; stroke-width: 2.2; }
.aud-pill--amb { background: #fef3c7; color: #b45309; } .aud-pill--blu { background: #dbeafe; color: #1d4ed8; }
.aud-pill--grn { background: #d1fae5; color: #047857; } .aud-pill--zn { background: #f1f1f3; color: #52525b; font-weight: 700; }

/* ═══ A · İNDİRİM TİPLERİ ═══ */
.aud-scroll { padding: 12px 14px 14px; translate: 0 -46px; transition: translate .7s var(--ui-ease) var(--sd, 0s); }
.aud.s7 .aud-scroll { translate: 0 0; --sd: .62s; }
.aud.s7:not(.s8) .aud-scroll { animation: aud-reload .6s ease .48s; }
/* s8: form kartının üstü pencerenin 8 px altına gelir; sayfa daha uzunsa (dar liste sütununda ad sarar) dibe kayar —
   geçmiş kartı her genişlikte altta tam görünür (ölçüldü) */
.aud.s8 .aud-scroll { translate: 0 min(-50px, calc(var(--aud-h) - 100%)); --sd: .12s; transition-duration: .85s; }
.aud-flash { display: flex; align-items: center; gap: 8px; height: 34px; margin-bottom: 12px; padding: 0 12px; border-radius: 10px; background: #ecfdf5;
  box-shadow: inset 0 0 0 1px #a7f3d0; font-size: 12px; font-weight: 800; color: #065f46; }
.aud-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 12px; align-items: start; }

/* sol: indirim kartları (grup akordiyonu) */
.aud-list { padding: 8px; border-radius: 14px; background: #f1f2f4; box-shadow: inset 0 0 0 1px var(--ui-line); }
.aud-gh { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px; white-space: nowrap; }
.aud-gh__c { width: 13px; height: 13px; color: #71717a; }
.aud-gh__l { width: 14px; height: 14px; color: var(--navy-soft); }
.aud-gh b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 900; letter-spacing: -.01em; color: #18181b; }
.aud-gh small { font-size: 10.5px; font-weight: 700; color: var(--ui-muted); }
.aud-gh--c { margin-top: 2px; }
.aud-dc { margin-top: 6px; padding: 8px 9px 8px 10px; border-radius: 11px; background: #fff;
  box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05), inset 0 1px 0 rgba(255, 255, 255, .6); }
/* grubun ilk iki kartı kısa künye (ad + değer): grup sırası ve «4 indirim» sayısı tutar, liste formdan çok uzamaz */
.aud-dk { display: flex; align-items: center; gap: 8px; height: 22px; margin-top: 3px; padding: 0 9px 0 10px; border-radius: 8px; background: #fff;
  box-shadow: 0 0 0 1px var(--ui-line), 0 1px 1px rgba(16, 37, 64, .04); font-size: 11px; line-height: 14px; white-space: nowrap; }
.aud-dk b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: #52525b; }
.aud-dk span { flex: none; font-weight: 800; color: #3f3f46; font-variant-numeric: tabular-nums; }
.aud-gh + .aud-dc, .aud-gh + .aud-dk { margin-top: 4px; }
.aud-dk + .aud-dc { margin-top: 4px; }
.aud-dc + .aud-gh { margin-top: 6px; }
.aud-dc--sel { box-shadow: 0 0 0 2px var(--navy-soft), 0 4px 12px -6px rgba(20, 61, 107, .45); }
.aud-dc__h { display: flex; align-items: flex-start; gap: 6px; }
.aud-dc__h > b { flex: 1; min-width: 0; font-size: 12px; font-weight: 800; line-height: 17px; color: #18181b; }
.aud-yur { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 6px; border-radius: 9px; background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0;
  font-size: 10px; font-weight: 800; color: #047857; }
.aud-yur .aud-i { width: 10px; height: 10px; stroke-width: 2.4; }
.aud-dc__k { flex: none; display: grid; place-items: center; width: 18px; height: 17px; color: #d4d4d8; }
.aud-dc__k .aud-i { width: 13px; height: 13px; }
.aud-dc__k--t { color: #71717a; }
.aud-dc__m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin-top: 5px; font-size: 10.5px; font-weight: 600; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.aud-dc__m > b { font-size: 11px; font-weight: 900; color: #27272a; }
.aud-dc__m > i { font-style: normal; color: #d4d4d8; }

/* sağ: düzenleme formu */
.aud-form { padding: 11px 13px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05), 0 10px 24px -20px rgba(16, 37, 64, .4); }
.aud-ft { font-size: 10.5px; font-weight: 800; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aud-f { min-width: 0; margin-top: 9px; }
.aud-lbl { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; line-height: 14px; color: #3f3f46; white-space: nowrap; }
.aud-in { position: relative; display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 9px; background: #fff; font-size: 11.5px; font-weight: 600; color: #18181b;
  box-shadow: inset 0 0 0 1.5px #d4d4d8; white-space: nowrap; transition: box-shadow .25s var(--ui-ease); }
.aud-in--sel { justify-content: space-between; gap: 6px; font-weight: 700; }
.aud-chev { width: 13px; height: 13px; color: #52525b; }
.aud-in--mono { font: 600 11.5px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.aud-f2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.aud-vs { display: flex; gap: 6px; }
.aud-in--val { flex: 1; min-width: 0; }
.aud-in--sira { flex: none; width: 40px; }
.aud.s5:not(.s7) .aud-in--val { box-shadow: inset 0 0 0 1.5px var(--navy-soft), 0 0 0 3px rgba(29, 79, 134, .15); transition-delay: .42s; }
.aud .aud-v0 { margin-left: -2px; padding: 0 2px; border-radius: 2px; transition: opacity .12s var(--ui-ease) .74s, transform .12s var(--ui-ease) .74s, background-color .1s linear .52s; }
.aud.s5 .aud-v0 { background: #bfd6f6; }
.aud-v1 { display: flex; align-items: center; }
.aud-type { display: inline-block; width: 0; overflow: hidden; white-space: nowrap; }
.aud.s5 .aud-type { animation: aud-type .42s steps(2, end) .8s forwards; }
.aud-caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; background: var(--navy-soft); animation: aud-blink 1s steps(1) infinite; }
.aud.s6 .aud-caret { visibility: hidden; }
.aud-in--val .aud-hit { right: 20px; bottom: 9px; }
.aud.s5:not(.s6) .aud-hit--val .ui-cur { animation: aud-cur .9s var(--ui-ease) both; }
.aud.s5:not(.s6) .aud-hit--val .aud-rip { animation: aud-rip .55s ease-out .42s both; }
.aud-fb { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--ui-line); }
.aud-chk { flex: 1; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: #18181b; white-space: nowrap; }
.aud-chk > i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--navy-soft); color: #fff; }
.aud-chk .aud-i { width: 11px; height: 11px; stroke-width: 3; }
.aud-btn--save .aud-hit { right: 20px; bottom: 9px; }
.aud.s6:not(.s7) .aud-btn--save { animation: aud-push .3s var(--ui-ease) .4s; }
.aud.s6:not(.s7) .aud-hit--save .ui-cur { animation: aud-cur .9s var(--ui-ease) both; }
.aud.s6:not(.s7) .aud-hit--save .aud-rip { animation: aud-rip .55s ease-out .4s both; }

/* değişiklik geçmişi (record-history.php) */
.aud-hist { margin-top: 12px; padding: 11px 14px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05); }
.aud-hist__h { display: flex; align-items: center; gap: 6px; height: 18px; color: #71717a; }
.aud-hist__h b { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.aud-cnt { display: inline-grid; place-items: center; height: 16px; min-width: 18px; padding: 0 5px; border-radius: 8px; background: #f1f1f3; font-style: normal; font-size: 10.5px; font-weight: 900; color: #3f3f46; font-variant-numeric: tabular-nums; }
.aud-hist > .aud-x { position: relative; display: grid; margin-top: 8px; }
/* s7'ye kadar kayıt akış dışında: boş durum kartı yalnız kendi cümlesi kadar (record-history.php:123–127); kayıt s7'de,
   sayfa yenilenirken ve kıvrımın altında yer açar */
.aud:not(.s7) .aud-hist .aud-he { position: absolute; top: 0; left: 0; right: 0; }
.aud-hist__e { font-size: 12px; font-weight: 700; line-height: 17px; color: #52525b; }
.aud-he { display: flex; align-items: flex-start; gap: 10px; margin: -4px -6px 0; padding: 4px 6px; border-radius: 10px; }
.aud.s8 .aud-he { animation: aud-hl 1.8s ease .55s; }
.aud-he__i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 8px; background: #f1f1f3; color: #52525b; }
.aud-he__i .aud-i { width: 13px; height: 13px; }
.aud-he__t { flex: 1; min-width: 0; }
.aud-he__t > b { display: block; font-size: 12.5px; font-weight: 800; line-height: 17px; color: #27272a; }
.aud-he__t > small { display: block; margin-top: 1px; font-size: 11px; font-weight: 700; line-height: 15px; color: #71717a; font-variant-numeric: tabular-nums; }
.aud-diff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; line-height: 19px; font-variant-numeric: tabular-nums; }
.aud-diff__k { font-weight: 700; color: #71717a; }
.aud-old { position: relative; padding: 0 6px; border-radius: 5px; background: #fef2f2; color: #b91c1c; font-weight: 600; text-decoration: none; }
.aud-old::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; margin-top: -.5px; border-radius: 1px; background: #f87171;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ui-ease) .85s; }
.aud.s8 .aud-old::after { transform: none; }
.aud-diff__a { width: 13px; height: 13px; color: #52525b; opacity: 0; translate: -4px 0; transition: opacity .25s var(--ui-ease) 1.1s, translate .35s var(--ui-ease) 1.1s; }
.aud-new { padding: 0 6px; border-radius: 5px; background: #ecfdf5; color: var(--aud-ok); font-weight: 800;
  opacity: 0; scale: .7; transition: opacity .25s var(--ui-ease) 1.25s, scale .45s var(--aud-spring) 1.25s; }
.aud.s8 .aud-diff__a, .aud.s8 .aud-new { opacity: 1; translate: 0 0; scale: 1; }

/* ── onay / bilgi pencereleri (SweetAlert, uygulama ayarıyla) ── */
.aud-dlg { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .38); opacity: 0;
  transition: opacity .22s var(--ui-ease) var(--dd, 0s); }
.aud-dlg__box { position: relative; display: flex; flex-direction: column; align-items: center; width: min(300px, 100%); padding: 18px 18px 16px; border-radius: 14px; background: #fff; text-align: center;
  box-shadow: 0 0 0 1px rgba(16, 37, 64, .06), 0 2px 6px rgba(16, 37, 64, .1), 0 24px 48px -16px rgba(16, 37, 64, .55);
  scale: .86; transition: scale .42s var(--aud-spring) var(--dd, 0s); }
.aud-q { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 3px #c9dae1; font-size: 25px; font-weight: 600; line-height: 1; color: #87adbd; }
.aud-q--ok { box-shadow: inset 0 0 0 3px #c8e9b6; color: #7cc35a; }
.aud-q--ok .aud-i { width: 24px; height: 24px; stroke-width: 2.6; }
.aud-dlg__t { margin-top: 10px; font-size: 16px; font-weight: 800; line-height: 20px; color: #18181b; }
.aud-dlg__m { margin-top: 6px; font-size: 12px; font-weight: 500; line-height: 17px; color: #3f3f46; text-wrap: pretty; }
.aud-dlg__b { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.aud-sb { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 15px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.aud-sb--no { background: #71717a; }
.aud-sb--yes { background: #18181b; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .1); }
.aud-sb--yes .aud-hit { right: 18px; bottom: 9px; }
.aud.s6:not(.s7) .aud-dlg--a, .aud.s1:not(.s2) .aud-dlg--b, .aud.s2:not(.s3) .aud-dlg--c { opacity: 1; }
.aud.s6:not(.s7) .aud-dlg--a .aud-dlg__box, .aud.s1:not(.s2) .aud-dlg--b .aud-dlg__box, .aud.s2:not(.s3) .aud-dlg--c .aud-dlg__box { scale: 1; }
.aud.s6 .aud-dlg--a { --dd: .55s; } .aud.s7 .aud-dlg--a { --dd: .4s; }
.aud.s1 .aud-dlg--b { --dd: 1s; } .aud.s2 .aud-dlg--b { --dd: .4s; }
.aud.s2 .aud-dlg--c { --dd: 1.05s; } .aud.s3 .aud-dlg--c { --dd: .36s; }
.aud.s2:not(.s3) .aud-q--ok .aud-i { animation: aud-pop .45s var(--aud-spring) 1.2s both; }
.aud.s7:not(.s8) .aud-hit--yesa .ui-cur, .aud.s2:not(.s3) .aud-hit--yesb .ui-cur { animation: aud-cur-out .9s var(--ui-ease) both; }
.aud.s7:not(.s8) .aud-hit--yesa .aud-rip, .aud.s2:not(.s3) .aud-hit--yesb .aud-rip { animation: aud-rip .5s ease-out .3s both; }
.aud.s7:not(.s8) .aud-dlg--a .aud-sb--yes, .aud.s2:not(.s3) .aud-dlg--b .aud-sb--yes { animation: aud-push .26s var(--ui-ease) .3s; }
.aud.s3:not(.s4) .aud-hit--ok .ui-cur { animation: aud-cur-out .85s var(--ui-ease) both; }
.aud.s3:not(.s4) .aud-hit--ok .aud-rip { animation: aud-rip .5s ease-out .28s both; }
.aud.s3:not(.s4) .aud-dlg--c .aud-sb--yes { animation: aud-push .26s var(--ui-ease) .28s; }

/* ═══ B · PERSONEL KARTI ═══ */
.aud-in-pg { padding: 12px 14px; }
.aud-backl { display: inline-flex; align-items: center; gap: 5px; height: 16px; font-size: 11px; font-weight: 700; color: var(--ui-muted); }
.aud-backl .aud-i { width: 13px; height: 13px; }
.aud-sh { margin-top: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05), 0 12px 26px -22px rgba(16, 37, 64, .5); overflow: hidden; }
.aud-sh__top { display: flex; align-items: center; gap: 12px; padding: 12px 12px 11px; background: linear-gradient(180deg, #fbfcfd, #fff); }
.aud-sh__av { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 19px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, var(--navy-soft), var(--navy) 60%, var(--navy-night)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -8px rgba(20, 61, 107, .8); }
.aud-sh__id { flex: 1; min-width: 0; }
.aud-sh__n { display: flex; align-items: center; gap: 8px; }
.aud-sh__n b { font-size: 17px; font-weight: 800; line-height: 22px; letter-spacing: -.02em; color: #18181b; white-space: nowrap; }
.aud-act { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 9px; background: #d1fae5; font-style: normal; font-size: 10px; font-weight: 800; color: #047857; white-space: nowrap; }
.aud-act i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.aud-sh__m { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; font-size: 11px; font-weight: 600; line-height: 15px; color: #3f3f46; }
.aud-sh__m > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.aud-sh__m .aud-i { width: 12px; height: 12px; color: #71717a; }
.aud-sh__btn { flex: none; display: flex; gap: 6px; align-self: flex-start; }
.aud-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); box-shadow: inset 0 1px 0 var(--ui-line); }
.aud-kpi > span { min-width: 0; padding: 8px 12px 9px; }
.aud-kpi > span + span { box-shadow: inset 1px 0 0 var(--ui-line); }
.aud-kpi small { display: block; font-size: 10px; font-weight: 800; line-height: 13px; letter-spacing: .05em; text-transform: uppercase; color: #52525b; white-space: nowrap; }
.aud-kpi small > i { font-style: normal; display: none; }
.aud-kpi b { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; line-height: 19px; letter-spacing: -.01em; color: #18181b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aud-kpi em { display: block; font-style: normal; font-size: 10px; font-weight: 600; line-height: 13px; color: var(--ui-muted); white-space: nowrap; }
.aud-sb2 { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.aud-rail { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.aud-rail > span { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px; border-radius: 9px; font-size: 11.5px; font-weight: 700; color: #3f3f46; white-space: nowrap; }
.aud-rail > span.on { background: #fff; color: var(--navy); box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .06); }
.aud-rail i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; }
.aud-rail .aud-i { width: 13px; height: 13px; }
.aud-c-em { background: #d1fae5; color: #059669; } .aud-c-zn { background: #f1f1f3; color: #52525b; } .aud-c-rd { background: #fee2e2; color: #dc2626; }
.aud-c-am { background: #fef3c7; color: #d97706; } .aud-c-sk { background: #e0f2fe; color: #0284c7; }
.aud-rail > span.on i { background: var(--ui-primary-soft); color: var(--navy-soft); }
.aud-acc { min-width: 0; }
.aud-va { padding: 11px 13px 12px; border-radius: 14px; background: #f7f5ff; box-shadow: inset 0 0 0 1px #ddd6fe; }
.aud-va__h { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; color: #6d28d9; }
.aud-va__h .aud-i { width: 13px; height: 13px; }
.aud-va__t { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; line-height: 15px; color: #52525b; text-wrap: pretty; }
.aud-va__t b { font-weight: 800; color: #3f3f46; }
.aud-va__b { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-top: 9px; padding: 0 12px; border-radius: 10px; background: #fff;
  box-shadow: inset 0 0 0 1.5px #c4b5fd, 0 1px 2px rgba(76, 29, 149, .08); font-size: 12px; font-weight: 800; color: #6d28d9; white-space: nowrap; transition: background-color .2s var(--ui-ease) .7s; }
.aud-va__b .aud-i { width: 14px; height: 14px; }
.aud-va__b .aud-hit { right: 30px; bottom: 10px; }
.aud.s1:not(.s2) .aud-va__b { background: #ede9fe; animation: aud-push .3s var(--ui-ease) .72s; }
.aud.s1:not(.s2) .aud-hit--va .ui-cur { animation: aud-cur .9s var(--ui-ease) .3s both; }
.aud.s1:not(.s2) .aud-hit--va .aud-rip { animation: aud-rip .55s ease-out .72s both; }
.aud-gk { margin-top: 10px; padding: 10px 13px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05); }
.aud-gk__h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #71717a; }
.aud-gk__h .aud-i { width: 13px; height: 13px; }
.aud-gk__r { display: flex; align-items: baseline; gap: 10px; min-width: 0; height: 21px; white-space: nowrap; }
.aud-gk__r small { flex: none; width: 74px; font-size: 11px; font-weight: 600; color: #52525b; }
.aud-gk__r code { font: 600 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; color: #18181b; }
.aud-gk__r b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-weight: 800; color: #18181b; }

/* ═══ C · ÖĞRETMENİN ÇALIŞMA MASASI ═══ */
.aud-desk { padding-bottom: 70px; }
.aud-dh { display: flex; align-items: flex-start; gap: 10px; }
.aud-dh__t { flex: 1; min-width: 0; }
.aud-dh__t > b { font-size: 18px; font-weight: 800; line-height: 24px; letter-spacing: -.02em; color: #18181b; }
.aud-dh__q { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; vertical-align: -3px; border-radius: 50%; background: var(--ui-primary-soft); color: var(--navy-soft); }
.aud-dh__q .aud-i { width: 13px; height: 13px; }
.aud-dh__t > small { display: block; font-size: 11.5px; font-weight: 700; line-height: 15px; color: #52525b; font-variant-numeric: tabular-nums; }
.aud-dh__a { flex: none; display: flex; gap: 6px; }
.aud-ms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
/* sayı kutunun dibinde; ad iki satıra sararsa kutu (ve satırdaki eşleri) uzar — sayı adın üstüne binmez */
.aud-m { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 66px; padding: 9px 10px 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05), inset 0 1px 0 rgba(255, 255, 255, .6); }
.aud-m small { display: block; padding-right: 26px; font-size: 10px; font-weight: 800; line-height: 12px; letter-spacing: .04em; text-transform: uppercase; color: #52525b; }
.aud-m b { margin-top: auto; padding-top: 4px; font-size: 20px; font-weight: 800; line-height: 24px; color: #18181b; font-variant-numeric: tabular-nums; }
.aud-m > i { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; }
.aud-m > i .aud-i { width: 13px; height: 13px; }
.aud-m--red { background: #fef2f2; box-shadow: inset 0 0 0 1.5px #fca5a5; }
.aud-m--red small { color: #b91c1c; } .aud-m--red b { color: #991b1b; }
.aud-m--red > i { background: #fee2e2; }
.aud-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; margin-top: 8px; padding: 0 10px; border-radius: 9px; background: #fff5f5; box-shadow: inset 0 0 0 1.5px #fca5a5;
  font-size: 11px; font-weight: 800; color: #b91c1c; white-space: nowrap; }
.aud-chip .aud-i { width: 13px; height: 13px; }
.aud-kq { display: flex; align-items: center; gap: 6px; margin-top: 10px; height: 18px; }
.aud-kq .aud-i { color: var(--navy-soft); }
.aud-kq b { font-size: 12.5px; font-weight: 900; color: #18181b; }
.aud-ls { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05); }
.aud-ls__s { text-align: center; line-height: 14px; font-variant-numeric: tabular-nums; }
.aud-ls__s b { display: block; font-size: 12.5px; font-weight: 900; color: #18181b; }
.aud-ls__s small { display: block; font-size: 10px; font-weight: 700; color: #52525b; }
.aud-ls__b { min-width: 0; }
.aud-ls__b > b { display: block; font-size: 12px; font-weight: 800; line-height: 16px; color: #18181b; white-space: nowrap; }
.aud-ls__b > small { display: block; font-size: 10.5px; font-weight: 700; line-height: 14px; color: var(--ui-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aud-ls__c { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.aud-ls__c em { height: 16px; padding: 0 7px; border-radius: 8px; font-style: normal; font-size: 10px; font-weight: 900; line-height: 16px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.aud-ls__c .g { background: #d1fae5; color: #047857; } .aud-ls__c .s { background: #e0f2fe; color: #0369a1; }
.aud-ls__a { display: flex; gap: 6px; }

/* kip şeridi (view-as-bar.php) */
.aud-vb { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; background: #7f1d1d; color: #fff;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  translate: 0 100%; transition: translate .5s var(--ui-ease) .85s; }
.aud.s2 .aud-vb { translate: 0 0; }
.aud-vb__d { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; }
.aud-vb__t { flex: 1 1 240px; min-width: 0; font-size: 11.5px; font-weight: 600; line-height: 15px; }
.aud-vb__t b { font-weight: 800; }
.aud-vb__t small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 500; line-height: 14px; color: rgba(255, 255, 255, .86); }
.aud-vb__b { position: relative; flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: #fff; font-size: 11.5px; font-weight: 800; color: #7f1d1d; white-space: nowrap;
  transition: background-color .15s var(--ui-ease) .3s; }
/* s4 «Görüntülemeden çık»: basılınca açık kırmızı (view-as-bar.php:41 :hover #fee2e2), ardından sahne İndirim Tipleri'ne kesilir */
.aud-vb__b .aud-hit { right: 24px; bottom: 9px; }
.aud.s4:not(.s5) .aud-vb__b { background: #fee2e2; animation: aud-push .26s var(--ui-ease) .3s; }
.aud.s4:not(.s5) .aud-hit--exit .ui-cur { animation: aud-cur-out .85s var(--ui-ease) both; }
.aud.s4:not(.s5) .aud-hit--exit .aud-rip { animation: aud-rip .5s ease-out .3s both; }

/* ── DAR KAPLAR ── */
/* kart künyesi tek satırda kalsın: liste sütunu çok uzarsa s4'te geçmiş kartı alttan taşar (ölçüldü: 760 px'te iki rozet
   alt satıra iner, liste 316 px) — geniş sütunda (≥ ~860 px) künye tek satıra sığar, rozetler görünür */
@container (max-width: 860px) {
  .aud-dc .aud-w { display: none; }
}
@container (max-width: 660px) {
  .aud-w2 { display: none !important; }
  .aud-dh__a .aud-btn { height: 28px; }
}
@container (max-width: 600px) {
  .aud-win { --aud-h: 420px; }
  .aud-me b, .aud-bc__u { display: none; }
  .aud-grid { grid-template-columns: minmax(0, 1fr); }
  .aud-list { display: none; }
  .aud-sb2 { grid-template-columns: minmax(0, 1fr); }
  .aud-rail { display: none; }
  .aud-w { display: none !important; }
  .aud-kpi em { display: none; }
  .aud-ls { grid-template-columns: 46px minmax(0, 1fr); }
  .aud-ls__a { grid-column: 1 / -1; margin-top: 7px; padding-top: 7px; box-shadow: inset 0 1px 0 #f1f1f3; }
  /* ikinci ders kartı kip şeridinin altında yarım kalıyordu (480–600 px): dar kapta tek ders kartı */
  .aud-ls + .aud-ls { display: none; }
}
@container (max-width: 470px) {
  .aud-win { --aud-h: 432px; }
  .aud-top { gap: 8px; padding: 0 10px 0 12px; }
  .aud-scroll { padding: 10px 10px 12px; }
  .aud-form { padding: 10px 11px 11px; }
  .aud-f2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .aud-f--meb { display: none; }
  .aud-hist { padding: 10px 11px 11px; }
  .aud-he { gap: 8px; }
  .aud-he__t > b { font-size: 12px; }
  .aud-in-pg { padding: 10px; }
  .aud-sh__top { gap: 10px; padding: 10px; }
  .aud-sh__av { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }
  .aud-sh__n { flex-wrap: wrap; row-gap: 2px; }
  .aud-sh__n b { font-size: 16px; }
  .aud-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud-kpi > span { padding: 7px 10px 8px; }
  .aud-kpi > span:nth-child(3) { box-shadow: inset 0 1px 0 var(--ui-line); }
  .aud-kpi > span:nth-child(4) { box-shadow: inset 1px 0 0 var(--ui-line), inset 0 1px 0 var(--ui-line); }
  .aud-va { padding: 10px 11px 11px; }
  .aud-gk { padding: 9px 11px; }
  .aud-gk__r small { width: 66px; }
  .aud-dh__t > b { font-size: 16.5px; }
  .aud-ms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  .aud-m { min-height: 50px; padding: 7px 9px 5px; }
  .aud-m b { padding-top: 2px; font-size: 17px; line-height: 20px; }
  .aud-m > i { top: 6px; right: 6px; width: 20px; height: 20px; }
  .aud-ls { padding: 7px 9px; column-gap: 8px; }
  .aud-vb { padding: 9px 12px; gap: 8px 10px; }
  .aud-vb__t { flex-basis: 200px; }
  .aud-desk { padding-bottom: 104px; }
}
/* KPI başlıkları: dar kapta uygulamanın kendi kısa adları (admin-teacher.php:1979–1982, sm altında; harf aralığı normal) —
   480–540 px'te dört sütunda «DANIŞAN ÖĞRENCİ» sütuna sığmıyordu */
@container (max-width: 540px) {
  .aud-kpi small { letter-spacing: normal; }
  .aud-kpi small > span { display: none; }
  .aud-kpi small > i { display: inline; }
}
@container (max-width: 380px) {
  .aud-dlg { padding: 12px; }
  .aud-dlg__box { padding: 16px 14px 14px; }
  .aud-ls__c .s { display: none; }
  .aud-chip { display: none; }
}
