/* =====================================================================
   İstifadəçi səhifəsi: şəkil (3x4), xülasə, valideyn əlavəsi
   (app.css böyük olduğu üçün yeni stillər bu kiçik faylda saxlanılır)
   ===================================================================== */
.user-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: start; margin-bottom: 1.2rem; }
.user-photo-box { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.user-photo { position: relative; width: 120px; height: 160px; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--surface-2); border: 2px dashed var(--border-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; }
.user-photo span { font: 800 2rem var(--font-head); color: var(--muted); }
.user-photo small { font-size: .7rem; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.user-photo.has-photo { border: 2px solid var(--gold); }
.user-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-photo-edit { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-style: normal; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.user-photo:hover .user-photo-edit { background: var(--gold); color: var(--navy); }
.user-hero-main { min-width: 0; }
.user-hero-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.user-hero-head h2 { font: 800 1.35rem var(--font-head); margin: 0; }
.user-hero-main > p { margin: .3rem 0 .9rem; }
.user-stats { display: flex; flex-wrap: wrap; gap: .6rem; }
.user-stat { --tone: var(--primary); display: flex; flex-direction: column; min-width: 104px; padding: .6rem .8rem; border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent); }
.user-stat.tone-teal { --tone: #0f766e; } .user-stat.tone-blue { --tone: #2563eb; } .user-stat.tone-rose { --tone: #e11d48; } .user-stat.tone-amber { --tone: #d97706; }
.user-stat-icon { color: var(--tone); line-height: 0; margin-bottom: .2rem; }
.user-stat b { font: 800 1.15rem var(--font-head); color: var(--text); white-space: nowrap; }
.user-stat small { color: var(--muted); font-size: .74rem; }
.user-hero-actions { display: flex; flex-direction: column; gap: .5rem; }
.avatar.has-photo { padding: 0; overflow: hidden; background: var(--surface-2); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Şagird → valideynlər */
.linked-row { display: flex; align-items: center; gap: .4rem; }
.linked-row .linked-item { flex: 1; min-width: 0; }
.parent-add { margin-top: .9rem; border: 1px dashed var(--border-strong); border-radius: 12px; padding: .2rem .9rem; }
.parent-add[open] { padding-bottom: .9rem; }
.parent-add summary { cursor: pointer; font-weight: 700; color: var(--primary); padding: .55rem 0; list-style: none; display: flex; align-items: center; gap: .4rem; }
.parent-add summary::-webkit-details-marker { display: none; }
[data-theme="dark"] .parent-add summary { color: var(--gold); }
.parent-add-body { display: flex; flex-direction: column; gap: .7rem; }
.parent-add-body .btn { align-self: flex-start; }
.parent-or { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .8rem; }
.parent-or::before, .parent-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.parent-link { display: flex; gap: .5rem; align-items: center; }
.parent-link .input-icon { flex: 1; }

/* Valideyn → övlad seçimi: sinif süzgəci */
.class-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.class-filter .chip { cursor: pointer; border: 1px solid var(--border); background: var(--surface); }
.class-filter .chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.class-filter .chip b { margin-left: .2rem; }
.pick-item.is-filtered { display: none !important; }

/* Giriş kartı: paylaşma */
.cred-share { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }

/* Tabel və arayışda şəkil */
.rc-info.has-photo { grid-template-columns: 22mm 1.6fr .6fr 1.2fr .8fr; }
.rc-info.has-photo .rc-photo { grid-row: span 1; width: 22mm; height: 29mm; object-fit: cover; border-radius: 4px; border: 1px solid #dfe2ee; }
.cert-page.has-photo { position: relative; }
.cert-photo { position: absolute; right: 14mm; top: 48mm; width: 30mm; height: 40mm; object-fit: cover; border: 1px solid #ccd1e3; border-radius: 3px; }
.cert-page.has-photo .cert-text:first-of-type { padding-right: 36mm; }

@media (max-width: 820px) {
  .user-hero { grid-template-columns: auto 1fr; }
  .user-hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .rc-info.has-photo { grid-template-columns: 22mm 1fr 1fr; }
}
@media (max-width: 560px) {
  .user-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .user-hero-head, .user-stats { justify-content: center; }
  .user-hero-actions { justify-content: center; }
  .parent-link { flex-direction: column; align-items: stretch; }
}
@media print {
  .cred-share { display: none !important; }
}

[hidden] { display: none !important; }

/* =====================================================================
   Kömək (FAQ)
   ===================================================================== */
.faq-hero { display: grid; gap: 1.1rem; padding: 1.8rem 1.6rem; margin-bottom: 1.1rem; border-radius: 18px; color: #fff;
  background: radial-gradient(circle at 85% 0%, #1a2275 0%, #0e1559 45%, #080d3d 100%); border-bottom: 3px solid var(--gold); }
.faq-hero h1 { font: 800 1.6rem var(--font-head); margin: 0 0 .3rem; color: #fff; }
.faq-hero p { margin: 0; color: rgba(255,255,255,.75); }
.faq-search { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 14px; padding: 0 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.faq-search .icon { color: #6c7294; flex-shrink: 0; }
.faq-search input { flex: 1; border: 0 !important; outline: 0; height: 52px; font-size: 1rem; background: transparent !important; color: #11163d; box-shadow: none !important; padding: 0; }
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.faq-cat { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: .86rem; text-decoration: none; }
.faq-cat:hover { border-color: var(--gold); }
.faq-cat b { font-size: .72rem; background: var(--surface-3); color: var(--muted); border-radius: 999px; padding: .05rem .45rem; }
.faq-list { display: flex; flex-direction: column; gap: 1.4rem; }
.faq-section { scroll-margin-top: 80px; }
.faq-section h2 { display: flex; align-items: center; gap: .6rem; font: 800 1.1rem var(--font-head); margin: 0 0 .7rem; }
.faq-section h2 .tag { margin-left: 0; }
.faq-sec-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--warn); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: .5rem; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--gold) 60%, var(--border)); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1; }
.faq-item summary i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-style: normal; transition: transform .2s, background .2s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); background: var(--gold); color: var(--navy); }
.faq-answer { padding: 0 1.1rem 1.05rem 1.1rem; color: var(--text-2); line-height: 1.65; font-size: .94rem; }
.faq-answer ol, .faq-answer ul { margin: .4rem 0; padding-left: 1.3rem; }
.faq-answer li { margin: .2rem 0; }
.faq-answer b { color: var(--text); }
.faq-contact { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.faq-contact > .icon { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.faq-contact > div { flex: 1; }
.faq-contact p { margin: .15rem 0 0; }
@media (max-width: 560px) {
  .faq-hero { padding: 1.3rem 1.1rem; }
  .faq-hero h1 { font-size: 1.3rem; }
  .faq-contact { flex-direction: column; text-align: center; }
}

/* =====================================================================
   İdarə paneli: canlı saat və «Kim onlayndır»
   ===================================================================== */
.live-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; margin-left: auto; position: relative; z-index: 1; }
.live-clock b { font: 800 2rem var(--font-head); letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
.live-clock small { color: var(--gold-2); font-weight: 600; font-size: .8rem; margin-top: .2rem; }
.welcome:has(.live-clock) { flex-wrap: wrap; }
.online-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.online-big { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; }
.online-big b { font: 800 1.6rem var(--font-head); }
.online-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); animation: onl 2s infinite; }
@keyframes onl { 50% { box-shadow: 0 0 0 6px rgba(22,163,74,.05); } }
.online-roles { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.online-roles .chip b { margin-left: .25rem; }
.online-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.online-list li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--border); }
.online-list li:first-child { border-top: 0; }
.online-av { position: relative; grid-row: span 2; line-height: 0; }
.online-av .online-dot { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border: 2px solid var(--surface); box-shadow: none; animation: none; }
.online-list a { font-weight: 600; color: var(--text); text-decoration: none; font-size: .9rem; }
.online-list small { font-size: .75rem; }
.online-empty { margin: .2rem 0; }
@media (max-width: 720px) {
  .live-clock { align-items: flex-start; margin-left: 0; width: 100%; order: 2; }
  .live-clock b { font-size: 1.7rem; }
}

/* =====================================================================
   Təhlükəsizlik mərkəzi
   ===================================================================== */
.sec-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.25rem; margin-bottom: 1.25rem; align-items: stretch; }
.sec-top .sec-stats { margin: 0; }
.sec-score { display: flex; align-items: center; gap: 1.2rem; margin: 0; }
.sec-score h3 { margin: 0 0 .3rem; font: 800 1.1rem var(--font-head); }
.sec-score p { margin: 0; font-size: .86rem; }
.sec-ring { --c: var(--success); flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); }
.sec-ring b { font: 800 1.7rem/1 var(--font-head); color: var(--text); }
.sec-ring small { color: var(--muted); font-size: .72rem; }
.sec-score.is-mid .sec-ring { --c: var(--gold); }
.sec-score.is-low .sec-ring { --c: var(--danger); }
.sec-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.sec-checks li { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .75rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.sec-checks li div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.sec-checks li b { font-size: .92rem; }
.sec-checks li small { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.sec-mark { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.sec-mark .icon { width: 16px; height: 16px; }
.sec-checks .is-ok .sec-mark { background: var(--success-soft); color: var(--success); }
.sec-checks .is-bad { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.sec-checks .is-bad .sec-mark { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.sec-checks .is-warn { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); }
.sec-checks .is-warn .sec-mark { background: var(--accent-soft); color: var(--warn); }
.sec-checks .is-info .sec-mark { background: var(--surface-3); color: var(--muted); }
.sec-note { padding: .7rem 1.1rem 1rem; margin: 0; }
.sec-danger { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.sec-danger p { margin: 0 0 .8rem; }
.sec-admins, .sec-fails { list-style: none; margin: 0; padding: 0 1.1rem .4rem; }
.sec-admins li, .sec-fails li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.sec-admins li:first-child, .sec-fails li:first-child { border-top: 0; }
.sec-admins li > div { display: flex; flex-direction: column; min-width: 0; }
.sec-admins a { color: var(--text); text-decoration: none; }
.sec-admins small { font-size: .76rem; overflow-wrap: anywhere; }
.sec-admins li.is-muted { opacity: .55; }
.sec-fails li b { font-size: .86rem; overflow-wrap: anywhere; }
.sec-fails li small { font-size: .75rem; white-space: nowrap; }
.tag.tag-ok { background: var(--success-soft); color: var(--success); }
@media (max-width: 900px) { .sec-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sec-score { flex-direction: column; text-align: center; } }

/* =====================================================================
   Jurnal nəzarəti: həftəlik monitorinq, kilid müraciətləri
   ===================================================================== */
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: .3rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; }
.jc-weeknav { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: .2rem 0 1rem; }
.jc-weeknav strong { font: 800 1.05rem var(--font-head); }
.jc-weeknav .jc-next .icon { transform: rotate(180deg); }
.jc-rule { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; }
.jc-stat.is-good { --tone: var(--success); } .jc-stat.is-mid { --tone: #d97706; } .jc-stat.is-low { --tone: var(--danger); }
.jc-list { list-style: none; margin: 0; padding: 0; }
.jc-list > li { --c: var(--muted); border-top: 1px solid var(--border); }
.jc-list > li:first-child { border-top: 0; }
.jc-list > li.is-good { --c: var(--success); } .jc-list > li.is-mid { --c: #d97706; } .jc-list > li.is-low { --c: var(--danger); }
.jc-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 28px minmax(0, 1fr) 140px 52px; align-items: center; gap: .7rem; padding: .7rem 1.1rem; }
.jc-list summary::-webkit-details-marker { display: none; }
.jc-list summary:hover { background: var(--surface-2); }
.jc-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; background: var(--surface-3); color: var(--muted); }
.jc-who { display: flex; flex-direction: column; min-width: 0; }
.jc-who b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-who small { font-size: .76rem; }
.jc-c-late, .jc-c-no_topic { color: #b45309; } .jc-c-missing { color: var(--danger); font-weight: 600; } .jc-c-pending { color: var(--info); }
.jc-bar { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.jc-bar i { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.jc-pct { font: 800 1rem var(--font-head); color: var(--c); text-align: right; }
.jc-items { list-style: none; margin: 0; padding: 0 1.1rem .8rem 3.3rem; display: flex; flex-direction: column; gap: .35rem; }
.jc-items li { display: flex; align-items: center; gap: .55rem; font-size: .85rem; }
.jc-items li > span:nth-child(2) { flex: 1; min-width: 0; }
.jc-st { display: inline-block; flex-shrink: 0; padding: .12rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.jc-st-ok { background: var(--success-soft); color: var(--success); }
.jc-st-late, .jc-st-no_topic { background: var(--accent-soft); color: var(--warn); }
.jc-st-missing { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.jc-st-pending { background: color-mix(in srgb, var(--info) 13%, transparent); color: var(--info); }
.jc-perfect { display: flex; align-items: center; gap: .4rem; margin: 0; padding: 0 1.1rem .9rem 3.3rem; color: var(--success); font-size: .86rem; font-weight: 600; }
.jc-preview summary { cursor: pointer; font-size: .85rem; color: var(--primary); display: inline-flex; align-items: center; gap: .3rem; }
[data-theme="dark"] .jc-preview summary { color: var(--gold); }
.jc-preview pre { white-space: pre-wrap; font: .8rem/1.5 var(--font); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; max-height: 320px; overflow: auto; margin: .5rem 0 0; }
.jc-how { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .85rem; }
.jc-req { list-style: none; margin: 0; padding: 0; }
.jc-req li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.jc-req li:first-child { border-top: 0; }
.jc-req li.is-pending { background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.jc-req-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.jc-req-main q { font-style: italic; color: var(--text-2); font-size: .88rem; }
.jc-req-main small { font-size: .76rem; }
.jc-req-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.jc-locked { border-color: color-mix(in srgb, var(--gold) 50%, var(--border)); }
.jc-locked-head { display: flex; gap: .8rem; align-items: center; }
.jc-locked-head > div { display: flex; flex-direction: column; gap: .15rem; }
.jc-lock-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--warn); flex-shrink: 0; }
.jc-request { display: flex; gap: .5rem; margin-top: .9rem; }
.jc-request input { flex: 1; min-width: 0; }
.jc-wait { display: flex; align-items: center; gap: .4rem; margin: .8rem 0 0; color: var(--info); font-weight: 600; font-size: .88rem; }
.jc-widget { margin-bottom: 1.25rem; }
.jc-widget-head { display: flex; gap: 1rem; align-items: center; }
.jc-widget-head h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .25rem; font: 800 1.05rem var(--font-head); }
.jc-widget-head p { margin: 0 0 .15rem; }
.jc-ring { width: 72px; height: 72px; }
.jc-ring b { font-size: 1.3rem; }
.jc-widget.is-mid .sec-ring { --c: var(--gold); } .jc-widget.is-low .sec-ring { --c: var(--danger); } .jc-widget.is-none .sec-ring { --c: var(--surface-3); }
.jc-todo { padding: .9rem 0 0; }
.jc-widget .jc-perfect { padding: .8rem 0 0; }
.bubble-from { display: block; font-size: .72rem; color: var(--primary); margin-bottom: .1rem; }
[data-theme="dark"] .bubble-from { color: var(--gold); }
@media (max-width: 640px) {
  .jc-list summary { grid-template-columns: 24px minmax(0, 1fr) 46px; }
  .jc-bar { grid-column: 2 / -1; grid-row: 2; }
  .jc-items, .jc-perfect { padding-left: 1.1rem; }
  .jc-items li { flex-wrap: wrap; }
  .jc-request { flex-direction: column; }
  .jc-rule { margin-left: 0; width: 100%; }
}
.jc-locked { margin-bottom: 1.25rem; }
.jc-req-actions select { width: auto; min-width: 96px; }

/* =====================================================================
   Rəhbərlik (direktor) rolu + analitika paneli
   ===================================================================== */
.avatar-director { background: linear-gradient(135deg, #b8860b, #fab416); color: #0e1559; }
.chip-director { background: color-mix(in srgb, #fab416 22%, transparent); color: #8a5a00; border-color: transparent; }
[data-theme="dark"] .chip-director { color: var(--gold); }
.role-picker:has(.role-director) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .role-picker:has(.role-director) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.an-legend { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; font-size: .74rem; color: var(--muted); }
.an-legend .an-c { width: 11px; height: 11px; margin-left: .3rem; }
.an-table { --n: 5; }
.an-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 110px minmax(0, 1.6fr); gap: .9rem; align-items: center; padding: .6rem 1.1rem; }
.an-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--border); }
.an-row-wrap { --c: var(--muted); border-bottom: 1px solid var(--border); }
.an-row-wrap:last-child { border-bottom: 0; }
.an-row-wrap.is-good { --c: var(--success); } .an-row-wrap.is-mid { --c: #d97706; } .an-row-wrap.is-low { --c: var(--danger); }
.an-row-wrap.is-low > summary { background: color-mix(in srgb, var(--danger) 4%, transparent); }
.an-row-wrap > summary { list-style: none; cursor: pointer; }
.an-row-wrap > summary::-webkit-details-marker { display: none; }
.an-row-wrap > summary:hover { background: var(--surface-2); }
.an-name { display: flex; flex-direction: column; min-width: 0; }
.an-name b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-name small { font-size: .74rem; color: var(--muted); }
.an-tw { color: #b45309; font-weight: 600; } .an-tm { color: var(--danger); font-weight: 600; }
.an-pctcol { display: flex; flex-direction: column; gap: .25rem; }
.an-pct { font: 800 1.05rem var(--font-head); color: var(--c); }
.an-head .an-pctcol { display: block; }
.an-days { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; }
.an-days b { text-align: center; font-weight: 700; font-size: .66rem; }
.an-c { display: block; height: 22px; border-radius: 4px; background: var(--surface-3); }
.an-c.an-ok { background: #22c55e; } .an-c.an-warn { background: #fbbf24; } .an-c.an-missing { background: #ef4444; }
.an-c.an-pending { background: repeating-linear-gradient(45deg, #93c5fd, #93c5fd 3px, #dbeafe 3px, #dbeafe 6px); }
.an-c.an-none { background: var(--surface-2); border: 1px dashed var(--border); }
.an-items { padding: .2rem 1.1rem .9rem 1.1rem; }
.an-trend { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: end; height: 150px; }
.an-tbar { --c: var(--surface-3); display: flex; flex-direction: column; align-items: center; gap: .25rem; height: 100%; }
.an-tbar.is-good { --c: #22c55e; } .an-tbar.is-mid { --c: #fbbf24; } .an-tbar.is-low { --c: #ef4444; }
.an-tbar b { font-size: .74rem; }
.an-tbar span { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.an-tbar i { display: block; width: 100%; background: var(--c); border-radius: 6px; }
.an-tbar small { font-size: .68rem; color: var(--muted); }
.an-issues { list-style: none; margin: 0; padding: 0 1.1rem .6rem; }
.an-issues li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0 .5rem .6rem; border-top: 1px solid var(--border); border-left: 3px solid transparent; }
.an-issues li:first-child { border-top: 0; }
.an-issues li.an-is-red { border-left-color: #ef4444; } .an-issues li.an-is-yellow { border-left-color: #fbbf24; }
.an-issues li div { display: flex; flex-direction: column; min-width: 0; }
.an-issues b { font-size: .85rem; } .an-issues small { font-size: .75rem; color: var(--muted); }
.an-info p { margin: 0 0 .45rem; display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .an-row { grid-template-columns: minmax(0, 1fr) 70px; gap: .4rem .8rem; }
  .an-row .an-days { grid-column: 1 / -1; }
  .an-head .an-days { display: none; }
  .an-c { height: 16px; }
}
.an-info p { display: block; }
.an-info p .icon { vertical-align: -2px; margin-right: .2rem; }
@media (max-width: 720px) {
  .card-head:has(.an-legend) { flex-wrap: wrap; }
  .an-legend { width: 100%; }
}

/* =====================================================================
   Giriş: «Məni xatırla»
   ===================================================================== */
.remember-row { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; user-select: none; margin: .1rem 0 .2rem; font-weight: 600; font-size: .92rem; }
.remember-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.remember-row small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); margin-top: .1rem; }
.remember-box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border-strong); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s; margin-top: 1px; }
.remember-row input:checked + .remember-box { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .remember-row input:checked + .remember-box { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.remember-row input:focus-visible + .remember-box { box-shadow: 0 0 0 3px var(--primary-soft); }
.device-list { list-style: none; margin: 0; padding: 0; }
.device-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.device-list li:first-child { border-top: 0; }
.device-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.device-list small { font-size: .76rem; }
.device-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex-shrink: 0; }
.device-list li.is-me .device-icon { background: var(--success-soft); color: var(--success); }
#devices { margin-top: 1.25rem; }

/* =====================================================================
   Açıq səhifələr: məxfilik siyasəti, hesabın silinməsi
   ===================================================================== */
.pub-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(1rem, 4vw, 2.5rem); background: #0e1559; border-bottom: 3px solid var(--gold); }
.pub-brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.pub-brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 3px; }
.pub-brand strong { display: block; font: 800 1rem var(--font-head); }
.pub-brand small { color: var(--gold-2); font-size: .74rem; }
.pub-top .seg-lang a { color: rgba(255,255,255,.75); }
.pub-top .seg-lang a.is-active { color: #0e1559; }
.pub-main { flex: 1; padding: clamp(1.2rem, 4vw, 2.5rem) 1rem; }
.pub-doc { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.3rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.pub-narrow { max-width: 640px; }
.pub-doc h1 { font: 800 clamp(1.4rem, 3.5vw, 1.9rem) var(--font-head); margin: 0 0 .5rem; }
.pub-lead { color: var(--text-2); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1.2rem; }
.pub-toc { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.pub-toc a { font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.pub-toc a:hover { border-color: var(--gold); }
.pub-doc section { scroll-margin-top: 1rem; margin-bottom: 1.3rem; }
.pub-doc h2 { display: flex; align-items: center; gap: .55rem; font: 800 1.08rem var(--font-head); margin: 0 0 .5rem; }
.pub-doc h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--warn); font-size: .8rem; }
.pub-doc p, .pub-doc li { color: var(--text-2); line-height: 1.65; font-size: .94rem; }
.pub-doc ul { padding-left: 1.2rem; margin: .3rem 0; }
.pub-contact { background: var(--surface-2); border-radius: 14px; padding: 1rem 1.2rem; }
.pub-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0; }
.pub-box { border-radius: 14px; padding: .9rem 1rem; border: 1px solid var(--border); }
.pub-box b { display: flex; align-items: center; gap: .35rem; margin-bottom: .3rem; }
.pub-box ul { margin: 0; }
.pub-box.is-del { background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
.pub-box.is-del b { color: var(--danger); }
.pub-box.is-keep { background: var(--surface-2); }
.pub-form { margin-top: 1rem; }
.pub-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pub-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); color: var(--muted); font-size: .82rem; border-top: 1px solid var(--border); }
.pub-foot a { color: var(--text-2); }
@media (max-width: 560px) { .pub-cols { grid-template-columns: 1fr; } .pub-brand small { display: none; } }

/* =====================================================================
   Proqram görünüşü: aşağı menyu, yüklənmə xətti, təhlükəsiz zonalar
   ===================================================================== */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, #fab416, #ffd36b); transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
  transition: transform .25s ease, opacity .3s ease; box-shadow: 0 0 8px rgba(250,180,22,.6); }
.nav-progress.is-on { opacity: 1; }
.nav-progress.is-done { opacity: 0; transition: transform .2s ease, opacity .35s ease .15s; }
.bottom-nav { display: none; }
@media (max-width: 960px) {
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(14,21,89,.06); }
  .bn-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 4px 2px;
    border: 0; background: none; color: var(--muted); text-decoration: none; font: 600 .66rem var(--font); border-radius: 12px; cursor: pointer;
    -webkit-tap-highlight-color: transparent; }
  .bn-icon { position: relative; display: grid; place-items: center; width: 46px; height: 28px; border-radius: 999px; transition: background .2s, color .2s; }
  .bn-icon .icon { width: 21px; height: 21px; }
  .bn-icon em { position: absolute; top: -3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff;
    font: 700 .62rem/17px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
  .bn-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bn-item.is-active { color: var(--navy); }
  .bn-item.is-active .bn-icon { background: color-mix(in srgb, var(--gold) 28%, transparent); }
  [data-theme="dark"] .bn-item.is-active { color: var(--gold); }
  .bn-item:active .bn-icon { transform: scale(.92); }
  .app-main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar .menu-btn { display: none; }
  body.sidebar-open .bottom-nav { z-index: 30; }
  .lesson-form .save-bar, .save-bar { bottom: calc(62px + env(safe-area-inset-bottom)) !important; }
}
/* Proqram rejimi (APK / quraşdırılmış): kəsikli ekran və status zolağı */
html.is-app .topbar { padding-top: env(safe-area-inset-top); }
html.is-app body { overscroll-behavior-y: contain; }
html.is-app .app-footer { display: none; }
.profile-legal { margin: 1.4rem 0 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pub-top .seg-lang { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.pub-top .seg-lang a.is-active { background: #fff; }
.device-list .tag { align-self: flex-start; }
@media (max-width: 960px) { .topbar [data-msg-badge] { display: none; } }

/* Bildiriş ayarları */
#notify { margin-top: 1.25rem; }
.np-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.2rem; margin: .3rem 0 1rem; }
.np-item { align-items: center; }
.np-quiet { display: flex; flex-direction: column; gap: .7rem; padding: .9rem 1rem; border-radius: 14px; background: var(--surface-2); margin-bottom: 1rem; }
.np-times { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 320px; }
.np-times .field { margin: 0; }
@media (max-width: 640px) { .np-grid { grid-template-columns: 1fr; } }

/* Barmaq izi ilə giriş */
#passkeys { margin-top: 1.25rem; }
.device-icon.is-key { background: var(--accent-soft); color: var(--warn); }
.wa-login { margin-top: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.wa-btn { gap: .6rem; border: 1.5px solid var(--border-strong); }
.wa-btn .icon { width: 24px; height: 24px; color: var(--gold); }
.wa-btn.is-busy { opacity: .6; pointer-events: none; }

/* Oflayn banner, gözləyən dərslər, bildiriş */
.offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: calc(.45rem + env(safe-area-inset-top)) 1rem .45rem; background: #b45309; color: #fff; font-size: .8rem; font-weight: 600; text-align: center; }
.queue-chip { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 55; border: 0; border-radius: 999px; padding: .6rem 1rem; background: #0e1559; color: #fff; font: 600 .82rem var(--font); box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; white-space: nowrap; }
.app-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 70; background: #16a34a; color: #fff; padding: .65rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .86rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: opacity .5s, transform .5s; }
.app-toast.is-out { opacity: 0; transform: translate(-50%, 10px); }
@media (min-width: 961px) { .queue-chip, .app-toast { bottom: 1.5rem; } }

/* «Bu gün» kartı */
.today-card { margin-bottom: 1rem; }
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.today-head h3 { display: flex; align-items: center; gap: .4rem; margin: 0; font: 800 1.05rem var(--font-head); }
.today-head h3 .icon { color: var(--gold); }
.today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.today-tile { display: flex; flex-direction: column; gap: .45rem; padding: .8rem .9rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; min-width: 0; transition: border-color .2s, transform .15s; }
.today-tile:hover { border-color: var(--gold); }
.today-tile:active { transform: scale(.98); }
.today-tile.is-ok { background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.today-tile.is-ok b { color: var(--success); }
.today-tile.is-warn { background: color-mix(in srgb, var(--danger) 7%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.today-tile.is-warn b { color: var(--danger); }
.today-label { display: flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.today-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.today-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem; border-radius: 8px; background: var(--surface); border-left: 3px solid var(--c, var(--primary)); font-size: .8rem; }
.today-chip b { font: 800 .9rem var(--font-head); }
.today-text { display: flex; flex-direction: column; gap: .15rem; font-size: .86rem; }
.today-text small { color: var(--muted); font-size: .76rem; }
.today-empty { color: var(--muted); font-size: .84rem; }
@media (max-width: 640px) { .today-grid { grid-template-columns: 1fr; } .today-tile { flex-direction: row; align-items: center; justify-content: space-between; } .today-label { flex-shrink: 0; } .today-chips, .today-text { justify-content: flex-end; text-align: right; } }
.rc-tools { display: inline-flex; gap: .5rem; flex-wrap: wrap; }

/* Telefonda üst panel sadələşir: dil və mövzu istifadəçi menyusuna keçir — başlıq tam görünür */
.dropdown-mobile { display: none; }
@media (max-width: 960px) {
  .topbar .lang-btn, .topbar .topbar-actions > .theme-btn { display: none; }
  .topbar .topbar-actions > .dropdown:first-child { display: none; }
  .dropdown-mobile { display: block; border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .3rem; }
  .dropdown-mobile .dropdown-item { width: 100%; border: 0; background: none; cursor: pointer; font: inherit; text-align: left; }
  .dropdown-langs { display: flex; align-items: center; gap: .3rem; padding: .5rem .75rem; color: var(--muted); }
  .dropdown-langs a { padding: .25rem .55rem; border-radius: 8px; font-weight: 700; font-size: .8rem; color: var(--text-2); text-decoration: none; background: var(--surface-2); }
  .dropdown-langs a.is-active { background: var(--navy); color: #fff; }
  .topbar-title h1 { font-size: 1.12rem; }
}

/* =====================================================================
   PROQRAM REJİMİ (APK): yerli proqram hissi
   ===================================================================== */
/* Brend açılış ekranı — yalnız ilk açılışda */
.app-splash { display: none; }
html.show-splash .app-splash { display: flex; position: fixed; inset: 0; z-index: 10000; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  background: #fff; color: #0e1559; animation: splashOut .45s ease .85s forwards; }
html.show-splash[data-theme="dark"] .app-splash { background: #0b1020; color: #fff; }
.app-splash-logo { width: 104px; height: 104px; border-radius: 30px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px #fab416, 0 18px 40px rgba(14,21,89,.18);
  animation: splashPop .6s cubic-bezier(.2,.9,.3,1.3) both; }
.app-splash-logo img { width: 74px; height: 74px; }
.app-splash strong { font: 800 1.35rem var(--font-head); margin-top: .8rem; animation: splashUp .5s ease .15s both; }
.app-splash small { color: #b07a06; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; animation: splashUp .5s ease .25s both; }
@keyframes splashPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splashUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* Səhifələr arası yumşaq keçid (Chrome 126+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .18s ease both; }
::view-transition-new(root) { animation: vtIn .22s ease both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }
.bottom-nav { view-transition-name: bottom-nav; }
.topbar { view-transition-name: top-bar; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Brauzer əlamətləri gizlənir */
html.is-app { -webkit-tap-highlight-color: transparent; }
html.is-app .bottom-nav, html.is-app .topbar, html.is-app .btn, html.is-app .tab, html.is-app .nav-link, html.is-app .chip,
html.is-app .att-opt, html.is-app .switch, html.is-app .today-tile, html.is-app .login-link, html.is-app .remember-row { -webkit-user-select: none; user-select: none; }
html.is-app img, html.is-app a { -webkit-touch-callout: none; }
html.is-app .bn-item { min-height: 58px; }
html.is-app .bn-icon .icon { width: 23px; height: 23px; }
html.is-app .bn-label { font-size: .68rem; }

/* Giriş ekranı — proqram görünüşü */
body.login-app, html.is-app body.login-body { background: var(--surface); }
html.is-app .login-body .login-visual, html.is-app .login-body .login-footer { display: none; }
html.is-app .login-body .login-panel { min-height: 100vh; padding: calc(1rem + env(safe-area-inset-top)) 1.5rem calc(1rem + env(safe-area-inset-bottom)); }
html.is-app .login-body .login-toolbar { justify-content: flex-end; }
html.is-app .login-body .login-toolbar .seg-lang { transform: scale(.88); transform-origin: right center; opacity: .8; }
html.is-app .login-body .login-toolbar .theme-btn { display: none; }
html.is-app .login-body .login-form-wrap { justify-content: flex-start; padding-top: 1.2rem; max-width: 460px; }
html.is-app .login-body .login-mobile-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.6rem; }
html.is-app .login-body .login-mobile-brand .brand-mark { width: 78px; height: 78px; border-radius: 24px; }
html.is-app .login-body .login-mobile-brand .brand-mark img { width: 56px; height: 56px; }
html.is-app .login-body .login-mobile-brand strong { display: none; }
html.is-app .login-body .login-form-wrap h1 { font-size: 2.1rem; }
html.is-app .login-body .login-form-wrap > .muted { margin: .3rem 0 1.6rem; }
html.is-app .login-body .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.is-app .login-body .input-icon input { height: 56px; border-radius: 14px; font-size: 1rem; }
html.is-app .login-body .remember-row { display: none; }
html.is-app .login-body .btn-lg { height: 56px; border-radius: 14px; }
html.is-app .login-body .login-help { display: none; }
html.is-app .login-body .wa-login .parent-or { display: none; }

/* Giriş altında: QR və parol bərpası */
.login-links { display: flex; flex-direction: column; margin-top: 1.4rem; border-top: 1px solid var(--border); }
.login-link { display: flex; align-items: center; gap: .85rem; width: 100%; padding: 1rem .2rem; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text);
  font: 600 .95rem var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.login-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.login-link small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.login-link-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
[data-theme="dark"] .login-link-icon { color: var(--gold); }
.login-link-go { transform: rotate(-90deg); color: var(--muted); }
.login-link:active { background: var(--surface-2); }

/* QR skaner */
.qr-modal { position: fixed; inset: 0; z-index: 9000; background: #000; display: flex; align-items: center; justify-content: center; }
.qr-modal[hidden] { display: none; }
.qr-modal video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-frame { position: relative; width: min(70vw, 280px); aspect-ratio: 1; border-radius: 24px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
.qr-frame::before { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 3px solid #fab416; }
.qr-frame span { position: absolute; left: 8%; right: 8%; height: 2px; top: 10%; background: #fab416; box-shadow: 0 0 12px #fab416; animation: qrScan 1.8s ease-in-out infinite alternate; }
@keyframes qrScan { to { top: 90%; } }
.qr-hint, .qr-err { position: absolute; left: 1.5rem; right: 1.5rem; bottom: calc(14% + env(safe-area-inset-bottom)); text-align: center; color: #fff; font-weight: 600; }
.qr-err { bottom: calc(7% + env(safe-area-inset-bottom)); color: #fca5a5; }
.qr-close { position: absolute; top: calc(1rem + env(safe-area-inset-top)); right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.qr-body { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--surface); }
.qr-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.qr-card h1 { font: 800 1.7rem var(--font-head); margin: .6rem 0 0; }
.qr-card form { width: 100%; }
.qr-who { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; width: 100%; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.qr-who b { font-size: 1.1rem; } .qr-who small { color: var(--muted); }
.cred-qr { display: flex; align-items: center; gap: .7rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--border); }
.cred-qr svg { width: 92px; height: 92px; flex-shrink: 0; }
.cred-qr small { font-size: .72rem; color: var(--muted); line-height: 1.35; }
.cred-qr b { display: block; color: var(--text); font-size: .78rem; }
.fp-card { position: relative; text-align: left; align-items: stretch; }
.fp-card h1 { margin: 0; }
.fp-icon { width: 56px; height: 56px; border-radius: 16px; }
.fp-back { position: absolute; top: -2.5rem; left: 0; color: var(--text); }
.fp-form { gap: 1rem; }
.fp-form input { height: 56px; border-radius: 14px; }

/* ---------- Şifrələri toplu sıfırlama ---------- */
.bpr-step { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1.05rem; }
.bpr-step span { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: var(--gold); font-size: .85rem; font-weight: 800; flex: none; }
.bpr-form { display: grid; gap: .9rem; }
.bpr-form > .btn { justify-self: start; }
.bpr-roles { display: flex; flex-wrap: wrap; gap: .5rem; }
.bpr-chip { position: relative; cursor: pointer; }
.bpr-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bpr-chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 600; transition: .15s; }
.bpr-chip span::before { content: ""; width: .95rem; height: .95rem; border-radius: 4px; border: 1.5px solid var(--border-strong); background: var(--surface); }
.bpr-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.bpr-chip input:checked + span::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--navy); }
.bpr-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.bpr-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: .6rem; }
.bpr-row.bpr-checks { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.bpr-pick { margin-top: 1rem; overflow: hidden; }
.bpr-pick-head { padding: 1.1rem 1.25rem .4rem; }
.bpr-pick-head .bpr-step { margin-bottom: .5rem; }
.bpr-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); }
.bpr-summary b { color: var(--text); font-size: 1.15rem; }
.bpr-pick > .alert { margin: .6rem 1.25rem; }
.bpr-table { max-height: 60vh; overflow: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bpr-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); }
.bpr-table tbody tr { cursor: pointer; }
.bpr-table tbody tr:has(input:not(:checked)) { opacity: .5; }
.th-check { width: 2.6rem; text-align: center; }
.th-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--navy); cursor: pointer; }
.bpr-confirm { padding: 1.25rem; display: grid; gap: 1rem; }
.bpr-confirm .bpr-step { margin: 0; }
.bpr-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.bpr-style { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border: 1.5px solid var(--border-strong); border-radius: 14px; cursor: pointer; background: var(--surface); }
.bpr-style:has(input:checked) { border-color: var(--navy); background: var(--primary-soft); }
.bpr-style input { accent-color: var(--navy); width: 1.1rem; height: 1.1rem; }
.bpr-style b { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; letter-spacing: .04em; }
.bpr-style small { color: var(--muted); }
.bpr-notes { margin: 0; padding: .9rem 1rem; list-style: none; display: grid; gap: .5rem; border-radius: 14px; background: var(--warn-soft); color: var(--text); font-size: .92rem; }
.bpr-notes li { display: flex; gap: .55rem; align-items: flex-start; }
.bpr-notes .icon { flex: none; margin-top: .15rem; color: var(--warn); }
.bpr-word { display: grid; gap: .4rem; max-width: 420px; }
.bpr-word b { color: var(--danger); letter-spacing: .08em; }
.bpr-word input { font-weight: 700; letter-spacing: .12em; }
.bpr-confirm > .btn { justify-self: start; }
.bpr-progress { display: grid; gap: .4rem; max-width: 520px; }
.bpr-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bpr-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: inherit; transition: width .3s ease; }
.bpr-error { margin: 0; font-weight: 600; }
@media (max-width: 640px) {
  .bpr-row { grid-template-columns: 1fr; }
  .bpr-confirm > .btn, .bpr-form > .btn { justify-self: stretch; justify-content: center; }
  .bpr-table { max-height: 55vh; }
}

/* ---------- Proqramlar səhifəsi (download/) ---------- */
.dl-page { max-width: 760px; }
.dl-card { border: 1px solid var(--border); border-radius: 18px; padding: 1.2rem 1.3rem; margin: 0 0 1rem; background: var(--surface); }
.dl-win { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent); }
.dl-head { display: grid; grid-template-columns: 52px 1fr auto; gap: .9rem; align-items: center; }
.dl-head h2 { margin: 0; font: 800 1.12rem var(--font-head); }
.dl-meta { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.dl-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #0e1559; color: var(--gold); }
.dl-icon svg { width: 26px; height: 26px; }
.dl-icon-phone { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.dl-btn { white-space: nowrap; }
.dl-points { margin: 1rem 0 .4rem; padding-left: 1.15rem; display: grid; gap: .25rem; }
.dl-steps { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.dl-it { margin-top: .8rem; border-top: 1px dashed var(--border); padding-top: .7rem; }
.dl-it summary { cursor: pointer; font-weight: 600; color: var(--text-2); font-size: .92rem; }
.dl-it code { background: var(--surface-2); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: 6px; font-size: .85rem; }
@media (max-width: 560px) {
  .dl-head { grid-template-columns: 44px 1fr; }
  .dl-icon { width: 44px; height: 44px; }
  .dl-btn { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- Ekran rejimi (müəllimlər otağı televizoru: ?tv=1) ---------- */
html.tv-mode .sidebar, html.tv-mode .sidebar-backdrop, html.tv-mode .topbar, html.tv-mode .bottom-nav,
html.tv-mode .app-footer, html.tv-mode .page-actions, html.tv-mode .nav-progress { display: none !important; }
html.tv-mode .app-main { margin-left: 0 !important; }
html.tv-mode body { font-size: 1.12rem; cursor: none; }
.tv-bar { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 999px; background: #0e1559; color: #fff; font-size: .85rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-variant-numeric: tabular-nums; }
.tv-bar b { color: var(--gold); font-size: 1rem; }
.tv-bar i { width: 8px; height: 8px; border-radius: 50%; background: #35c77a; box-shadow: 0 0 0 3px rgba(53,199,122,.25); }

/* ---------- Dərs cədvəli: bir xanada bir neçə fənn (qruplar) ---------- */
.tt-cell { position: relative; display: flex; flex-direction: column; gap: 4px; }
.tt-cell:has(.tt-select + .tt-select) .tt-select { height: 34px !important; font-size: .76rem !important; }
.tt-add {
  position: absolute; top: -7px; right: -7px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font: 700 15px/1 var(--font-body, inherit); cursor: pointer;
  opacity: 0; transition: opacity .15s, background .15s;
}
.tt-cell:hover .tt-add, .tt-add:focus-visible { opacity: 1; }
.tt-add:hover { background: var(--gold); border-color: var(--gold); color: #0e1559; }
@media (hover: none) { .tt-add { opacity: .75; } }
/* Baxış cədvəllərində (müəllim, şagird) eyni saatda bir neçə dərs */
.tt-stack { display: flex; flex-direction: column; gap: 4px; }
.tt-stack .tt-lesson { min-height: 0; }
.tt-joint { font-size: .7rem; color: var(--muted); }

/* ---------- Jurnal: tam ad (soyad + ad) ---------- */
.j-name .j-fn { font-weight: 500; color: var(--text-2); }
@media (max-width: 640px) {
  .j-name { white-space: normal !important; min-width: 128px !important; max-width: 150px !important; line-height: 1.2; }
  .j-name .j-fn { display: block; font-size: .78em; margin-top: 1px; }
}

/* KSQ/BSQ və avtomatik yekun modulu */
.summative-builder{overflow:visible}.summative-add-form{display:grid;grid-template-columns:120px minmax(160px,1fr) minmax(180px,1fr) minmax(180px,1fr) auto;gap:10px;align-items:center}.summative-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.summative-tag{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}.summative-tag.is-ksq{border-color:rgba(59,130,246,.38)}.summative-tag.is-bsq{border-color:rgba(245,158,11,.45)}.summative-tag small{color:var(--muted)}.summative-tag .inline-form{display:inline-flex;margin:0}.summative-tag .icon-btn{width:24px;height:24px;border:0;border-radius:7px;background:rgba(239,68,68,.12);color:#ef4444;cursor:pointer}.summative-table{min-width:860px}.summative-table th{white-space:nowrap}.sum-head{display:flex;min-width:78px;flex-direction:column;align-items:center;gap:2px}.sum-head small{font-size:10px;letter-spacing:.08em;color:var(--muted)}.sum-head.is-ksq small{color:#60a5fa}.sum-head.is-bsq small{color:#f59e0b}.sum-score{width:72px;min-height:36px;padding:6px 7px;text-align:center;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-weight:700}.sum-score:focus{outline:2px solid rgba(59,130,246,.3);border-color:#3b82f6}.linked-score{display:inline-grid;place-items:center;min-width:52px;padding:7px 9px;border-radius:9px;background:rgba(99,102,241,.12);font-weight:800}.student-jno{display:block;margin-top:2px}.summative-table input[type=checkbox]{width:17px;height:17px;accent-color:#6366f1}.summative-table tr:has([data-student-check]:checked){background:rgba(99,102,241,.07)}.summative-table .j-grade{margin:auto}.summative-builder .card-head{margin-bottom:12px}.summative-builder .card-head h3{margin:0 0 4px}.summative-builder .card-head p{margin:0}
@media(max-width:900px){.summative-add-form{grid-template-columns:1fr 1fr}.summative-add-form .btn{grid-column:1/-1}.summative-builder{padding:14px}}
@media(max-width:560px){.summative-add-form{grid-template-columns:1fr}.summative-add-form .btn{grid-column:auto}.summative-tags{display:grid}.summative-tag{justify-content:space-between}}

/* =====================================================================
   Ümumi forma düzəlişləri (input dizayn xətaları)
   - type yazılmayan input-lar, url/date/time/search/file sahələri stilsiz qalırdı
   - textarea 46px hündürlükdə "sıxılırdı"
   - checkbox/radio brauzer rəngində idi
   ===================================================================== */
:where(input:not([type]), input[type=url], input[type=week]), input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=search] {
  width: 100%; height: 46px; padding: 0 .9rem; font: 500 .95rem var(--font); color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; transition: border-color .2s, box-shadow .2s;
}
input:not([type]):focus, input[type=url]:focus, input[type=date]:focus, input[type=time]:focus, input[type=month]:focus, input[type=week]:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.input-icon input:is([type=search], [type=url], :not([type])) { padding-left: 2.6rem; }
textarea { height: auto; min-height: 96px; line-height: 1.5; padding: .7rem .9rem; }
select { text-overflow: ellipsis; }
select[multiple] { height: auto; min-height: 120px; padding: .4rem; background-image: none; }
:where(input[type=checkbox], input[type=radio]) { accent-color: var(--primary); width: 1.05rem; height: 1.05rem; flex-shrink: 0; cursor: pointer; vertical-align: middle; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button { opacity: .5; }
:where(input[type=file]) { width: 100%; padding: .55rem; font: 500 .9rem var(--font); color: var(--text-2); background: var(--surface-2); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; }
input[type=file]::file-selector-button { margin-right: .75rem; padding: .45rem .9rem; border: 0; border-radius: 8px; background: var(--primary); color: var(--primary-ink); font: 600 .85rem var(--font); cursor: pointer; }
input[readonly] { background: var(--surface-2); }
[data-theme="dark"] input[type=date]::-webkit-calendar-picker-indicator, [data-theme="dark"] input[type=time]::-webkit-calendar-picker-indicator, [data-theme="dark"] input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(1); }
[data-theme="dark"] select option { background: var(--surface); color: var(--text); }
.field > input, .field > select, .field > textarea { min-width: 0; }
.tag-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tag-success { background: var(--success-soft); color: var(--success); border-color: transparent; }

/* =====================================================================
   PDF imtahan (KSQ/BSQ) — müəllim/admin səhifələri
   ===================================================================== */
.pe-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pe-filter { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: .75rem; align-items: center; padding: .85rem; margin-bottom: 1rem; }
.pe-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .7rem 1rem; margin-bottom: 1rem; }
.pe-bulkbar .page-actions { margin-left: auto; }
.pe-check-all { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; cursor: pointer; }
.pe-card-check { display: inline-flex; align-items: center; margin-right: .1rem; }
.quiz-card-top:has(.pe-card-check) { gap: .5rem; }
.quiz-card:has([data-pe-item]:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* Redaktor */
.pe-edit-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
.pe-section { min-width: 0; }
.pe-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pe-span-2 { grid-column: 1 / -1; }
.pe-fields .switch { min-height: 46px; }
.pe-picks { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 220px; overflow: auto; padding: .15rem; }
.pe-pick { position: relative; cursor: pointer; }
.pe-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pe-pick span { --c: var(--primary); display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .8rem; border: 1.5px solid var(--border); border-left: 4px solid var(--c);
  border-radius: 10px; background: var(--surface); font-size: .86rem; color: var(--text-2); transition: background .15s, border-color .15s; }
.pe-pick span b { color: var(--text); }
.pe-pick input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--text); }
.pe-pick input:focus-visible + span { outline: 3px solid var(--primary-soft); }
.pe-upload { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 170px; padding: 1.25rem; text-align: center;
  border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.pe-upload:hover, .pe-upload.is-drag { border-color: var(--primary); background: var(--primary-soft); }
.pe-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pe-upload-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.pe-upload b { font-size: .95rem; word-break: break-word; }
.pe-file-open { margin-top: .75rem; }
.pe-rules { display: grid; gap: .55rem; margin-top: 1rem; }
.pe-rules p { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .84rem; color: var(--text-2); line-height: 1.5; }
.pe-rules .icon { color: var(--primary); margin-top: .15rem; flex-shrink: 0; }
.pe-section .alert { margin-top: 1rem; }
.pe-q-head { flex-wrap: wrap; }
.pe-tools { display: grid; grid-template-columns: 150px 140px auto 150px auto auto; gap: .75rem; align-items: end; margin-bottom: .85rem; }
.pe-tools-key { grid-template-columns: minmax(0, 1fr) auto auto auto; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.pe-tools .btn { height: 46px; }
.pe-qlist { display: grid; gap: .5rem; counter-reset: q; }
.pe-q { display: grid; grid-template-columns: 38px 96px minmax(0, 1fr) 92px auto; gap: .6rem; align-items: center; padding: .55rem .65rem; border: 1.5px solid var(--border);
  border-radius: 12px; background: var(--surface); transition: border-color .15s; }
.pe-q:hover { border-color: var(--border-strong); }
.pe-q.is-open { align-items: start; background: var(--surface-2); }
.pe-q.is-missing { border-color: var(--danger); background: var(--danger-soft); }
.pe-q-no { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; font-size: .85rem; color: var(--text-2); }
.pe-q select.pe-q-type { height: 38px; font-size: .85rem; }
.pe-q-main { min-width: 0; }
.pe-q-main textarea { min-height: 64px; font-size: .88rem; }
.pe-letters { display: flex; gap: .35rem; flex-wrap: wrap; }
.pe-letter { width: 40px; height: 38px; border: 1.5px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); font: 800 .9rem var(--font); cursor: pointer; transition: all .12s; }
.pe-letter:hover { border-color: var(--success); color: var(--success); }
.pe-letter.is-on { background: var(--success); border-color: var(--success); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--success) 35%, transparent); }
.pe-q-pts { display: flex; align-items: center; gap: .35rem; }
.pe-q-pts input { height: 38px; padding: 0 .4rem; text-align: center; font-weight: 700; }
.pe-q-pts small { color: var(--muted); }
.pe-q-actions { display: flex; gap: .25rem; }

/* Nəticələr */
.pe-results-top { margin-bottom: 1.25rem; }
.pe-link-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; margin-top: .75rem; }
.pe-dist { display: grid; gap: .5rem; margin-bottom: .6rem; }
.pe-dist-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: .6rem; align-items: center; }
.pe-dist-row .fill-bar { height: 10px; }
.pe-dist-row b { text-align: right; }
.pe-table { min-width: 980px; }
.pe-table td { white-space: nowrap; }
.pe-table .pe-c { color: var(--success); font-weight: 800; } .pe-table .pe-w { color: var(--danger); font-weight: 800; } .pe-table .pe-e { color: var(--warn); font-weight: 800; }
.pe-row-actions { display: flex; gap: .35rem; align-items: center; justify-content: flex-end; }
.pe-table tr.pe-row-none td { color: var(--muted); }
.pe-table tr:has([data-pe-item]:checked) td { background: var(--primary-soft); }
.pe-live { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; border-color: color-mix(in srgb, var(--info) 40%, var(--border)); }
.pe-live strong { display: flex; align-items: center; gap: .45rem; }
.pe-live p { margin: .25rem 0 0; font-size: .86rem; }

/* Cavabların redaktəsi */
.pe-review { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pe-score-panel { position: sticky; top: calc(var(--topbar-h) + 1rem); display: grid; gap: 1rem; }
.pe-score-main { display: flex; align-items: center; gap: 1rem; }
.pe-score-num b { font: 800 2rem/1 var(--font-head); }
.pe-score-num span { color: var(--muted); font-weight: 600; }
.pe-score-mark { margin-top: .4rem; display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .88rem; }
.pe-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pe-pill { padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.pe-pill.is-c { background: var(--success-soft); color: var(--success); }
.pe-pill.is-w { background: var(--danger-soft); color: var(--danger); }
.pe-pill.is-e { background: var(--warn-soft); color: var(--warn); }
.pe-pill.is-ch { background: var(--info-soft); color: var(--info); }
.pe-target { display: grid; gap: .6rem; padding: .85rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.pe-target select { font-size: .88rem; }
.pe-target-btns { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: .4rem; }
.pe-meta { display: grid; gap: .4rem; margin: 0; font-size: .84rem; }
.pe-meta > div { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: .4rem; border-bottom: 1px dashed var(--border); }
.pe-meta dt { color: var(--muted); }
.pe-meta dd { margin: 0; text-align: right; font-weight: 600; }
.pe-save-btns { display: grid; gap: .5rem; }
.pe-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; font-size: .78rem; color: var(--muted); }
.pe-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -.35rem; vertical-align: -1px; }
.pe-legend i.is-c { background: var(--success); } .pe-legend i.is-w { background: var(--danger); }
.pe-legend i.is-k { border: 2px solid var(--success); } .pe-legend i.is-ch { background: var(--info); }
.pe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: .6rem; }
.pe-card { position: relative; padding: .6rem .65rem .7rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); }
.pe-card.st-c { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); background: color-mix(in srgb, var(--success-soft) 45%, var(--surface)); }
.pe-card.st-w { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: color-mix(in srgb, var(--danger-soft) 45%, var(--surface)); }
.pe-card.st-e { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); }
.pe-card.is-changed::after { content: 'dəyişib'; position: absolute; top: -8px; right: 8px; padding: 0 .4rem; border-radius: 6px; background: var(--info); color: #fff; font-size: .62rem; font-weight: 700; line-height: 16px; }
.pe-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45rem; font-size: .8rem; }
.pe-card-top span { color: var(--muted); font-size: .74rem; font-weight: 600; }
.pe-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
.pe-opts button { height: 34px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font: 800 .85rem var(--font); cursor: pointer; transition: all .12s; }
.pe-opts button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pe-opts button.is-k { border-color: var(--success); color: var(--success); }
.pe-opts button.is-c { background: var(--success); border-color: var(--success); color: #fff; }
.pe-opts button.is-w { background: var(--danger); border-color: var(--danger); color: #fff; }
.pe-opts button.is-orig { box-shadow: inset 0 -3px 0 var(--info); }
.pe-opts button:disabled { cursor: not-allowed; opacity: .75; }
.pe-open-list { display: grid; gap: .75rem; margin-top: 1rem; }
.pe-open, .pe-stu-open { padding: .85rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pe-open-head { display: flex; justify-content: space-between; gap: .75rem; font-size: .88rem; margin-bottom: .45rem; }
.pe-open-head span { color: var(--muted); font-size: .8rem; }
.pe-open-q { margin: 0 0 .5rem; font-weight: 600; font-size: .88rem; }
.pe-open-ans { white-space: pre-wrap; word-break: break-word; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .9rem; line-height: 1.55; min-height: 48px; }
.pe-open-score { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .86rem; font-weight: 600; color: var(--text-2); }
.pe-open-score label { display: inline-flex; align-items: center; gap: .45rem; }
.pe-open-score input { width: 84px; height: 38px; text-align: center; font-weight: 700; }
/* Şagird nəticəsi */
.pe-stu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .4rem; margin-bottom: 1rem; }
.pe-stu-cell { display: grid; justify-items: center; gap: .1rem; padding: .4rem .2rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface-2); }
.pe-stu-cell small { color: var(--muted); font-size: .7rem; } .pe-stu-cell b { font-size: 1rem; } .pe-stu-cell i { font-style: normal; font-size: .8rem; font-weight: 800; }
.pe-stu-cell.is-c { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); } .pe-stu-cell.is-c i { color: var(--success); }
.pe-stu-cell.is-w { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); } .pe-stu-cell.is-w i { color: var(--danger); }
.pe-stu-cell.is-e i { color: var(--warn); }
.pe-stu-open { margin-top: .6rem; }

@media (max-width: 1200px) {
  .pe-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pe-review { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .pe-edit-grid, .pe-review { grid-template-columns: minmax(0, 1fr); }
  .pe-score-panel { position: static; }
  .pe-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pe-fields, .pe-tools, .pe-tools-key { grid-template-columns: minmax(0, 1fr); }
  .pe-filter, .pe-link-form { grid-template-columns: minmax(0, 1fr); }
  .pe-q { grid-template-columns: 34px minmax(0, 1fr) 82px; grid-template-areas: "no type pts" "main main main" "act act act"; }
  .pe-q-no { grid-area: no; } .pe-q-type { grid-area: type; } .pe-q-main { grid-area: main; } .pe-q-pts { grid-area: pts; } .pe-q-actions { grid-area: act; justify-content: flex-end; }
  .pe-bulkbar .page-actions { margin-left: 0; width: 100%; }
  .pe-bulkbar .page-actions .btn { flex: 1 1 auto; }
  .pe-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
  .pe-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
  .pe-grid { grid-template-columns: minmax(0, 1fr); }
  .pe-target-btns { grid-template-columns: 1fr 1fr; }
  .pe-target-btns [data-apply-target] { grid-column: 1 / -1; grid-row: 1; }
}
/* PDF imtahan — köhnə nəticələrin bağlanması */
.pe-imp-settings { margin-bottom: 1rem; }
.pe-imp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: .75rem; }
.pe-imp-filter { grid-template-columns: minmax(0, 1fr) 260px auto auto; }
.pe-imp-table { min-width: 1000px; }
.pe-imp-table td { white-space: normal; vertical-align: top; }
.pe-imp-pick { min-width: 300px; }
.pe-imp-pick input { height: 40px; }
.pe-sugs { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.pe-sug { padding: .2rem .55rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: 600 .76rem var(--font); cursor: pointer; }
.pe-sug small { color: var(--muted); }
.pe-sug:hover { border-color: var(--primary); }
.pe-sug.is-strong { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.pe-use { display: flex; gap: .5rem; align-items: center; }
.pe-use select { min-height: 74px; min-width: 200px; }
@media (max-width: 800px) { .pe-imp-grid, .pe-imp-filter { grid-template-columns: minmax(0, 1fr); } }
/* Onlayn testlər: sual-sual / PDF ilə seçimi */
.qz-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; margin-bottom: 1.1rem; }
.qz-mode { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.1rem; color: var(--text); border: 1.5px solid var(--border); transition: border-color .15s, transform .15s, box-shadow .15s; }
.qz-mode:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.qz-mode b { display: block; font: 800 1rem var(--font-head); margin-bottom: .2rem; }
.qz-mode small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.qz-mode-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.qz-mode-icon.is-pdf { background: var(--info-soft); color: var(--info); }
.qz-mode-icon.is-warn { background: var(--warn-soft); color: var(--warn); }
.qz-sec-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 .75rem; }
.qz-sec-title .btn { margin-left: auto; }
.qz-switch { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .3rem; margin-bottom: 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.qz-switch-opt { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .95rem; border-radius: 10px; color: var(--text-2); }
.qz-switch-opt b { display: block; font-size: .9rem; }
.qz-switch-opt small { display: block; font-size: .74rem; color: var(--muted); }
.qz-switch-opt:hover { background: var(--surface-2); }
.qz-switch-opt.is-on { background: var(--navy); color: #fff; }
.qz-switch-opt.is-on small { color: rgba(255, 255, 255, .7); }
[data-theme="dark"] .qz-switch-opt.is-on { background: var(--primary); color: var(--primary-ink); }
[data-theme="dark"] .qz-switch-opt.is-on small { color: var(--primary-ink); opacity: .75; }
@media (max-width: 560px) { .qz-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .qz-switch-opt small { display: none; } }.qz-mode-icon.is-ok { background: var(--success-soft); color: var(--success); }
.pe-allres-filter { grid-template-columns: minmax(0, 1fr) 160px 260px auto; }
@media (max-width: 800px) { .pe-allres-filter { grid-template-columns: minmax(0, 1fr); } }.pe-imp-filter { grid-template-columns: minmax(0, 1fr) 240px auto auto auto; }
.pe-imp-table { min-width: 1120px; }
.pe-imp-table .pe-row-actions { flex-wrap: wrap; justify-content: flex-start; min-width: 190px; }
.pe-legacy-grid .pe-stu-cell i { font-size: .72rem; }
@media (max-width: 1100px) { .pe-imp-filter { grid-template-columns: minmax(0, 1fr) 1fr; } }
@media (max-width: 800px) { .pe-imp-filter { grid-template-columns: minmax(0, 1fr); } }
/* Köhnə nəticələr: bal dəyişmə */
.pe-imp-bulk { position: sticky; top: calc(var(--topbar-h) + .5rem); z-index: 5; }
.pe-imp-bulk-field { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.pe-imp-bulk-field input { width: 90px; height: 38px; text-align: center; font-weight: 700; }
.pe-imp-score { white-space: nowrap; }
.pe-imp-score input { width: 72px; height: 36px; padding: 0 .3rem; text-align: center; font-weight: 800; }
.pe-imp-score input.is-changed { border-color: var(--info); background: var(--info-soft); }
.pe-lv-target { margin-bottom: 1rem; }
.pe-lv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
.pe-lv-row .pe-target-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.pe-lv-save { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
@media (max-width: 700px) { .pe-lv-row { grid-template-columns: minmax(0, 1fr); } .pe-imp-bulk { position: static; } }
/* Köhnə nəticə: bal / düz sayı / qiymət ilə tez dəyişmə */
.pe-lv-quick { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.pe-lv-quick .field { flex: 1 1 140px; margin: 0; }
.pe-lv-quick input[type="number"] { font-size: 1.15rem; font-weight: 800; text-align: center; }
.pe-lv-marks { display: flex; gap: 6px; }
.pe-lv-marks button { width: 44px; height: 44px; border: 0; border-radius: 12px; font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.pe-lv-note { margin: 8px 0 12px; }
.pe-lv-note.is-warn { color: #b45309; font-weight: 600; }
.pe-reset1 { white-space: nowrap; }
/* Şagird nəticəsi: faiz yox, xalis bal; səhv cavabda düzgün cavab */
.pe-stu-hero { align-items: center; }
.pe-stu-score { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; padding: 14px 18px; border-radius: 18px; background: var(--surface-2, #f3f5fa); }
.pe-stu-score b { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.pe-stu-score span { margin-top: 4px; font-size: .85rem; color: var(--muted, #6b7280); font-weight: 600; }
.pe-stu-cell { position: relative; }
.pe-stu-key { display: block; margin-top: 2px; font-style: normal; font-size: .7rem; font-weight: 700; color: #15803d; }
/* =====================================================================
   Kitabxana və dərs videoları
   ===================================================================== */
.lib-kind-tabs .icon { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.lib-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; margin-bottom: 14px; }
.lib-filter .lib-search { flex: 1 1 260px; }
.lib-filter select { flex: 0 1 180px; min-width: 140px; }
.lib-mine { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.lib-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.lib-cat { --cc: var(--primary); display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); color: var(--text-2); font-weight: 600; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.lib-cat i { width: 9px; height: 9px; border-radius: 50%; background: var(--cc); }
.lib-cat:hover { border-color: var(--cc); color: var(--text); }
.lib-cat.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.lib-cat.is-active i { background: var(--accent); }
.lib-group { margin-bottom: 22px; }
.lib-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 10px; }
.lib-group-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.02rem; }
.lib-group-head h3 span { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; }
.lib-group-head a { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--info); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lib-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.lib-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lib-card.lib-moved { animation: lib-moved .8s var(--ease); }
@keyframes lib-moved { from { box-shadow: 0 0 0 3px var(--accent); } to { box-shadow: var(--shadow-sm); } }
.lib-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; text-decoration: none; }
.lib-cover img, .lib-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-cover-pdf { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.lib-cover-word { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.lib-cover-excel { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.lib-cover-ppt { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.lib-cover-audio, .lib-cover-other { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.lib-ficon { display: inline-grid; place-items: center; min-width: 54px; height: 30px; padding: 0 8px; border-radius: 8px; background: #fff; color: #334155; font-weight: 800; font-size: .72rem; letter-spacing: .03em; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.lib-cover .lib-ficon { min-width: 74px; height: 40px; font-size: .9rem; }
.lib-ficon.is-pdf, .lib-cover-pdf .lib-ficon { color: #b91c1c; }
.lib-ficon.is-word, .lib-cover-word .lib-ficon { color: #1d4ed8; }
.lib-ficon.is-excel, .lib-cover-excel .lib-ficon { color: #15803d; }
.lib-ficon.is-ppt, .lib-cover-ppt .lib-ficon { color: #c2410c; }
.lib-ficon.is-video, .lib-ficon.is-youtube { color: #dc2626; }
.lib-ficon.is-image { color: #7c3aed; }
.lib-play { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; display: grid; place-items: center; border-radius: 50%; background: rgba(14, 21, 89, .78); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; }
.lib-play .icon { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.lib-count { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 700; }
.lib-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 12px; flex: 1; }
.lib-card-body h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.lib-card-body h3 a { color: var(--text); text-decoration: none; }
.lib-card-body h3 a:hover { color: var(--info); }
.lib-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.lib-tag { --cc: var(--primary); display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent); }
.lib-tag.is-class { --cc: #b45309; }
.lib-tag.is-pdf { --cc: #b91c1c; } .lib-tag.is-word { --cc: #1d4ed8; } .lib-tag.is-excel { --cc: #15803d; } .lib-tag.is-ppt { --cc: #c2410c; } .lib-tag.is-image { --cc: #7c3aed; }
.lib-meta { margin: 0; font-size: .8rem; color: var(--muted); }
.lib-stats { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.lib-stats a, .lib-stats span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; }
.lib-like, .lib-clike { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.lib-like.is-on, .lib-clike.is-on, .lib-like-big.is-on { color: #e11d48; }
.lib-like.is-on .icon, .lib-clike.is-on .icon, .lib-like-big.is-on .icon { fill: currentColor; }
.lib-manage { margin-left: auto; display: inline-flex; gap: 2px; }

/* Baxış səhifəsi */
.lib-view { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.lib-stage-card { overflow: hidden; }
.lib-stage { position: relative; background: #000; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.lib-stage iframe, .lib-stage video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.lib-stage-pdf { aspect-ratio: auto; height: min(80vh, 900px); background: var(--surface-3); }
.lib-stage-image { aspect-ratio: auto; max-height: 80vh; background: var(--surface-3); cursor: zoom-in; }
.lib-stage-image img { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; }
.lib-stage-audio { aspect-ratio: auto; padding: 40px 20px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.lib-audio audio { width: min(520px, 90vw); }
.lib-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.lib-thumb { position: relative; flex: 0 0 150px; display: flex; flex-direction: column; gap: 5px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; text-align: left; color: var(--text-2); }
.lib-thumb img, .lib-thumb .lib-ficon { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 8px; }
.lib-thumb .lib-play { width: 32px; height: 32px; margin: 0; left: 50%; top: 34%; transform: translate(-50%, -50%); }
.lib-thumb .lib-play .icon { width: 14px; height: 14px; }
.lib-thumb small { font-size: .74rem; font-weight: 600; padding: 0 4px 2px; }
.lib-thumb.is-active { border-color: var(--accent); }
.lib-info-row { display: flex; align-items: center; gap: 10px; }
.lib-author { display: flex; flex-direction: column; }
.lib-like-big { margin-left: auto; }
.lib-desc { margin-top: 12px; line-height: 1.6; color: var(--text-2); }
.lib-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lib-files li { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; }
.lib-files .lib-ficon { box-shadow: none; background: var(--surface-3); flex: 0 0 auto; }
.lib-file-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-file-name b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-file-act { display: inline-flex; gap: 2px; }
.lib-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.lib-facts div:last-child { border-bottom: 0; }
.lib-facts span { color: var(--muted); }

/* Şərhlər */
.lib-cfilter select { min-width: 150px; }
.lib-note { margin: -4px 0 12px; display: flex; align-items: center; gap: 6px; }
.lib-cform { display: flex; gap: 10px; margin-bottom: 18px; }
.lib-cform-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.lib-cform textarea { min-height: 64px; resize: vertical; }
.lib-cform-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.lib-cform-foot select { flex: 1 1 200px; max-width: 280px; }
.lib-cform.is-reply { margin: 8px 0 4px 42px; }
.lib-thread { padding: 12px 0; border-top: 1px solid var(--border); }
.lib-thread:first-child { border-top: 0; }
.lib-c { display: flex; gap: 10px; border-radius: 12px; }
.lib-c.is-target { animation: lib-moved 2s var(--ease); }
.lib-c-main { flex: 1; min-width: 0; }
.lib-c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lib-c-head strong { font-size: .9rem; }
.lib-c-badge { padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: #92400e; font-size: .7rem; font-weight: 700; }
.lib-c.is-staff .lib-c-badge { background: var(--info-soft); color: #1d4ed8; }
.lib-c-badge.is-all { background: var(--surface-3); color: var(--muted); }
.lib-c-head small { margin-left: auto; font-size: .75rem; }
.lib-c-body { margin-top: 3px; font-size: .92rem; line-height: 1.55; color: var(--text-2); word-break: break-word; }
.lib-c-actions { display: flex; gap: 14px; margin-top: 4px; }
.lib-c-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted); font-size: .78rem; font-weight: 600; cursor: pointer; }
.lib-c-actions button:hover { color: var(--text); }
.lib-c-actions .is-danger:hover { color: var(--danger); }
.lib-replies { margin: 8px 0 0 42px; padding-left: 12px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.lib-c.is-reply .avatar { width: 28px; height: 28px; font-size: .68rem; }

/* Redaktə forması */
.lib-kind-switch { display: flex; gap: 8px; margin-bottom: 6px; }
.lib-kind-switch label { flex: 1; cursor: pointer; }
.lib-kind-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lib-kind-switch span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 700; color: var(--text-2); }
.lib-kind-switch input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .lib-kind-switch input:checked + span { color: var(--text); }
.lib-drop { position: relative; border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.lib-drop.is-over { border-color: var(--info); background: var(--info-soft); }
.lib-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.lib-drop label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; pointer-events: none; }
.lib-drop label .icon { width: 30px; height: 30px; color: var(--info); }
.lib-drop label small { color: var(--muted); }
.lib-uploads, .lib-existing { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lib-uploads li { display: grid; grid-template-columns: minmax(0, 1fr) 140px 70px 30px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.lib-up-name { display: flex; flex-direction: column; min-width: 0; }
.lib-up-name b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-up-name small { color: var(--muted); font-size: .75rem; }
.lib-up-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.lib-up-bar i { display: block; width: 0; height: 100%; background: var(--info); transition: width .2s; }
.lib-up-state { font-size: .78rem; font-weight: 700; color: var(--muted); text-align: right; }
.lib-uploads li.is-done .lib-up-bar i { background: var(--success); }
.lib-uploads li.is-done .lib-up-state { color: var(--success); }
.lib-uploads li.is-error { border-color: var(--danger); }
.lib-uploads li.is-error .lib-up-state { color: var(--danger); grid-column: 2 / 4; text-align: left; }
.lib-sub-head { margin-top: 16px; }
.lib-existing li { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; }
.lib-existing li.is-del { opacity: .45; text-decoration: line-through; }
.lib-existing .lib-ficon { box-shadow: none; background: var(--surface-3); flex: 0 0 auto; }
.lib-ex-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lib-ex-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-ex-act { display: inline-flex; align-items: center; gap: 2px; }
.lib-del { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--danger); cursor: pointer; }
.lib-del input { position: absolute; opacity: 0; }
.lib-del:has(input:checked) { background: var(--danger); color: #fff; }
.lib-del .icon { width: 16px; height: 16px; }

/* Kateqoriyalar */
.lib-catlist { list-style: none; margin: 0; padding: 0; }
.lib-catlist li { border-bottom: 1px solid var(--border); }
.lib-catlist li:last-child { border-bottom: 0; }
.lib-catrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; }
.lib-catrow input[type=text] { flex: 1 1 200px; }
.lib-catrow input[type=color] { width: 38px; height: 36px; padding: 2px; border-radius: 8px; }
.lib-catpos { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); font-weight: 800; font-size: .8rem; color: var(--muted); }
.lib-catn { min-width: 80px; }

.lib-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s var(--ease); z-index: 9999; }
.lib-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.lib-toast.is-bad { background: var(--danger); }

@media (max-width: 1000px) {
  .lib-view { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lib-filter select, .lib-filter .btn { flex: 1 1 45%; }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .lib-card-body { padding: 10px; }
  .lib-uploads li { grid-template-columns: minmax(0, 1fr) 30px; }
  .lib-up-bar { grid-column: 1 / -1; grid-row: 2; }
  .lib-up-state { grid-column: 1; grid-row: 3; text-align: left; }
  .lib-replies, .lib-cform.is-reply { margin-left: 14px; }
  .lib-stage-pdf { height: 70vh; }
}
/* YouTube: şəkil + Oynat (pleyer basanda açılır) */
.lib-yt { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.lib-yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .2s; }
.lib-yt:hover img { opacity: 1; }
.lib-play-big { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: #dc2626; }
.lib-play-big .icon { width: 34px; height: 34px; }
.lib-yt:hover .lib-play-big { transform: scale(1.06); }
.lib-stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); }
.lib-stage-bar b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Şagird fəallığı (müəllim üçün) */
.lib-act-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.lib-act-sum div { display: flex; flex-direction: column; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.lib-act-sum b { font-size: 1.15rem; }
.lib-act-sum span { font-size: .75rem; color: var(--muted); }
.lib-act-list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow: auto; }
.lib-act-list li { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--border); opacity: .6; }
.lib-act-list li.is-seen { opacity: 1; }
.lib-act-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .86rem; font-weight: 600; }
.lib-act-name small { font-weight: 400; font-size: .72rem; }
.lib-act-ic { display: inline-flex; gap: 6px; }
.lib-act-ic i { display: inline-flex; align-items: center; gap: 2px; font-style: normal; color: var(--border-strong); }
.lib-act-ic i.is-on { color: var(--success); }
.lib-act-ic i.is-like { color: #e11d48; }
.lib-act-ic i b { font-size: .7rem; }
/* =====================================================================
   Kiçik siniflər üçün giriş
   ===================================================================== */
.login-link-kids .login-link-icon { background: linear-gradient(135deg, #f97316, #ec4899); color: #fff; }
.kids-grade-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.kids-grade-pick label { cursor: pointer; }
.kids-grade-pick input { position: absolute; opacity: 0; }
.kids-grade-pick span { display: inline-block; padding: 6px 11px; border-radius: 9px; border: 1.5px solid var(--border); font-weight: 700; font-size: .82rem; color: var(--text-2); }
.kids-grade-pick input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
body.kids-body { margin: 0; min-height: 100vh; font-family: var(--font); color: #1e1b4b; background: radial-gradient(circle at 10% 10%, #fef3c7 0, transparent 35%), radial-gradient(circle at 90% 20%, #dbeafe 0, transparent 40%), radial-gradient(circle at 50% 100%, #fce7f3 0, transparent 45%), #fffbeb; }
.kids-shell { max-width: 1100px; margin: 0 auto; padding: 18px 18px 40px; }
.kids-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.kids-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1e1b4b; }
.kids-brand img { width: 44px; height: 44px; object-fit: contain; }
.kids-brand b { font-family: var(--font-head); font-size: 1.05rem; }
.kids-back-login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; color: #4338ca; font-weight: 700; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.kids-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; padding: 0; }
.kids-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.7); color: #6b7280; font-weight: 700; font-size: .92rem; }
.kids-steps li span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e5e7eb; color: #374151; }
.kids-steps li.is-now { background: #fff; color: #1e1b4b; box-shadow: 0 4px 16px rgba(79,70,229,.15); }
.kids-steps li.is-now span { background: #4f46e5; color: #fff; }
.kids-steps li.is-done span { background: #22c55e; color: #fff; }
.kids-h1 { text-align: center; font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.3rem); margin: 0 0 18px; }
.kids-sub { text-align: center; margin: -10px 0 16px; color: #6b7280; font-weight: 600; }
.kids-empty { text-align: center; color: #6b7280; font-size: 1.1rem; }
.kids-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.kids-class { --k: #3b82f6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1; border-radius: 28px; background: var(--k); color: #fff; text-decoration: none; box-shadow: 0 10px 0 color-mix(in srgb, var(--k) 70%, #000), 0 16px 30px rgba(0,0,0,.12); transition: transform .12s; }
.kids-class:hover { transform: translateY(-4px) rotate(-1deg); }
.kids-class:active { transform: translateY(6px); box-shadow: 0 4px 0 color-mix(in srgb, var(--k) 70%, #000); }
.kids-class b { font-family: var(--font-head); font-size: 3.6rem; line-height: 1; }
.kids-class b small { font-size: 2.2rem; margin-left: 2px; }
.kids-class span { font-weight: 800; font-size: 1.1rem; opacity: .9; }
.kids-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 16px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #4338ca; font-weight: 800; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.kids-shell > .kids-back { display: flex; width: max-content; }
.kids-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.kids-name { --k: #3b82f6; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 16px; border-radius: 24px; background: #fff; text-decoration: none; color: #1e1b4b; border: 3px solid transparent; box-shadow: 0 6px 20px rgba(0,0,0,.07); transition: transform .12s, border-color .12s; }
.kids-name:hover { transform: translateY(-3px); border-color: var(--k); }
.kids-name b { font-size: 1.25rem; font-weight: 800; }
.kids-name small { font-size: 1rem; font-weight: 700; color: #6b7280; margin-top: -6px; }
.kids-ava { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--k); color: #fff; font-family: var(--font-head); font-size: 2rem; font-weight: 800; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.kids-ava-lg { width: 110px; height: 110px; font-size: 3.2rem; margin: 0 auto 10px; }
.kids-pass { --k: #3b82f6; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; padding: 26px 22px; border-radius: 30px; background: #fff; box-shadow: 0 16px 50px rgba(0,0,0,.1); }
.kids-pass-row { position: relative; }
.kids-input { width: 100%; height: 70px; padding: 0 64px 0 20px; border: 3px solid #e5e7eb; border-radius: 20px; font-size: 1.8rem; font-weight: 800; letter-spacing: .12em; text-align: center; color: #1e1b4b; background: #f9fafb; }
.kids-input:focus { outline: none; border-color: var(--k); background: #fff; }
.kids-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 14px; background: #eef2ff; color: #4338ca; cursor: pointer; }
.kids-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.kids-pad button { height: 62px; border: 0; border-radius: 18px; background: #eef2ff; color: #1e1b4b; font-size: 1.7rem; font-weight: 800; cursor: pointer; box-shadow: 0 5px 0 #c7d2fe; }
.kids-pad button:active { transform: translateY(4px); box-shadow: 0 1px 0 #c7d2fe; }
.kids-pad .kids-go { background: #22c55e; color: #fff; box-shadow: 0 5px 0 #15803d; }
.kids-submit { height: 62px; border: 0; border-radius: 20px; background: var(--k); color: #fff; font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 6px 0 color-mix(in srgb, var(--k) 70%, #000); margin-bottom: 14px; }
.kids-error { display: flex; align-items: center; gap: 8px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: #fee2e2; color: #991b1b; font-weight: 700; }
@media (max-width: 520px) {
  .kids-classes, .kids-names { grid-template-columns: repeat(2, 1fr); }
  .kids-class b { font-size: 2.8rem; }
}
/* =====================================================================
   Yaradıcılıq (works.php)
   ===================================================================== */
.wk-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.wk-app { --a: #2563eb; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.wk-app::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--a); }
.wk-app:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wk-app-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--a) 14%, transparent); color: var(--a); margin-bottom: 6px; }
.wk-app-ic .icon { width: 26px; height: 26px; }
.wk-app b { font-size: 1.05rem; }
.wk-app small { color: var(--muted); font-size: .82rem; }
.wk-app-new { position: absolute; top: 14px; right: 12px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; background: var(--a); color: #fff; font-size: .74rem; font-weight: 700; }
.wk-list { display: flex; flex-direction: column; gap: 10px; }
.wk-item { --a: #2563eb; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.wk-thumb { flex: 0 0 120px; height: 80px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); }
.wk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wk-thumb-ic { color: var(--a); } .wk-thumb-ic .icon { width: 32px; height: 32px; }
.wk-body { flex: 1; min-width: 0; }
.wk-body h3 { margin: 3px 0 2px; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-body h3 a { color: var(--text); text-decoration: none; }
.wk-body p { margin: 0; }
.wk-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; color: var(--a); background: color-mix(in srgb, var(--a) 12%, transparent); }
.wk-actions { display: flex; align-items: center; gap: 4px; }
@media (max-width: 640px) {
  .wk-apps { grid-template-columns: repeat(2, 1fr); }
  .wk-item { flex-wrap: wrap; }
  .wk-thumb { flex-basis: 90px; height: 64px; }
  .wk-actions { width: 100%; justify-content: flex-end; }
}
/* Video pleyer (səs, sürət, tam ekran) */
.lib-stage-video { display: block; }
.lp { position: relative; width: 100%; height: 100%; background: #000; outline: none; }
.lp video { width: 100%; height: 100%; display: block; background: #000; cursor: pointer; }
.lp:fullscreen { display: flex; flex-direction: column; }
.lp:fullscreen video { flex: 1; min-height: 0; }
.lp-big { position: absolute; left: 50%; top: 45%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: rgba(220,38,38,.92); color: #fff; font-size: 34px; padding-left: 6px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.lp-big[hidden] { display: none; }
.lp-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #fff; background: rgba(0,0,0,.85); font-size: .95rem; line-height: 1.6; }
.lp-msg[hidden] { display: none; }
.lp-msg a { color: #93c5fd; }
.lp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; transition: opacity .25s; }
.lp.is-playing:not(:hover):not(:focus-within) .lp-bar { opacity: 0; }
.lp-bar button, .lp-bar select { height: 32px; min-width: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 15px; cursor: pointer; }
.lp-bar button:hover { background: rgba(255,255,255,.28); }
.lp-bar select { font-size: 12px; padding: 0 4px; }
.lp-bar select option { color: #000; }
.lp-time { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-seek { flex: 1; min-width: 60px; accent-color: #ef4444; }
.lp-vol { width: 90px; accent-color: #fff; }
@media (max-width: 560px) { .lp-vol { width: 60px; } .lp-time { display: none; } }

/* PDF baxıcısı */
.lib-stage-pdf { display: block; }
.lpdf { display: flex; flex-direction: column; height: 100%; background: #525659; }
.lpdf-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #323639; color: #fff; }
.lpdf-bar button, .lpdf-bar a { min-width: 32px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: rgba(255,255,255,.12); color: #fff; font-size: 16px; text-decoration: none; cursor: pointer; }
.lpdf-bar button:hover, .lpdf-bar a:hover { background: rgba(255,255,255,.25); }
.lpdf-num { width: 52px; height: 28px; border: 0; border-radius: 6px; text-align: center; background: #fff; color: #111; }
.lpdf-sp { flex: 1; }
.lpdf-zt { font-size: 12.5px; min-width: 42px; text-align: center; }
.lpdf-pages { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lpdf-page { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); flex: 0 0 auto; }
.lpdf-page canvas { display: block; }
.lpdf-load { margin: auto; color: #fff; font-size: .95rem; }
.lpdf-load a { color: #93c5fd; }
.lpdf:fullscreen .lpdf-pages { padding: 16px; }

/* YouTube: icazə yoxdur / tapılmadı */
.lib-ytmsg { position: relative; width: 100%; height: 100%; display: flex; align-items: center; gap: 18px; padding: 20px; background: #111; color: #fff; }
.lib-ytmsg img { width: 42%; max-width: 360px; border-radius: 10px; opacity: .6; }
.lib-ytmsg p { color: #cbd5e1; margin: 8px 0 14px; }
@media (max-width: 640px) { .lib-ytmsg { flex-direction: column; text-align: center; } .lib-ytmsg img { width: 70%; } }
/* Proqram nişanı: Office kimi rəngli hərf */
.wk-letter { display: grid; place-items: center; font-family: 'Segoe UI', var(--font); font-weight: 800; letter-spacing: -.02em; color: #fff !important; background: var(--a) !important; }
.wk-app-ic.wk-letter { font-size: 1.35rem; border-radius: 12px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.wk-thumb-ic.wk-letter { width: 54px; height: 54px; border-radius: 12px; font-size: 1.4rem; }
.wk-letter-xs { display: inline-grid; width: 18px; height: 18px; border-radius: 4px; font-size: .62rem; }
.wk-app b { font-size: 1.2rem; }
/* =====================================================================
   Kəşf — mini-brauzer
   ===================================================================== */
.kb { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.kb-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-3); border-bottom: 1px solid var(--border); }
.kb-nav { display: flex; gap: 4px; }
.kb-nav button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; color: var(--text-2); cursor: pointer; }
.kb-nav button:hover:not(:disabled) { background: var(--surface); }
.kb-nav button:disabled { opacity: .35; cursor: default; }
.kb-address { flex: 1; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 4px 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); }
.kb-address:focus-within { border-color: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.kb-address input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font-size: 1rem; padding: 0 !important; }
.kb-address select { width: auto !important; height: 32px !important; border-radius: 999px !important; padding: 0 8px !important; }
.kb-go { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-weight: 700; cursor: pointer; }
.kb-lock { font-size: 13px; }
.kb-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 10px 0; border-bottom: 1px solid var(--border); }
.kb-tabs button { padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 600; color: var(--text-2); cursor: pointer; }
.kb-tabs button.is-on { color: var(--text); border-bottom-color: var(--accent); }
.kb-tabs button b { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: #92400e; font-size: .75rem; }
.kb-tabs-sp { flex: 1; }
.kb-page { min-height: 420px; padding: 18px; }
.kb-home { text-align: center; padding: 30px 10px; }
.kb-home h2 { font-size: 2rem; margin: 0 0 8px; }
.kb-home p { color: var(--text-2); max-width: 640px; margin: 0 auto 18px; }
.kb-sug { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.kb-sug button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface-2); font-weight: 600; cursor: pointer; }
.kb-sug button:hover { border-color: var(--info); color: var(--info); }
.kb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kb-head h3 { margin: 0; font-size: 1.05rem; } .kb-head span { color: var(--muted); font-size: .82rem; }
.kb-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px; color: var(--muted); }
.kb-loading span { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--info); border-radius: 50%; animation: kbspin .8s linear infinite; }
@keyframes kbspin { to { transform: rotate(360deg); } }
.kb-msg { padding: 30px; text-align: center; color: var(--text-2); font-size: 1rem; }
.kb-msg.is-blocked { color: #b91c1c; font-weight: 700; }
.kb-results { display: flex; flex-direction: column; gap: 10px; }
.kb-res { display: flex; gap: 14px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.kb-res:hover { border-color: var(--info); background: var(--surface-2); }
.kb-res img, .kb-noimg { flex: 0 0 110px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; font-size: 28px; }
.kb-res b { color: var(--info); font-size: 1.02rem; }
.kb-res p { margin: 4px 0 0; color: var(--text-2); font-size: .88rem; }
.kb-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kb-imgs figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.kb-imgs img { width: 100%; height: 150px; object-fit: cover; display: block; cursor: zoom-in; }
.kb-imgs figcaption { padding: 6px 8px; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-imgs figcaption a { color: var(--text-2); text-decoration: none; }
.kb-pick { position: absolute; top: 6px; right: 6px; padding: 4px 9px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #333; font-weight: 700; font-size: .75rem; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.kb-pick.is-on { background: #f59e0b; color: #fff; }
.kb-art { max-width: 820px; margin: 0 auto; line-height: 1.7; user-select: text; }
.kb-art h1 { font-family: var(--font-head); margin: 0 0 12px; }
.kb-art h2, .kb-art h3, .kb-art h4 { margin: 20px 0 6px; }
.kb-art p { margin: 0 0 10px; color: var(--text-2); }
.kb-lead { position: relative; float: right; width: min(320px, 45%); margin: 0 0 12px 18px; }
.kb-lead img { width: 100%; border-radius: 10px; cursor: zoom-in; }
.kb-src { clear: both; color: var(--muted); font-size: .8rem; margin-top: 20px; }
.kb-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.kb-vid { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.kb-vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.kb-vthumb img, .kb-vthumb video { width: 100%; height: 100%; object-fit: cover; }
.kb-vthumb i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #dc2626; color: #fff; font-style: normal; }
.kb-vid b { font-size: .95rem; } .kb-vid small { color: var(--muted); }
.kb-zoom { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(0,0,0,.85); cursor: zoom-out; }
.kb-zoom img { max-width: 94vw; max-height: 92vh; border-radius: 6px; }
@media (max-width: 640px) { .kb-chrome { flex-wrap: wrap; } .kb-nav { order: 2; } .kb-address { flex-basis: 100%; } .kb-lead { float: none; width: 100%; margin: 0 0 12px; } }
/* Kəşf: şəkil düymələri, YouTube pleyer */
.kb-imgact { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 6px; }
.kb-imgact a, .kb-imgact button { flex: 1 1 auto; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text-2); font-size: .72rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.kb-imgact a:hover, .kb-imgact button:hover { border-color: var(--info); color: var(--info); }
.kb-imgact [data-to="word"]:hover { border-color: #2b579a; color: #2b579a; }
.kb-imgact [data-to="ppt"]:hover { border-color: #c43e1c; color: #c43e1c; }
.kb-imgact [data-to="excel"]:hover { border-color: #217346; color: #217346; }
.kb-lead .kb-imgact { padding: 6px 0 0; }
.kb-vthumb em { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.8); color: #fff; font-style: normal; font-size: .75rem; font-weight: 700; }
.kb-player { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.85); }
.kb-player-box { width: min(1100px, 100%); background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.kb-player-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #111; color: #fff; }
.kb-player-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-player-head a { color: #93c5fd; font-size: .85rem; white-space: nowrap; }
.kb-player-head button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.15); color: #fff; font-size: 16px; cursor: pointer; }
.kb-player-frame { aspect-ratio: 16 / 9; }
.kb-player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Kəşf: açılmayan şəkil */
img.kb-imgerr { visibility: hidden; }
.kb-imgs figure:has(img.kb-imgerr) { background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
/* Video səsi (admin) */
.vv-sl { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 10px; font-size: .88rem; }
.vv-sl input { accent-color: var(--info); }
.vv-sl b { text-align: right; font-variant-numeric: tabular-nums; }
.vv-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.vv-class { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; opacity: .55; display: flex; flex-direction: column; gap: 6px; }
.vv-class.is-on { opacity: 1; border-color: var(--info); background: var(--info-soft); }
.vv-class .vv-sl { grid-template-columns: 70px 1fr 44px; }
.vv-cname { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.vv-users { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vv-users li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.vv-users span { display: flex; flex-direction: column; }
/* =====================================================================
   Kəşf (yeni dizayn) və TələbəTube
   ===================================================================== */
.ks { --ks-b: #3b82f6; --ks-r: #ef4444; --ks-y: #f59e0b; --ks-g: #22c55e; }
.ks-ic, .ks-i { width: 20px; height: 20px; flex: 0 0 auto; }
.ks-home { display: flex; flex-direction: column; align-items: center; padding: 8vh 12px 40px; text-align: center; }
.ks-logo { margin: 0; font-family: var(--font-head); font-size: clamp(3.4rem, 9vw, 5.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; background: none; border: 0; padding: 0; cursor: default; }
.ks-logo span:nth-child(1) { color: var(--ks-b); } .ks-logo span:nth-child(2) { color: var(--ks-r); }
.ks-logo span:nth-child(3) { color: var(--ks-y); } .ks-logo span:nth-child(4) { color: var(--ks-g); }
.ks-tag { margin: 6px 0 26px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.ks-box { display: flex; align-items: center; gap: 10px; width: min(640px, 100%); height: 52px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 1px 6px rgba(32,33,36,.12); transition: box-shadow .15s; }
.ks-box:hover, .ks-box:focus-within { box-shadow: 0 2px 12px rgba(32,33,36,.22); border-color: transparent; }
.ks-box .ks-ic { color: var(--muted); }
.ks-box input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font-size: 1.05rem; padding: 0 !important; color: var(--text); }
.ks-box select { width: auto !important; height: 34px !important; padding: 0 10px !important; border-radius: 999px !important; border: 0 !important; background: var(--surface-3) !important; font-weight: 700; }
.ks-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.ks-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .95rem; cursor: pointer; }
.ks-btn:hover { border-color: var(--border-strong); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ks-btn svg { width: 24px; height: 18px; }
.ks-btn-sm { height: 36px; padding: 0 14px; font-size: .88rem; }
.ks-topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; width: min(760px, 100%); margin-top: 40px; }
.ks-topic { --c: var(--info); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: .88rem; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.ks-topic svg { width: 40px; height: 40px; padding: 9px; border-radius: 14px; color: #fff; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); }
.ks-topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ks-rhead { display: flex; align-items: center; gap: 22px; padding: 8px 4px 14px; }
.ks-logo-sm { font-size: 2rem; cursor: pointer; }
.ks-box-sm { height: 46px; width: min(720px, 100%); }
.ks-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.ks-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text-2); font-weight: 600; cursor: pointer; white-space: nowrap; }
.ks-tabs button svg { width: 17px; height: 17px; }
.ks-tabs button.is-on { color: var(--ks-b); border-bottom-color: var(--ks-b); }
.ks-tabs b { padding: 0 7px; border-radius: 999px; background: var(--surface-3); font-size: .75rem; }
.ks-count { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.ks-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.ks-main { min-width: 0; max-width: 680px; }
.ks-item { display: flex; gap: 16px; margin-bottom: 26px; }
.ks-item-t { flex: 1; min-width: 0; }
.ks-src { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-2); }
.ks-src svg { width: 15px; height: 15px; }
.ks-item h3 { margin: 4px 0 4px; font-size: 1.2rem; font-weight: 500; }
.ks-item h3 a { color: #1a0dab; text-decoration: none; }
[data-theme="dark"] .ks-item h3 a { color: #8ab4f8; }
.ks-item h3 a:hover { text-decoration: underline; }
.ks-item p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.55; }
.ks-item img { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 10px; object-fit: cover; cursor: pointer; background: var(--surface-3); }
.ks-kp { position: sticky; top: 90px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.ks-kp img { width: 100%; max-height: 240px; object-fit: cover; display: block; background: var(--surface-3); }
.ks-kp h2 { margin: 14px 16px 6px; font-size: 1.5rem; }
.ks-kp p { margin: 0 16px 14px; color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.ks-kp .ks-btn { margin: 0 16px 16px; }
.ks-strip { margin: 0 0 28px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.ks-strip-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ks-strip-h b { flex: 1; }
.ks-strip-h button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ks-b); font-weight: 600; cursor: pointer; }
.ks-strip-h button svg { width: 16px; height: 16px; }
.ks-strip-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ks-sthumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--surface-3); }
.ks-sthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ks-sthumb:hover img { transform: scale(1.05); }
.ks-vrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ks-imgs { columns: 4 200px; column-gap: 12px; }
.ks-imgs figure { position: relative; break-inside: avoid; margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: var(--surface-3); cursor: pointer; }
.ks-imgs img { width: 100%; display: block; min-height: 90px; transition: transform .2s; }
.ks-imgs figure:hover img { transform: scale(1.03); }
.ks-imgs figcaption { padding: 6px 10px; font-size: .78rem; color: var(--text-2); background: var(--surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-star { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #6b7280; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ks-star svg { width: 18px; height: 18px; }
.ks-star.is-on { background: #f59e0b; color: #fff; }
.ks-star.is-on svg { fill: currentColor; }
.ks-prev { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: flex-end; background: rgba(0,0,0,.45); }
.ks-prev-box { position: relative; width: min(560px, 100%); height: 100%; overflow-y: auto; padding: 50px 22px 22px; background: var(--surface); box-shadow: -10px 0 40px rgba(0,0,0,.25); animation: ksIn .22s var(--ease); }
@keyframes ksIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ks-prev-x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text); cursor: pointer; }
.ks-prev-x svg { width: 20px; height: 20px; }
.ks-prev-img { border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.ks-prev-img img { width: 100%; max-height: 60vh; object-fit: contain; display: block; }
.ks-prev-box h3 { margin: 14px 0 4px; }
.ks-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ks-act { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: .86rem; cursor: pointer; }
.ks-act svg { width: 17px; height: 17px; }
.ks-act b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: #fff; font-size: .72rem; }
.ks-act:hover { border-color: var(--ks-b); color: var(--ks-b); }
.ks-act.is-on { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.ks-act.is-on svg { fill: currentColor; }
.ks-w b { background: #2b579a; } .ks-p b { background: #c43e1c; } .ks-x b { background: #217346; }
.ks-prev-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ks-prev-nav button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface-3); color: var(--text); font-weight: 600; cursor: pointer; }
.ks-prev-nav svg { width: 18px; height: 18px; }
.ks-art { max-width: 820px; line-height: 1.75; user-select: text; }
.ks-art h1 { font-family: var(--font-head); font-size: 2.1rem; margin: 10px 0 14px; }
.ks-art h2, .ks-art h3, .ks-art h4 { margin: 22px 0 6px; }
.ks-art p { color: var(--text-2); margin: 0 0 12px; }
.ks-backlink { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ks-b); font-weight: 600; cursor: pointer; padding: 0; }
.ks-backlink svg { width: 18px; height: 18px; }
.ks-lead { float: right; width: min(340px, 45%); margin: 0 0 14px 22px; }
.ks-lead img { width: 100%; border-radius: 14px; cursor: zoom-in; }
.ks-lead .ks-acts { gap: 6px; } .ks-lead .ks-act { height: 32px; padding: 0 10px; font-size: .78rem; }
.ks-msg { padding: 50px 20px; text-align: center; color: var(--text-2); font-size: 1.02rem; }
.ks-msg.is-bad { color: #dc2626; font-weight: 700; }
.ks-load { display: flex; justify-content: center; gap: 8px; padding: 60px; }
.ks-load i { width: 12px; height: 12px; border-radius: 50%; background: var(--ks-b); animation: ksDot 1s infinite ease-in-out; }
.ks-load i:nth-child(2) { background: var(--ks-r); animation-delay: .15s; } .ks-load i:nth-child(3) { background: var(--ks-y); animation-delay: .3s; }
@keyframes ksDot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-10px); opacity: 1; } }
.ks img.is-broken { visibility: hidden; }

/* TələbəTube */
.tb-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 10px 4px; background: var(--bg); }
.tb-logo { display: flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; color: var(--text); padding: 0; }
.tb-logo svg { width: 34px; height: 24px; }
.tb-logo b { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -.03em; }
.tb-logo b span { color: #ef4444; }
.tb-search { flex: 1; display: flex; max-width: 640px; height: 42px; margin: 0 auto; }
.tb-search input { flex: 1; min-width: 0; height: 100% !important; padding: 0 16px !important; border: 1px solid var(--border-strong) !important; border-right: 0 !important; border-radius: 999px 0 0 999px !important; background: var(--surface) !important; font-size: 1rem; }
.tb-search button { width: 64px; border: 1px solid var(--border-strong); border-radius: 0 999px 999px 0; background: var(--surface-3); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.tb-search button svg { width: 20px; height: 20px; }
.tb-back { height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: thin; }
.tb-chips button { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface-3); color: var(--text); font-weight: 600; font-size: .88rem; cursor: pointer; }
.tb-chips button svg { width: 16px; height: 16px; }
.tb-chips button.is-on { background: var(--text); color: var(--surface); }
.tb-h { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 4px 0 14px; }
.tb-h svg { width: 22px; height: 22px; }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 16px; }
.tb-card, .tb-ncard { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.tb-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.tb-thumb img, .tb-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tb-card:hover .tb-thumb img { transform: scale(1.04); }
.tb-thumb em { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.8); color: #fff; font-style: normal; font-size: .75rem; font-weight: 700; }
.tb-badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #2563eb; color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; }
.tb-badge svg { width: 14px; height: 14px; }
.tb-nothumb { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.tb-nothumb svg { width: 40px; height: 40px; }
.tb-info { display: flex; flex-direction: column; gap: 4px; }
.tb-info b { font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-info small { color: var(--muted); font-size: .82rem; }
.tb-watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.tb-player { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.tb-wmain h1 { font-size: 1.3rem; margin: 14px 0 6px; }
.tb-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; }
.tb-meta svg { width: 16px; height: 16px; }
.tb-next h3 { margin: 0 0 12px; font-size: 1rem; }
.tb-ncard { flex-direction: row; margin-bottom: 10px; }
.tb-ncard .tb-thumb { flex: 0 0 168px; border-radius: 10px; }
.tb-ncard .tb-info b { font-size: .88rem; }
/* YouTube üslubu: bələdçi menyu, avatar, kanal sətri */
.tb-burger { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; }
.tb-burger:hover, .tb-guide button:hover { background: var(--surface-3); }
.tb-burger svg { width: 22px; height: 22px; }
.tb-head { gap: 12px; }
.tb-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.tb-guide { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 4px 4px 20px 0; scrollbar-width: thin; }
.tb-guide button { display: flex; align-items: center; gap: 18px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: .92rem; text-align: left; cursor: pointer; white-space: nowrap; }
.tb-guide button svg { width: 22px; height: 22px; flex: 0 0 22px; }
.tb-guide button span { overflow: hidden; text-overflow: ellipsis; }
.tb-guide button.is-on { background: var(--surface-3); font-weight: 700; }
.tb-guide hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.tb-guide h4 { margin: 0 0 4px; padding: 0 12px; font-size: .95rem; }
.tb.guide-mini .tb-layout { grid-template-columns: 76px minmax(0, 1fr); }
.tb.guide-mini .tb-guide button { flex-direction: column; justify-content: center; gap: 4px; height: 66px; padding: 0 2px; font-size: .64rem; }
.tb.guide-mini .tb-guide button span { max-width: 70px; }
.tb.guide-mini .tb-guide hr, .tb.guide-mini .tb-guide h4 { display: none; }
.tb.is-watch .tb-layout { grid-template-columns: minmax(0, 1fr); }
.tb.is-watch .tb-guide, .tb.is-watch .tb-chips { display: none; }
.tb-chips { position: sticky; top: 62px; z-index: 4; background: var(--bg); }
.tb-chips button { border-radius: 8px; }
.tb-row { display: flex; gap: 12px; align-items: flex-start; }
.tb-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; }
.tb-av-school { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.tb-av svg { width: 20px; height: 20px; }
.tb-ok { width: 13px; height: 13px; vertical-align: -2px; padding: 1px; border-radius: 50%; background: var(--muted); color: var(--surface); }
.tb-card .tb-thumb { border-radius: 12px; }
.tb-card:hover .tb-thumb { box-shadow: 0 0 0 3px rgba(239,68,68,.25); }
.tb-wmain h1 { font-size: 1.25rem; line-height: 1.35; margin: 12px 0 10px; }
.tb-chrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-chrow > span:nth-child(2) { display: flex; flex-direction: column; }
.tb-chrow small { color: var(--muted); font-size: .8rem; }
.tb-chrow .tb-av { flex-basis: 42px; width: 42px; height: 42px; }
.tb-safe { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-3); font-weight: 700; font-size: .85rem; }
.tb-safe svg { width: 16px; height: 16px; color: #16a34a; }
.tb-desc { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-3); font-size: .9rem; line-height: 1.6; }
.tb-desc p { margin: 4px 0 0; color: var(--text-2); }
@media (max-width: 900px) {
  .tb-layout { grid-template-columns: minmax(0, 1fr); }
  .tb-guide { display: none; }
  .tb.guide-open .tb-guide { display: flex; position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: 240px; max-height: none; padding: 16px 8px; background: var(--surface); box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .tb-watch { grid-template-columns: minmax(0, 1fr); }
  .tb-back { display: none; }
}
/* Mənim kompüterim pəncərəsində: portal menyusu gizli */
.in-desk .sidebar, .in-desk .sidebar-backdrop, .in-desk .topbar { display: none !important; }
.in-desk .app-main { margin-left: 0 !important; }
.in-desk .content { padding-top: 12px; }

/* Pleyer */
.tt { position: relative; width: 100%; height: 100%; background: #000; outline: none; overflow: hidden; color: #fff; }
.tt-frame, .tt-frame iframe, .tt-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.tt-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; background: transparent; }
.tt-bar, .tt-big, .tt-msg { z-index: 3; }
.tt-big { position: absolute; left: 50%; top: 45%; width: 80px; height: 80px; margin: -40px 0 0 -40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(239,68,68,.95); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tt-big svg { width: 38px; height: 38px; margin-left: 4px; }
.tt-big[hidden] { display: none; }
.tt-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; background: rgba(0,0,0,.88); line-height: 1.6; }
.tt-msg[hidden] { display: none; }
.tt-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85) 40%); transition: opacity .25s; }
.tt.is-playing:not(:hover):not(:focus-within) .tt-bar { opacity: 0; }
.tt-seek { width: 100%; margin: 6px 0 2px; accent-color: #ef4444; height: 4px; }
.tt-row { display: flex; align-items: center; gap: 8px; }
.tt-row button, .tt-row select { height: 36px; min-width: 36px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.tt-row button:hover { background: rgba(255,255,255,.15); }
.tt-row button svg { width: 22px; height: 22px; }
.tt-row select { font-size: 12.5px; padding: 0 6px; background: rgba(255,255,255,.12); }
.tt-row select option { color: #000; }
.tt-vol { width: 90px; accent-color: #fff; }
.tt-time { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-sp { flex: 1; }
.tt:fullscreen { display: block; }

@media (max-width: 1000px) { .ks-grid, .tb-watch { grid-template-columns: 1fr; } .ks-kp { position: static; order: -1; } .ks-topics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .ks-topics { grid-template-columns: repeat(2, 1fr); }
  .ks-rhead { flex-direction: column; align-items: stretch; gap: 8px; }
  .ks-strip-imgs { grid-template-columns: repeat(3, 1fr); } .ks-vrow { grid-template-columns: 1fr; }
  .ks-lead { float: none; width: 100%; margin: 0 0 14px; }
  .tb-head { flex-wrap: wrap; } .tb-search { order: 3; flex-basis: 100%; }
  .tt-vol, .tt-time { display: none; }
}
/* AI köməkçi */
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.aic { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 130px); min-height: 460px; }
.in-desk .aic { height: calc(100vh - 30px); }
.aic-head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; }
.aic-head h1 { margin: 0; font-size: 1.35rem; } .aic-head p { margin: 2px 0 0; color: var(--muted); }
.aic-bot { width: 58px; height: 58px; flex: 0 0 58px; animation: aicBob 3s ease-in-out infinite; }
@keyframes aicBob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.aic-new { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; }
.aic-new .icon { width: 16px; height: 16px; }
.aic-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.aic-msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; line-height: 1.6; font-size: .95rem; word-wrap: break-word; }
.aic-msg p { margin: 0 0 6px; } .aic-msg p:last-child { margin-bottom: 0; }
.aic-msg ul, .aic-msg ol { margin: 4px 0 6px; padding-left: 20px; }
.aic-msg pre { margin: 6px 0; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.08); overflow-x: auto; font-size: .85rem; }
.aic-msg code { padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.08); font-size: .88em; }
.aic-msg.is-bot { align-self: flex-start; background: var(--surface-3); border-bottom-left-radius: 6px; }
.aic-msg.is-me { align-self: flex-end; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-bottom-right-radius: 6px; }
.aic-msg.is-err { background: rgba(239,68,68,.12); color: var(--danger, #dc2626); }
.aic-msg.is-info { background: rgba(234,179,8,.15); font-size: .85rem; }
.aic-dots { display: inline-flex; gap: 5px; padding: 4px 0; }
.aic-dots i { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; animation: ksDot 1s infinite ease-in-out; }
.aic-dots i:nth-child(2) { animation-delay: .15s; } .aic-dots i:nth-child(3) { animation-delay: .3s; }
.aic-ideas { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 0; }
.aic-ideas[hidden] { display: none; }
.aic-ideas button { height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .85rem; cursor: pointer; }
.aic-ideas button:hover { border-color: #6366f1; color: #6366f1; }
.aic-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; padding: 6px 6px 6px 16px; border: 2px solid var(--border); border-radius: 26px; background: var(--surface); }
.aic-form:focus-within { border-color: #6366f1; }
.aic-form textarea { flex: 1; min-width: 0; resize: none; border: 0 !important; outline: none; box-shadow: none !important; background: transparent !important; color: var(--text); font: inherit; padding: 9px 0 !important; max-height: 160px; }
.aic-send { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #6366f1; color: #fff; cursor: pointer; }
.aic-send:disabled { opacity: .4; cursor: not-allowed; }
.aic-send svg { width: 20px; height: 20px; }
.aic-note { margin: 8px 0 0; text-align: center; font-size: .75rem; color: var(--muted); }
/* Sertifikatlar */
.aw-filter { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin: 12px 0; }
@media (max-width: 700px) { .aw-filter { grid-template-columns: 1fr; } }
.aw-sec { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; }
.aw-sec > b { font-size: .95rem; }
.aw-all { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); cursor: pointer; }
.aw-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; }
.aw-p { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.aw-p:has(input:checked) { border-color: var(--primary, #2563eb); background: rgba(37,99,235,.06); }
.aw-p span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .aw-p small { color: var(--muted); font-size: .76rem; }
.aw-star { position: absolute; right: 8px; top: 8px; color: #d4a017; display: none; } .aw-star .icon { width: 18px; height: 18px; }
.aw-p.is-ok .aw-star { display: block; } .aw-p.is-ok { box-shadow: inset 3px 0 0 #d4a017; }
.aw-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.aw-kind { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; }
.aw-kind span { display: flex; flex-direction: column; } .aw-kind small { color: var(--muted); font-size: .78rem; }
.aw-kind:has(input:checked) { border-color: var(--primary, #2563eb); }
.aw-kind.is-gold:has(input:checked) { border-color: #d4a017; background: rgba(212,160,23,.08); }
.aw-crit { display: flex; flex-direction: column; gap: 8px; }
.aw-c { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; }
.aw-c input[type=number] { width: 80px; } .aw-c select { max-width: 260px; }
.aw-tag-gold { background: rgba(212,160,23,.15); color: #8a6a12; }.aw-name { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .aw-name { grid-template-columns: 1fr; } }
.aw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Sertifikat: seçilənlərin sayı */
.aw-selbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.aw-count { font-size: .88rem; color: var(--muted); } .aw-count b { color: var(--text); font-size: 1rem; }
.aw-filter { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .aw-filter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .aw-filter { grid-template-columns: 1fr; } }

/* Kalkulyator */
.cx { max-width: 1200px; margin: 0 auto; }
.cx-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 22px 24px; margin-bottom: 18px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 90% 0, rgba(255,255,255,.18), transparent 40%), linear-gradient(120deg, #4f46e5, #7c3aed 55%, #db2777); box-shadow: 0 14px 34px -14px rgba(79,70,229,.6); }
.cx-hero h1 { margin: 0; font-size: 1.7rem; color: #fff; } .cx-hero p { margin: 4px 0 0; opacity: .9; }
.cx-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.16); }
.cx-tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cx-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-tab.is-on { background: #fff; color: #4f46e5; }
.cx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cx-card { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 20px -14px rgba(0,0,0,.35); }
.cx-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.1rem; }
.cx-num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: .9rem; }
.cx-lbl { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); margin: 6px 0; }
.cx-in { width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2, var(--surface)); color: var(--text); font-family: inherit; font-weight: 700; font-size: 1.05rem; outline: none; transition: border-color .15s; }
.cx-in:focus { border-color: #6366f1; }
.cx-ksq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cx-krow { position: relative; }
.cx-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cx-krow .cx-in { padding-right: 26px; }
.cx-add { margin: 8px 0 4px; border: 2px dashed var(--border); background: none; color: #6366f1; font-weight: 700; border-radius: 10px; padding: 7px 12px; cursor: pointer; width: 100%; }
.cx-res { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--surface-3); }
.cx-res > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.cx-pct { font-size: 1.3rem; font-weight: 800; } .cx-res small { color: var(--muted); font-size: .78rem; }
.cx-ring { position: relative; width: 64px; height: 64px; flex: 0 0 64px; }
.cx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cx-ring circle { fill: none; stroke: var(--border); stroke-width: 3.6; }
.cx-ring circle.v { stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .5s, stroke .3s; }
.cx-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; }
.cx-res-big .cx-ring { width: 92px; height: 92px; flex-basis: 92px; } .cx-res-big .cx-ring b { font-size: 2.2rem; } .cx-res-big .cx-pct { font-size: 1.6rem; }
.cx-need { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: .84rem; }
.cx-need:empty { display: none; }
.cx-need span, .cx-scale span { padding: 4px 10px; border-radius: 8px; font-weight: 700; }
.g2 { background: rgba(239,68,68,.12); color: #dc2626; } .g3 { background: rgba(245,158,11,.14); color: #b45309; }
.g4 { background: rgba(59,130,246,.13); color: #1d4ed8; } .g5 { background: rgba(22,163,74,.13); color: #15803d; }
.cx-scale { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; font-size: .82rem; text-align: center; }
.cx-info { margin-top: 12px; font-size: .86rem; line-height: 1.55; } .cx-info summary { cursor: pointer; font-weight: 700; color: #6366f1; }
.cx-seg { display: flex; gap: 6px; padding: 5px; margin-bottom: 16px; border-radius: 14px; background: var(--surface-3); overflow-x: auto; }
.cx-seg button { flex: 1 0 auto; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: var(--text); font-weight: 700; cursor: pointer; white-space: nowrap; }
.cx-seg button.is-on { background: var(--surface); color: #4f46e5; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cx-grid-dim { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.cx-subjects { display: flex; flex-direction: column; gap: 14px; }
.cx-subj header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cx-subj h3 { margin: 0; font-size: 1.02rem; flex: 1; }
.cx-sc { min-width: 64px; padding: 6px 12px; border-radius: 12px; text-align: center; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 1.05rem; }
.cx-w { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.cx-w select { height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.cx-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cx-f { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.cx-f small { font-weight: 500; }
.cx-step { display: flex; align-items: center; gap: 4px; }
.cx-step button { width: 38px; height: 44px; flex: 0 0 38px; border: 0; border-radius: 10px; background: var(--surface-3); color: var(--text); font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.cx-step button:active { transform: scale(.94); }
.cx-step .cx-in { text-align: center; padding: 0 4px; -moz-appearance: textfield; }
.cx-step .cx-in::-webkit-inner-spin-button { -webkit-appearance: none; }
.cx-warn { color: #dc2626; font-size: .82rem; font-weight: 600; margin-top: 6px; } .cx-warn:empty { display: none; }
.cx-total { position: sticky; top: 80px; }
.cx-big { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.cx-big b { font-size: 3rem; font-weight: 900; line-height: 1; background: linear-gradient(90deg, #4f46e5, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-big small { color: var(--muted); font-size: 1.1rem; font-weight: 700; }
.cx-bars { display: flex; flex-direction: column; gap: 8px; }
.cx-bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: .84rem; }
.cx-bar i { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.cx-bar em { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #6366f1, #ec4899); transition: width .4s; }
.cx-sum { margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--surface-3); display: flex; flex-direction: column; gap: 6px; }
.cx-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.cx-sum-t { padding-top: 6px; border-top: 1px solid var(--border); font-size: 1.1rem; } .cx-sum-t b { font-size: 1.4rem; color: #4f46e5; margin-left: auto; }
.cx-clear { margin-top: 14px; width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 12px; background: none; color: var(--text); font-weight: 700; cursor: pointer; }
.cx-note { margin: 12px 0 0; font-size: .76rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) { .cx-grid { grid-template-columns: 1fr 1fr; } .cx-year { grid-column: 1 / -1; } .cx-grid-dim { grid-template-columns: 1fr; } .cx-total { position: static; } }
@media (max-width: 640px) { .cx-grid { grid-template-columns: 1fr; } .cx-hero { padding: 18px; } .cx-hero h1 { font-size: 1.35rem; } .cx-tabs { width: 100%; } .cx-tab { flex: 1; justify-content: center; padding: 9px 8px; font-size: .9rem; } .cx-ksq { grid-template-columns: 1fr 1fr; } }.cx-step .cx-in { flex: 1 1 auto; min-width: 0; width: 100%; }
.cx-subj header { flex-wrap: wrap; }
.cx-card { min-width: 0; }
@media (max-width: 1000px) { .cx-grid, .cx-grid-dim { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cx-grid-dim { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .cx-grid { grid-template-columns: minmax(0, 1fr); } .cx-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cx-step button { width: 34px; flex-basis: 34px; } .cx-seg button { padding: 9px 10px; font-size: .86rem; } }
@media (max-width: 360px) { .cx-fields { grid-template-columns: minmax(0, 1fr); } }@media (max-width: 640px) { .cx-seg { flex-wrap: wrap; overflow: visible; } .cx-seg button { flex: 1 1 40%; white-space: normal; } }

/* ===== Yeni giriş səhifəsi ===== */
.ln-body { --ln-a: #4f46e5; --ln-b: #ec4899; --ln-card: rgba(255,255,255,.92); --ln-ink: #0f172a; --ln-soft: #64748b;
  min-height: 100vh; overflow-x: hidden; color: var(--ln-ink);
  background: radial-gradient(1200px 600px at 10% -10%, #c7d2fe, transparent 60%), radial-gradient(900px 600px at 110% 10%, #fbcfe8, transparent 55%), radial-gradient(900px 700px at 50% 120%, #bae6fd, transparent 60%), #f8fafc; }
[data-theme="dark"] .ln-body { --ln-card: rgba(15,23,42,.88); --ln-ink: #e2e8f0; --ln-soft: #94a3b8;
  background: radial-gradient(1200px 600px at 10% -10%, #312e81, transparent 60%), radial-gradient(900px 600px at 110% 10%, #831843, transparent 55%), radial-gradient(900px 700px at 50% 120%, #0c4a6e, transparent 60%), #020617; }
.ln-sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ln-b { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; animation: lnUc 20s ease-in-out infinite alternate; }
.ln-b.b1 { width: 340px; height: 340px; background: #818cf8; left: -80px; top: 30%; } .ln-b.b2 { width: 300px; height: 300px; background: #f472b6; right: -60px; top: -40px; animation-duration: 26s; }
.ln-b.b3 { width: 260px; height: 260px; background: #22d3ee; right: 20%; bottom: -80px; animation-duration: 30s; }
@keyframes lnUc { to { transform: translate(60px, -40px) scale(1.15); } }
.ln-fl { position: absolute; width: 54px; height: 54px; opacity: .9; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); animation: lnFl 7s ease-in-out infinite; }
.ln-fl.f1 { left: 6%; top: 16%; } .ln-fl.f2 { left: 42%; top: 6%; animation-delay: -2s; width: 46px; } .ln-fl.f3 { left: 4%; bottom: 14%; animation-delay: -4s; }
.ln-fl.f4 { right: 5%; top: 40%; animation-delay: -1s; width: 46px; } .ln-fl.f5 { right: 40%; bottom: 6%; animation-delay: -3s; } .ln-fl.f6 { right: 8%; bottom: 12%; animation-delay: -5s; width: 64px; }
@keyframes lnFl { 50% { transform: translateY(-14px) rotate(8deg); } }
.ln-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; padding: 18px 20px; }
.ln-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ln-brand { display: flex; align-items: center; gap: 10px; color: var(--ln-ink); text-decoration: none; }
.ln-brand span { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.25); }
.ln-brand img { width: 32px; height: 32px; object-fit: contain; } .ln-brand b { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.3rem; }
.ln-tools { display: flex; align-items: center; gap: 8px; }
.ln-main { flex: 1; display: grid; grid-template-columns: 1fr minmax(340px, 440px); gap: 48px; align-items: center; padding: 24px 0; }
.ln-hello h2 { font-family: Montserrat, sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.15; margin: 14px 0 10px; color: var(--ln-ink); }
.ln-hello p { font-size: 1.08rem; color: var(--ln-soft); max-width: 460px; margin: 0 0 22px; line-height: 1.6; }
.ln-mascot { width: 150px; height: 150px; animation: lnBob 4s ease-in-out infinite; } .ln-mascot svg { width: 100%; height: 100%; }
@keyframes lnBob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.ln-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: 12px; }
.ln-tiles span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 20px; color: #fff; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); transform: rotate(-2deg); transition: transform .3s; }
.ln-tiles span:nth-child(even) { transform: rotate(2deg); } .ln-tiles span:hover { transform: translateY(-4px) rotate(0); }
.ln-tiles .icon { width: 28px; height: 28px; } .ln-tiles b { font-size: .82rem; }
.ln-tiles .t1 { background: linear-gradient(135deg, #f97316, #facc15); } .ln-tiles .t2 { background: linear-gradient(135deg, #ef4444, #ec4899); }
.ln-tiles .t3 { background: linear-gradient(135deg, #0ea5e9, #22c55e); } .ln-tiles .t4 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.ln-card { position: relative; padding: 28px; border-radius: 28px; background: var(--ln-card); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 30px 70px -30px rgba(30,27,75,.55); display: flex; flex-direction: column; gap: 14px; }
[data-theme="dark"] .ln-card { border-color: rgba(255,255,255,.08); }
.ln-head { display: flex; gap: 12px; align-items: center; } .ln-head h1 { margin: 0; font-size: 1.4rem; } .ln-head p { margin: 2px 0 0; color: var(--ln-soft); font-size: .9rem; }
.ln-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ln-a), var(--ln-b)); } .ln-ico .icon { width: 24px; height: 24px; }
.ln-easy { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #22c55e, #10b981 45%, #0ea5e9); box-shadow: 0 14px 28px -14px rgba(16,185,129,.8); transition: transform .2s; }
.ln-easy:hover { transform: translateY(-2px) scale(1.01); }
.ln-easy-ic { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; background: rgba(255,255,255,.22); display: grid; place-items: center; } .ln-easy-ic .icon { width: 28px; height: 28px; }
.ln-easy b { display: block; font-size: 1.2rem; font-family: Montserrat, sans-serif; } .ln-easy small { opacity: .92; font-size: .84rem; }
.ln-easy > span:nth-child(2) { flex: 1; } .ln-easy-go { width: 22px; height: 22px; }
.ln-or { display: flex; align-items: center; gap: 10px; color: var(--ln-soft); font-size: .8rem; font-weight: 600; }
.ln-or::before, .ln-or::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.ln-form { display: flex; flex-direction: column; gap: 12px; }
.ln-form .field-label { font-weight: 700; }
.ln-form .input-icon input { height: 56px; border-radius: 16px; font-size: 1.05rem; border-width: 2px; }
.ln-form .input-icon input:focus { border-color: var(--ln-a); box-shadow: 0 0 0 4px rgba(79,70,229,.15); }
.ln-go { height: 58px; border-radius: 18px; font-size: 1.15rem; font-weight: 800; border: 0; background: linear-gradient(120deg, var(--ln-a), #7c3aed 50%, var(--ln-b)); background-size: 200% 100%; transition: background-position .4s, transform .15s; box-shadow: 0 14px 28px -14px rgba(79,70,229,.9); }
.ln-go:hover { background-position: 100% 0; } .ln-go:active { transform: scale(.98); }
.ln-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ln-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ln-ink); font-family: inherit; font-weight: 600; font-size: .88rem; text-decoration: none; cursor: pointer; }
.ln-chip .icon { width: 17px; height: 17px; } .ln-chip:hover { border-color: var(--ln-a); color: var(--ln-a); }
.ln-chip[hidden] { display: none; }
.ln-chip-wide { width: 100%; justify-content: center; height: 48px; }
.ln-help { font-size: .8rem; text-align: center; color: var(--ln-soft); margin: 0; }
.ln-foot { text-align: center; font-size: .8rem; color: var(--ln-soft); padding: 8px 0 4px; } .ln-foot a { color: inherit; }
@media (max-width: 900px) {
  .ln-main { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 8px; }
  .ln-hello { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .ln-hello p, .ln-tiles { display: none; }
  .ln-mascot { width: 96px; height: 96px; } .ln-hello h2 { font-size: 1.45rem; margin: 6px 0 0; }
  .ln-card { width: 100%; max-width: 480px; margin: 0 auto; padding: 22px 18px; border-radius: 24px; }
  .ln-fl { width: 38px; height: 38px; opacity: .55; }
}
@media (max-width: 420px) { .ln-wrap { padding: 12px; } .ln-brand b { font-size: 1.1rem; } .ln-easy { padding: 14px; } .ln-easy b { font-size: 1.08rem; } }
@media (prefers-reduced-motion: reduce) { .ln-b, .ln-fl, .ln-mascot { animation: none; } }.ln-go, .ln-go:hover { color: #fff !important; }
