/* LC Carreiras Policiais — responsividade mobile reforçada v3 */
@media (max-width:1100px){
  html,body{max-width:100%;overflow-x:hidden}
  body.sidebar-open{overflow:hidden}
  #app{display:block!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important}
  #app>#main-content{grid-column:1/-1!important;margin-left:0!important;width:100%!important;max-width:100%!important;min-width:0!important}
  #app .content{width:100%!important;max-width:none!important;padding:14px 12px 28px!important;overflow-x:hidden}
  #app .topbar{padding:10px 12px!important;gap:9px;min-height:62px}
  #app .topbar #menu{display:grid!important;place-items:center!important;flex:0 0 38px;width:38px;height:38px;border:1px solid #d8e2ef;background:#fff;color:#17345d;border-radius:10px!important}
  #app .topbar>div{min-width:0;flex:1}#app .topbar #title{font-size:20px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#app .theme-toggle{flex:0 0 auto;white-space:nowrap}#app .topbar .date{display:none!important}
  #app .sidebar{position:fixed!important;top:0!important;left:0!important;bottom:0!important;z-index:100!important;width:min(86vw,300px)!important;height:100dvh!important;max-height:100dvh;overflow-y:auto;transform:translateX(-105%)!important;visibility:hidden!important;pointer-events:none!important;transition:transform .24s ease,visibility 0s linear .24s!important;box-shadow:20px 0 48px rgba(0,0,0,.28)!important}
  #app .sidebar.open{transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important;transition-delay:0s!important}
  #sidebar-backdrop:not(.hidden){display:block!important;position:fixed!important;inset:0!important;z-index:95!important;background:rgba(3,9,17,.58)!important;backdrop-filter:blur(2px);border:0!important}
  #app .schedule-board,#app .schedule-board.compact{grid-template-columns:1fr!important;gap:12px!important}
  #app .schedule-card{width:100%!important;max-width:none!important;min-width:0!important}
  #app .panel,#app .card,#app .stat,#app .toolbar,#app .filter-card,#app .student-card,#app .question-card,#app .sim-card,#app .material-card{min-width:0!important;max-width:100%!important}
  #app table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  #app #lc-smart-study-map{width:100%!important;max-width:100%!important}#app .lc-guide-main{grid-template-columns:1fr!important}#app .lc-guide-action{width:100%!important;min-width:0!important}#app .lc-guide-meters{grid-template-columns:1fr 1fr!important}#app .lc-next-row{grid-template-columns:1fr!important}
}

/* Também força mobile quando o navegador Android está em “site para computador”. */
html.lc-mobile-device,html.lc-mobile-device body{max-width:100%;overflow-x:hidden}
html.lc-mobile-device body.sidebar-open{overflow:hidden}
html.lc-mobile-device #app{display:block!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important}
html.lc-mobile-device #app>#main-content{grid-column:1/-1!important;margin-left:0!important;width:100%!important;max-width:100%!important;min-width:0!important}
html.lc-mobile-device #app .content{width:100%!important;max-width:none!important;padding:10px 8px 24px!important;overflow-x:hidden!important}
html.lc-mobile-device #app .topbar{min-height:58px!important;padding:8px!important;gap:8px!important}
html.lc-mobile-device #app .topbar #menu{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;border:1px solid #d8e2ef!important;background:#fff!important;color:#17345d!important;border-radius:10px!important}
html.lc-mobile-device #app .topbar>div{min-width:0!important;flex:1!important}
html.lc-mobile-device #app .topbar #title{font-size:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html.lc-mobile-device #app .topbar .date{display:none!important}
html.lc-mobile-device #app .theme-toggle .theme-label{display:none!important}
html.lc-mobile-device #app .sidebar{position:fixed!important;top:0!important;left:0!important;bottom:0!important;z-index:100!important;width:min(86vw,300px)!important;height:100dvh!important;transform:translateX(-105%)!important;visibility:hidden!important;pointer-events:none!important;overflow-y:auto!important;transition:transform .24s ease,visibility 0s linear .24s!important}
html.lc-mobile-device #app .sidebar.open{transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important;transition-delay:0s!important}
html.lc-mobile-device #sidebar-backdrop:not(.hidden){display:block!important;position:fixed!important;inset:0!important;z-index:95!important;background:rgba(3,9,17,.58)!important;border:0!important}
html.lc-mobile-device #app .schedule-board,html.lc-mobile-device #app .schedule-board.compact{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
html.lc-mobile-device #app .schedule-card{width:100%!important;max-width:none!important;min-width:0!important;padding:12px!important}
html.lc-mobile-device #app .metrics,html.lc-mobile-device #app .stats,html.lc-mobile-device #app .dashboard-metrics,html.lc-mobile-device #app .dashboard-grid,html.lc-mobile-device #app .cards-grid,html.lc-mobile-device #app .student-grid,html.lc-mobile-device #app .material-grid,html.lc-mobile-device #app .sim-grid,html.lc-mobile-device #app .form-grid{grid-template-columns:minmax(0,1fr)!important}
html.lc-mobile-device #app #lc-smart-study-map{width:100%!important;max-width:100%!important}
html.lc-mobile-device #app .lc-guide-main,html.lc-mobile-device #app .lc-guide-meters,html.lc-mobile-device #app .lc-next-row,html.lc-mobile-device #app .lc-support-grid{grid-template-columns:minmax(0,1fr)!important}
html.lc-mobile-device #app .lc-guide-action{width:100%!important;min-width:0!important}
html.lc-mobile-device #app .lc-level-strip{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
html.lc-mobile-device #app .lc-level-mini{flex:0 0 82vw!important;min-width:82vw!important}
html[data-theme='dark'].lc-mobile-device #app .topbar #menu{background:#101c2d!important;border-color:#2a3d55!important;color:#eef4fb!important}
