/* Atomicamente Tablet 14 — camadas adicionais para toda a plataforma.
   Os dados e operações originais continuam nas páginas PHP. */
html.atomic-tablet .hero-dash {padding:clamp(20px,3vw,35px);gap:18px;}
html.atomic-tablet .grid-estatisticas {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
html.atomic-tablet .dashboard-grid {grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:16px;}
html.atomic-tablet .dashboard-grid > *,html.atomic-tablet .grid-estatisticas > * {min-width:0;}
html.atomic-tablet .artigos-grid {grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr));}
html.atomic-tablet .banner-laboratorio {overflow:hidden;}
html.atomic-tablet .hero-analytics {padding:clamp(18px,2.5vw,28px);}
html.atomic-tablet .grid-metricas {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
html.atomic-tablet .grid-2col {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
html.atomic-tablet .section-card {padding:clamp(16px,2vw,26px);}
html.atomic-tablet .section-card :is(canvas,svg,table) {max-width:100%;}
html.atomic-tablet .section-card table {display:block;overflow-x:auto;overscroll-behavior-x:contain;}
html.atomic-tablet .periodo-filtro {display:flex;flex-wrap:wrap;gap:7px;}
html.atomic-tablet .hero-insig {padding:clamp(18px,2.5vw,30px);}
html.atomic-tablet .stats-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
html.atomic-tablet .caminhos-list {gap:16px;}
html.atomic-tablet .caminho {padding:clamp(14px,2vw,25px);min-width:0;overflow:hidden;}
html.atomic-tablet .caminho-timeline {overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;padding-bottom:10px;scrollbar-width:thin;}
html.atomic-tablet .caminho-estacao {flex-shrink:0;}
html.atomic-tablet .membros-grid {grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:13px;}
html.atomic-tablet .membro-card {min-width:0;padding:15px;}
html.atomic-tablet .perfil-container {max-width:min(100%,1000px);}
html.atomic-tablet .card-perfil {padding:clamp(18px,2.5vw,28px);}
html.atomic-tablet .abas-nav {overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;}
html.atomic-tablet .container-resultado {padding-inline:clamp(14px,2vw,24px);}
html.atomic-tablet .grid-tempo {grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;}
html.atomic-tablet .admin-container {max-width:calc(100% - 30px);margin:22px auto;padding:0 12px;}
html.atomic-tablet .hero-admin {padding:clamp(18px,2vw,28px);}
html.atomic-tablet .aba-nav {position:sticky;top:0;z-index:20;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;background:var(--bg-global,#f8fafc);padding:9px 0;gap:7px;overscroll-behavior-x:contain;}
html.atomic-tablet .aba-nav > * {white-space:nowrap;min-height:43px;flex-shrink:0;}
html.atomic-tablet .card-admin {padding:clamp(16px,2.2vw,24px);min-width:0;}
html.atomic-tablet .tabela-container {overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;}
html.atomic-tablet .tabela-container table {min-width:620px;}
html.atomic-tablet .modal-box {width:min(95vw,980px)!important;max-height:90dvh!important;overflow-y:auto;overscroll-behavior:contain;}
html.atomic-tablet .editor-inline {max-width:100%;padding:16px;}
html.atomic-tablet .ql-toolbar {overflow-x:auto;scrollbar-width:thin;}
html.atomic-tablet .ql-container {min-width:0;}
html.atomic-tablet .acervo-form-grid {grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;}
html.atomic-tablet .acervo-toolbar {flex-wrap:wrap;gap:8px;}
html.atomic-tablet :is(.tabela-container,.acervo-form-grid,.blocos-storyboard) {overscroll-behavior:contain;}
html.atomic-tablet .auth-container {width:min(95vw,520px);max-width:520px;padding:clamp(18px,3vw,30px);}
html.atomic-tablet :is(.policy-section,.card-perfil,.admin-container) {overflow-wrap:anywhere;}
html.atomic-tablet .social-filtros,html.atomic-tablet .filtros-social {display:flex;flex-wrap:wrap;gap:9px;}
html.atomic-tablet .filtros-social :is(button,select,input) {min-height:43px;}
html.atomic-tablet :is(.skeleton-card,.membro-card,.card-perfil,.card-admin) {min-width:0;}
@media(max-width:850px){
 html.atomic-tablet .grid-metricas {grid-template-columns:repeat(2,minmax(0,1fr));}
 html.atomic-tablet .grid-2col {grid-template-columns:minmax(0,1fr);}
 html.atomic-tablet .hero-dash {padding:18px;}
 html.atomic-tablet .admin-container {padding:0 10px;}
}
@media(max-width:650px){
 html.atomic-tablet .grid-estatisticas {grid-template-columns:repeat(2,minmax(0,1fr));}
 html.atomic-tablet .caminho {padding:12px;}
 html.atomic-tablet .tabela-container {max-width:calc(100vw - 25px);}
}
/* Histórico, revisão e auditoria: rolagem no componente, nunca na página. */
html.atomic-tablet .grid-provas {grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:13px;}
html.atomic-tablet .card-prova {min-width:0;padding:clamp(15px,2vw,23px);}
html.atomic-tablet .table-wrapper {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
html.atomic-tablet .tabela-logs {min-width:640px;}
html.atomic-tablet .filtros-form {display:flex;flex-wrap:wrap;gap:9px;}
html.atomic-tablet .filtros-form :is(input,select,button) {min-height:44px;}
html.atomic-tablet .tech-grid {grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;}
html.atomic-tablet .diff-panels {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px;}
html.atomic-tablet .diff-content {max-width:100%;overflow-x:auto;}
html.atomic-tablet .grid-guias {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:13px;}
html.atomic-tablet .guia-card {min-width:0;}
/* Institucional: o tablet já tem espaço para cartões em duas colunas. */
html.atomic-tablet .hero-container,html.atomic-tablet .features-container,html.atomic-tablet .middle-container,html.atomic-tablet .sobre-container {max-width:100%;padding-inline:clamp(18px,3vw,36px);}
html.atomic-tablet .grid-features {grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:13px;}
html.atomic-tablet .grid-flashcards {grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:13px;}
html.atomic-tablet .about-wrapper,html.atomic-tablet .contact-wrapper {max-width:100%;padding-inline:clamp(16px,3vw,36px);}
html.atomic-tablet .story-grid,html.atomic-tablet .team-grid,html.atomic-tablet .contact-grid {grid-template-columns:repeat(auto-fit,minmax(min(275px,100%),1fr));gap:13px;}
html.atomic-tablet .profile-card,html.atomic-tablet .team-card {min-width:0;}
html.atomic-tablet .film-wrapper {max-width:100%;overflow:hidden;}
html.atomic-tablet .film-wrapper img {max-width:100%;}
/* Perfil público e comunidade de estudo. */
html.atomic-tablet .layout-wrapper {max-width:100%;min-width:0;}
html.atomic-tablet .conteudo-principal {min-width:0;}
html.atomic-tablet .perfil-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px;}
html.atomic-tablet .hero-perfil {min-width:0;padding:clamp(16px,2vw,28px);}
html.atomic-tablet .sidebar-amigos {max-width:100%;}
html.atomic-tablet .hero-acoes {display:flex;flex-wrap:wrap;gap:8px;}
html.atomic-tablet .hero-acoes :is(a,button) {min-height:44px;}
/* Política de privacidade com índice navegável mesmo em tablet 7". */
html.atomic-tablet .content-grid {display:grid;grid-template-columns:minmax(170px,25%) minmax(0,1fr);gap:18px;}
html.atomic-tablet .legal-table {max-width:100%;overflow-wrap:anywhere;}
html.atomic-tablet .policy-section {min-width:0;}
@media(max-width:750px){
 html.atomic-tablet .content-grid {display:block;}
 html.atomic-tablet .content-grid > .sidebar {max-width:100%;position:static;}
 html.atomic-tablet .story-grid,html.atomic-tablet .team-grid {grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));}
 html.atomic-tablet .grid-flashcards {grid-template-columns:repeat(2,minmax(0,1fr));}
 html.atomic-tablet .perfil-grid {grid-template-columns:1fr;}
}
