
/* V42.95 HOMOLOGAÇÃO: visual mobile, sem alteração de regras de negócio */
:root{--vs95-green:#28d493;--vs95-bg:#061416;--vs95-card:#0a2221;--vs95-line:#1a4b40}
@media(max-width:900px){
 html{scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 body{background:#051315!important;overflow-x:hidden!important}
 .shell{padding:10px 10px calc(115px + env(safe-area-inset-bottom))!important;max-width:100vw!important}
 .top{border:1px solid #174a3c!important;border-radius:20px!important;box-shadow:0 12px 28px #0005!important;background:linear-gradient(145deg,#07251f,#071b1e)!important;margin-bottom:14px!important}
 .brand{gap:9px!important}
 #projectTitle{font-size:clamp(19px,5vw,27px)!important;line-height:1.12!important;letter-spacing:-.035em!important;overflow-wrap:anywhere}
 .eyebrow{font-size:9px!important;letter-spacing:.13em!important}
 .mark{border-radius:13px!important}
 .stats{gap:8px!important}
 .stat,.card,.panel{background:#0b2423!important;border:1px solid #17493e!important;border-radius:16px!important;box-shadow:0 6px 18px #0003!important}
 .stat{padding:14px!important;min-width:0!important}
 .stat strong{font-size:clamp(24px,6vw,34px)!important;color:#f1faf5!important}
 .stat small{font-size:11px!important}
 .progress,.progress-track{border-radius:50px!important}
 .fill{background:linear-gradient(90deg,#16b881,#86e4ba)!important}
 .mobile-bottom{position:fixed!important;left:max(7px,env(safe-area-inset-left))!important;right:max(7px,env(safe-area-inset-right))!important;bottom:max(7px,env(safe-area-inset-bottom))!important;width:auto!important;height:65px!important;border:1px solid #285448!important;border-radius:22px!important;background:#08191b!important;box-shadow:0 6px 28px #0009!important;padding:5px 4px!important;z-index:90!important;display:flex!important;justify-content:space-around!important;align-items:center!important}
 .mobile-bottom button{min-width:0!important;min-height:49px!important;border-radius:15px!important;font-size:10px!important;line-height:1.15!important;flex:1!important}
 .mobile-bottom button.active,.mobile-bottom button[aria-current="page"]{background:#104b3d!important;color:#71edb4!important}
 .mobile-more{max-height:calc(100dvh - 105px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow-y:auto!important;padding-bottom:22px!important}
 .dialogveil,.vsr-overlay{padding:calc(8px + env(safe-area-inset-top)) 8px calc(87px + env(safe-area-inset-bottom))!important;align-items:flex-start!important;overflow-y:auto!important;overscroll-behavior:contain!important}
 .dialogveil .dialogbox,#editVeil .dialogbox{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow-y:auto!important;overscroll-behavior:contain!important;border-radius:18px!important;padding:16px!important;resize:none!important;transform:none!important;left:auto!important;top:auto!important}
 #editVeil .actions{position:sticky!important;bottom:0!important;padding:12px 0 max(8px,env(safe-area-inset-bottom))!important;background:#202b27!important;z-index:5!important;display:flex!important;flex-wrap:wrap!important;gap:9px!important}
 #editVeil .actions button{min-height:46px!important;flex:1 1 120px!important}
 .dialogbox input,.dialogbox select,.dialogbox textarea{font-size:16px!important;max-width:100%!important}
 .vsgo-palette{grid-template-columns:repeat(6,minmax(0,1fr))!important}
 .vsgo-palette button{min-height:38px!important}
 button{touch-action:manipulation}
}
@media(min-width:901px) and (max-width:1250px){.shell{max-width:100%;padding:20px}}
.vs95-modal[hidden],.vs95-install-banner[hidden]{display:none!important}
.vs95-modal{position:fixed;inset:0;z-index:2147483000;background:#000b;display:flex;align-items:center;justify-content:center;padding:12px}
.vs95-dialog{width:min(460px,100%);max-height:calc(100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;border:1px solid #25614e;border-radius:22px;padding:21px;background:#0b1c1e;color:#f1faf5;box-shadow:0 24px 80px #000b}
.vs95-dialog h2{font-size:23px;margin:0 0 10px}
.vs95-dialog p{color:#b4cdc5;line-height:1.5;font-size:14px}
.vs95-dialog textarea{width:100%;min-height:130px;resize:vertical;border:1px solid #326051;border-radius:12px;background:#081619;color:white;padding:12px;font-size:16px}
.vs95-dialog .vs95-btn{border:1px solid #31644f;border-radius:11px;padding:12px 16px;color:white;background:#125b45;min-height:44px;cursor:pointer}
.vs95-dialog .vs95-secondary{background:#192a2b}
.vs95-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.vs95-stars{display:flex;gap:5px;margin:10px 0 18px}
.vs95-stars button{border:0;background:transparent;color:#ffcb54;font-size:35px;padding:2px 5px}
.vs95-install-banner{position:fixed;right:16px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:75;display:flex;align-items:center;gap:10px;background:#0b332b;border:1px solid #2d8668;border-radius:14px;padding:10px 12px;box-shadow:0 12px 35px #0008;color:white;max-width:min(350px,calc(100vw - 28px))}
.vs95-install-banner button{background:#20a979;border:0;border-radius:9px;color:white;padding:9px 11px;cursor:pointer}
.vs95-install-banner button:last-child{background:transparent}
.vs95-menu-item{display:flex!important;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid #1d3e38!important;background:#102522!important;color:#eaf7f1!important;border-radius:12px!important;padding:12px!important;min-height:45px!important;margin:4px 0!important}

/* V42.96: redesenho estrutural da tela inicial mobile */
@media(max-width:900px){
 body .shell{padding:12px 12px calc(118px + env(safe-area-inset-bottom))!important;background:#071315!important}
 body .top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:12px!important;position:relative!important;padding:18px 15px 0!important;margin:0 0 16px!important;border-radius:24px!important;background:linear-gradient(135deg,#103c32 0%,#0c2928 55%,#081e23 100%)!important;border:1px solid #27614f!important;min-height:0!important}
 body .top .brand{grid-column:1/-1!important;display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;grid-template-rows:52px auto!important;align-items:center!important;gap:8px 12px!important;width:100%!important;min-width:0!important}
 body .top .brand .mark{grid-column:1!important;grid-row:1!important;width:54px!important;height:54px!important;border-radius:16px!important}
 body .top .brand .theme-switcher{grid-column:2!important;grid-row:1!important;justify-self:end!important;display:flex!important;gap:4px!important;max-width:100%!important;min-width:0!important;padding:4px!important;border-radius:15px!important}
 body .top .brand .theme-switcher button{width:32px!important;height:36px!important;min-width:30px!important;font-size:18px!important}
 body .top .brand>div:last-child{grid-column:1/-1!important;grid-row:2!important;min-width:0!important;padding:5px 0 13px!important}
 body .top .brand .eyebrow{display:block!important;font-size:10px!important;color:#83d9b4!important;letter-spacing:.18em!important;margin-bottom:6px!important}
 body .top .brand h1{display:block!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:clamp(23px,6.2vw,33px)!important;font-weight:800!important;line-height:1.12!important;letter-spacing:-.04em!important;color:#f5fffb!important;max-width:100%!important;overflow-wrap:break-word!important;margin:0!important}
 body .top .brand .sub{display:block!important;font-size:11px!important;color:#b4d5ca!important;margin-top:7px!important}
 body .top .actions{grid-column:1/-1!important;grid-row:2!important;display:none!important}
 body .navtabs{display:flex!important;overflow-x:auto!important;scrollbar-width:none!important;white-space:nowrap!important;gap:18px!important;padding:0 6px 7px!important;margin:0 0 18px!important;border-bottom:1px solid #204b41!important}
 body .navtabs::-webkit-scrollbar{display:none!important}
 body .navtabs button{display:inline-flex!important;flex:0 0 auto!important;min-height:45px!important;padding:10px 6px!important;font-size:13px!important;font-weight:650!important;color:#adcfc2!important}
 body .navtabs button.active{color:#85f1c4!important;border-bottom:3px solid #70e8b2!important}
 body .stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;margin:0 0 15px!important}
 body .stats .stat{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-height:145px!important;padding:16px!important;border:1px solid #23564a!important;border-radius:19px!important;background:linear-gradient(145deg,#112b2b,#0a1e23)!important;box-shadow:0 10px 20px #0003!important;position:relative!important;grid-column:auto!important}
 body .stats .stat-progress{grid-column:1/-1!important;min-height:174px!important;display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:auto auto 12px!important;align-items:center!important;gap:10px!important;background:linear-gradient(135deg,#174a3c,#0a282b)!important}
 body .stats .stat-progress .stat-icon{grid-column:1!important;grid-row:1!important}
 body .stats .stat-progress label{grid-column:1!important;grid-row:2!important;position:static!important;min-height:0!important;font-size:13px!important}
 body .stats .stat-progress strong{grid-column:2!important;grid-row:1/3!important;font-size:45px!important;margin:0!important;color:#a0f2ca!important}
 body .stats .stat-progress .progress{grid-column:1/-1!important;grid-row:3!important;margin:0!important;width:100%!important;height:11px!important}
 body .stats .stat:not(.stat-progress) .stat-icon{width:40px!important;height:40px!important;font-size:21px!important;margin-bottom:12px!important}
 body .stats .stat:not(.stat-progress) label{position:static!important;font-size:12px!important;line-height:1.25!important;min-height:0!important;margin:0 0 5px!important;color:#bad5ca!important}
 body .stats .stat:not(.stat-progress) strong{font-size:34px!important;line-height:1.15!important;margin:auto 0 4px!important}
 body .stats .stat:not(.stat-progress) small{font-size:11px!important;color:#a3c1b6!important;line-height:1.3!important}
 body #vsDeadlineHome{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin:0 0 18px!important}
 body #vsDeadlineHome>*{min-width:0!important;border-radius:14px!important}
 body .toolbar{margin-top:12px!important}
 body .mobile-bottom{z-index:100!important}
 body .vs95-install-banner{bottom:calc(92px + env(safe-area-inset-bottom))!important}
}
@media(min-width:520px) and (max-width:900px){
 body .stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body .stats .stat-progress{grid-column:1/-1!important}
}

/* V42.97: correções após homologação visual em iPhone */
#vsMpIntegrationTestsBtn,#vsMpSafetyAuditQuickBtn,#vsMpSafetyAuditBtn,[data-action-id="vsMpSafetyAuditBtn"]{display:none!important}
@media(max-width:900px){
 html,body{max-width:100%!important;overflow-x:clip!important}
 body .shell{box-sizing:border-box!important;width:100%!important;min-width:0!important;padding:10px 12px calc(120px + env(safe-area-inset-bottom))!important}
 /* Cabeçalho com seletor de obra em uma linha exclusiva e navegação sem cortes de toque */
 body .top{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:15px 14px 0!important;min-width:0!important;overflow:visible!important}
 body .top .brand{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:48px auto!important;gap:8px 9px!important;min-width:0!important}
 body .top .brand .mark{width:48px!important;height:48px!important;grid-column:1!important;grid-row:1!important}
 body .top .brand .theme-switcher{grid-column:2!important;grid-row:1!important;justify-self:end!important;align-self:center!important;max-width:100%!important;gap:2px!important;padding:3px!important;min-width:0!important}
 body .top .brand .theme-switcher button{width:clamp(26px,7.3vw,36px)!important;min-width:0!important;height:36px!important;font-size:clamp(15px,4.5vw,20px)!important;padding:2px!important}
 body .top .brand>div:last-child{grid-column:1/-1!important;grid-row:2!important;padding:10px 0 6px!important}
 body .top .brand h1{font-size:clamp(22px,6vw,30px)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:100%!important}
 body .top .brand .sub{line-height:1.45!important;overflow-wrap:anywhere!important}
 body .top-right{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;min-width:0!important;margin:7px 0 10px!important}
 body .top-right .project-picker{flex:1 1 auto!important;min-width:0!important;width:100%!important;max-width:none!important}
 body .top-right .project-picker select{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;font-size:14px!important;min-height:44px!important;border-radius:12px!important;text-overflow:ellipsis!important;padding:9px 31px 9px 12px!important}
 body .top-right .menuwrap{display:none!important}
 body .navtabs{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;padding:0 0 3px!important;gap:15px!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important}
 body .navtabs button{scroll-snap-align:start!important;flex-shrink:0!important;font-size:12px!important;min-height:45px!important}
 /* Cards mais baixos e consistentes para evitar excesso de rolagem */
 body .stats{gap:9px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .stats .stat{min-height:137px!important;padding:13px!important;gap:3px!important}
 body .stats .stat-progress{min-height:150px!important;padding:15px!important;grid-template-columns:1fr auto!important;grid-template-rows:34px auto 12px!important;gap:5px!important}
 body .stats .stat-progress .stat-icon{grid-column:1!important;grid-row:1!important}
 body .stats .stat-progress label{grid-column:1!important;grid-row:2!important;margin:0!important}
 body .stats .stat-progress strong{grid-column:2!important;grid-row:1/3!important;font-size:clamp(38px,11vw,52px)!important;line-height:1!important}
 body .stats .stat-progress .progress{grid-column:1/-1!important;grid-row:3!important}
 body .stats .stat:not(.stat-progress) strong{font-size:clamp(28px,8vw,35px)!important}
 body .stats .stat:not(.stat-progress) .stat-icon{width:35px!important;height:35px!important;margin-bottom:7px!important}
 /* Menu Mais é um painel rolável que termina ANTES da barra de navegação */
 body .mobile-more{position:fixed!important;top:calc(10px + env(safe-area-inset-top))!important;bottom:calc(86px + env(safe-area-inset-bottom))!important;left:10px!important;right:10px!important;width:auto!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain!important;z-index:125!important;border:1px solid #376052!important;border-radius:20px!important;padding:16px 14px 22px!important;background:#1b2929!important;box-shadow:0 18px 65px #000a!important}
 body .mobile-more[hidden]{display:none!important}
 body .mobile-more .vs-menu-section-title{margin:14px 4px 8px!important;color:#a8cfc1!important;font-size:11px!important;letter-spacing:.15em!important}
 body .mobile-more .vs-menu-section{display:grid!important;gap:8px!important;margin:0 0 15px!important}
 body .mobile-more .vs-menu-action,body .mobile-more .vs95-menu-item{min-height:48px!important;background:#142424!important;border:1px solid #28463e!important;border-radius:12px!important;color:#f0f8f4!important;font-size:14px!important;padding:12px 14px!important}
 body .mobile-bottom{z-index:126!important}
 /* Formulários e ações acima da navegação, com scroll interno e rodapé fixo na janela */
 body .dialogveil.active,body .vsr-overlay.active{z-index:140!important;align-items:flex-start!important;overflow-y:auto!important;padding:calc(10px + env(safe-area-inset-top)) 9px calc(94px + env(safe-area-inset-bottom))!important}
 body .dialogveil .dialogbox,body #editVeil .dialogbox{max-height:calc(100dvh - 116px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:17px 15px!important}
 body #editVeil .actions{position:sticky!important;bottom:-17px!important;background:#202b27!important;margin:15px -15px -17px!important;padding:13px 15px 16px!important;border-top:1px solid #476057!important;box-shadow:0 -9px 16px #0004!important}
 body .vs95-modal{z-index:150!important;align-items:flex-start!important;padding:calc(10px + env(safe-area-inset-top)) 10px calc(94px + env(safe-area-inset-bottom))!important}
 body .vs95-dialog{max-height:calc(100dvh - 115px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
}
@media(min-width:901px){
 #vsMpIntegrationTestsBtn,#vsMpSafetyAuditQuickBtn{display:none!important}
}

/* V42.98 — compactação visual da tela inicial, sem alterar a identidade */
@media(min-width:901px){.vs95-install-banner{display:none!important}}
@media(max-width:900px){
 body .top{padding:11px 12px 0!important;margin-bottom:10px!important;border-radius:23px!important}
 body .top .brand{grid-template-columns:42px minmax(0,1fr)!important;grid-template-rows:42px auto!important;gap:5px 8px!important}
 body .top .brand .mark{width:42px!important;height:42px!important}
 body .top .brand .theme-switcher{padding:2px 4px!important;gap:1px!important;border-radius:12px!important;max-width:100%!important;min-width:0!important}
 body .top .brand .theme-switcher button{width:clamp(24px,6.5vw,29px)!important;min-width:0!important;height:29px!important;font-size:16px!important;padding:0!important}
 body .top .brand>div:last-child{padding:5px 0 2px!important}
 body .top .brand .eyebrow{font-size:9px!important;margin-bottom:3px!important}
 body .top .brand h1{font-size:clamp(21px,5.5vw,27px)!important}
 body .top .brand .sub{font-size:10px!important;margin-top:4px!important}
 body .top-right{margin:0 0 3px!important;gap:0!important}
 body .top-right .project-picker{position:relative!important;flex:0 0 88px!important;width:88px!important;max-width:88px!important;min-width:88px!important;min-height:36px!important;border:1px solid #39534c!important;border-radius:11px!important;background:#142424!important;overflow:hidden!important}
 body .top-right .project-picker::before{content:'▦  Obras';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#e9faf3;pointer-events:none}
 body .top-right .project-picker label{display:none!important}
 body .top-right .project-picker select{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;min-height:36px!important;opacity:0!important;cursor:pointer!important;z-index:2!important}
 body .navtabs{gap:14px!important;margin:0!important;padding:0 0 2px!important}
 body .navtabs button{min-height:36px!important;font-size:11px!important;padding:7px 3px!important}
 body .stats{gap:7px!important;margin:0 0 9px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .stats .stat{min-height:clamp(88px,13.3dvh,113px)!important;padding:10px 12px!important;border-radius:15px!important;gap:0!important;box-shadow:none!important}
 body .stats .stat-progress{min-height:clamp(96px,15dvh,122px)!important;grid-template-columns:1fr auto!important;grid-template-rows:22px auto 7px!important;gap:3px!important;padding:11px 14px!important}
 body .stats .stat-progress .stat-icon{width:25px!important;height:25px!important;font-size:15px!important}
 body .stats .stat-progress label{font-size:11px!important}
 body .stats .stat-progress strong{font-size:clamp(29px,8vw,40px)!important}
 body .stats .stat-progress .progress{height:7px!important}
 body .stats .stat:not(.stat-progress) .stat-icon{width:27px!important;height:27px!important;font-size:15px!important;margin:0 0 4px!important}
 body .stats .stat:not(.stat-progress) label{font-size:10px!important;margin:0!important;line-height:1.15!important}
 body .stats .stat:not(.stat-progress) strong{font-size:clamp(24px,7vw,30px)!important;line-height:1!important;margin:3px 0!important}
 body .stats .stat:not(.stat-progress) small{font-size:9px!important;line-height:1.1!important}
 body #vsDeadlineHome{gap:5px!important;margin:0 0 10px!important}
 body #vsDeadlineHome>*{padding:8px 11px!important;min-height:0!important;font-size:11px!important;border-radius:11px!important}
 body .shell{padding-bottom:calc(95px + env(safe-area-inset-bottom))!important}
}
@media(max-width:900px) and (max-height:740px){
 body .top .brand .sub{display:none!important}
 body .stats .stat{min-height:80px!important}
 body .stats .stat-progress{min-height:84px!important}
 body .stats .stat:not(.stat-progress) .stat-icon{width:22px!important;height:22px!important;margin-bottom:2px!important}
}


/* V42.99 — ajustes solicitados na homologação do iPhone */
@media(max-width:900px){
 /* Barra compacta, mantendo as quatro funções originais */
 body .top .brand .theme-switcher{
  display:flex!important;gap:0!important;padding:2px!important;
  width:max-content!important;max-width:100%!important;
  border-radius:11px!important;align-self:center!important;
  justify-self:start!important
 }
 body .top .brand .theme-switcher button{
  flex:0 0 27px!important;width:27px!important;min-width:27px!important;
  height:29px!important;min-height:29px!important;
  padding:0!important;font-size:15px!important;line-height:1!important;
  border-radius:8px!important
 }
 body .top .brand .theme-switcher #vsgoAppearanceGear{font-size:17px!important}
 body .top .brand{grid-template-columns:40px minmax(0,1fr)!important;grid-template-rows:40px auto!important;column-gap:8px!important}
 body .top .brand .mark{width:40px!important;height:40px!important}
 body .top .brand .theme-switcher{grid-column:2!important;grid-row:1!important}
 /* IA isolada da barra e posicionada ao lado da linha de informações da obra */
 body .vs99-ai-standalone{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  height:30px!important;min-width:53px!important;gap:5px!important;
  padding:3px 8px!important;border-radius:12px!important;
  border:1px solid #34765d!important;background:#163d33!important;
  color:#9bf1c4!important;font-size:12px!important;font-weight:700!important;
  cursor:pointer!important
 }
 body .vs99-ai-row{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;margin-top:5px!important}
 body .top-right{width:auto!important;max-width:max-content!important;align-self:flex-end!important;margin:0!important}
 body .top-right .project-picker{flex:0 0 auto!important;width:83px!important;max-width:83px!important;min-width:83px!important;min-height:30px!important;height:30px!important;border-radius:10px!important}
 body .top-right .project-picker::before{font-size:11px!important}
 body .top-right .project-picker select{min-height:30px!important;height:30px!important}
 /* Campos editáveis menores sem zoom: font-size 16px no foco iOS */
 body .tasks input,body .tasks textarea,body .task input,body .task textarea,
 body .tasks .field,body .task .field,body .taskname{
  font-size:13px!important;line-height:1.3!important
 }
 body .tasks input:focus,body .tasks textarea:focus,body .task input:focus,body .task textarea:focus{font-size:16px!important}
 /* Resumo OBS é uma tela modal opaca que termina ANTES da navegação */
 body:has(#obsSummaryVeil.active)>.shell{visibility:hidden!important}
 body #obsSummaryVeil.active{
  position:fixed!important;top:0!important;left:0!important;right:0!important;
  bottom:calc(80px + env(safe-area-inset-bottom))!important;
  height:auto!important;max-height:none!important;
  display:flex!important;align-items:stretch!important;justify-content:center!important;
  box-sizing:border-box!important;
  background:#071618!important;opacity:1!important;
  padding:calc(9px + env(safe-area-inset-top)) 9px 8px!important;
  overflow:hidden!important;z-index:110!important
 }
 body #obsSummaryVeil.active>.obs-summary-dialog{
  display:flex!important;flex-direction:column!important;
  width:100%!important;max-width:100%!important;
  height:100%!important;max-height:100%!important;min-height:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;box-sizing:border-box!important;
  margin:0!important;padding:14px 12px 10px!important;
  border-radius:16px!important;background:#1d2929!important
 }
 body #obsSummaryVeil .obs-summary-actions{
  position:sticky!important;bottom:-10px!important;z-index:5!important;
  background:#1d2929!important;padding:10px 0 12px!important;
  margin-top:auto!important;box-shadow:0 -10px 16px #1d2929!important
 }
 body:has(#obsSummaryVeil.active) .mobile-bottom{z-index:130!important}
 /* Ao abrir módulos, esconder o conteúdo anterior para evitar sobreposição visual */
 body:has(#vsModuleVeil.active)>.shell{visibility:hidden!important}
 body:has(#vsModuleVeil.active) .mobile-bottom{z-index:130!important}
}

@media(max-width:900px){
 body .vs99-ai-row #vsAiBtn{position:static!important;transform:none!important;margin:0!important;box-shadow:none!important}
 body .top .brand .theme-switcher #vsAiBtn{display:none!important}
 body.vs99-module-open>.shell{visibility:hidden!important}
 body.vs99-module-open .mobile-bottom{z-index:130!important}
}

/* V43.00 — layout móvel: tarefas em tela, janelas uniformes e IA flutuante */
@media screen and (max-width:900px){
 body[data-vsarq-mobile-view="tasks"] #stats,
 body[data-vsarq-mobile-view="tasks"] #vsDeadlineHome,
 body[data-vsarq-mobile-view="tasks"] .vsgo-home-deadlines,
 body[data-vsarq-mobile-view="tasks"] .home-summary,
 body[data-vsarq-mobile-view="tasks"] .home-kpis{display:none!important}
 body[data-vsarq-mobile-view="tasks"] .top{display:flex!important}
 body[data-vsarq-mobile-view="tasks"] .toolbar{display:grid!important;margin-top:7px!important}
 body[data-vsarq-mobile-view="tasks"] #groups{display:flex!important;margin-top:4px!important;padding-bottom:calc(98px + env(safe-area-inset-bottom))!important}
 body[data-vsarq-mobile-view="tasks"] .shell{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
 /* Conteúdo de OBS e D.Obra na mesma área útil, acima da navegação */
 body #obsSummaryVeil.active,body #vsModuleVeil.active{
  position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;
  bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;
  left:8px!important;right:8px!important;width:auto!important;height:auto!important;
  min-height:0!important;max-height:none!important;box-sizing:border-box!important;
  padding:0!important;margin:0!important;overflow:hidden!important;
  display:flex!important;align-items:stretch!important;justify-content:center!important;
  background:#0c1718!important;z-index:115!important
 }
 body #obsSummaryVeil.active>.obs-summary-dialog,
 body #vsModuleVeil.active #vsModulePanel{
  width:100%!important;max-width:100%!important;height:100%!important;
  min-height:0!important;max-height:100%!important;margin:0!important;
  box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
  border-radius:16px!important
 }
 body #obsSummaryVeil.active>.obs-summary-dialog{padding:16px 12px 12px!important}
 body #obsSummaryVeil .obs-summary-header{position:relative!important;top:auto!important;background:inherit!important}
 body #obsSummaryVeil .obs-summary-actions{position:sticky!important;bottom:0!important;z-index:3!important;background:#1d2929!important}
 body .mobile-bottom{z-index:135!important}
 /* Botão IA: não interfere na barra de ferramentas */
 body #vsAiBtn.vs4300-ai-fab{
  display:flex!important;position:fixed!important;
  right:calc(21px + env(safe-area-inset-right,0px))!important;
  bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;
  left:auto!important;top:auto!important;transform:none!important;
  width:47px!important;height:47px!important;min-width:47px!important;max-width:47px!important;
  min-height:47px!important;max-height:47px!important;
  padding:0!important;margin:0!important;border-radius:50%!important;
  align-items:center!important;justify-content:center!important;
  background:#15513f!important;border:1px solid #6bd4a5!important;
  box-shadow:0 5px 18px #0007!important;color:#b0f7d0!important;
  font-size:24px!important;line-height:1!important;z-index:140!important;
  opacity:1!important;visibility:visible!important;cursor:pointer!important
 }
 body #vsAiBtn.vs4300-ai-fab .vs4300-ai-text{display:none!important}
 body:has(#obsSummaryVeil.active) #vsAiBtn.vs4300-ai-fab,
 body:has(#vsModuleVeil.active) #vsAiBtn.vs4300-ai-fab{display:none!important}
}

/* V43.01: correções de regressão no layout de Tarefas e cabeçalho */
@media screen and (max-width:900px){
 /* Manter a estrutura de cabeçalho idêntica à tela Início. */
 body[data-vsarq-mobile-view="tasks"] .top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important}
 /* A lista usa o layout vertical original: nunca converter os grupos em colunas flex. */
 body[data-vsarq-mobile-view="tasks"] #groups{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;width:100%!important;min-width:0!important;gap:7px!important}
 body[data-vsarq-mobile-view="tasks"] #groups>.group,body[data-vsarq-mobile-view="tasks"] #groups>.floor-parent{width:100%!important;min-width:0!important;max-width:100%!important}
 body[data-vsarq-mobile-view="tasks"] .toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;width:100%!important}
 body[data-vsarq-mobile-view="tasks"] .shell{overflow-x:hidden!important}
 /* Controles do topo em tamanho equivalente ao seletor Obras. */
 body .top .brand .theme-switcher{height:34px!important;min-height:34px!important;box-sizing:border-box!important;align-self:center!important}
 body .top .brand .theme-switcher button{height:28px!important;min-height:28px!important}
 body .top-right .project-picker{height:34px!important;min-height:34px!important;box-sizing:border-box!important}
 body .top-right .project-picker select{height:32px!important;min-height:32px!important}
 /* IA flutuante em qualquer uma das abas, acima de Mais. */
 body #vsAiBtn.vs4300-ai-fab{display:flex!important;position:fixed!important;right:calc(22px + env(safe-area-inset-right))!important;bottom:calc(92px + env(safe-area-inset-bottom))!important;z-index:140!important}
 body .theme-switcher #vsAiBtn,body .vs99-ai-row #vsAiBtn{display:none!important}
}

/* V43.02 — alinhamento minimalista do cabeçalho em todas as abas móveis */
@media screen and (max-width:900px){
 body .top .brand .theme-switcher{height:30px!important;min-height:30px!important;max-height:30px!important;padding:1px 3px!important;gap:1px!important;box-sizing:border-box!important;border-radius:10px!important;align-items:center!important;overflow:hidden!important}
 body .top .brand .theme-switcher button{flex:0 0 27px!important;width:27px!important;min-width:27px!important;max-width:27px!important;height:26px!important;min-height:26px!important;max-height:26px!important;font-size:15px!important;padding:0!important;line-height:1!important}
 body .top .brand .theme-switcher #vsgoAppearanceGear{font-size:16px!important}
 body .top-right .project-picker{height:30px!important;min-height:30px!important;max-height:30px!important;width:82px!important;min-width:82px!important;max-width:82px!important;flex:0 0 82px!important;box-sizing:border-box!important;border-radius:10px!important}
 body .top-right .project-picker select{height:100%!important;min-height:0!important;max-height:100%!important}
 body .top .brand .theme-switcher #vsAiBtn,body .top .brand .vs99-ai-row,body .top .brand .vs99-ai-standalone,body .theme-switcher [data-action-id="vsAiBtn"]{display:none!important}
 body #vsAiBtn.vs4300-ai-fab{display:flex!important}
 /* O mesmo cabeçalho da tela inicial permanece ao alternar para Tarefas. */
 body[data-vsarq-mobile-view="tasks"] .top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important}
 body[data-vsarq-mobile-view="tasks"] .top .brand{grid-template-columns:40px minmax(0,1fr)!important;grid-template-rows:40px auto!important}
 body[data-vsarq-mobile-view="tasks"] .top .brand .theme-switcher{grid-column:2!important;grid-row:1!important}
 body[data-vsarq-mobile-view="tasks"] .top-right{margin:0!important}
 body[data-vsarq-mobile-view="tasks"] #groups{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important}
 body[data-vsarq-mobile-view="tasks"] #groups>.group{width:100%!important;min-width:0!important}
}

/* V43.03 — uma única geometria para Início e Tarefas */
@media (max-width:900px){
 body .top,body[data-vsarq-mobile-view="tasks"] .top{position:relative!important;display:block!important;padding:11px 12px 0!important;box-sizing:border-box!important}
 body .top .brand,body[data-vsarq-mobile-view="tasks"] .top .brand{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;grid-template-rows:40px auto!important;gap:5px 8px!important;width:100%!important;min-width:0!important}
 body .top .brand .mark,body[data-vsarq-mobile-view="tasks"] .top .brand .mark{grid-column:1!important;grid-row:1!important;width:40px!important;height:40px!important}
 body .top .brand .theme-switcher,body[data-vsarq-mobile-view="tasks"] .top .brand .theme-switcher{grid-column:2!important;grid-row:1!important;justify-self:start!important;align-self:center!important;display:flex!important;align-items:center!important;gap:2px!important;width:max-content!important;max-width:calc(100% - 91px)!important;height:30px!important;min-height:30px!important;max-height:30px!important;padding:2px 4px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;border-radius:10px!important}
 body .top .brand .theme-switcher button{flex:0 0 27px!important;width:27px!important;min-width:27px!important;max-width:27px!important;height:26px!important;min-height:26px!important;max-height:26px!important;padding:0!important;font-size:15px!important;line-height:1!important}
 body .top .brand>div:last-child,body[data-vsarq-mobile-view="tasks"] .top .brand>div:last-child{grid-column:1/-1!important;grid-row:2!important;min-width:0!important}
 body .top-right,body[data-vsarq-mobile-view="tasks"] .top-right{position:absolute!important;top:16px!important;right:12px!important;left:auto!important;bottom:auto!important;display:flex!important;align-items:center!important;align-self:auto!important;margin:0!important;padding:0!important;width:80px!important;max-width:80px!important;height:30px!important;min-height:30px!important;z-index:4!important}
 body .top-right .project-picker,body[data-vsarq-mobile-view="tasks"] .top-right .project-picker{display:block!important;position:relative!important;box-sizing:border-box!important;flex:0 0 80px!important;width:80px!important;min-width:80px!important;max-width:80px!important;height:30px!important;min-height:30px!important;max-height:30px!important;margin:0!important;border-radius:10px!important}
 body .top-right .project-picker select{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important}
 body .top .brand .theme-switcher #vsAiBtn,body .top .brand .vs99-ai-row,body .top .brand .vs99-ai-standalone,body .theme-switcher .vs99-ai-standalone{display:none!important}
 body #vsAiBtn.vs4300-ai-fab{display:flex!important;position:fixed!important;right:calc(22px + env(safe-area-inset-right,0px))!important;bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;z-index:140!important}
 body[data-vsarq-mobile-view="tasks"] #stats,body[data-vsarq-mobile-view="tasks"] #vsDeadlineHome{display:none!important}
 body[data-vsarq-mobile-view="tasks"] #groups{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;width:100%!important;min-width:0!important}
}
