/* Navegação móvel: os mesmos controles e permissões da faixa desktop. */
#acm-mobile-toggle,#acm-mobile-menu,.acm-start-mobile { display:none; }
@media(max-width:767px){
  body.acm-mobile-ready #acm-mobile-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto; min-width:84px; min-height:44px; padding:10px 12px; border:0; border-radius:9px; background:#fbbf24; color:#111827; font-family:inherit; font-size:13px; font-weight:700; line-height:1.2; cursor:pointer; }
  body.acm-mobile-ready .acm-brand-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px 10px; padding:12px; }
  body.acm-mobile-ready .acm-brand { min-width:0; gap:9px; margin:0; }
  body.acm-mobile-ready .acm-brand>* { margin-left:0; }
  body.acm-mobile-ready .acm-brand-logo { width:36px; height:36px; flex:none; }
  body.acm-mobile-ready .acm-brand-copy { min-width:0; }
  body.acm-mobile-ready .acm-brand-title { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
  body.acm-mobile-ready .acm-brand-title h1 { font-size:13px; line-height:1.3; letter-spacing:.025em; white-space:nowrap; }
  body.acm-mobile-ready #acm-header-clock { font-size:9px; line-height:1.4; padding:0; border:0; border-radius:0; background:transparent; color:#cbd5e1; }
  body.acm-mobile-ready .acm-brand-subtitle { display:none; }
  body.acm-mobile-ready .acm-account-line { grid-column:1/-1; width:100%; font-size:11px; line-height:1.45; padding:0; overflow-wrap:anywhere; }
  body.acm-mobile-ready header>.acm-ribbon,body.acm-mobile-ready header>#acm-work-tabs { display:none; }
  body.acm-mobile-ready .acm-start-desktop { display:none; }
  body.acm-mobile-ready .acm-start-mobile { display:inline; }
  body.acm-mobile-ready p.acm-start-mobile { display:block; }
  body.acm-mobile-ready #acm-start-new { display:none; }
  body.acm-mobile-ready #acm-start-screen { padding-top:0; }
  body.acm-mobile-ready .acm-start-card { padding:24px 20px; margin:12px auto; }
  body.acm-mobile-ready .acm-start-card h2 { font-size:21px; line-height:1.4; }
  body.acm-mobile-ready .acm-start-card p { font-size:14px; line-height:1.6; }
  #acm-mobile-menu:not(.hidden) { display:block; position:fixed; inset:0; z-index:2000; background:#0f172a80; }
  #acm-mobile-menu.hidden { display:none!important; }
  #acm-mobile-panel { box-sizing:border-box; display:flex; flex-direction:column; width:min(360px,92vw); height:100vh; height:100dvh; padding:0; background:#fff; color:#172554; box-shadow:8px 0 30px #0003; font-family:inherit; font-size:14px; text-transform:none; }
  #acm-mobile-panel,#acm-mobile-panel * { text-transform:none!important; }
  .acm-mobile-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:none; padding:16px 18px 12px; border-bottom:1px solid #e2e8f0; }
  .acm-mobile-panel-heading h2 { margin:0; font-size:20px; font-weight:800; line-height:1.4; }
  .acm-mobile-panel-heading p { margin:2px 0 0; font-size:11px; color:#64748b; }
  #acm-mobile-close { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; min-width:76px; padding:8px; background:transparent; border:0; color:#475569; font-family:inherit; font-size:12px; cursor:pointer; }
  .acm-mobile-scroll { overflow:auto; overscroll-behavior:contain; flex:1; min-height:0; padding:0 16px max(20px,env(safe-area-inset-bottom)); }
  #acm-mobile-panel .acm-ribbon { display:flex; flex-direction:column; align-items:stretch; width:100%; padding:0; margin:0; gap:0; }
  #acm-mobile-panel .acm-ribbon-group,#acm-mobile-panel .acm-mobile-management,#acm-mobile-panel .acm-mobile-footer { width:100%; min-width:0; margin:0; padding:12px 0; border:0; border-bottom:1px solid #e2e8f0; gap:4px; }
  #acm-mobile-panel .acm-ribbon-actions { display:flex; flex-direction:column; align-items:stretch; width:100%; gap:2px; }
  #acm-mobile-panel .acm-ribbon-caption,.acm-mobile-group-title { display:block; margin:0 0 6px; padding:0 8px; order:-1; text-align:left; color:#64748b; font-size:11px; font-weight:600; line-height:1.5; letter-spacing:.025em; }
  #acm-mobile-panel .acm-tool,#acm-mobile-panel .tab-btn { box-sizing:border-box; display:flex; align-items:center; justify-content:flex-start; width:100%; min-width:0; height:auto; min-height:46px; padding:10px; gap:12px; margin:0; background:transparent; border:0; border-radius:7px; color:#172554; font-family:inherit; font-size:14px; font-weight:500; line-height:1.4; text-align:left; white-space:normal; text-decoration:none; text-transform:none; cursor:pointer; }
  #acm-mobile-panel .acm-tool.hidden { display:none!important; }
  #acm-mobile-panel .acm-tool i,#acm-mobile-panel .tab-btn i { display:inline-block; width:20px; flex:none; font-size:18px; text-align:center; color:inherit; }
  #acm-mobile-panel .acm-tool-label { display:inline; font-size:14px; line-height:1.4; }
  #acm-mobile-panel .acm-tool::after { display:none; }
  #acm-mobile-panel .acm-tool:hover,#acm-mobile-panel .tab-btn:hover { background:#f1f5f9; }
  #acm-mobile-panel .acm-tool:disabled,#acm-mobile-panel .tab-btn:disabled { opacity:.4; cursor:not-allowed; }
  #acm-mobile-panel [data-mobile-new] { background:#ecfdf5; color:#047857; font-weight:700; }
  #acm-mobile-panel .acm-tool:focus-visible,#acm-mobile-panel .tab-btn:focus-visible,#acm-mobile-close:focus-visible,.acm-mobile-details summary:focus-visible { outline:2px solid #047857; outline-offset:2px; }
  #acm-mobile-panel .acm-saved-label { display:block; padding:0 8px; font-size:12px; color:#475569; }
  #acm-mobile-panel .acm-saved-select { width:100%; min-width:0; min-height:46px; border:1px solid #cbd5e1; border-radius:8px; padding:10px; background:#f8fafc; color:#172554; font-size:13px; }
  #acm-mobile-panel .acm-saved-fullname { color:#475569; font-size:11px; overflow-wrap:anywhere; }
  .acm-mobile-details { border-bottom:1px solid #e2e8f0; padding:12px 0; }
  .acm-mobile-details summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:46px; padding:4px 8px; cursor:pointer; list-style:none; color:#172554; font-size:14px; }
  .acm-mobile-details summary::-webkit-details-marker { display:none; }
  .acm-mobile-details summary::after { content:'⌄'; font-size:18px; }
  .acm-mobile-details[open] summary::after { content:'⌃'; }
  .acm-mobile-details summary small { display:block; color:#64748b; font-size:11px; margin-top:3px; }
  #acm-mobile-panel #acm-mobile-account .acm-ribbon-group { border:0; padding:4px 0; }
  #acm-mobile-account .acm-ribbon-caption { display:none!important; }
  #acm-mobile-panel #acm-work-tabs { display:block; border:0; background:transparent; overflow:visible; }
  #acm-mobile-panel #acm-work-tabs>div { display:flex; flex-direction:column; gap:2px; padding:4px 0; margin:0; font-size:14px; }
  #acm-mobile-panel .tab-btn.border-amber-400 { background:#ecfdf5; color:#047857; font-weight:700; }
  body.acm-awaiting-start #acm-mobile-stages { display:none; }
  .acm-mobile-management[hidden] { display:none!important; }
}
@media(prefers-reduced-motion:reduce){#acm-mobile-panel *{scroll-behavior:auto;transition:none;}}
