/* Mobile only: the desktop design continues to use style.css unchanged. */
@media (max-width:760px){
 body{font-size:14px;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 .wrap{padding:26px 18px}
 .wrap .wrap{padding-left:0;padding-right:0}
 .sectionhead{gap:16px;margin-bottom:22px}
 .sectionhead h1,.sim-workspace>h1,.community-page .community-heading h1{font-size:28px;line-height:1.2;margin:12px 0}
 .wrap h2{font-size:24px;line-height:1.3;margin:12px 0 16px}
 .wrap h3{font-size:20px;line-height:1.35}
 .wrap p{line-height:1.65}
 .eyebrow{line-height:1.6;letter-spacing:1.5px}
 .primary,.secondary{padding:12px 16px;line-height:1.4}
 .field{padding:11px 12px;margin:12px 0}
 .split,.grid,.plans{gap:20px}
 .aside,.checkout-summary,.checkout-payment{padding:20px}
 .card .body{padding:20px}
 .empty{padding:22px}
 .notice{margin:12px 18px;padding:13px 16px}
 .tabs{gap:8px;margin:18px 0}
 .tabs button{padding:10px 13px;font-size:13px;line-height:1.4}
 header{padding:14px 18px;gap:12px}
 header .brand{gap:10px}
 header .brand img{width:44px;height:44px}
 header .logo{font-size:23px}
 header .logo small{font-size:10px;margin-top:5px}
 header .account-menu{max-width:46%;overflow-wrap:anywhere}
 .mobile-nav{display:flex;overflow-x:auto;align-items:stretch;padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));gap:0}
 .mobile-nav button{flex:1 0 58px;min-width:58px;min-height:46px;gap:4px;padding:3px}
 .mobile-nav span{font-size:9px;line-height:1.25;text-align:center}
 footer{gap:18px;padding:26px 18px}
 /* Home, course catalogue, lessons and checkout. */
 .home-intro{padding:28px 20px}
 .home-intro h1{font-size:31px;line-height:1.18}
 .home-intro p{font-size:14px;line-height:1.65;margin:16px auto 22px}
 .home-intro .primary,.home-intro .secondary{margin:5px}
 .home-sections{padding-top:24px}
 .home-features .feature{padding:22px}
 .home-features .feature h2,.course-welcome h2{font-size:25px;margin:12px 0 16px}
 .home-features .feature p,.course-welcome p{font-size:14px;line-height:1.65;margin:12px 0 18px}
 .course-welcome{padding:22px}
 .plans{margin:24px auto}
 .plans .body h2,.checkout-summary h2{font-size:25px;margin:12px 0}
 .module-grid{gap:18px;margin-top:24px}
 .module-grid .body{padding:18px}
 .module-grid h3{font-size:21px;margin:10px 0 12px}
 .sales-overview,.checkout-layout{gap:20px}
 .sales-lesson{gap:12px;padding:18px 0}
 .sales-lesson h3{font-size:20px;margin:6px 0 10px}
 .sales-faq{margin:36px auto 20px}
 .sales-faq h2{font-size:25px;margin-bottom:20px}
 .sales-faq details{padding:17px 0}
 .campaign-page .campaign-benefits,.campaign-pack,.campaign-bonus{gap:20px}
 .campaign-intro h1{font-size:29px}
 .campaign-page .campaign-materials h2,.campaign-page .campaign-offer h2,.campaign-module-preview>h2{font-size:25px}
 .campaign-approved-pack{margin:26px 0 36px}
 .campaign-page .campaign-house,.campaign-page .campaign-offer .body{padding:22px 18px}
 .campaign-house,.campaign-final{margin:36px auto}
 .install-page h1{font-size:28px}
 /* Planner: stacked headings must not inherit desktop alignment heights. */
 .house-workspace .house-layout{gap:22px}
 .house-workspace .house-layout .vault>.vault-heading,.house-workspace .house-layout .notes-panel-heading{min-height:0!important;padding:20px!important}
 .house-workspace .notes-panel-heading h2,.house-workspace .vault-heading h2{font-size:24px;margin:10px 0}
 .house-workspace .house-layout>.notes-panel{min-height:0}
 .house-workspace .notes-panel-heading p{margin:0 0 12px;line-height:1.6}
 .vault-content,.vault-folders{padding:16px}
 .vault-heading{gap:14px}
 .vault-tools{gap:12px}
 .vault-folder-grid{gap:12px}
 .house-view-controls{gap:10px;margin-top:16px}
 .calendar-v2 .calendar-inner{padding:16px}
 .calendar-v2 .calendar-v2-toolbar{gap:14px;margin-bottom:18px}
 .calendar-v2 .calendar-period-nav{gap:8px}
 .calendar-v2 .calendar-period-nav h3{font-size:20px}
 .calendar-v2 .calendar-v2-controls{gap:8px}
 .calendar-v2 .calendar-mode-tabs{flex-wrap:wrap;gap:4px}
 .calendar-v2 .calendar-mode-tabs button{padding:9px 10px;font-size:12px}
 .calendar-v2 .task-inline-editor{padding:18px}
 .calendar-selected-title{font-size:20px}
 .calendar-resources,.calendar-picker,.calendar-dialog{padding:20px}
 /* Finances: compact summaries, readable inputs and the same table scrolling. */
 .sim-workspace{padding-top:26px;padding-bottom:32px}
 .sim-workspace .card{padding:18px;margin-bottom:18px}
 .sim-budget-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px;align-items:stretch}
 .sim-budget-top .sim-editable-metric{padding:12px;margin:0}
 .sim-budget-top .sim-editable-metric label{font-size:12px;line-height:1.45;min-height:82px;gap:8px}
 .sim-budget-top .sim-editable-metric input{font-size:16px!important;font-weight:600;line-height:1.35;padding:10px 7px;margin-top:auto}
 .sim-budget-top .sim-editable-metric small{font-size:11px;line-height:1.4;margin-top:7px}
 .sim-budget-top>.primary{grid-column:1/-1;margin-top:2px}
 .sim-workspace .sim-finance-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .sim-workspace .sim-finance-summary .card{padding:13px;margin:0}
 .sim-workspace .sim-finance-summary strong{display:block;font-size:20px;margin:8px 0 5px;overflow-wrap:anywhere}
 .sim-workspace .sim-finance-summary small{font-size:11px;line-height:1.45;margin:0}
 .sim-workspace .sim-finance-summary>.card:last-child:nth-child(odd){grid-column:1/-1}
 .sim-workspace .sim-preview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;margin:18px 0}
 .sim-workspace .sim-preview-metrics>div{padding:13px;border-radius:10px}
 .sim-workspace .sim-preview-metrics>div:last-child:nth-child(odd){grid-column:1/-1}
 .sim-workspace .sim-preview-metrics small{font-size:12px;line-height:1.4;margin-bottom:7px}
 .sim-workspace .sim-preview-metrics strong{font-size:20px;overflow-wrap:anywhere}
 .sim-finance-preview{margin:20px 0}
 .sim-workspace .sim-finance-preview h2{font-size:23px}
 .sim-finance-preview>p,.sim-finance-locked .sectionhead p{font-size:13px}
 .sim-finance-tab-title{font-size:23px;margin:22px 0 14px}
 .sim-finance-view-tabs{gap:8px;margin:20px 0;padding-bottom:14px}
 .sim-finance-view-tabs button{padding:10px;font-size:12px;line-height:1.4}
 .sim-tabs,.sim-demo-switch{gap:7px;margin:18px 0 16px}
 .sim-tabs button,.sim-demo-switch button{font-size:12px;padding:9px 11px}
 .sim-demo-layout{gap:20px}
 .sim-demo-sheet h3{font-size:19px;margin:0 0 14px}
 .sim-demo-main{gap:18px}
 .sim-demo-main .sim-finance-insights{grid-template-columns:1fr;gap:16px}
 .sim-demo-main .sim-finance-insights>section{padding:16px}
 .sim-demo-main .sim-finance-chart,.sim-finance-export-panel .sim-finance-chart{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:start;gap:14px}
 .sim-finance-chart svg{width:84px;max-width:100%}
 .sim-finance-chart h3,.sim-payment-chart h3{font-size:20px}
 .sim-demo-main .sim-finance-chart p,.sim-demo-main .sim-payment-chart p{font-size:12px;line-height:1.6}
 .sim-finance-chart strong{margin-left:0}
 .sim-mini-simulator{padding:16px}
 .sim-mini-simulator .sim-sandbox-results h3{font-size:20px}
 .sim-mini-simulator .sim-result-available dd{font-size:21px}
 .sim-mini-inputs,.sim-mini-item{margin:14px 0;gap:10px}
 .sim-finance-editor .sim-item-form,.sim-finance-editor .sim-grid{gap:14px}
 .sim-finance-editor .sim-category>summary{font-size:14px;gap:12px}
 .sim-finance-editor .sim-records{gap:14px}
 .sim-finance-final-result h2,.sim-finance-export-panel h2{font-size:23px}
 .sim-finance-cta{gap:14px;margin:18px 0 4px}
 .sim-workspace .aside>.primary+.link{display:block;margin-top:14px}
 /* Community, account dialogs, admin conversations and member list. */
 .community-heading{margin:0 0 24px;gap:16px}
 .community-heading p{font-size:14px}
 .community-layout,.community-feed{gap:18px}
 .community-sidebar{padding:16px;margin-bottom:0}
 .community-sidebar h2{font-size:20px;margin:0 0 12px}
 .community-sidebar>button{padding:9px 10px;line-height:1.4}
 .community-post{padding:20px}
 .community-post .community-post-head{margin-bottom:18px}
 .community-post h2{font-size:23px;line-height:1.35;margin:12px 0 14px}
 .community-post-text{line-height:1.7;margin-bottom:20px}
 .community-welcome{padding:20px}
 .community-welcome h2{font-size:23px;margin:12px 0 16px}
 .community-actions{gap:8px;justify-content:flex-start}
 .community-actions button{padding:10px 7px;font-size:12px}
 .account-gate{padding:20px;margin:16px 0}
 .account-gate h2{font-size:25px}
 .account-gate p{font-size:13px;line-height:1.65}
 .account-dialog,.guest-account-dialog{width:100%;max-width:100%;max-height:90dvh}
 .sim-account-picker{gap:10px;margin:18px 0}
 .sim-account-choice{padding:10px;gap:10px}
 .sim-account-select{gap:10px}
 .sim-account-select strong{font-size:13px}
 .sim-account-select small{font-size:11px;overflow-wrap:anywhere}
 .support-chathead{padding:12px;gap:8px}
 .support-chathead strong{font-size:13px}
 .support-message-row .support-bubble{max-width:82%;padding:10px 12px}
 .support-bubble p{font-size:13px;line-height:1.6}
 .support-inbox>.support-conversation{height:560px;max-height:78dvh}
 .support-compose{padding:8px;gap:5px}
 .support-compose textarea{font-size:16px!important;line-height:20px;min-height:40px;padding:9px 11px}
 .roster-table{max-width:100%;overflow-x:auto}
 .roster-table th,.roster-table td{padding:12px;font-size:12px}
}
@media(max-width:359px){
 .wrap{padding-left:14px;padding-right:14px}
 .sim-budget-top{grid-template-columns:1fr}
 .sim-budget-top .sim-editable-metric label{min-height:0}
 .sim-workspace .sim-finance-summary strong,.sim-workspace .sim-preview-metrics strong{font-size:18px}
 .sim-demo-main .sim-finance-chart,.sim-finance-export-panel .sim-finance-chart{grid-template-columns:70px minmax(0,1fr);gap:10px}
 .sim-finance-chart svg{width:70px}
}

@media(max-width:760px){
 .mobile-section-menu{display:block;min-width:0;width:100%}
 .mobile-section-menu-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:5px 12px;min-height:46px}
 .mobile-section-menu-controls>span{font-size:13px;line-height:1.45;min-width:0;overflow-wrap:anywhere}
 .mobile-section-menu-controls>button{width:38px;min-height:38px;flex-shrink:0;padding:0;font-size:26px;line-height:1;border-radius:7px;color:var(--rose)}
 .mobile-section-menu-controls>button[aria-expanded="true"]{background:var(--soft)}
 .mobile-section-menu-body{display:none}
 .mobile-section-menu.is-open>.mobile-section-menu-body{display:block;max-height:48dvh;overflow:auto;margin-top:8px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 6px 18px #38261e12}
 .mobile-section-menu-body .community-sidebar,.mobile-section-menu-body .vault-folders{border:0;margin:0;padding:14px}
 .mobile-section-menu-body .community-sidebar>button,.mobile-section-menu-body .vault-folders>button{display:flex;width:100%;padding:10px;text-align:left}
 .vault-heading>.mobile-section-menu{align-self:stretch}
 .mobile-section-menu-body .vault-upload-buttons{display:grid;grid-template-columns:1fr;gap:10px;padding:14px}
 .mobile-section-menu-body .vault-upload-buttons>*{margin:0;width:100%}
 .house-workspace .house-view-controls .secondary,.house-workspace .notes-calendar-link{font-size:12px;padding:9px 12px;line-height:1.4}
 .house-links .vault-heading{padding:0!important;min-height:0!important;flex-direction:row;align-items:center;gap:12px;margin-bottom:14px}
 .house-links .vault-heading h3{font-size:19px;margin:0}
 .house-links .vault-heading>.secondary{font-size:12px;padding:9px 12px;flex-shrink:0}
 .house-links,.house-export{margin-top:20px;padding-top:18px}
 .vault-tools{gap:9px}
 .vault-tools select{font-size:16px!important;padding:9px 10px;max-width:100%;width:100%;min-width:0}
}

@media(max-width:760px){
 .vault-tools>.vault-search{order:0;width:100%}
 .vault-tools>.mobile-section-menu{order:1}
 .vault-tools .mobile-section-menu-body select{display:block;width:calc(100% - 28px);margin:12px 14px}
}

/* The authored home sets the mobile rhythm for every role and workspace.
   Home itself keeps its saved block positions; the following are defaults
   for the other pages, always overridable by the visual editor. */
@media(max-width:760px){
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]){font-size:13px;line-height:1.5}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) .wrap{padding:24px 18px 28px}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) :is(h1,.sectionhead h1,.community-heading h1){font-size:26px;line-height:1.22;text-wrap:balance;margin:10px 0 14px}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) h2{font-size:23px;line-height:1.28;text-wrap:balance;margin:10px 0 14px}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) h3{font-size:19px;line-height:1.32;text-wrap:balance}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) p{font-size:13px;line-height:1.5;text-wrap:pretty;margin:12px 0 18px}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) :is(.primary,.secondary){font-size:13px;line-height:1.4;border-radius:7px;padding:12px 16px;min-height:44px;max-width:100%;white-space:normal}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) .eyebrow{font-size:10px;letter-spacing:1.4px;line-height:1.4}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) :is(.subtle,.sales-lesson p,.sim-finance-chart p,.sim-payment-chart p){font-size:12px;line-height:1.45}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) :is(.sectionhead,.community-heading){gap:14px;margin-bottom:20px;align-items:flex-start}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) :is(.card .body,.aside,.community-post,.community-welcome,.account-gate){padding:18px}
 main:not([data-mobile-page="inicio"]):not([data-mobile-page="editar-celular"]) :is(.grid,.split,.plans,.community-layout,.community-feed,.house-layout){gap:18px}
 .sim-admin-actions{gap:10px;flex-wrap:wrap}
 .sim-admin-actions>button{min-width:0;white-space:normal}
 .support-inbox{min-width:0}
 footer .footer-brand{font-size:24px;line-height:1.2}
 footer :is(span,.link,a){font-size:13px;line-height:1.4}
 footer .footer-contacts{gap:14px;flex-wrap:wrap}
 /* One line, with independent fixed-size actions that cannot crowd the name. */
 .support-chathead{flex-shrink:0;padding:12px 10px;gap:6px}
 .support-chathead .support-chat-identity{flex:1 1 0;min-width:0}
 .support-chathead .support-chat-identity strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(11px,3.1vw,13px);line-height:1.35}
 .support-chathead .support-chat-identity small{font-size:10px;line-height:1.35;margin-top:4px;text-wrap:pretty}
 .support-chathead .support-options{flex:0 0 auto;min-width:30px}
 .support-widget .support-options>button{transform:none!important}
 .support-chathead :is(.support-close,.support-find-button,.support-collapse){flex-shrink:0;min-width:30px;min-height:36px;padding:5px}
 .support-collapse{display:flex;align-items:center;justify-content:center;color:#fff;border:0;background:transparent;cursor:pointer}
 /* Only the panel follows the keyboard; page scale and body layout stay intact. */
 .support-widget.is-keyboard-aware,.support-inbox>.support-conversation.is-keyboard-aware{
  position:fixed;top:auto;left:auto;right:12px;bottom:var(--conversation-bottom,12px);width:calc(100vw - 24px);height:var(--conversation-height);max-height:calc(100dvh - 24px);z-index:130;border-radius:16px;animation:none;
 }
 .is-keyboard-aware .support-messages{min-height:0;flex:1;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .support-compose textarea{max-height:100px;resize:none}
 .support-compose textarea{font-size:16px!important}
}

/* The floating assessor already provides this action on every phone page. */
@media(max-width:760px){
 footer>button.link{display:none!important}
}

@media(max-width:760px){
 footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px;padding:24px 16px 72px;text-align:center}
 footer .footer-identity{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;text-align:center}
 footer .footer-identity :is(.footer-brand,span,a){margin:0;text-align:center;max-width:100%}
 footer .footer-identity span{line-height:1.4;text-wrap:balance}
 footer .footer-contacts{display:flex;justify-content:center;align-items:flex-start;min-width:0;margin-top:6px}
 footer .footer-instagram{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;line-height:1.4;max-width:100%;overflow-wrap:anywhere;text-align:center}
 footer .footer-instagram svg{width:16px;height:16px;flex-shrink:0}
}

@media(max-width:760px){footer .footer-identity .footer-mobile-whatsapp{display:block}footer .footer-desktop-whatsapp{display:none}}
@media(max-width:760px){
 footer .footer-identity{grid-column:1;grid-row:1;flex-wrap:nowrap}
 footer .footer-identity>span{white-space:normal}
 footer .footer-contacts{grid-column:2;grid-row:1;flex-wrap:nowrap}
 footer .footer-contacts .footer-instagram{flex:1 1 auto;min-width:0;white-space:normal;margin:0}
}

/* Keep the page anchored while retaining horizontal scroll inside wide tables. */
@media(max-width:760px){html,body{width:100%;max-width:100%;overflow-x:clip;overscroll-behavior-x:none}main,header,footer,nav.mobile-nav{min-width:0;max-width:100%}main>.wrap{width:100%;min-width:0}.wrap>*,.student-area>*,.student-area-welcome>*,.student-print>*{min-width:0}.student-book-viewport,.student-planner-table,.sim-finance-table-wrap,.sim-finance-scroll{max-width:100%;overscroll-behavior-x:contain}nav.mobile-nav{overflow-x:auto;overscroll-behavior-x:contain}}
