/* SAHNE · KÜTÜPHANE: BARKODLA ÖDÜNÇ → AKTİF ÖDÜNÇLER → VELİNİN TELEFONU (includes/scenes/library.php) — modül sayfası
   /modul/kutuphane. s1 «Can K» aranır → yonga · s2 yongaya tıklanır → üye kutusu yeşil · s3 kopya barkodu okutulur →
   alana yazılır · s4 «Ödünç Ver (14 gün)» → «Kitap ödünç verildi.», Ödünçte 87 → 88 · s5 liste sona kaydırılır (yeni ödünç
   vade sırasında sonda) · s6 velinin telefonunda Kütüphane (son adım tek başına sonuç). Yükseklik bütün adımlarda sabit. */
.lib { container-type: inline-size; position: relative; height: 480px;
  --lib-spring: cubic-bezier(.34, 1.56, .64, 1); --lib-ok: #047857; --lib-ld: .1s; }
.lib-i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lib-x { display: grid; min-width: 0; }
.lib-x > * { grid-area: 1 / 1; min-width: 0; }

/* ── imleç: .lib-hit tıklama noktası; ok ucu tam orada, halka dalgası çevresinde ── */
.lib-hit { position: absolute; z-index: 7; width: 0; height: 0; pointer-events: none; }
.lib-hit .ui-cur { left: -5px; top: -3px; transform: translate(14px, 12px); transition: opacity .2s var(--ui-ease); }
.lib-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 lib-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 lib-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 lib-rip { 0% { opacity: 0; scale: .25; } 12% { opacity: .9; } 100% { opacity: 0; scale: 1.7; } }
@keyframes lib-push { 50% { scale: .95; } }

/* ── pencere ── */
.lib-win { position: absolute; inset: 0; display: flex; flex-direction: column; }
.lib-top { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: #fff; box-shadow: inset 0 -1px 0 var(--ui-line); }
.lib svg.lib-logo { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(16, 37, 64, .1), 0 2px 4px -2px rgba(16, 37, 64, .4); }
.lib-crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; margin-left: 4px; font-size: 11.5px; line-height: 16px; white-space: nowrap; }
.lib-crumb__m { font-weight: 600; color: var(--ui-muted); }
.lib-crumb .lib-crumb__s { width: 12px; height: 12px; color: #a3abb8; }
.lib-crumb b { font-weight: 800; color: var(--ui-text); }
.lib-year { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 7px; border-radius: 7px; background: #fff; font-size: 11px; font-weight: 700; color: var(--ui-text); font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--ui-line-2), 0 1px 1px rgba(16, 37, 64, .04); }
.lib-year .lib-i { width: 13px; height: 13px; color: var(--ui-muted); }
.lib-year .lib-chev { width: 11px; height: 11px; }
.lib-tic { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: #3d4a5c; }
.lib-tic .lib-i { width: 15px; height: 15px; }
.lib-tic--b::after { content: ""; position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #e0352b; box-shadow: 0 0 0 1.5px #fff; }

.lib-view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 12px 10px; background: var(--ui-bg-2); overflow: hidden; }

/* bant kartı: başlık bandı + bölüm sekmeleri + özet çipleri (admin-library.php tdBant) */
.lib-card { flex: none; border-radius: 14px; background: #fff; overflow: hidden;
  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, .45); }
.lib-band { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; color: #fff;
  background: linear-gradient(120deg, var(--navy-night), var(--navy) 55%, var(--navy-soft)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.lib-band__ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.lib-band__ic .lib-i { width: 16px; height: 16px; stroke-width: 1.9; }
.lib-band__t { flex: 1; min-width: 0; }
.lib-band__h { display: flex; align-items: center; gap: 6px; }
.lib-band__h b { font-size: 15.5px; font-weight: 800; line-height: 19px; letter-spacing: -.015em; }
.lib-band .lib-help { width: 15px; height: 15px; stroke-width: 1.9; opacity: .85; }
.lib-band small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; line-height: 14px; color: rgba(255, 255, 255, .86); white-space: nowrap; }
.lib-tabs { position: relative; height: 40px; padding: 7px 10px; border-top: 1px solid #f0f1f4; overflow: hidden; }
.lib-tabs__r { display: flex; gap: 5px; }
.lib-tab { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 700; line-height: 14px; color: #3f3f46; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #e4e4e7, 0 1px 1px rgba(16, 37, 64, .03); }
.lib-tab .lib-i { width: 13px; height: 13px; color: #71717a; }
.lib-tab--on { color: #fff; background: linear-gradient(180deg, var(--navy-soft), var(--navy)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 3px 8px -4px rgba(20, 61, 107, .7); }
.lib-tab--on .lib-i { color: #fff; }
.lib-tab em { display: grid; place-items: center; height: 16px; padding: 0 5px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-style: normal; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lib-sum { display: flex; gap: 5px; height: 34px; padding: 0 10px 8px; }
.lib-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 700; line-height: 14px; color: #3f3f46; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #e4e4e7, 0 1px 1px rgba(16, 37, 64, .03); }
.lib-chip .lib-i { width: 13px; height: 13px; color: #71717a; }
.lib-chip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.lib-chip .c1 { color: var(--navy-soft); } .lib-chip .c2 { color: #0369a1; } .lib-chip .c3 { color: #b45309; }
.lib-chip--bad { background: #fff1f2; color: #be123c; box-shadow: inset 0 0 0 1px #fecdd3; }
.lib-chip--bad .lib-i { color: #be123c; }

/* sayı makarası: 87 → 88 (rakam yukarı döner) */
.lib-roll { display: inline-block; height: 14px; overflow: hidden; vertical-align: top; }
.lib-roll > span { display: block; transition: translate .5s var(--lib-spring) .82s; }
.lib-roll i { display: block; height: 14px; font-style: normal; line-height: 14px; }
.lib-pn__h .lib-roll { height: 18px; vertical-align: top; }
.lib-pn__h .lib-roll i { height: 18px; line-height: 18px; }
.lib.s4 .lib-roll > span { translate: 0 -14px; }
.lib.s4 .lib-pn__h .lib-roll > span { translate: 0 -18px; }

/* başarı şeridi: sayfa yeniden açılınca bandın altında belirir, altındakileri iter */
.lib-flw { flex: none; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ui-ease); }
.lib-flw__in { min-height: 0; overflow: hidden; }
.lib-flash { display: flex; align-items: center; height: 30px; margin-top: 8px; padding: 0 12px; border-radius: 10px; background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0;
  font-size: 11.5px; font-weight: 800; line-height: 16px; color: #065f46; white-space: nowrap; opacity: 0; transition: opacity .3s var(--ui-ease); }
.lib.s4 .lib-flw { grid-template-rows: 1fr; transition-delay: .72s; }
.lib.s4 .lib-flash { opacity: 1; transition-delay: .85s; }

/* iki panel */
.lib-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.lib-pn { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 11px 12px 12px; border-radius: 14px; background: #fff; overflow: hidden;
  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); }
.lib-pn__h { flex: none; display: flex; align-items: center; gap: 6px; height: 18px; }
.lib-pn__h b { font-size: 13px; font-weight: 800; line-height: 18px; letter-spacing: -.01em; color: #18181b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lib-pn__h .lib-i { width: 16px; height: 16px; }
.lib-ok { color: #10b981; } .lib-nv { color: var(--navy-soft); }

/* Ödünç Ver formu */
.lib-note { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; line-height: 13px; color: #71717a; text-wrap: pretty; }
.lib-srow { display: flex; gap: 6px; margin-top: 8px; }
.lib-in { position: relative; flex: 1; min-width: 0; display: grid; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; background: #fff; font-size: 11.5px; font-weight: 600; color: #18181b;
  box-shadow: inset 0 0 0 1px #d4d4d8, inset 0 1px 2px rgba(16, 37, 64, .04); transition: box-shadow .3s var(--ui-ease); }
.lib-in > * { grid-area: 1 / 1; min-width: 0; white-space: nowrap; transition: opacity .2s var(--ui-ease); }
.lib-ph { color: #a1a1aa; font-weight: 500; overflow: hidden; }
.lib-q0 { font-size: 11px; letter-spacing: -.01em; }
.lib-typed { display: flex; align-items: center; opacity: 0; }
.lib-typed i { display: inline-block; max-width: 0; overflow: hidden; font-style: normal; transition: max-width 0s linear calc(.18s + var(--k) * 95ms); }
.lib-caret { flex: none; width: 1.5px; height: 14px; margin-left: 1px; border-radius: 1px; background: var(--navy-soft); }
.lib-in--q::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--navy-soft), 0 0 0 3px rgba(29, 79, 134, .14); opacity: 0; pointer-events: none; }
@keyframes lib-focus { 0% { opacity: 0; } 12%, 76% { opacity: 1; } 100% { opacity: 0; } }
.lib-sbtn { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: #3f3f46;
  box-shadow: inset 0 0 0 1px #d4d4d8, 0 1px 1px rgba(16, 37, 64, .04); }
.lib-sbtn .lib-hit { left: 17px; top: 17px; }
.lib-mch { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ui-ease) .55s; }
.lib-mch__in { min-height: 0; overflow: hidden; }
.lib-mc { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 24px; margin-top: 6px; padding: 0 10px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; color: #18181b; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #e4e4e7, 0 1px 2px rgba(16, 37, 64, .05); opacity: 0; scale: .9; transition: opacity .25s var(--ui-ease) .5s, scale .4s var(--lib-spring) .5s; }
.lib-mc small { font-size: 10px; font-weight: 600; color: #71717a; }
.lib-mc .lib-hit { left: 38px; top: 15px; }
.lib-mem { margin-top: 7px; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; background: #f4f4f5; font-size: 11.5px; font-weight: 700; line-height: 16px; color: #27272a;
  box-shadow: inset 0 0 0 1px #e4e4e7; transition: background-color .3s var(--ui-ease) .6s, box-shadow .3s var(--ui-ease) .6s; }
.lib-mem > * { display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: opacity .25s var(--ui-ease) .62s, translate .35s var(--ui-ease) .62s; }
.lib-mem1 { opacity: 0; translate: 0 4px; color: #065f46; }
.lib-mem1 .lib-i { width: 14px; height: 14px; color: #059669; }
.lib-lbl { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 700; line-height: 14px; color: #52525b; }
.lib-in--bc { flex: none; margin-top: 4px; height: 32px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: 0; }
.lib-bcv { opacity: 0; }
.lib-bcv span { display: inline-block; width: 0; overflow: hidden; vertical-align: top; transition: width .32s steps(24, jump-end) 1.18s; }
.lib-go { position: relative; flex: none; display: grid; place-items: center; height: 32px; margin-top: 8px; border-radius: 8px; background: linear-gradient(180deg, #058a63, var(--lib-ok)); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: -.005em; white-space: nowrap; opacity: .4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(4, 120, 87, .25); transition: opacity .3s var(--ui-ease) .66s; }
.lib-go .lib-hit { left: 62%; top: 20px; }

/* Aktif Ödünçler */
/* kap 6 px sola açılır (satırlar hizada kalır): seçili satır halkası kesilmeden görünür */
.lib-lv { position: relative; flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); margin: 8px 0 0 -6px; padding: 0 9px 0 6px; overflow: hidden; }
.lib-blk { grid-area: 1 / 1; display: block; min-width: 0; transition: opacity .4s var(--ui-ease) var(--lib-ld), translate .75s cubic-bezier(.45, 0, .2, 1) var(--lib-ld); }
.lib-blk--a { align-self: start; }
.lib-blk--b { align-self: end; opacity: 0; translate: 0 45%; }
.lib-ln { position: relative; display: flex; align-items: center; gap: 8px; min-height: 42px; margin-top: 5px; padding: 6px 7px 6px 10px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px #e4e4e7; }
.lib-blk--a .lib-ln:first-child { margin-top: 0; }
.lib-ln--late { background: #fef7f7; box-shadow: inset 0 0 0 1px #fecaca; }
.lib-ln__t { flex: 1; min-width: 0; line-height: 14px; }
.lib-ln__t b { display: block; font-size: 11.5px; font-weight: 700; color: #18181b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-ln__t small { display: block; margin-top: 1px; font-size: 10px; font-weight: 500; line-height: 13px; color: #71717a; font-variant-numeric: tabular-nums; }
.lib-ln__t small span { white-space: nowrap; }
.lib-ln__t em { font-style: normal; font-weight: 800; color: #b91c1c; }
.lib-ln__a { flex: none; display: flex; align-items: center; gap: 2px; }
.lib-ib { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #52525b; }
.lib-ib .lib-i { width: 14px; height: 14px; }
.lib-ib--w { color: #b45309; }
.lib-iade { display: grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: linear-gradient(180deg, var(--navy-soft), var(--navy)); color: #fff; font-size: 10.5px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(16, 37, 64, .2); }
.lib-ln--new { transition: background-color .4s var(--ui-ease) calc(var(--lib-ld) + .8s); }
.lib-ln--new::after { content: ""; position: absolute; inset: -3px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(29, 79, 134, .5), 0 6px 16px -8px rgba(20, 61, 107, .55); opacity: 0; scale: 1.015; pointer-events: none;
  transition: opacity .35s var(--ui-ease) calc(var(--lib-ld) + .8s), scale .5s var(--lib-spring) calc(var(--lib-ld) + .8s); }
.lib-thumb { position: absolute; right: 1px; top: 2px; width: 4px; height: 40px; border-radius: 2px; background: rgba(16, 37, 64, .26); transition: top .75s cubic-bezier(.45, 0, .2, 1) var(--lib-ld); }

/* ── barkod okutma çizimi: kitap + el okuyucusu ── */
.lib-scan { position: absolute; z-index: 9; left: 300px; top: 232px; width: 230px; height: 180px; pointer-events: none;
  opacity: 0; translate: 46px 26px; rotate: 4deg; transition: opacity .3s var(--ui-ease), translate .45s var(--ui-ease), rotate .45s var(--ui-ease); }
.lib-bk { position: absolute; left: 0; top: 2px; width: 128px; height: 172px; rotate: -5deg; }
.lib-bk__pg { position: absolute; left: 6px; top: 5px; right: -5px; bottom: -5px; border-radius: 3px 6px 6px 3px;
  background: repeating-linear-gradient(90deg, #f6efe0 0 2px, #e9dfc8 2px 3px); box-shadow: 0 1px 0 #d9ccb0, 0 20px 30px -14px rgba(11, 36, 64, .55), 0 4px 8px -4px rgba(11, 36, 64, .35); }
.lib-bk__cv { position: absolute; inset: 0; overflow: hidden; border-radius: 3px 6px 6px 3px;
  background: radial-gradient(120% 70% at 80% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), linear-gradient(165deg, #2f7262 0%, #215a4c 55%, #18453a 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .18); }
.lib-bk__cv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 11px; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .06) 70%, rgba(255, 255, 255, .14)); }
.lib-bk__fr { position: absolute; left: 17px; top: 9px; right: 8px; bottom: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(246, 230, 190, .55), inset 0 0 0 3px rgba(246, 230, 190, 0), inset 0 0 0 4px rgba(246, 230, 190, .3); }
.lib-bk__tag { position: absolute; right: 13px; top: 14px; height: 15px; padding: 0 4px; border-radius: 3px; background: #fffaf0; color: #1c3a33;
  font: 700 10px/15px ui-monospace, "SFMono-Regular", Consolas, monospace; box-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.lib-bk__ti { position: absolute; left: 24px; top: 38px; right: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 700; line-height: 18px; letter-spacing: .01em; color: #f6e6be; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.lib-bk__au { position: absolute; left: 24px; top: 80px; font-family: Georgia, "Times New Roman", serif; font-size: 11px; font-style: italic; font-weight: 400; letter-spacing: .01em; line-height: 13px; color: rgba(246, 230, 190, .86); }
.lib-bk__bc { position: absolute; left: 22px; right: 12px; bottom: 15px; height: 34px; padding: 6px 7px; border-radius: 3px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.lib-bk__bc svg { width: 100%; height: 22px; fill: #111827; }
.lib-laser { position: absolute; left: 2px; right: 2px; top: 16px; height: 2px; border-radius: 2px; background: #ff3b30; box-shadow: 0 0 6px 1px rgba(255, 59, 48, .75); opacity: 0; }
.lib-beam { position: absolute; inset: 0; width: 230px; height: 180px; opacity: 0; }
.lib-gun { position: absolute; left: 140px; top: 40px; width: 96px; height: 112px; rotate: -18deg; transform-origin: 30% 30%; filter: drop-shadow(0 10px 12px rgba(11, 36, 64, .4)); }
.lib-led { fill: #334155; transition: fill .2s var(--ui-ease); }
@keyframes lib-beam { 0% { opacity: 0; } 8% { opacity: 1; } 14% { opacity: .55; } 20%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lib-sweep { 0% { opacity: 0; translate: 0 -9px; } 10% { opacity: 1; } 50% { translate: 0 8px; } 90% { opacity: 1; translate: 0 -2px; } 100% { opacity: 0; translate: 0 0; } }

/* ── velinin telefonu ── */
.lib-tel { position: absolute; z-index: 12; top: 34px; left: 22px; width: 244px; height: 436px; border-radius: 34px; overflow: hidden; background: #f5f6fb;
  box-shadow: 0 0 0 6px #0b1a2e, 0 0 0 7px #2b3b52, 0 30px 60px -18px rgba(11, 36, 64, .6), 0 12px 24px -12px rgba(11, 36, 64, .35);
  opacity: 0; translate: -26px 40px; transition: opacity .35s var(--ui-ease) .1s, translate .75s var(--lib-spring) .1s; }
.lib-sb { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 2px 18px 0 22px; color: #0b1526; }
.lib-sb > b { font-size: 10.5px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lib-isl { position: absolute; left: 50%; top: 7px; width: 64px; height: 18px; margin-left: -32px; border-radius: 999px; background: #05070b; }
.lib-sbi { display: flex; align-items: center; gap: 3px; }
.lib-sbi .lib-i { width: 12px; height: 12px; stroke-width: 2.4; }
.lib-sbi .lib-bat { width: 17px; height: 13px; }
.lib-home { position: absolute; z-index: 5; left: 50%; bottom: 5px; width: 84px; height: 4px; margin-left: -42px; border-radius: 4px; background: #111827; }
.lib-ah { position: absolute; top: 28px; left: 0; right: 0; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.lib-ah .lib-ah__bk { width: 17px; height: 17px; color: #111827; stroke-width: 2.2; }
.lib svg.lib-ah__lg { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, 0 2px 5px -1px rgba(16, 37, 64, .4); }
.lib-ah__sp { flex: 1; }
.lib-ah__bell { position: relative; display: grid; place-items: center; width: 26px; height: 26px; color: #27303f; }
.lib-ah__bell .lib-i { width: 16px; height: 16px; }
.lib-ah__bell::after { content: ""; position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #e0352b; box-shadow: 0 0 0 1.5px #f5f6fb; }
.lib-ah__av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy-soft); font-size: 12px; font-weight: 800; box-shadow: 0 0 0 1px var(--ui-line-2), 0 1px 2px rgba(16, 37, 64, .06); }
.lib-kids { position: absolute; top: 72px; left: 12px; display: flex; gap: 6px; }
.lib-kid { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 3px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 800; color: #1f2937; box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05); }
.lib-kid i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--navy-soft); }
.lib-kid--on { background: var(--navy-soft); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 4px 10px -6px rgba(16, 37, 64, .8); }
.lib-kid--on i { background: rgba(255, 255, 255, .2); color: #fff; }
.lib-pb { position: absolute; top: 104px; left: 0; right: 0; bottom: 54px; padding: 0 12px; overflow: hidden; }
.lib-pb > * { opacity: 0; translate: 0 8px; transition: opacity .3s var(--ui-ease) calc(.4s + var(--i) * 85ms), translate .5s var(--lib-spring) calc(.4s + var(--i) * 85ms); }
.lib-pt b { display: block; font-size: 16px; font-weight: 800; line-height: 19px; letter-spacing: -.015em; color: #0f172a; }
.lib-pt small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; line-height: 14px; color: var(--ui-muted); }
.lib-pst { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.lib-st { display: block; min-width: 0; padding: 6px 7px 7px; border-radius: 13px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 37, 64, .07), 0 1px 2px rgba(16, 37, 64, .05), inset 0 1px 0 rgba(255, 255, 255, .6); }
.lib-st__i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; }
.lib-st__i .lib-i { width: 13px; height: 13px; }
.lib-st__i--n { background: var(--ui-primary-soft); color: var(--navy-soft); }
.lib-st__i--g { background: #dcfce7; color: #047857; }
.lib-st b { display: block; margin-top: 4px; font-size: 16px; font-weight: 800; line-height: 19px; letter-spacing: -.02em; color: #0f172a; font-variant-numeric: tabular-nums; }
.lib-st small { display: block; margin-top: 1px; font-size: 10px; font-weight: 700; line-height: 12px; color: var(--ui-muted); white-space: nowrap; }
.lib-sec { display: block; margin-top: 9px; font-size: 13px; font-weight: 800; line-height: 16px; color: #0f172a; }
.lib-sec--r { display: flex; align-items: baseline; justify-content: space-between; }
.lib-sec--r b { font-weight: 800; }
.lib-sec--r small { font-size: 10px; font-weight: 700; color: var(--ui-muted); }
.lib-pl { margin-top: 5px; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(16, 37, 64, .07), 0 1px 2px rgba(16, 37, 64, .05); }
.lib-pli { position: relative; display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 11px 6px 9px; }
.lib-pli__i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ui-primary-soft); color: var(--navy-soft); }
.lib-pli__i--g { background: #dcfce7; color: #047857; }
.lib-pli__i .lib-i { width: 13px; height: 13px; }
.lib-pli__t { flex: 1; min-width: 0; line-height: 13px; }
.lib-pli__t b { display: block; font-size: 11px; font-weight: 800; line-height: 14px; color: #111827; }
.lib-pli__t small { display: block; margin-top: 1px; font-size: 10px; font-weight: 600; color: var(--ui-muted); letter-spacing: -.005em; }
.lib-pli em { flex: none; font-style: normal; font-size: 11px; font-weight: 800; color: #0f172a; white-space: nowrap; }
.lib-pli--new::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 79, 134, .1), rgba(29, 79, 134, 0) 80%); opacity: 0; }
.lib-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 54px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 6px 0; background: #fff;
  box-shadow: inset 0 1px 0 rgba(16, 37, 64, .08), 0 -8px 16px -12px rgba(16, 37, 64, .3); }
.lib-nav > span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; line-height: 12px; letter-spacing: -.02em; color: #374151; white-space: nowrap; }
.lib-nav .lib-i { width: 16px; height: 16px; stroke-width: 1.9; }

/* ══ ADIMLAR ══ */
/* s1: «Can K» yazılır, arama düğmesine basılır → sonuç yongası */
.lib.s1:not(.s2) .lib-q0 { opacity: 0; transition-delay: .12s; }
.lib.s1:not(.s2) .lib-q1 { opacity: 1; transition-delay: .12s; }
.lib-q0, .lib-q1 { transition-delay: .55s; }
.lib.s1 .lib-typed i { max-width: 1em; }
/* odak yazarken; Ara'ya basılınca (.82 sn) sayfa yeniden açılır → halka ve imleç söner, «Can K» alanda kalır */
.lib.s1:not(.s2) .lib-in--q::after { animation: lib-focus 1.15s var(--ui-ease) both; }
.lib.s1 .lib-caret { opacity: 0; transition: opacity .15s var(--ui-ease) .88s; }
.lib.s1:not(.s2) .lib-sbtn { animation: lib-push .3s var(--ui-ease) .82s; }
.lib.s1:not(.s2) .lib-hit--q .ui-cur { animation: lib-cur .9s var(--ui-ease) .4s both; }
.lib.s1:not(.s2) .lib-hit--q .lib-rip { animation: lib-rip .55s ease-out .82s both; }
.lib.s1:not(.s2) .lib-mch { grid-template-rows: 1fr; transition-delay: 1.05s; }
.lib.s1:not(.s2) .lib-mc { opacity: 1; scale: 1; transition-delay: 1.12s; }
/* s2: yongaya tıklanır → sayfa üyeyle yeniden açılır: arama boş, yonga yok, üye kutusu yeşil, düğme açık */
.lib.s2:not(.s3) .lib-hit--mc .ui-cur { animation: lib-cur-out .95s var(--ui-ease) both; }
.lib.s2:not(.s3) .lib-hit--mc .lib-rip { animation: lib-rip .55s ease-out .38s both; }
.lib.s2:not(.s3) .lib-mc { animation: lib-push .3s var(--ui-ease) .3s; }
.lib.s2:not(.s4) .lib-mem { background: #f0fdf6; box-shadow: inset 0 0 0 1px #a7f3d0; }
.lib.s2:not(.s4) .lib-mem0 { opacity: 0; translate: 0 -4px; }
.lib.s2:not(.s4) .lib-mem1 { opacity: 1; translate: 0 0; }
.lib.s2:not(.s4) .lib-go { opacity: 1; }
/* s3: kitap gelir, okuyucu ışını barkodu tarar, LED yeşil yanar, alan dolar */
.lib.s3:not(.s4) .lib-scan { opacity: 1; translate: 0 0; rotate: 0deg; }
.lib.s3:not(.s4) .lib-beam { animation: lib-beam .7s linear .62s both; }
.lib.s3:not(.s4) .lib-laser { animation: lib-sweep .7s ease-in-out .62s both; }
.lib.s3:not(.s4) .lib-led { fill: #22c55e; transition-delay: 1.12s; }
.lib.s3:not(.s4) .lib-bc0 { opacity: 0; transition-delay: 1.15s; }
.lib.s3:not(.s4) .lib-bcv { opacity: 1; transition-delay: 1.15s; }
.lib.s3 .lib-bcv span { width: 24ch; }
.lib.s3:not(.s4) .lib-in--bc { box-shadow: inset 0 0 0 1px var(--navy-soft), 0 0 0 3px rgba(29, 79, 134, .14); transition-delay: 1.12s; }
/* s4: «Ödünç Ver (14 gün)» → «Kitap ödünç verildi.»; form boşalır; Ödünçte ve Aktif Ödünçler 88 */
.lib.s4 .lib-scan { transition-duration: .25s, .35s, .35s; translate: 30px 40px; }
.lib.s4:not(.s5) .lib-go { animation: lib-push .3s var(--ui-ease) .4s; }
.lib.s4:not(.s5) .lib-hit--go .ui-cur { animation: lib-cur-out 1s var(--ui-ease) .05s both; }
.lib.s4:not(.s5) .lib-hit--go .lib-rip { animation: lib-rip .55s ease-out .45s both; }
.lib.s4 .lib-go { transition-delay: .75s; }
.lib.s4 .lib-mem { transition-delay: .75s; }
.lib.s4 .lib-mem > * { transition-delay: .78s; }
.lib.s4 .lib-bc0, .lib.s4 .lib-bcv { transition-delay: .75s; }
.lib.s4 .lib-in--bc { transition-delay: .75s; }
/* s5: liste sona kaydırılır — yeni ödünç vade sırasında sonda */
.lib.s5 .lib-blk--a { opacity: 0; translate: 0 -55%; }
.lib.s5 .lib-blk--b { opacity: 1; translate: 0 0; }
.lib.s5 .lib-thumb { top: calc(100% - 42px); }
/* yeni satır: seçili satır vurgusu (ince lacivert halka + açık ton) */
.lib.s5 .lib-ln--new { background: #f5f8fc; }
.lib.s5 .lib-ln--new::after { opacity: 1; scale: 1; }
/* s6: velinin uygulamasında Kütüphane */
.lib.s6 .lib-tel { opacity: 1; translate: 0 0; }
.lib.s6 .lib-pb > * { opacity: 1; translate: 0 0; }
.lib.s6 .lib-pli--new::before { animation: lib-glow 1.6s var(--ui-ease) 1s both; }
@keyframes lib-glow { 0% { opacity: 0; } 25%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* ══ DAR KAPLAR ══ */
@container (max-width: 660px) {
  .lib-band__d { display: none; }
}
/* 601–630: son sekme (Ayarlar) kenarda kesilir → kaydırılabilir şerit gibi sağda solma */
@container (max-width: 630px) {
  .lib-tabs::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 22px; pointer-events: none; background: linear-gradient(270deg, #fff 20%, rgba(255, 255, 255, 0)); }
}
/* tek sütun: iki panel aynı hücrede; s5'te sayfa listeye kayar (form yukarı çıkar, liste aşağıdan gelir) */
@container (max-width: 600px) {
  .lib { --lib-ld: .62s; }
  .lib-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .lib-cols > .lib-pn { grid-area: 1 / 1; transition: opacity .35s var(--ui-ease), translate .55s cubic-bezier(.45, 0, .2, 1); }
  .lib-act { opacity: 0; translate: 0 70%; }
  .lib.s5 .lib-ver { opacity: 0; translate: 0 -70%; }
  .lib.s5 .lib-act { opacity: 1; translate: 0 0; }
  .lib-tabs__r { translate: max(-190px, calc(100cqw - 641px)) 0; } /* seçili sekme görünür; Ayarlar'ın sağında boşluk açılmaz */
  .lib-tabs::before, .lib-tabs::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 22px; pointer-events: none; }
  .lib-tabs::before { left: 0; background: linear-gradient(90deg, #fff 20%, rgba(255, 255, 255, 0)); }
  .lib-tabs::after { right: 0; background: linear-gradient(270deg, #fff 20%, rgba(255, 255, 255, 0)); }
  .lib-chip .lib-i { display: none; }
  .lib-scan { left: auto; right: 22px; top: 40px; }
  .lib-tel { left: 50%; margin-left: -122px; }
}
/* 443–600: şerit sona kaymış (Ayarlar tam görünür) → sağda solma yok */
@container (min-width: 443px) and (max-width: 600px) {
  .lib-tabs::after { content: none; }
}
@container (max-width: 470px) {
  .lib-top { gap: 6px; padding: 0 10px; }
  .lib-year { display: none; }
  .lib-view { padding: 8px 10px 10px; }
  .lib-band { height: 44px; padding: 0 10px; gap: 9px; }
  .lib-band__ic { width: 28px; height: 28px; border-radius: 8px; }
  .lib-band__h b { font-size: 14.5px; }
  .lib-tabs { padding: 7px 8px; }
  .lib-tabs__r { translate: max(-190px, calc(100cqw - 633px)) 0; } /* kart 22 px dar, iç boşluk 8 */
  .lib-sum { gap: 4px; padding: 0 8px 8px; }
  .lib-chip { gap: 4px; padding: 0 7px; font-size: 10.5px; }
  .lib-pn { padding: 10px 10px 11px; }
}
/* 320–340 (360 px Android): dört çip kart kenarında kesilmesin */
@container (max-width: 340px) {
  .lib-sum { gap: 3px; }
  .lib-chip { padding: 0 5px; }
}
