/* =============================================================================
   DEDICATED MOBILE APP SHELL STYLES (≤ 768px)
   Matches the mobile wireframe plan:
   - Top App Bar (Logo, AI Search, Task, Classroom, Notifications)
   - Community Bar (Avatar, Ask Question, Filter)
   - Bottom Nav (Qfeed, Jobs, Dash, AI tools, Exams, Profile)
   ============================================================================= */

/* 1. DESKTOP DEFAULT: HIDE ALL MOBILE APP ELEMENTS (> 768px) */
#mobileAppHeader,
#mobileBottomNav,
.mob-modal-overlay {
  display: none !important;
}

/* 2. DEDICATED MOBILE VIEWPORT (≤ 768px) */
@media (max-width: 768px) {
  /* Hide Desktop Header on mobile */
  .site-header {
    display: none !important;
  }

  /* Adjust page bottom padding to clear bottom navigation bar */
  body.site-body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }

/* Mobile has dedicated AI entry points (AI search bar + AI tools hub) —
     the floating AI bubble is removed on small viewports (desktop unaffected). */
  .ai-floating-trigger-container,
  .ai-floating-trigger-btn,
  .ai-floating-widget,
  #aiTutorFloatingWidget,
  .ai-widget-fab,
  .ai-floating-btn,
  .ai-assistant-toggle,
  #aiWidgetBtn,
  #aiFloatingWidget {
    display: none !important;
  }

  /* =========================================================================
     TOP APP BAR (ROW 1 + ROW 2)
     ========================================================================= */
#mobileAppHeader {
    display: block !important;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    padding: 8px 12px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #mobileAppHeader.scrolled-hide {
    transform: translateY(-100%) !important;
  }

  /* Row 1: Logo + Search + Action Icons */
  .mob-top-row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    flex-wrap: nowrap;
    overflow: visible;
    width: 100%;
  }

  .mob-logo-link {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .mob-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
  }

  .mob-ai-search-btn,
  .mob-top-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 7px;
    color: #64748b;
    font-size: 13px;
    position: relative;
    transition: background .15s, border-color .15s, box-shadow .15s;
  }

  .mob-top-search-wrap:focus-within {
    background: #ffffff;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.18);
  }

  .mob-top-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
    padding: 0;
    margin: 0;
  }

  .mob-top-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
  }

  .mob-top-clear-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    flex: 0 0 auto;
    transition: color .15s, background .15s;
  }

  .mob-top-clear-btn:hover {
    color: #475569;
    background: #e2e8f0;
  }

  .mob-live-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 10px;
    right: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    z-index: 1060;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18);
  }

  .mob-ai-search-btn:active {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }

  .mob-search-sparkle {
    color: #8b5cf6;
    font-size: 13px;
    flex: 0 0 auto;
  }

  .mob-search-placeholder {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #64748b;
    font-weight: 500;
  }

  .mob-search-icon {
    font-size: 12px;
    color: #94a3b8;
    flex: 0 0 auto;
  }

  .mob-actions-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mob-action-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: #475569;
    cursor: pointer;
    padding: 0;
    transition: color .15s, background .15s, border-color .15s;
  }

  .mob-action-btn:hover,
  .mob-action-btn:focus {
    color: #18181b;
  }

  .mob-action-btn:active {
    background: #f1f5f9;
  }

  .mob-action-btn.active {
    color: #7c3aed;
    border-color: #c4b5fd;
    background: #f5f3ff;
  }

  .mob-badge-chip {
    position: absolute;
    bottom: -3px;
    right: -3px;
    font-size: 9px;
    font-weight: 800;
    background: #f59e0b;
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 999px;
    line-height: 1;
    border: 1.5px solid #ffffff;
  }

  .mob-notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 800;
    background: #ef4444;
    color: #ffffff;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding: 0 3px;
    border: 1.5px solid #ffffff;
  }

  /* Row 2: Avatar + Ask Question Input + Filter */
  .mob-community-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
  }

  .mob-avatar-link {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    border: 1.5px solid #8b5cf6;
  }

  .mob-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mob-user-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
  }

  .mob-ask-question-btn {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 12.5px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
  }

  .mob-ask-question-btn:active {
    background: #ede9fe;
    border-color: #c4b5fd;
  }

  .mob-ask-prompt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mob-filter-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
  }

  .mob-filter-btn:active {
    background: #ede9fe;
    color: #7c3aed;
  }

  /* =========================================================================
     BOTTOM NAVIGATION BAR (6 ITEMS)
     ========================================================================= */
#mobileBottomNav {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #mobileBottomNav.scrolled-hide {
    transform: translateY(112%) !important;
  }

  .mob-nav-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 56px;
    align-items: center;
    padding: 0 4px;
  }

  .mob-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #64748b;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    transition: color .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-nav-tab:active {
    transform: scale(0.92);
  }

  .mob-nav-icon-wrap {
    font-size: 16px;
    height: 20px;
    display: grid;
    place-items: center;
    transition: color .15s ease, transform .15s ease;
  }

  .mob-ai-icon-wrap {
    color: #8b5cf6;
  }

  .mob-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
  }

  .mob-nav-tab.active {
    color: #7c3aed;
  }

  .mob-nav-tab.active .mob-nav-icon-wrap {
    color: #7c3aed;
    transform: translateY(-1px);
  }

.mob-nav-tab.active .mob-nav-label {
    font-weight: 800;
  }

  /* Press-and-hold reorder (movable tabs only) */
  .mobile-bottom-nav.nav-reordering .mob-nav-items {
    -webkit-user-select: none;
    user-select: none;
  }
  .mobile-bottom-nav.nav-reordering .mob-nav-tab {
    transition: transform 0.18s ease;
  }
  .mobile-bottom-nav.nav-reordering .mob-nav-tab.drag-source {
    opacity: 0.88;
    transform: scale(1.07);
    background: rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  }
  .mobile-bottom-nav.nav-reordering .mob-nav-tab:not(.drag-source):not(.active) {
    animation: mobNavShove 0.18s ease;
  }
  @keyframes mobNavShove {
    from { transform: translateY(-3px); }
    to   { transform: translateY(0); }
  }

  /* =========================================================================
     MOBILE MODAL OVERLAYS & BOTTOM SHEETS
     ========================================================================= */
  .mob-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
  }

  .mob-modal-overlay.show {
    display: block !important;
  }

  .mob-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    animation: mobFadeIn .2s ease;
  }

  .mob-modal-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: mobSlideUp .25s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .mob-sheet-handle {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 8px auto 4px;
    flex: 0 0 auto;
  }

  .mob-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
  }

  .mob-sheet-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
  }

  .mob-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: grid;
    place-items: center;
    font-size: 13px;
    cursor: pointer;
  }

  .mob-sheet-body {
    padding: 14px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
  }

  /* Search Sheet */
  .mob-search-input-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 999px;
    margin-right: 8px;
  }

  .mob-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: #1e293b;
  }

  .mob-clear-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
  }

  .mob-search-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }

  .mob-search-chip-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
  }

  .mob-chip {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    cursor: pointer;
  }

  .mob-chip:active {
    background: #ede9fe;
    color: #7c3aed;
  }

  .mob-search-results {
    min-height: 120px;
  }

  .mob-search-empty {
    text-align: center;
    padding: 24px 12px;
  }

  /* Filter Grid */
  .mob-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mob-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, border-color .15s;
  }

.mob-filter-item.active {
    border-color: #8b5cf6;
    background: #f5f3ff;
    color: #7c3aed;
  }

  .mob-filter-sec {
    grid-column: 1 / -1;
    margin: 6px 0 2px;
    padding: 8px 4px 2px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .mob-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 8px;
  }

  /* =========================================================================
     MOBILE QFEED CARD — 4-action model (Bump / Share / Send / Save)
     Replace the desktop 5-button bar + generic-reaction picker on mobile.
     ========================================================================= */
  .fb-action-bar,
  .fb-react-btn,
  .fb-emoji-picker { display: none !important; }

  .fb-reaction-row .fb-react-chip { display: none !important; }

  .feed-card.fb-card {
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .fb-unified-actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 0 2px;
  }

  .fb-action-left {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .fb-action-btn,
  .fb-mob-action {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border: none;
    background: transparent !important;
    color: #64748b;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .fb-action-btn:hover,
  .fb-action-btn:focus,
  .fb-action-btn.fb-action-active,
  .fb-mob-action:hover,
  .fb-mob-action:focus,
  .fb-mob-action.fb-action-active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .fb-action-ico,
  .fb-mob-ico {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.15s ease;
  }
  .fb-action-btn:active .fb-action-ico,
  .fb-mob-action:active .fb-mob-ico {
    transform: scale(0.92);
  }

  .fb-action-ico-on,
  .fb-mob-ico-on { display: none; }

  .fb-action-btn.fb-action-active .fb-action-ico-on,
  .fb-mob-action.fb-action-active .fb-mob-ico-on { display: inline-block; }
  .fb-action-btn.fb-action-active .fb-action-ico-off,
  .fb-mob-action.fb-action-active .fb-mob-ico-off { display: none; }
  .fb-action-btn.fb-action-active,
  .fb-mob-action.fb-action-active { color: #7c3aed; }

  .fb-action-count,
  .fb-mob-count {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    min-width: 12px;
    text-align: left;
  }

  .fb-action-btn.fb-action-active .fb-action-count,
  .fb-mob-action.fb-action-active .fb-mob-count { color: #7c3aed; }

  .fb-stats-right {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 2px;
    font-size: 12px;
  }
  .fb-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
  }
  .fb-stat-correct { color: #16a34a; }
  .fb-stat-wrong { color: #dc2626; }
  .fb-stat-views { color: #667085; font-weight: 500; }

  /* Slightly touch-friendlier MCQ options on mobile matching FeedCard.kt */
  .fb-options .feed-option { padding: 9px 10px; min-height: 40px; }
  .fb-options.fb-options-4col {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
  }
  .fb-options.fb-options-4col .feed-option {
    padding: 6px 4px !important;
    min-height: 36px;
    font-size: 12px;
  }
  .fb-options.fb-options-4col .fb-option-key {
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-radius: 6px;
  }
  .fb-options.fb-options-2col {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .fb-options.fb-options-2col .feed-option {
    padding: 8px 10px;
    min-height: 40px;
  }
  .fb-options.fb-options-1col {
    grid-template-columns: 1fr !important;
  }
  .fb-question {
    font-size: 16px;
    line-height: 1.55;
    padding: 2px 2px 8px;
  }
  .fb-post-header .fb-avatar-md { width: 40px; height: 40px; }

  /* Onboarding goals strip (mobile feed home: compact collapsible card) */
  .ob-goals {
    background: linear-gradient(135deg, #2e1065, #6d28d9);
    border-radius: 16px;
    padding: 10px 14px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(109, 40, 217, .18);
    transition: all .2s ease;
  }
  .ob-goals-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .ob-goals-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .ob-goals-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .ob-goals-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
  }
  .ob-goals-meta { min-width: 0; }
  .ob-goals-title { font-size: .88rem; font-weight: 800; line-height: 1.25; }
  .ob-goals-sub { margin-top: 2px; font-size: .7rem; opacity: .85; }
  .ob-goals-mini-bar {
    width: 48px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    overflow: hidden;
  }
  .ob-goals-toggle-btn {
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    flex-shrink: 0;
  }
  .ob-goals-chevron {
    transition: transform .25s ease;
  }
  .ob-goals:not(.ob-goals-collapsed) .ob-goals-chevron {
    transform: rotate(180deg);
  }
  .ob-goals-link { font-size: .72rem; font-weight: 700; color: #fde68a; text-decoration: none; white-space: nowrap; }
  .ob-goals-progress { height: 5px; margin: 10px 0; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
  .ob-goals-progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #facc15, #f472b6); }
  .ob-goals-list { display: grid; gap: 8px; }
  .ob-goal {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px;
    border-radius: 12px; background: rgba(255, 255, 255, .08);
    color: #fff; text-decoration: none;
  }
  .ob-goal.done { opacity: .72; }
  .ob-goal-ico {
    display: grid; place-items: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 10px; font-size: .85rem;
  }
  .ob-goal-txt { flex: 1; min-width: 0; }
  .ob-goal-txt strong { display: block; font-size: .82rem; font-weight: 800; }
  .ob-goal-txt small { display: block; max-width: 100%; font-size: .7rem; opacity: .82; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ob-goal-go { font-size: .7rem; color: rgba(255, 255, 255, .55); flex-shrink: 0; }

  /* Compact mobile dashboard hero (student + educator) */
  .dash-mob { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 14px; box-shadow: 0 6px 18px rgba(30, 41, 59, .05); }
  .dash-mob-edu { border-color: #ddd6fe; background: #faf9ff; }
  .dash-mob-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; }
  .dash-mob-banner::after { content: none; }
  .dash-mob-greet { font-size: 1.05rem; font-weight: 800; color: #1e293b; letter-spacing: -.02em; }
  .dash-mob-role { margin-top: 2px; font-size: .72rem; font-weight: 700; color: #7c85a3; }
  .dash-mob-role i { margin-right: 5px; color: #7c3aed; }
  .dash-mob-avatar {
    display: grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 50%;
    color: #fff; font-weight: 800; font-size: .9rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 8px 18px rgba(124, 58, 237, .3);
  }
  .dash-mob-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800;
    color: #6d28d9; background: #ede9fe; border: 1px solid #ddd6fe;
    text-decoration: none; white-space: nowrap;
  }
  .dash-mob-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dash-mob-cell {
    display: flex; flex-direction: column; gap: 1px;
    padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 13px;
    background: #fff; color: inherit; text-decoration: none;
  }
  .dash-mob-edu .dash-mob-cell { border-color: #e9e2ff; }
  .dash-mob-cell i { font-size: .85rem; color: #7c3aed; margin-bottom: 3px; }
  .dash-mob-cell b { font-size: 1.2rem; font-weight: 800; color: #1e293b; line-height: 1.15; }
  .dash-mob-cell span { font-size: .63rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
  .dash-mob-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  .dash-mob-actions a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 10px;
    background: #f5f3ff; border: 1px solid #ddd6fe; color: #6d28d9;
    font-size: .76rem; font-weight: 700; text-decoration: none;
  }
  .dash-mob-actions a:hover { background: #ede9fe; }

  /* Task Sheet */
  .mob-task-balance-card {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
  }

  .mob-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mob-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
  }

  .mob-task-info strong {
    font-size: 13px;
    display: block;
    color: #1e293b;
  }

  .mob-task-info small {
    font-size: 11px;
  }

  /* Classroom Grid */
  .mob-class-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mob-class-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #1e293b;
    text-decoration: none;
  }

  .mob-class-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ede9fe;
    color: #7c3aed;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex: 0 0 auto;
  }

  /* Tools Grid */
  .mob-tools-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mob-tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #1e293b;
    text-decoration: none;
    transition: background .15s, border-color .15s;
  }

  .mob-tool-card:active {
    background: #f1f5f9;
  }

  .mob-tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex: 0 0 auto;
  }

  @keyframes mobFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes mobSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

