/* 0.30.73-r1: parent card harmony, compact results, visible teacher calendar, colorful bottom nav */
@media(max-width:760px){
  /* Parent dashboard: remove the heavy teal task CTA and use soft role colors */
  body[data-role="parent"] .parent-mobile-home .mobile-focus-grid>button{
    border-color:#dce8ee!important;
    box-shadow:none!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-focus-grid>button[data-go="homework"]{
    background:#fff8e8!important;border-color:#f3dfb6!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-focus-grid>button[data-go="reports"]{
    background:#eef8f5!important;border-color:#cfe8dc!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-focus-grid>button[data-go="finance"]{
    background:#f5f1fb!important;border-color:#e1d7f1!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-primary-actions{
    gap:7px!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-primary-actions button{
    min-height:34px!important;
    border-radius:10px!important;
    font-size:10px!important;
    box-shadow:none!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-primary-actions button[data-go="homework"]{
    background:#fff3d9!important;
    color:#8b5e08!important;
    border:1px solid #efd59d!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-primary-actions button[data-go="reports"]{
    background:#eaf8f1!important;
    color:#267156!important;
    border:1px solid #c8e5d5!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-primary-actions button[data-go="messages"]{
    background:#fff0f4!important;
    color:#a04f65!important;
    border:1px solid #f0cfda!important;
  }
  body[data-role="parent"] .parent-mobile-home .mobile-primary-actions .app-icon{
    width:17px!important;height:17px!important;
  }

  /* Parent results center: less vertical stretching */
  body[data-role="parent"] .performance-overview{
    padding:9px 10px!important;
    gap:7px!important;
    border-radius:12px!important;
  }
  body[data-role="parent"] .performance-overview-head{
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
  }
  body[data-role="parent"] .performance-overview-head h2{
    font-size:14px!important;
    line-height:1.45!important;
  }
  body[data-role="parent"] .performance-overview-head strong{
    font-size:11px!important;
  }
  body[data-role="parent"] .performance-overview-head small,
  body[data-role="parent"] .performance-overview-head span{
    font-size:8px!important;
  }
  body[data-role="parent"] .performance-insight-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  body[data-role="parent"] .performance-insight-grid article{
    padding:7px 8px!important;
    border-radius:9px!important;
    min-height:0!important;
  }
  body[data-role="parent"] .performance-insight-grid h3{
    font-size:9px!important;
    margin-bottom:4px!important;
  }
  body[data-role="parent"] .performance-insight-grid article>span{
    display:grid!important;
    gap:2px!important;
    padding:4px 0!important;
  }
  body[data-role="parent"] .performance-insight-grid article>span strong,
  body[data-role="parent"] .performance-insight-grid article>span small{
    font-size:8.5px!important;
  }
  body[data-role="parent"] .performance-section{
    padding:8px 9px!important;
    margin:7px 0!important;
    border-radius:10px!important;
  }
  body[data-role="parent"] .performance-section-head{
    margin-bottom:5px!important;
  }
  body[data-role="parent"] .performance-section-head h3,
  body[data-role="parent"] .personal-results-center .card-head h3{
    font-size:11px!important;
  }
  body[data-role="parent"] .personal-results-list{
    gap:6px!important;
  }
  body[data-role="parent"] .personal-results-list article{
    padding:8px 9px!important;
    border-radius:10px!important;
    gap:5px 8px!important;
  }
  body[data-role="parent"] .personal-results-list article strong,
  body[data-role="parent"] .personal-results-list article>b{
    font-size:10px!important;
  }
  body[data-role="parent"] .personal-results-list article small,
  body[data-role="parent"] .personal-results-list article span,
  body[data-role="parent"] .personal-results-list article>p{
    font-size:8px!important;
  }

  /* Bottom navigation: colorful but muted, with a soft focus ring */
  #mobile-nav button{
    color:#6f7f8d!important;
    transition:background .15s ease,color .15s ease,transform .15s ease!important;
  }
  #mobile-nav button .mobile-nav-icon{
    width:20px!important;
    height:20px!important;
    padding:4px!important;
    border-radius:9px!important;
    box-sizing:content-box!important;
  }
  #mobile-nav button[data-page="dashboard"] .mobile-nav-icon{background:#e8f7fa!important;color:#208397!important}
  #mobile-nav button[data-page="calendar"] .mobile-nav-icon,
  #mobile-nav button[data-page="schedule"] .mobile-nav-icon{background:#eef3ff!important;color:#5573ad!important}
  #mobile-nav button[data-page="attendance"] .mobile-nav-icon{background:#eaf8f1!important;color:#27815f!important}
  #mobile-nav button[data-page="homework"] .mobile-nav-icon{background:#fff5df!important;color:#a06c13!important}
  #mobile-nav button[data-page="reports"] .mobile-nav-icon,
  #mobile-nav button[data-page="grades"] .mobile-nav-icon{background:#f2effc!important;color:#6e58a8!important}
  #mobile-nav button[data-page="messages"] .mobile-nav-icon{background:#fff0f4!important;color:#b1546a!important}
  #mobile-nav button[data-page="classes"] .mobile-nav-icon{background:#edf6fb!important;color:#407b9b!important}
  #mobile-nav button[data-more] .mobile-nav-icon{background:#f1f4f7!important;color:#667786!important}
  #mobile-nav button.active{
    background:#f8fbfc!important;
    color:#274c61!important;
    box-shadow:inset 0 0 0 1px #dce8ee!important;
  }
  #mobile-nav button:focus-visible{
    outline:2px solid #7fc2cf!important;
    outline-offset:-2px!important;
  }
  #mobile-nav button span{
    font-weight:700!important;
  }

  /* Student profile warnings are visible but do not block the record */
  .student-profile-warning{
    display:flex!important;
    align-items:flex-start!important;
    gap:9px!important;
    margin:0 0 10px!important;
    padding:9px 10px!important;
    border:1px solid #efdcae!important;
    border-radius:11px!important;
    background:#fffaf0!important;
    color:#72561b!important;
  }
  .student-profile-warning>.app-icon{
    width:19px!important;height:19px!important;flex:none!important;
  }
  .student-profile-warning>div{display:grid!important;gap:2px!important}
  .student-profile-warning strong{font-size:10px!important}
  .student-profile-warning span{font-size:8.5px!important;color:#8a6c2f!important}
}
