/* Evraklik - mobil kompakt katman.
 * Yalnızca küçük ekranlarda (max-width medya sorguları) çalışır; masaüstü görünüme dokunmaz.
 * Mevcut stil dosyalarından SONRA yüklenir. */

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  img, video, canvas, svg { max-width: 100%; }

  /* Üst başlık: dokunma hedefleri */
  #evraklik-topbar .mobile-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  #evraklik-topbar .mobile-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Üst başlık sığsın: sol taraf esner, sağdaki düğmeler kesilmez */
  html body #evraklik-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 6px;
    padding-right: 8px;
    box-sizing: border-box;
    max-width: 100vw;
  }
  html body #evraklik-topbar .topbar-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  html body #evraklik-topbar .topbar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  html body #evraklik-topbar .mobile-brand { flex: 0 0 auto; }
  html body #evraklik-topbar .mobile-brand-img { height: 26px; width: auto; max-width: 96px; object-fit: contain; }
  html body #evraklik-topbar .top-search-box { flex: 1 1 auto; min-width: 0; width: auto; max-width: none; }
  html body #evraklik-topbar .top-search-box input { min-width: 0; width: 100%; text-overflow: ellipsis; }
  html body #evraklik-topbar .kbd-hint { display: none; }
  html body #evraklik-topbar .btn-topbar span,
  html body #evraklik-topbar #theme-toggle-label { display: none; }
  html body #evraklik-topbar .btn-topbar {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    flex: 0 0 auto;
  }

  /* Gezinti kırıntısı: tek satır, uzun başlık kısaltılır */
  html body .evr-breadcrumbs { overflow: hidden; }
  html body .evr-breadcrumbs ol {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
  }
  html body .evr-breadcrumbs li { flex-shrink: 0; align-items: center; min-height: 28px; }
  html body .evr-breadcrumbs li:last-child {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html body .evr-breadcrumbs li:last-child > * {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Sayfa içi kırıntı çubuğu (oe-breadcrumb): tek satır */
  :root:not(#evr-rows) body nav.oe-breadcrumb {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 10px;
  }
  :root:not(#evr-rows) body nav.oe-breadcrumb > * { flex-shrink: 0; }
  :root:not(#evr-rows) body nav.oe-breadcrumb .current {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Evrak bulucu sonuç başlığı */
  html body .finder-results-bar h2 { font-size: 24px; line-height: 1.2; }

  /* Sayfa içi satır/kart başlıkları sığsın */
  html body .rehberlik-personalization-card .card-head { gap: 8px; }
  html body .pers-head-title { flex-wrap: wrap; row-gap: 2px; flex: 1 1 auto; min-width: 0; }
  html body .pers-head-title small { flex: 1 1 100%; padding-left: 13px; }

  /* Kulüp kademe kartları: rozet ok düğmesine binmesin */
  :root:not(#evr-rows) body .kademe-cards-grid .kademe-card-badge { margin-right: 40px; }

  /* Dokunma hedefleri */
  html body .evr-footer-col a {
    display: inline-block;
    padding: 9px 0;
  }
  html body .btn-finder-download,
  html body .btn-finder-action,
  html body .btn-reset-filters,
  html body .finder-page-btn { min-height: 40px; }
  html body .finder-pill,
  html body .finder-pill-sm,
  html body .pill-btn,
  html body .btn-week-step,
  html body .btn-week-today { min-height: 38px; }
  html body .wcard-nav-arrow,
  html body .wcard-btn-today { min-height: 40px; }

  /* Tablolar yatay kaydırılsın */
  .evraklik-clean-page table,
  .entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Metin kesilmesin */
  #evraklik-content h1,
  #evraklik-content h2,
  #evraklik-content h3 { overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  #evraklik-topbar input[type="search"],
  #evraklik-topbar input[type="text"] { font-size: 13px; }
  #evraklik-content { padding-left: 6px; padding-right: 6px; }
}

/* ==========================================================================
 * ANA SAYFA MOBİL
 * Yalnızca ana sayfa (hero-banner / evr-home-arc / homepage-tools-grid) ve <=900px.
 * Masaüstüne etkisi olan TEK kural, aşağıdaki varsayılan display:none'dır.
 * ========================================================================== */
.evr-home-shortcuts { display: none; }

@media (max-width: 900px) {
  /* 1) Hero: kısa */
  html body .hero-banner { padding: 14px 16px; margin-bottom: 12px; gap: 10px; }
  html body .hero-banner .hero-title { font-size: 1.15rem; line-height: 1.25; margin: 0 0 4px; }
  html body .hero-banner .hero-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
  }
  html body .hero-banner .hero-actions { gap: 8px; margin: 0; }
  html body .hero-banner .hero-btn { min-height: 44px; }

  /* 3) Kısayol ızgarası: 4 sütun x 2 satır, kare kutular */
  html body .evr-home-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
  }
  html body .evr-home-shortcuts .evr-home-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 1 / 1;
    min-height: 44px;
    padding: 6px 4px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #E7E2F5;
    border-radius: 14px;
    color: #1f1b3a;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  html body .evr-home-shortcuts .evr-home-shortcut i {
    font-size: 24px;
    line-height: 1;
    color: #6B3DED;
  }
  html body .evr-home-shortcuts .evr-home-shortcut span {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  html body .evr-home-shortcuts .evr-home-shortcut:active { background: #F4F1FF; }

  /* 3) Eski 4 çözüm kartı + arşiv başlık bandı gizli */
  html body .evr-home-arc .evr-arc-hubs,
  html body .evr-home-arc .evr-arc-banner { display: none !important; }
  html body .evr-home-arc .evr-arc-top { margin-bottom: 0 !important; }
  html body .evr-home-arc { margin-top: 0 !important; margin-bottom: 8px !important; }

  /* 4) Arama/filtre formu ve evrak kart listesi gizli (+ yetim kalan bölüm başlığı) */
  html body .evr-home-arc .evr-arc-filter,
  html body .evr-home-arc #evraklik-cards-grid { display: none !important; }
  html body .section-header:has(+ .evr-home-arc) { display: none; }

  /* 5) Popüler araçlar: sekmeler kaydırılır çip satırı, kartlar tek satır kaydırma */
  html body .filter-chips-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 0 -2px 10px;
    padding: 2px 2px 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  html body .filter-chips-container::-webkit-scrollbar { display: none; }
  html body .filter-chips-container .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
    padding: 0 14px;
    scroll-snap-align: start;
  }
  html body #homepage-tools-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 8px;
    margin-bottom: 16px;
  }
  html body #homepage-tools-grid::-webkit-scrollbar { display: none; }
  html body #homepage-tools-grid .tool-card {
    flex: 0 0 78%;
    max-width: 260px;
    min-width: 0;
    scroll-snap-align: start;
    padding: 12px;
    box-sizing: border-box;
  }
  html body #homepage-tools-grid .tool-card h3 { font-size: 0.95rem; line-height: 1.3; margin: 6px 0 4px; }
  html body #homepage-tools-grid .tool-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0;
  }
  html body #homepage-tools-grid .tool-card-btn { min-height: 44px; }

  /* 6) "Neden Evraklık" kartları gizli (+ başlığı) */
  html body .features-grid,
  html body .section-header:has(+ .features-grid) { display: none; }

  /* 7) SSS: zaten akordeon (.faq-item > button.faq-question), boşlukları sıkılaştır */
  html body .faq-accordion .faq-question { padding: 12px 14px; min-height: 44px; font-size: 0.9rem; }
  html body .faq-accordion .faq-item { margin-bottom: 8px; }

  /* 8) Alt bilgi: uzun sütunlar gizli, 6 temel bağlantı + telif satırı (yalnızca ana sayfa) */
  html body:has(#homepage-tools-grid) .evr-site-footer { padding: 14px 14px 12px; margin-top: 20px; }
  html body:has(#homepage-tools-grid) .evr-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
  }
  html body:has(#homepage-tools-grid) .evr-footer-col,
  html body:has(#homepage-tools-grid) .evr-footer-col ul { display: contents; }
  html body:has(#homepage-tools-grid) .evr-footer-col h3,
  html body:has(#homepage-tools-grid) .evr-footer-col li { display: none; }
  html body:has(#homepage-tools-grid) .evr-footer-col li:has(a[href$="/yillik-planlar/"]),
  html body:has(#homepage-tools-grid) .evr-footer-col li:has(a[href$="/araclar/"]),
  html body:has(#homepage-tools-grid) .evr-footer-col li:has(a[href$="/evrak-bulucu/"]),
  html body:has(#homepage-tools-grid) .evr-footer-col li:has(a[href$="/iletisim/"]),
  html body:has(#homepage-tools-grid) .evr-footer-col li:has(a[href$="/gizlilik-politikasi/"]),
  html body:has(#homepage-tools-grid) .evr-footer-col li:has(a[href$="/kullanim-kosullari/"]) { display: block; }
  html body:has(#homepage-tools-grid) .evr-footer-col li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #E7E2F5;
    border-radius: 999px;
    font-size: 0.82rem;
  }
  html body:has(#homepage-tools-grid) .evr-footer-bottom { margin-top: 10px; padding-top: 10px; }
}

/* ===== PLAN ARŞİVLERİ MOBİL (Yıllık, Günlük, Okul Temelli): üst bilgi kartı, sınıf açıklamaları ve ikinci gezinti satırı gizli ===== */
@media (max-width: 900px) {
  html body #evraklik-plans-app .plans-hero-card { display: none; }
  html body #evraklik-plans-app #view-classes-list .glass-subtitle { display: none; }
  /* Sınıf listesindeyken iç gezinti satırı, üstteki genel gezinti satırının tekrarı */
  html body #evraklik-plans-app .oe-breadcrumb:has(#bc-class-pill[style*="display:none"]),
  html body #evraklik-plans-app .oe-breadcrumb:has(#bc-class-pill[style*="display: none"]) { display: none; }
}

/* ===== İÇ ADIMLARDAKİ BİLGİ KARTLARI MOBİL: ders seçimi ve plan/hafta detayı (plan arşivleri), zümre üst kartı ===== */
@media (max-width: 900px) {
  html body #evraklik-plans-app .selected-class-hero,
  html body #evraklik-plans-app .detail-plan-hero-card { display: none; }
  /* Zümre: kart kalkar, sihirbaz düğmeleri yalın satır olarak kalır */
  html body #evraklik-zumre-app .zumre-header-card {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 10px;
  }
  html body #evraklik-zumre-app .zumre-header-card::before,
  html body #evraklik-zumre-app .zumre-header-card::after { display: none; }
  html body #evraklik-zumre-app .zumre-header-card .oe-hero-badge,
  html body #evraklik-zumre-app .zumre-header-card .oe-hero-title,
  html body #evraklik-zumre-app .zumre-header-card .oe-hero-desc { display: none !important; }
  html body #evraklik-zumre-app .zumre-header-card .oe-hero-actions { margin: 0; gap: 8px; }
}

/* ===== TEK GEZİNTİ SATIRI (mobil). SEO için BreadcrumbList JSON-LD ayrıca basılıyor; görünür satır tekrarına gerek yok. ===== */
@media (max-width: 900px) {
  /* Plan arşivleri: sınıf/ders adımlarında iç satır (adım bilgili) kalır, genel satır gizlenir */
  html body:has(#evraklik-plans-app #bc-class-pill:not([style*="none"])) .evr-breadcrumbs { display: none; }
  /* Zümre: iç satır boş adım içeriyor; genel satır yeterli */
  html body #evraklik-zumre-app .oe-breadcrumb { display: none !important; }
}

/* Zümre: kart kalkınca kalan boşluk (tema kuralları daha özgül olduğu için güçlü seçici) */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #evraklik-zumre-app.oe-portal-wrapper { padding-top: 0 !important; }
  html:not(.x) body:not(.x) #evraklik-zumre-app .oe-hero-card-purple.zumre-header-card {
    padding: 0 !important;
    margin: 0 0 12px !important;
    min-height: 0 !important;
  }
  html:not(.x) body:not(.x) #evraklik-zumre-app .zumre-header-card .oe-hero-actions { margin: 0 !important; }
}

/* ===== ÜST BAŞLIK DÜĞMELERİ + SINIF DEFTERİ ASİSTANI SADELİĞİ (mobil) ===== */
@media (max-width: 900px) {
  /* Arama kalan yeri doldursun (app-shell 160px sınırını aşar) */
  html:not(.x) body:not(.x) #evraklik-topbar .top-search-box { max-width: none !important; flex: 1 1 auto !important; }
  /* Sağdaki düğmeler: aynı boy, tek katman (gölge/kenar çift görünmesin) */
  html:not(.x) body:not(.x) #evraklik-topbar .topbar-right > .btn-topbar {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  html:not(.x) body:not(.x) #evraklik-topbar .topbar-right > .btn-topbar-primary { border: 0 !important; outline: 0 !important; }
  html:not(.x) body:not(.x) #evraklik-topbar .topbar-right > .btn-topbar::before,
  html:not(.x) body:not(.x) #evraklik-topbar .topbar-right > .btn-topbar::after { display: none !important; }
  html:not(.x) body:not(.x) #evraklik-topbar .topbar-right { gap: 6px !important; }
  /* Mobilde yalnız tema + üye ol simgesi (önceki davranış; diğerleri çekmecede) */
  html:not(.x) body:not(.x) #evraklik-topbar .topbar-right > .btn-topbar-secondary:not(#theme-toggle-btn) { display: none !important; }
  html:not(.x) body:not(.x) #evraklik-topbar .topbar-right > .btn-topbar i { line-height: 1 !important; font-size: 1.15rem !important; }
  /* Simge kutusu (tema deseni) düğmenin içinde ikinci katman gibi görünmesin */
  html:not(.x) body:not(.x) #evraklik-topbar .topbar-right > .btn-topbar i {
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* Sınıf Defteri asistanı: açıklama ve "Bugün" etiketi gizli */
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-title-group p,
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-today-pill { display: none !important; }
}

/* ===== HAFTA ÇUBUĞU: Not Ekle küçük düğme olarak çubukta, Bugün düğmesi hizalı ===== */
.wcard-nav-note { display: none; }
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-bottom-actions { display: none !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-slider-nav {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-counter { flex: 1 1 auto !important; min-width: 0 !important; height: 40px !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-arrow,
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-note,
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-btn-today {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    transform: none !important;
    position: static !important;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-btn-today { font-size: 0 !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-btn-today i,
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-note i { font-size: 1.15rem !important; margin: 0 !important; line-height: 1 !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-note {
    background: #F3EEFF !important;
    color: #6B3DED !important;
    border: 1px solid #E7E2F5 !important;
    cursor: pointer;
  }
}

/* Asistan başlığı: hafta rozeti gizli (alttaki hafta kartında yazıyor), başlık sola hizalı */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-header-badges { display: none !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-header { display: block !important; text-align: left !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-title-group { text-align: left !important; width: 100% !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-title-group h3 { margin: 0 !important; text-align: left !important; }
}

/* Asistan etiketleri: mobilde kısa ("Branş", "Sınıf"), masaüstünde uzun */
.pills-label .pl-short { display: none; }
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .pills-label .pl-long { display: none !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .pills-label .pl-short { display: inline !important; }
}

/* Asistan hafta satırı: "‹ Önceki" [hafta seçici] "Sonraki ›" [Bu Hafta] tek satır */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row .pl-long { display: none !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row .stepper-select-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    order: 0;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row select {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    padding: 0 6px !important;
    font-size: 0.78rem !important;
    text-overflow: ellipsis;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row .btn-week-step,
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row .btn-week-today {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    gap: 2px !important;
  }
}

/* Hafta çubuğu: Not Ekle yazılı, sayaç daralır; hafta satırında Bu Hafta simge, seçici geniş */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-note {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 10px !important;
    gap: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-counter { flex: 1 1 auto !important; min-width: 64px !important; padding: 0 6px !important; }
}
@media (max-width: 480px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row .btn-week-today {
    width: 40px !important;
    padding: 0 !important;
    font-size: 0 !important;
    justify-content: center !important;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row .btn-week-today i { font-size: 1.1rem !important; margin: 0 !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row .btn-week-step { padding: 0 6px !important; }
}
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-counter { white-space: nowrap !important; min-width: 0 !important; gap: 2px !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-counter .wcard-counter-text { white-space: nowrap !important; font-size: 0.82rem !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-slider-nav { gap: 4px !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; }
}
@media (max-width: 400px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-arrow,
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-btn-today { flex-basis: 36px !important; width: 36px !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .wcard-nav-counter i { display: none !important; }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-stepper-row select { font-size: 0.72rem !important; padding: 0 4px !important; }
}

/* Asistan: "Branş" / "Sınıf" etiketi çiplerle aynı satırda (yanı boş kalmasın) */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-pills-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-pills-row .pills-label {
    flex: 0 0 auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-pills-row .branch-pills-scroll,
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-pills-row .grade-pills-scroll {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
}

/* Branş/Sınıf etiketi: tema 118px sabit genişlik veriyordu; kısa etikete göre dar ve iki satırda hizalı */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #notebook-assistant-root .assistant-pills-row .pills-label {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    padding: 0 !important;
  }
}

/* Hoş geldiniz düğmeleri: simge kutusu ortada ikinci katman gibi durmasın; simge + yazı ortalı, tek parça */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) .hero-banner .hero-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
  }
  html:not(.x) body:not(.x) .hero-banner .hero-btn i {
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
  }
  html:not(.x) body:not(.x) .hero-banner .hero-btn::before,
  html:not(.x) body:not(.x) .hero-banner .hero-btn::after { display: none !important; }
}

/* Kulüpler: üst bilgi kartı mobilde gizli */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #evraklik-clubs-app .clubs-hero-card { display: none !important; }
}

/* Alt bilgi (ana sayfa dışı): bağlantılar DOM'da kalır (SEO), mobilde sıkı akış: başlık + "·" ile ayrılmış tek paragraf */
@media (max-width: 900px) {
  html body:not(:has(#homepage-tools-grid)) .evr-site-footer { padding: 14px 14px 10px !important; }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-grid {
    display: block !important;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col { margin: 0 0 10px !important; padding: 0 !important; }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col h3 {
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6B7177 !important;
    margin: 0 0 4px !important;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col ul {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7 !important;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col li {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col li + li::before {
    content: "·";
    margin: 0 6px;
    color: #B8B2CC;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col a {
    display: inline !important;
    min-height: 0 !important;
    padding: 2px 0 !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-bottom { margin-top: 6px !important; padding-top: 8px !important; font-size: 0.75rem !important; }
}

/* Veli toplantısı: zümre gibi — iç gezinti satırı gizli, üst kartta yalnız sihirbaz düğmeleri kalır */
@media (max-width: 900px) {
  html:not(.x) body:not(.x) #evraklik-veli-app .oe-breadcrumb { display: none !important; }
  html:not(.x) body:not(.x) #evraklik-veli-app.oe-portal-wrapper,
  html:not(.x) body:not(.x) #evraklik-veli-app { padding-top: 0 !important; }
  html:not(.x) body:not(.x) #evraklik-veli-app .oe-hero-card-purple {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    min-height: 0 !important;
  }
  html:not(.x) body:not(.x) #evraklik-veli-app .oe-hero-card-purple::before,
  html:not(.x) body:not(.x) #evraklik-veli-app .oe-hero-card-purple::after,
  html:not(.x) body:not(.x) #evraklik-veli-app .oe-hero-card-purple .oe-hero-badge,
  html:not(.x) body:not(.x) #evraklik-veli-app .oe-hero-card-purple .oe-hero-title,
  html:not(.x) body:not(.x) #evraklik-veli-app .oe-hero-card-purple .oe-hero-desc { display: none !important; }
  html:not(.x) body:not(.x) #evraklik-veli-app .oe-hero-card-purple .oe-hero-actions { margin: 0 !important; }
}

/* Alt bilgi v2 (ana sayfa dışı): her grup tek satır, yana kaydırmalı küçük çipler — tüm bağlantılar yerinde (SEO), yükseklik ~yarıya iner */
@media (max-width: 900px) {
  html body:not(:has(#homepage-tools-grid)) .evr-site-footer { padding: 12px 0 10px !important; }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col { margin: 0 0 8px !important; }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col h3 {
    font-size: 0.68rem !important;
    margin: 0 0 4px !important;
    padding: 0 14px !important;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 2px !important;
    line-height: 1 !important;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col ul::-webkit-scrollbar { display: none; }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col li { display: block !important; flex: 0 0 auto !important; }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col li + li::before { content: none !important; }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-col a {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    padding: 0 12px !important;
    border: 1px solid #E7E2F5 !important;
    border-radius: 999px !important;
    background: #FBFAFE !important;
    font-size: 0.78rem !important;
    color: #4B4F63 !important;
  }
  html body:not(:has(#homepage-tools-grid)) .evr-footer-bottom {
    margin: 6px 14px 0 !important;
    padding-top: 8px !important;
    font-size: 0.72rem !important;
    text-align: center !important;
  }
}
