/* ===== Bloco CSS 1 extraído do HTML original ===== */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
:root{
  --or1:#00ffff;--or2:#0032ff;--orange:#00ffff;--orange-2:#0032ff;--brand:#00ffff;
  --grad:linear-gradient(135deg,#00ffff,#0032ff);
  --bg:#000c12;--bg3:#00131c;
  --card:#001923;--card2:#002638;--card3:#00324a;
  --border:rgba(255,255,255,0.07);--border2:rgba(0,255,255,0.35);
  --text:#fff;--text2:rgba(255,255,255,0.65);--text3:rgba(255,255,255,0.35);
  --radius:14px;--radius-sm:10px;--radius-xs:7px;
  --red:#ff5555;--green:#00c853;
  --sidebar-w:220px;
  --content-max:900px;
  /* ── largura única que alinha header, tabs e conteúdo ── */
  --app-max:1100px;
  --app-pad:20px;
}

html,body{
  height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:'Segoe UI',system-ui,sans-serif;
  font-size:15px;
  overflow:hidden;
}

/* ══ APP SHELL ══ */
.app{
  height:100vh;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  background:var(--bg);
}

.screen{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  background:var(--bg);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s;
}
.screen.active{opacity:1;pointer-events:all;}

/* ══ LOGIN ══ */
.login-bg{
  flex:1;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px 20px;
  overflow-y:auto;
  background:radial-gradient(ellipse at 50% 0%,rgba(0,50,255,.12) 0%,transparent 65%),var(--bg);
}
.login-logo-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:0 0 16px;
}
.login-logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:8px;}
.logo-mark{width:52px;height:52px;background:var(--grad);border-radius:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.logo-mark img{width:100%;height:100%;border-radius:13px;object-fit:cover;}
.logo-mark svg{width:30px;height:30px;}
.logo-name{font-size:32px;font-weight:800;}
.logo-name span{background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.logo-tagline{font-size:11px;color:var(--text3);letter-spacing:2px;text-transform:uppercase;}
.login-card{
  width:100%;
  max-width:420px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
}
.tab-switch{display:flex;background:var(--bg3);border-radius:var(--radius-sm);padding:4px;margin-bottom:20px;}
.tab-switch button{flex:1;padding:9px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;}
.tab-switch button.active{background:var(--grad);color:#fff;}
.tab-switch button:not(.active){background:none;color:var(--text2);}
.google-btn{width:100%;background:#fff;border:none;border-radius:var(--radius-sm);min-height:52px;padding:13px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:600;color:#333;cursor:pointer;margin-bottom:18px;transition:opacity .2s;}
.google-btn:hover{opacity:.9;}
.divider{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.divider-line{flex:1;height:1px;background:var(--border);}
.divider span{font-size:12px;color:var(--text3);}
.field-label{font-size:11px;font-weight:600;color:var(--text3);letter-spacing:1px;text-transform:uppercase;margin-bottom:6px;}
.field-input{width:100%;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:13px 14px;color:var(--text);font-size:14px;outline:none;margin-bottom:14px;transition:border-color .2s;}
.field-input:focus{border-color:var(--or2);}
.field-input::placeholder{color:var(--text3);}
.forgot{text-align:right;font-size:12px;color:var(--text2);cursor:pointer;margin-top:-8px;margin-bottom:16px;}
.login-btn{width:100%;background:var(--grad);border:none;border-radius:var(--radius-sm);padding:15px;color:#fff;font-size:15px;font-weight:700;letter-spacing:1px;cursor:pointer;transition:opacity .2s;}
.login-btn:hover{opacity:.9;}

/* ══ MAIN LAYOUT ══ */
#s-main{flex-direction:column;}

.main-header{
  flex-shrink:0;
  background:var(--bg);
  border-bottom:1px solid rgba(255,255,255,0.06);
  padding:0;
  z-index:20;
}
.main-header-inner{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;padding:10px var(--app-pad);
  max-width:var(--app-max);margin:0 auto;
}
.h-logo{display:flex;align-items:center;gap:9px;cursor:pointer;flex-shrink:0;}
.h-logo-mark{width:30px;height:30px;background:var(--grad);border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;}
.h-logo-mark img{width:100%;height:100%;object-fit:cover;}
.h-logo-mark svg{width:17px;height:17px;}
.h-logo-text{font-size:16px;font-weight:800;}
.h-logo-text span{background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}

/* ── Header actions — responsivo ── */
.h-actions{display:flex;align-items:center;gap:6px;}
.h-btn{
  height:33px;min-width:33px;border-radius:17px;
  border:1px solid rgba(255,255,255,0.10);background:rgba(255,255,255,0.05);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:var(--text2);font-size:13px;font-weight:600;
  padding:0 11px;transition:all .2s;white-space:nowrap;flex-shrink:0;
}
.h-btn:hover{border-color:var(--border2);background:rgba(0,50,255,0.08);color:var(--or1);}
.h-avatar{background:var(--grad) !important;color:#fff !important;border:none !important;}
.h-admin{background:var(--grad) !important;border:none !important;color:#fff !important;font-weight:700 !important;font-size:12px !important;}
.h-convidar{background:var(--grad) !important;border:none !important;color:#fff !important;font-weight:700 !important;}
.h-convidar:hover{opacity:.88 !important;}

/* Nome do usuário no avatar */
#avatar-name{font-size:13px;font-weight:600;}

/* ── Desktop: hamburguer escondido, tudo visível ── */
.h-hamburger{display:none;}
.h-desktop-only{display:flex;}

/* ── HAMBURGUER MENU ── */
.hamburger-menu{
  display:none;position:absolute;top:calc(100% + 10px);right:0;
  background:var(--card2);border:1px solid var(--border);
  border-radius:var(--radius-sm);min-width:220px;
  box-shadow:0 16px 48px rgba(0,0,0,.55);z-index:3000;overflow:hidden;
}
.hamburger-menu.open{display:block;}
.hamburger-item{
  display:flex;align-items:center;gap:10px;
  padding:13px 16px;font-size:13px;font-weight:500;
  color:var(--text2);cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.04);
  transition:background .15s;
}
.hamburger-item:last-child{border-bottom:none;}
.hamburger-item:hover{background:rgba(255,255,255,.04);color:var(--text);}
.hamburger-ico{font-size:16px;width:22px;text-align:center;flex-shrink:0;}
.hamburger-divider{height:1px;background:var(--border);margin:2px 0;}
.hamburger-sair{color:var(--red) !important;}
.hamburger-sair:hover{background:rgba(255,60,60,.08) !important;}

/* ── Breakpoint: mobile/tablet — esconde desktop, mostra hamburguer ── */
@media(max-width:720px){
  .h-desktop-only{display:none !important;}
  .h-hamburger{display:flex !important;}
}

/* ── MOBILE TABS (horizontal top bar) ── */
.main-tabs{
  flex-shrink:0;
  background:#131929;
  border-bottom:1px solid rgba(255,255,255,0.06);
  display:flex;
  justify-content:center;
  padding:0;
  overflow-x:auto;
  scrollbar-width:none;
  z-index:10;
}
.main-tabs::-webkit-scrollbar{display:none;}
.main-tabs-inner{
  display:flex;width:100%;
  max-width:var(--app-max);
  padding:0 var(--app-pad);
  justify-content:center;
}
.main-tab{
  padding:13px 18px;font-size:14px;font-weight:500;
  color:var(--text3);cursor:pointer;
  border-bottom:2px solid transparent;
  transition:all .2s;white-space:nowrap;
}
.main-tab.active{color:var(--or1);border-bottom-color:var(--or1);}

/* Sidebar — hidden on mobile, shown on desktop */
.main-body{
  flex:1;
  display:flex;
  overflow:hidden;
}
.sidebar{
  display:none; /* hidden mobile */
}
.sidebar-inner{
  width:var(--sidebar-w);
  background:var(--card);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  padding:16px 10px;
  overflow-y:auto;
  height:100%;
}
.sidebar-inner::-webkit-scrollbar{width:4px;}
.sidebar-inner::-webkit-scrollbar-thumb{background:var(--border2);border-radius:2px;}
.sidebar-nav-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:var(--radius-sm);
  cursor:pointer;color:var(--text2);font-size:14px;font-weight:500;
  transition:all .2s;margin-bottom:3px;
}
.sidebar-nav-item:hover{background:var(--card2);color:var(--text);}
.sidebar-nav-item.active{background:rgba(0,50,255,.12);color:var(--or1);font-weight:600;}
.sidebar-nav-icon{font-size:18px;width:24px;text-align:center;flex-shrink:0;}
.sidebar-divider{height:1px;background:var(--border);margin:10px 0;}

/* ── MAIN CONTENT ── */
/* ══ SCROLLBARS — finas e discretas ══ */
*::-webkit-scrollbar{width:3px;height:3px;}
*::-webkit-scrollbar-track{background:transparent;}
*::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.10);border-radius:99px;}
*::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.18);}
*{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.10) transparent;}

.main-content{
  flex:1;
  overflow-y:auto;
  padding:16px;
  position:relative;
}
.main-content::-webkit-scrollbar{width:3px;}
.main-content::-webkit-scrollbar-track{background:transparent;}
.main-content::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.10);border-radius:99px;}
.main-content::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.18);}
.main-content::-webkit-scrollbar-thumb:active{background:rgba(0,50,255,0.4);}

/* Content centering — mesma largura máxima em mobile e desktop */
.content-inner{
  max-width:var(--app-max);
  margin:0 auto;
  width:100%;
  box-sizing:border-box;
}

/* ══ SCROLL TO TOP ══ */
.scroll-top-btn{
  position:fixed;bottom:24px;right:20px;
  width:42px;height:42px;border-radius:50%;
  background:var(--grad);border:none;color:#fff;
  font-size:18px;cursor:pointer;
  display:none;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(0,50,255,.45);
  z-index:200;transition:opacity .2s,transform .2s;
}
.scroll-top-btn:hover{transform:translateY(-2px);}
.scroll-top-btn.visible{display:flex;}

/* ══ CARDS / PANELS ══ */
.panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:14px;}
.panel-header{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap;}
.panel-icon{width:38px;height:38px;border-radius:var(--radius-xs);background:var(--card3);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.panel-title{font-size:15px;font-weight:700;}
.panel-sub{font-size:11px;color:var(--text3);margin-top:1px;}
.panel-actions{display:flex;gap:7px;margin-left:auto;flex-wrap:wrap;}

.btn-primary{background:var(--grad);border:none;border-radius:20px;padding:8px 16px;color:#fff;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;transition:opacity .2s;}
.btn-primary:hover{opacity:.88;}
.btn-green{background:linear-gradient(135deg,#00c853,#00a040);border:none;border-radius:20px;padding:8px 16px;color:#fff;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;transition:opacity .2s;}
.btn-green:hover{opacity:.88;}
.btn-outline{background:none;border:1px solid var(--border);border-radius:20px;padding:7px 14px;color:var(--text2);font-size:13px;cursor:pointer;transition:all .2s;}
.btn-outline:hover{border-color:var(--border2);color:var(--or1);}
.btn-danger{background:rgba(255,60,60,.12);border:1px solid rgba(255,60,60,.25);border-radius:20px;padding:7px 14px;color:var(--red);font-size:13px;cursor:pointer;transition:all .2s;}
.btn-danger:hover{background:rgba(255,60,60,.2);}
.hint{font-size:12px;color:var(--text3);margin-bottom:10px;display:flex;align-items:center;gap:6px;}
.hint-sq{width:11px;height:11px;background:var(--card3);border:1px solid var(--border);border-radius:2px;display:inline-block;flex-shrink:0;}

/* ══ PROJ ROWS ══ */
.proj-row{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:13px 14px;margin-bottom:7px;display:flex;align-items:center;gap:10px;transition:border-color .2s;cursor:pointer;width:100%;box-sizing:border-box;}
.proj-row:hover,.proj-row.selected-row{border-color:var(--border2);}
.proj-row.selected-row{background:rgba(0,50,255,.05);}
.proj-check{width:20px;height:20px;border-radius:4px;border:1.5px solid var(--border);background:none;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .2s;font-size:11px;}
.proj-check.chk{background:var(--grad);border-color:var(--or2);color:#fff;}
.proj-name-text{flex:1;min-width:0;font-size:14px;font-weight:600;color:var(--or1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.proj-name-text.plain{color:var(--text);}
.proj-count{font-size:12px;color:var(--text2);white-space:nowrap;flex-shrink:0;}
.combinar-panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;}
.combinar-icon{width:38px;height:38px;border-radius:var(--radius-xs);background:rgba(0,50,255,.15);border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;font-size:19px;}
.combinar-desc{font-size:13px;color:var(--text2);margin-bottom:14px;line-height:1.6;}

/* ══ ITEM ROWS — responsivo ══ */
.item-row{
  background:var(--card2);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:12px 13px;margin-bottom:7px;
  display:flex;align-items:center;gap:9px;transition:border-color .2s;
  width:100%;box-sizing:border-box;
}
.item-row.selected-item{border-color:var(--border2);background:rgba(0,50,255,.05);}
.item-chk{width:20px;height:20px;border-radius:4px;border:1.5px solid var(--border);background:none;flex-shrink:0;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:11px;transition:all .2s;}
.item-chk.chk{background:var(--grad);border-color:var(--or2);color:#fff;}
.item-ico{width:35px;height:35px;border-radius:9px;background:rgba(0,50,255,.12);display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;}
.item-inf{flex:1;min-width:0;cursor:pointer;}
.item-nm{font-size:13px;font-weight:600;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.item-dt{font-size:11px;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.item-ar{font-size:13px;font-weight:700;color:var(--or1);white-space:nowrap;flex-shrink:0;}
.item-actions{display:flex;gap:5px;flex-shrink:0;}
.ia-btn{width:30px;height:30px;border-radius:var(--radius-xs);border:1px solid var(--border);background:var(--card3);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;transition:all .2s;}
.ia-btn:hover{border-color:var(--border2);}
.ia-btn.danger:hover{border-color:rgba(255,60,60,.5);background:rgba(255,60,60,.1);}
@media(max-width:480px){
  .item-row{padding:10px;gap:7px;}
  .item-ico{width:30px;height:30px;font-size:14px;border-radius:7px;}
  .item-nm{font-size:12px;}
  .item-dt{font-size:10px;}
  .item-ar{font-size:12px;}
  .ia-btn{width:28px;height:28px;font-size:12px;}
  .item-actions{gap:3px;}
}
@media(max-width:360px){.item-ar{display:none;}}

/* ══ SEL BAR & PROJ DETAIL HEADER ══ */
.sel-bar{
  background:var(--card2);border:1px solid var(--border2);
  border-radius:var(--radius-sm);padding:9px 13px;margin-bottom:9px;
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;flex-wrap:wrap;width:100%;box-sizing:border-box;
}
.sel-bar-left{display:flex;align-items:center;gap:9px;flex:1;min-width:0;}
.sel-count{font-size:13px;color:var(--text2);}
.sel-count strong{color:var(--or1);}
.proj-detail-header{
  display:flex;align-items:center;gap:8px;margin-bottom:13px;
  width:100%;box-sizing:border-box;flex-wrap:nowrap;
}
.proj-detail-header > div{
  flex:1;min-width:0;font-size:15px;font-weight:700;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
@media(max-width:380px){
  .proj-detail-header{flex-wrap:wrap;}
  .proj-detail-header > div{font-size:13px;width:100%;}
}
.back-btn-sm{background:var(--card2);border:1px solid var(--border);border-radius:20px;padding:7px 13px;color:var(--text2);font-size:12px;cursor:pointer;display:flex;align-items:center;gap:4px;transition:all .2s;white-space:nowrap;flex-shrink:0;}
.back-btn-sm:hover{border-color:var(--border2);color:var(--or1);}
.empty-state{text-align:center;padding:48px 20px;color:var(--text3);width:100%;}
.empty-ico{font-size:36px;margin-bottom:10px;opacity:.6;}
.empty-txt{font-size:14px;line-height:1.6;}

/* ══ DRAWERS / MODALS ══ */
.drawer-bg{
  position:absolute;inset:0;
  background:rgba(0,0,0,.72);
  z-index:50;
  display:none;
  align-items:center;
  justify-content:center;
  padding:12px;
  overflow-y:auto;
}
.drawer-bg.open{display:flex;}
.drawer{
  background:var(--card);
  border-radius:var(--radius);
  width:100%;
  max-width:600px;
  padding:24px 20px 28px;
  max-height:calc(100dvh - 24px);
  overflow-y:auto;
  position:relative;
  margin:auto;
}
/* Em mobile pequeno, ocupa quase tudo */
@media(max-width:480px){
  .drawer-bg{padding:8px;align-items:center;}
  .drawer{
    max-height:calc(100dvh - 16px);
    padding:20px 16px 24px;
    border-radius:var(--radius);
  }
}
.drawer::-webkit-scrollbar{width:3px;}
.drawer::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:99px;}
.drawer-handle{width:40px;height:4px;background:var(--border);border-radius:2px;margin:0 auto 20px;}
/* Botão X para cancelar drawers de sistema em qualquer etapa */
.drawer-close-x{
  position:absolute;
  top:16px;
  right:16px;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1.5px solid var(--border);
  background:none;
  color:var(--text2);
  cursor:pointer;
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .2s;
  z-index:3;
}
.drawer-close-x:hover{
  border-color:rgba(0,50,255,.65);
  color:var(--or1);
  background:rgba(0,50,255,.08);
}

.drawer-title{font-size:19px;font-weight:700;margin-bottom:5px;}
.drawer-sub{font-size:13px;color:var(--text2);margin-bottom:20px;}
.step-dots{display:flex;gap:5px;margin-bottom:18px;}
.dot{width:7px;height:7px;border-radius:4px;background:var(--border);transition:all .3s;}
.dot.active{background:var(--or1);width:22px;}
.dot.done{background:var(--or2);}
.field-lbl{font-size:11px;color:var(--text3);letter-spacing:1px;text-transform:uppercase;margin-bottom:6px;font-weight:600;}
.d-input{width:100%;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:13px 14px;color:var(--text);font-size:15px;outline:none;margin-bottom:14px;transition:border-color .2s;}
.d-input:focus{border-color:var(--or2);}
.d-input::placeholder{color:var(--text3);}
.input-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;}
.input-wrap{position:relative;}
.input-wrap .d-input{margin-bottom:0;}
.input-unit{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--text3);pointer-events:none;}
.opt-group{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px;}
.opt{background:var(--card2);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:8px 15px;color:var(--text2);font-size:13px;font-weight:600;cursor:pointer;transition:all .2s;}
.opt.sel{border-color:var(--or2);color:var(--or1);background:rgba(0,50,255,.1);}
.sys-list{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;}
.sys-item{background:var(--card2);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;transition:all .2s;}
.sys-item:hover,.sys-item.sel{border-color:var(--or2);background:rgba(0,50,255,.07);}
.sys-code{font-size:14px;font-weight:700;color:var(--or1);}
.sys-desc{font-size:11px;color:var(--text3);margin-top:2px;}
.sys-radio{width:20px;height:20px;border-radius:50%;border:2px solid var(--border2);flex-shrink:0;transition:all .2s;position:relative;}
.sys-item.sel .sys-radio{background:var(--or2);border-color:var(--or2);}
.sys-radio::after{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:#fff;top:4px;left:4px;opacity:0;}
.sys-item.sel .sys-radio::after{opacity:1;}
.toggle-row{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:13px 14px;display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;}
.toggle-info .t-lbl{font-size:13px;font-weight:500;}
.toggle-info .t-sub{font-size:11px;color:var(--text3);margin-top:2px;}
.tog{width:46px;height:25px;border-radius:13px;background:var(--card3);border:none;cursor:pointer;position:relative;transition:background .2s;flex-shrink:0;}
.tog.on{background:var(--or2);}
.tog::after{content:'';position:absolute;width:19px;height:19px;background:#fff;border-radius:50%;top:3px;left:3px;transition:left .2s;}
.tog.on::after{left:24px;}
.vao-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;margin-bottom:8px;}
.vao-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;}
.vao-lbl{font-size:13px;font-weight:600;}
.btn-remove{background:rgba(255,60,60,.1);border:1px solid rgba(255,60,60,.2);border-radius:6px;padding:5px 10px;color:var(--red);font-size:12px;cursor:pointer;}
.btn-add-vao{width:100%;background:none;border:1.5px dashed var(--border2);border-radius:var(--radius-sm);padding:11px;color:var(--or1);font-size:13px;font-weight:600;cursor:pointer;text-align:center;margin-bottom:14px;transition:background .2s;}
.btn-add-vao:hover{background:rgba(0,50,255,.06);}
.btn-next{width:100%;background:var(--grad);border:none;border-radius:var(--radius-sm);padding:14px;color:#fff;font-size:15px;font-weight:700;cursor:pointer;margin-top:4px;transition:opacity .2s;}
.btn-next:hover{opacity:.88;}
.drawer-cancel{width:100%;background:none;border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;color:var(--text2);font-size:14px;font-weight:600;cursor:pointer;margin-top:10px;transition:all .2s;}
.drawer-cancel:hover{border-color:rgba(255,60,60,.4);color:var(--red);}

/* ══ MODAL ══ */
.modal-bg{
  position:absolute;inset:0;
  background:rgba(0,0,0,.72);
  z-index:60;
  display:none;
  align-items:center;
  justify-content:center;
  padding:12px;
  overflow-y:auto;
}
.modal-bg.open{display:flex;}
.modal{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  width:100%;
  max-width:480px;
  max-height:calc(100dvh - 24px);
  overflow-y:auto;
  margin:auto;
}
@media(max-width:480px){
  .modal-bg{padding:8px;}
  .modal{padding:20px 16px;max-height:calc(100dvh - 16px);}
}
.modal::-webkit-scrollbar{width:3px;}
.modal::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:99px;}
.modal-title{font-size:18px;font-weight:700;margin-bottom:5px;}
.modal-sub{font-size:13px;color:var(--text2);margin-bottom:16px;}
.modal-proj-list{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;max-height:240px;overflow-y:auto;}
.modal-proj-item{background:var(--card2);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;cursor:pointer;transition:all .2s;display:flex;justify-content:space-between;align-items:center;}
.modal-proj-item:hover{border-color:var(--or2);}


/* ══ HELP DROPDOWN ══ */
.help-wrap{overflow:visible !important;}
.help-dropdown{
  display:none;position:absolute;top:calc(100% + 10px);right:0;
  background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);
  min-width:260px;box-shadow:0 16px 48px rgba(0,0,0,.5);
  z-index:3000;overflow:hidden;
}
.help-dropdown.open{display:block;}
.help-dropdown-header{
  padding:9px 14px;font-size:10px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--text3);
  border-bottom:1px solid var(--border);
}
.help-item{
  display:flex;align-items:center;gap:12px;padding:12px 14px;
  cursor:pointer;color:var(--text2);font-size:13px;
  border-bottom:1px solid var(--border);transition:background .15s;
}
.help-item:last-child{border-bottom:none;}
.help-item:hover{background:rgba(255,255,255,.04);color:var(--text);}
.help-item-icon{
  width:32px;height:32px;border-radius:8px;display:flex;
  align-items:center;justify-content:center;font-size:16px;flex-shrink:0;
}
/* ══ NOVIDADES ══ */
.novidade-item{
  display:flex;gap:14px;padding:16px 24px;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.novidade-item:last-child{border-bottom:none;}
.novidade-ver{
  font-size:10px;font-weight:700;padding:3px 8px;border-radius:20px;
  background:rgba(0,255,255,.1);color:var(--or1);border:1px solid rgba(0,255,255,.25);
  white-space:nowrap;height:fit-content;margin-top:2px;flex-shrink:0;
}
.novidade-title{font-size:13px;font-weight:700;color:var(--text);margin-bottom:4px;}
.novidade-desc{font-size:12px;color:var(--text2);line-height:1.55;}
/* ══ ATALHOS ══ */
.atalho-section{
  font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text3);margin-bottom:8px;padding-bottom:6px;
  border-bottom:1px solid var(--border);
}
.atalho-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 0;border-bottom:1px solid rgba(255,255,255,.03);
  font-size:13px;color:var(--text2);
}
.atalho-row:last-child{border-bottom:none;}
.atalho-keys{display:flex;gap:4px;}
kbd{
  background:var(--card3);border:1px solid var(--border);border-radius:5px;
  padding:3px 8px;font-size:11px;font-family:'DM Mono',monospace;
  color:var(--text2);font-style:normal;
}

#modal-tour .modal-inner{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  width:100%;
  max-width:680px;
  max-height:calc(100dvh - 24px);
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
  box-shadow:0 24px 80px rgba(0,0,0,.65);
}
.tour-slides{position:relative;overflow:hidden;flex:1;min-height:0;}
.tour-slide{display:none;flex-direction:column;align-items:center;padding:26px 28px 18px;overflow-y:auto;max-height:calc(100dvh - 154px);}
.tour-slide.active{display:flex;}
.tour-slide-illustration{width:100%;max-width:440px;margin-bottom:1.25rem;border-radius:var(--radius-sm);overflow:hidden;flex-shrink:0;}
.tour-slide-num{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text3);margin-bottom:6px;}
.tour-slide-title{font-size:20px;font-weight:800;color:var(--text);margin-bottom:10px;text-align:center;letter-spacing:-.3px;}
.tour-slide-desc{font-size:14px;color:var(--text2);text-align:center;line-height:1.75;max-width:460px;}
.tour-nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 24px 20px;
  border-top:1px solid var(--border);
  flex-shrink:0;
  flex-wrap:wrap;gap:10px;
}
.tour-dots{display:flex;gap:6px;align-items:center;}
.tour-dot{width:7px;height:7px;border-radius:50%;background:var(--border2);cursor:pointer;transition:all .25s;flex-shrink:0;}
.tour-dot.active{background:var(--or2);width:22px;border-radius:10px;}
.tour-no-show{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text3);cursor:pointer;user-select:none;}
.tour-no-show input{width:14px;height:14px;accent-color:var(--or2);cursor:pointer;flex-shrink:0;}
.tour-nav-btns{display:flex;gap:8px;}
.tour-close-x{
  position:absolute;top:12px;right:12px;z-index:20;
  width:32px;height:32px;border-radius:50%;
  border:1.5px solid var(--border);background:rgba(10,14,26,.8);
  color:var(--text2);cursor:pointer;font-size:18px;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;
}
.tour-close-x:hover{background:rgba(255,60,60,.12);color:var(--red);border-color:rgba(255,60,60,.35);}
@media(max-width:480px){
  .tour-slide{padding:20px 16px 12px;}
  .tour-slide-title{font-size:17px;}
  .tour-slide-desc{font-size:13px;}
  .tour-nav{padding:12px 16px 16px;}
}

.result-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:12px;overflow:hidden;}
.result-head{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.result-chk{width:20px;height:20px;border-radius:4px;border:1.5px solid var(--border2);background:none;cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:11px;transition:all .2s;}
.result-chk.chk{background:var(--grad);border-color:var(--or2);color:#fff;}
.r-name{font-size:14px;font-weight:700;}
.r-tag{font-size:10px;color:var(--or1);background:rgba(0,255,255,.1);border-radius:10px;padding:2px 7px;border:1px solid rgba(0,255,255,.2);}
.r-area{font-size:13px;font-weight:700;color:var(--or1);white-space:nowrap;}
.sec-label{padding:9px 16px 4px;font-size:10px;color:var(--text3);letter-spacing:1px;text-transform:uppercase;font-weight:600;display:flex;align-items:center;gap:6px;}
.sec-label-icon{width:17px;height:17px;background:rgba(0,255,255,.15);border:1px solid rgba(0,255,255,.3);border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;}
.mat-list{padding:3px 0;}
.mat-row{display:flex;align-items:center;padding:8px 16px;border-bottom:1px solid rgba(255,255,255,.03);}
.mat-row:last-child{border-bottom:none;}
.mat-nm{font-size:13px;color:var(--text2);flex:1;}
.mat-q{font-size:13px;font-weight:700;min-width:52px;text-align:right;}
.mat-u{font-size:11px;color:var(--text3);min-width:26px;text-align:right;margin-left:4px;}
.otim-row{display:flex;align-items:flex-start;padding:8px 16px;border-bottom:1px solid rgba(255,255,255,.03);}
.otim-row:last-child{border-bottom:none;}
.otim-nm{font-size:13px;color:var(--text2);flex:1;padding-right:10px;}
.otim-right{text-align:right;flex-shrink:0;}
.otim-qty{font-size:14px;font-weight:700;color:var(--or1);}
.otim-detail{font-size:10px;color:var(--text3);margin-top:1px;}
.otim-section{background:var(--card3);border-top:1px solid var(--border);}

.total-panel{background:rgba(0,50,255,.07);border:1px solid var(--border2);border-radius:var(--radius);padding:16px;margin-bottom:14px;}
.total-lbl{font-size:10px;color:var(--text3);letter-spacing:1px;text-transform:uppercase;margin-bottom:12px;font-weight:600;}
.total-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;}
.total-item{background:var(--card);border-radius:var(--radius-xs);padding:10px 12px;}
.ti-name{font-size:11px;color:var(--text3);margin-bottom:3px;}
.ti-val{font-size:14px;font-weight:700;color:var(--or1);}
.ti-unit{font-size:10px;font-weight:400;color:var(--text3);margin-left:2px;}

/* ══ PERFIL ══ */
.perfil-avatar{width:80px;height:80px;border-radius:50%;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;color:#fff;margin:0 auto 12px;position:relative;cursor:pointer;overflow:hidden;}
.perfil-avatar img{width:100%;height:100%;object-fit:cover;}
.avatar-edit{position:absolute;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;font-size:19px;}
.perfil-avatar:hover .avatar-edit{opacity:1;}
.perfil-name{text-align:center;font-size:19px;font-weight:700;margin-bottom:3px;}
.perfil-email{text-align:center;font-size:13px;color:var(--text3);margin-bottom:22px;}
.perfil-section{font-size:11px;color:var(--text3);letter-spacing:1px;text-transform:uppercase;font-weight:600;margin-bottom:9px;margin-top:18px;}
.perfil-field{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:13px 14px;margin-bottom:9px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.perfil-field-label{font-size:12px;color:var(--text3);margin-bottom:2px;}
.perfil-field-value{font-size:14px;font-weight:600;}
.perfil-field-edit{font-size:12px;color:var(--or1);cursor:pointer;white-space:nowrap;}
.logo-preview-box{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:15px;margin-bottom:9px;display:flex;align-items:center;gap:13px;}
.logo-prev{width:46px;height:46px;border-radius:10px;background:var(--grad);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;}
.logo-prev img{width:100%;height:100%;object-fit:cover;}
.logo-prev svg{width:25px;height:25px;}
.logo-prev-info{flex:1;}
.logo-prev-name{font-size:13px;font-weight:600;margin-bottom:2px;}
.logo-prev-sub{font-size:11px;color:var(--text3);}
.adm-row{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;margin-bottom:8px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.adm-avatar{width:36px;height:36px;border-radius:50%;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#fff;flex-shrink:0;}
.adm-info{flex:1;min-width:0;}
.adm-name{font-size:13px;font-weight:600;}
.adm-email{font-size:11px;color:var(--text3);overflow:hidden;text-overflow:ellipsis;}
.adm-badge{font-size:10px;padding:2px 8px;border-radius:10px;font-weight:700;}
.adm-badge.master{background:rgba(0,255,255,.15);color:var(--or1);border:1px solid rgba(0,255,255,.3);}
.adm-badge.total{background:rgba(0,200,83,.12);color:var(--green);border:1px solid rgba(0,200,83,.25);}
.adm-badge.parcial{background:rgba(100,149,237,.12);color:#6495ed;border:1px solid rgba(100,149,237,.25);}
.perm-select{background:var(--card3);border:1px solid var(--border);border-radius:6px;padding:5px 8px;color:var(--text);font-size:12px;outline:none;cursor:pointer;}

/* ══ PROJ HEADER BOX ══ */
.pj-header-box{
  display:flex;align-items:center;justify-content:space-between;
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:14px 16px;
  margin-bottom:10px;gap:12px;flex-wrap:wrap;
}
.pj-header-left{display:flex;align-items:center;gap:10px;}
.pj-header-actions{display:flex;gap:8px;flex-wrap:wrap;}

/* ══ BARRA DE SELEÇÃO ══ */
.pj-sel-bar{
  background:var(--card2);border:1px solid var(--border2);
  border-radius:var(--radius-sm);padding:10px 14px;
  margin-bottom:8px;display:flex;align-items:center;
  justify-content:space-between;gap:10px;flex-wrap:wrap;
}
.pj-sel-bar-left{display:flex;align-items:center;gap:10px;}
.pj-sel-count{font-size:13px;font-weight:600;color:var(--or1);}
.pj-sel-bar-actions{display:flex;gap:6px;flex-wrap:wrap;}
.pj-sel-btn{
  border-radius:20px;padding:6px 14px;font-size:12px;font-weight:700;
  border:1.5px solid var(--border);background:var(--card3);
  color:var(--text2);cursor:pointer;transition:all .2s;white-space:nowrap;
}
.pj-sel-btn:hover{border-color:var(--border2);color:var(--text);}
.pj-sel-btn-green{background:linear-gradient(135deg,#00c853,#00a040);border-color:transparent;color:#fff;}
.pj-sel-btn-green:hover{opacity:.88;}
.pj-sel-btn-red{background:rgba(255,60,60,.12);border-color:rgba(255,60,60,.3);color:var(--red);}
.pj-sel-btn-red:hover{background:rgba(255,60,60,.22);}
.pj-sel-btn-blue{background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.35);color:#6495ed;}
.pj-sel-btn-blue:hover{background:rgba(59,130,246,.22);}

/* ══ PROJ CARDS ══ */
.pj-card{
  background:var(--bg);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-sm);
  padding:13px 14px;
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  transition:border-color .2s, background .2s;
}
.pj-card:hover{border-color:rgba(0,50,255,0.3);background:rgba(0,50,255,0.03);}
.pj-card-sel{border-color:rgba(0,255,255,0.4) !important;background:rgba(0,255,255,0.04) !important;}
.pj-card-chk{
  width:20px;height:20px;border-radius:4px;
  border:1.5px solid rgba(255,255,255,0.2);
  background:none;display:flex;align-items:center;justify-content:center;
  font-size:11px;transition:all .2s;flex-shrink:0;
}
.pj-card-chk.chk{background:var(--grad);border-color:var(--or2);color:#fff;}
.pj-card-body{flex:1;min-width:0;}
.pj-card-name{font-size:14px;font-weight:700;color:var(--text);margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pj-card-meta{font-size:11px;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pj-card-actions{display:flex;gap:6px;flex-shrink:0;}

/* misc */
#layout-canvas-wrap::-webkit-scrollbar{width:5px;height:5px;}
#layout-canvas-wrap::-webkit-scrollbar-thumb{background:var(--border2);border-radius:3px;}

.dir-opt{
  background:var(--card2);border:1.5px solid var(--border);border-radius:var(--radius-sm);
  padding:12px 14px;cursor:pointer;transition:all .2s;
}
.dir-opt:hover{border-color:var(--border2);}
.dir-opt.sel{border-color:var(--or2);background:rgba(0,50,255,.08);}
.dir-radio{
  width:19px;height:19px;border-radius:50%;border:2px solid var(--border2);
  flex-shrink:0;transition:all .2s;position:relative;
}
.dir-opt.sel .dir-radio{background:var(--or2);border-color:var(--or2);}
.dir-opt.sel .dir-radio::after{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;top:4px;left:4px;}
.btn-pdf{background:var(--card2);border:1px solid var(--border2);border-radius:20px;padding:7px 14px;color:var(--or1);font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;transition:all .2s;flex-shrink:0;}
.btn-pdf:hover{background:rgba(0,50,255,.12);}
.empty-state{text-align:center;padding:52px 20px;}
.empty-ico{font-size:46px;margin-bottom:12px;opacity:.45;}
.empty-txt{font-size:14px;color:var(--text3);}
.perm-check-item{
  display:flex;align-items:center;gap:8px;
  background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-xs);
  padding:10px 12px;cursor:pointer;font-size:12px;color:var(--text2);
  transition:border-color .2s;
}
.perm-check-item:hover{border-color:var(--border2);color:var(--text);}
.perm-check-item input[type=checkbox]{
  width:15px;height:15px;accent-color:var(--or2);cursor:pointer;flex-shrink:0;
}
.h-bell{
  font-size:16px;padding:0 10px !important;position:relative;
}
.h-convidar{
  background:var(--grad) !important;border:none !important;color:#fff !important;
  font-weight:700 !important;
}
.h-convidar:hover{opacity:.88 !important;}
.msg-item{
  padding:12px 20px;display:flex;align-items:flex-start;gap:10px;
  border-bottom:1px solid rgba(255,255,255,.04);transition:background .2s;cursor:pointer;
}
.msg-item:hover{background:rgba(255,255,255,.02);}
.msg-item.lida{opacity:.45;}
.msg-item.sel{background:rgba(0,50,255,.06);}
.msg-check{width:16px;height:16px;flex-shrink:0;accent-color:var(--or2);margin-top:2px;cursor:pointer;}
.msg-dot{width:7px;height:7px;border-radius:50%;background:var(--or2);flex-shrink:0;margin-top:5px;}
.msg-dot.lida{background:transparent;}
.msg-body{flex:1;min-width:0;}
.msg-titulo{font-size:13px;font-weight:600;margin-bottom:2px;}
.msg-texto{font-size:12px;color:var(--text2);line-height:1.5;}
.msg-data{font-size:10px;color:var(--text3);margin-top:3px;}
.msg-tipo-badge{font-size:9px;padding:1px 6px;border-radius:8px;font-weight:700;margin-left:6px;vertical-align:middle;}
.msg-tipo-info{background:rgba(59,130,246,.15);color:#6495ed;border:1px solid rgba(59,130,246,.3);}
.msg-tipo-aviso{background:rgba(0,255,255,.12);color:var(--or1);border:1px solid rgba(0,255,255,.25);}
.msg-tipo-urgente{background:rgba(255,60,60,.12);color:#ff5555;border:1px solid rgba(255,60,60,.25);}
.adm-row-perms{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px;}
.perm-tag{font-size:10px;padding:2px 7px;border-radius:8px;background:rgba(100,149,237,.1);color:#6495ed;border:1px solid rgba(100,149,237,.25);}
/* Badge nível admin */
.adm-badge.operador{background:rgba(100,149,237,.12);color:#6495ed;border:1px solid rgba(100,149,237,.25);}
.adm-badge.moderador{background:rgba(52,211,153,.1);color:#34d399;border:1px solid rgba(52,211,153,.25);}
.adm-badge.gestor{background:rgba(0,255,255,.10);color:#00ffff;border:1px solid rgba(0,255,255,.25);}
.adm-badge.custom{background:rgba(167,139,250,.1);color:#a78bfa;border:1px solid rgba(167,139,250,.25);}



/* v4-40 — refinamento da tela de entrada */
#login-logo-custom-wrap{
  display:block !important;
  width:min(420px,90vw);
  max-width:420px;
  text-align:center;
  margin:0 auto;
}
#login-logo-custom-wrap img{
  display:block;
  width:min(420px,90vw) !important;
  max-width:420px !important;
  height:auto !important;
  object-fit:contain !important;
  border-radius:0 !important;
  margin:0 auto !important;
}
#login-logo-default{display:none !important;}
.login-btn{min-height:52px;}
@media(max-width:420px){
  .login-bg{padding:18px 16px;}
  .login-logo-wrap{padding-bottom:14px;}
  .login-card{padding:22px 24px;max-width:100%;}
}
@media(max-height:740px){
  .login-bg{justify-content:flex-start;padding-top:22px;}
  .login-logo-wrap{padding-bottom:12px;}
}

/* ══════════════════════════════════
   TABLET  ≥ 640px
══════════════════════════════════ */
@media(min-width:640px){
  .login-logo-wrap{padding:0 0 18px;}
  .total-grid{grid-template-columns:repeat(3,1fr);}
  .drawer{border-radius:var(--radius);}
  .drawer-bg{align-items:center;}
  .drawer-handle{display:none;}
  .sys-list{display:grid;grid-template-columns:1fr 1fr;}
  .result-head{flex-wrap:nowrap;}
}

/* ══════════════════════════════════
   DESKTOP  ≥ 960px
══════════════════════════════════ */
@media(min-width:960px){
  /* Sidebar always hidden — nav stays in header */
  .sidebar{display:none !important;}

  /* App shell: column layout, full height */
  #s-main{flex-direction:column;}

  /* Header: full width bar, content centered inside */
  .main-header{
    padding:0;
    position:sticky;
    top:0;
    z-index:30;
    width:100%;
    background:var(--bg);
  }
  .main-header-inner{
    max-width:var(--app-max);
    margin:0 auto;
    padding:10px var(--app-pad);
  }

  /* Tabs: mesma largura e padding do header */
  .main-tabs{
    display:flex !important;
    padding:0;
    position:sticky;
    top:53px;
    z-index:29;
  }
  .main-tabs-inner{
    max-width:var(--app-max);
    margin:0 auto;
    padding:0 var(--app-pad);
    display:flex;
    width:100%;
    justify-content:center;
  }

  /* Body: no sidebar, content full width */
  .main-body{flex-direction:column;}

  /* Content area: mesma largura máxima e padding do header */
  .main-content{
    padding:0;
    overflow-y:auto;
    flex:1;
  }
  .content-inner{
    max-width:var(--app-max);
    margin:0 auto;
    padding:24px var(--app-pad);
  }

  /* Scroll top */
  .scroll-top-btn{right:24px;}

  /* Bigger header elements */
  .h-logo-mark{width:34px;height:34px;border-radius:9px;}
  .h-logo-mark svg{width:19px;height:19px;}

  /* Login */
  .login-logo-wrap{padding:0 0 20px;}
  .login-card{padding:28px;}

  /* Two-column result grid */
  .results-grid{display:grid;grid-template-columns:1fr;gap:12px;}
  .results-grid .result-card{margin-bottom:0;}
  .total-grid{grid-template-columns:repeat(4,1fr);}

  /* Projetos e itens: lista simples centralizada */
  .projs-grid{display:block;}
  .projs-grid .proj-row{margin-bottom:7px;}

  /* page-wrap: ocupa 100% do content-inner — o centramento já é feito pelo content-inner */
  .page-wrap{
    width:100%;
    max-width:none;
    margin:0;
  }

  /* result-card e result dentro do page-wrap: largura total */
  .result-card{width:100%;box-sizing:border-box;}

  /* Perfil centered */
  .perfil-wrap{max-width:680px;margin:0 auto;}
}

/* ══════════════════════════════════
   WIDE DESKTOP  ≥ 1280px
══════════════════════════════════ */
@media(min-width:1280px){
  .content-inner{padding:28px var(--app-pad);}
}

/* ══ UI/UX V2 — menu profissional e base técnica ══ */
.ux-hero{background:linear-gradient(135deg,rgba(0,255,255,.12),rgba(0,50,255,.05));border:1px solid var(--border2);border-radius:var(--radius);padding:18px;margin-bottom:14px;display:grid;grid-template-columns:1.35fr .65fr;gap:14px;align-items:stretch;}
.ux-kicker{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--or1);margin-bottom:6px;}
.ux-title{font-size:20px;font-weight:800;letter-spacing:-.3px;margin-bottom:6px;}
.ux-desc{font-size:13px;color:var(--text2);line-height:1.65;max-width:680px;}
.ux-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}
.ux-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:14px;}
.ux-flow-step{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:var(--radius-xs);padding:9px;}
.ux-flow-num{font-size:10px;color:var(--or1);font-weight:800;margin-bottom:3px;}
.ux-flow-label{font-size:12px;color:var(--text2);font-weight:600;}
.ux-summary-card{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px;display:flex;flex-direction:column;justify-content:center;}
.ux-summary-row{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:13px;color:var(--text2);}
.ux-summary-row:last-child{border-bottom:none;}
.ux-summary-row strong{color:var(--or1);font-size:16px;}
.ux-card-meta-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px;}
.ux-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px;background:rgba(0,255,255,.10);border:1px solid rgba(0,255,255,.20);color:var(--or1);}
.ux-base-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin-bottom:14px;}
.ux-tech-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;}
.ux-tech-title{font-size:14px;font-weight:800;margin-bottom:6px;color:var(--text);}
.ux-tech-desc{font-size:12px;line-height:1.6;color:var(--text2);margin-bottom:10px;}
.ux-tech-list{display:flex;flex-direction:column;gap:7px;}
.ux-tech-item{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-xs);padding:9px 10px;font-size:12px;color:var(--text2);line-height:1.45;}
.ux-tech-item strong{color:var(--or1);}
.ux-notice{background:rgba(100,149,237,.10);border:1px solid rgba(100,149,237,.28);border-radius:var(--radius-sm);padding:12px 14px;font-size:12px;line-height:1.65;color:var(--text2);margin-bottom:14px;}
@media(max-width:760px){.ux-hero{grid-template-columns:1fr}.ux-flow{grid-template-columns:repeat(2,1fr)}}
@media(max-width:430px){.ux-flow{grid-template-columns:1fr}.ux-title{font-size:18px}}

/* ══ UI/UX FINAL — Base Técnica por sistemas ══ */
.ux-section-title{font-size:16px;font-weight:800;margin:18px 0 8px;display:flex;align-items:center;gap:8px;}
.ux-section-sub{font-size:12px;color:var(--text3);line-height:1.6;margin:-4px 0 12px;}
.ux-system-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin-bottom:14px;}
.ux-system-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px;}
.ux-system-head{display:flex;align-items:flex-start;gap:10px;}
.ux-system-ico{width:38px;height:38px;border-radius:10px;background:rgba(0,50,255,.12);border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.ux-system-name{font-size:14px;font-weight:800;color:var(--text);margin-bottom:2px;}
.ux-system-desc{font-size:12px;color:var(--text2);line-height:1.55;}
.ux-chip-row{display:flex;flex-wrap:wrap;gap:5px;}
.ux-chip{font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid var(--border);color:var(--text2);}
.ux-chip.hot{background:rgba(0,255,255,.11);border-color:rgba(0,255,255,.24);color:var(--or1);}
.ux-mini-list{display:flex;flex-direction:column;gap:6px;}
.ux-mini-item{font-size:12px;color:var(--text2);line-height:1.45;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.055);border-radius:8px;padding:8px;}
.ux-mini-item strong{color:var(--or1);}
.ux-warning{background:rgba(0,255,255,.08);border:1px solid rgba(0,255,255,.22);border-radius:var(--radius-sm);padding:11px 13px;font-size:12px;color:var(--text2);line-height:1.6;margin-bottom:14px;}
.ux-access-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:14px;}
.ux-access-card{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:13px;}
.ux-access-card h4{font-size:13px;color:var(--text);margin-bottom:5px;}
.ux-access-card p{font-size:12px;color:var(--text2);line-height:1.5;margin-bottom:7px;}
.ux-access-card .when{font-size:11px;color:var(--text3);line-height:1.45;border-top:1px solid rgba(255,255,255,.05);padding-top:7px;}
.ux-access-card .when strong{color:var(--or1);}


/* ══ AVALIAÇÃO PROFISSIONAL — resumo horizontal e Sistemas ══ */
.pro-flow-strip{background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.07);border-radius:var(--radius);padding:12px 14px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.pro-flow-left{display:flex;align-items:center;gap:10px;min-width:220px;}.pro-flow-title{font-size:13px;font-weight:800;color:var(--text);}.pro-flow-sub{font-size:11px;color:var(--text3);margin-top:2px;}
.pro-flow-steps{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}.pro-step{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--text2);padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);}.pro-step.active{color:var(--or1);border-color:rgba(0,255,255,.28);background:rgba(0,255,255,.08);}.pro-sep{font-size:12px;color:var(--text3);}
.pro-quick-actions{display:flex;gap:8px;flex-wrap:wrap;}.pro-dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-bottom:14px;}.pro-metric{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;}.pro-metric-label{font-size:10px;color:var(--text3);text-transform:uppercase;letter-spacing:.08em;font-weight:800;margin-bottom:5px;}.pro-metric-value{font-size:20px;font-weight:850;color:var(--or1);}.pro-metric-note{font-size:11px;color:var(--text3);margin-top:3px;}
.tech-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px;}.tech-search{flex:1;min-width:230px;background:var(--bg3);border:1px solid var(--border);border-radius:999px;padding:10px 14px;color:var(--text);outline:none;}.tech-pill-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px;}.tech-pill{font-size:12px;font-weight:800;color:var(--text2);padding:7px 10px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.025);}.tech-pill.active{color:var(--or1);border-color:rgba(0,255,255,.28);background:rgba(0,255,255,.08);}
.tech-pro-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:11px;margin-bottom:16px;}.tech-pro-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;position:relative;overflow:hidden;}.tech-pro-card:before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--or1),var(--or2));opacity:.75;}.tech-pro-head{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px;}.tech-pro-icon{width:40px;height:40px;border-radius:11px;background:rgba(0,50,255,.12);border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}.tech-pro-name{font-size:15px;font-weight:850;margin-bottom:3px;}.tech-pro-meta{font-size:11px;color:var(--text3);}.tech-pro-desc{font-size:12px;color:var(--text2);line-height:1.55;margin-bottom:10px;}.tech-pro-spec{display:grid;gap:6px;}.tech-pro-spec div{font-size:12px;line-height:1.45;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.055);border-radius:8px;padding:8px;}.tech-pro-spec strong{color:var(--or1);}.tech-note-box{background:rgba(100,149,237,.09);border:1px solid rgba(100,149,237,.24);border-radius:var(--radius-sm);padding:12px 14px;color:var(--text2);font-size:12px;line-height:1.65;margin-bottom:14px;}
@media(max-width:620px){.pro-flow-strip{align-items:flex-start}.pro-flow-steps{width:100%}.pro-sep{display:none}.pro-step{flex:1;justify-content:center;min-width:120px}.pro-quick-actions{width:100%}.pro-quick-actions button{flex:1}}


/* ══ CENTRAL TÉCNICA FUNCIONAL — versão profissional ══ */
.tech-functional-shell{display:grid;grid-template-columns:1fr;gap:14px;align-items:start;}
.tech-side{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:10px;display:flex;gap:6px;overflow-x:auto;position:relative;top:auto;}
.tech-side-btn{width:auto;display:flex;align-items:center;gap:9px;border:none;background:transparent;color:var(--text2);padding:10px 11px;border-radius:10px;cursor:pointer;text-align:left;font-size:13px;font-weight:600;transition:all .18s;white-space:nowrap;flex-shrink:0;}
.tech-side-btn:hover{background:rgba(255,255,255,.04);color:var(--text);}
.tech-side-btn.active{background:rgba(0,50,255,.13);color:var(--or1);}
.tech-content{min-width:0;}
.tech-controls{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  width:100%;
  flex-wrap:nowrap;
}
.tech-search-input,.tech-filter-select{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  color:var(--text);
  padding:9px 13px;
  font-size:13px;
  outline:none;
  height:38px;
}
.tech-search-input{flex:1 1 auto;min-width:0;}
.tech-search-input:focus,.tech-filter-select:focus{border-color:var(--border2);}
.tech-filter-select{flex:0 0 136px;min-width:136px;}
.tech-controls .btn-outline{
  flex:0 0 auto;
  height:38px;
  padding:8px 13px;
  white-space:nowrap;
}
.tech-hero{background:linear-gradient(135deg,rgba(0,255,255,.08),rgba(0,50,255,.05));border:1px solid var(--border2);border-radius:var(--radius);padding:16px;margin-bottom:12px;display:flex;justify-content:space-between;gap:14px;align-items:flex-start;}
.tech-hero-title{font-size:18px;font-weight:800;margin-bottom:4px;}
.tech-hero-sub{font-size:13px;color:var(--text2);line-height:1.6;max-width:720px;}
.tech-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px;}
.tech-badge{font-size:10px;text-transform:uppercase;letter-spacing:.04em;padding:4px 8px;border-radius:999px;background:var(--card2);border:1px solid var(--border);color:var(--text2);}
.tech-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;}
.tech-card-dyn{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;min-height:230px;transition:all .18s;}
.tech-card-dyn:hover{border-color:var(--border2);transform:translateY(-1px);}
.tech-card-top{display:flex;gap:10px;align-items:flex-start;margin-bottom:9px;}
.tech-card-icon{width:38px;height:38px;border-radius:10px;background:rgba(0,50,255,.12);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.tech-card-name{font-size:14px;font-weight:800;color:var(--text);line-height:1.25;}
.tech-card-meta{font-size:11px;color:var(--or1);margin-top:2px;font-weight:700;}
.tech-card-desc{font-size:12px;color:var(--text2);line-height:1.55;margin-bottom:10px;}
.tech-spec-list{display:flex;flex-direction:column;gap:5px;margin-top:auto;margin-bottom:12px;}
.tech-spec-line{font-size:11px;color:var(--text2);line-height:1.45;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.04);border-radius:8px;padding:7px 8px;}
.tech-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;}
.tech-mini-btn{border:1px solid var(--border);background:var(--card2);color:var(--text2);border-radius:18px;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer;transition:all .18s;}
.tech-mini-btn:hover{border-color:var(--border2);color:var(--or1);}
.tech-mini-btn.primary{background:var(--grad);border:none;color:#fff;}
.tech-mini-btn.fav.active{background:rgba(0,255,255,.14);border-color:rgba(0,255,255,.35);color:var(--or1);}
.tech-detail-panel{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius);padding:15px;margin-bottom:12px;display:none;}
.tech-detail-panel.open{display:block;}
.tech-detail-title{font-size:15px;font-weight:800;margin-bottom:5px;color:var(--or1);}
.tech-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:10px;}
.tech-detail-box{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:10px;font-size:12px;color:var(--text2);line-height:1.5;}
.tech-empty{padding:34px;text-align:center;color:var(--text3);background:var(--card);border:1px solid var(--border);border-radius:var(--radius);}
@media(max-width:820px){
  .tech-functional-shell{grid-template-columns:1fr}
  .tech-side{position:relative;top:auto;display:flex;overflow-x:auto;gap:6px}
  .tech-side-btn{white-space:nowrap;width:auto}
  .tech-card-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .tech-controls{gap:6px}
  .tech-search-input{font-size:12px;padding:8px 10px}
  .tech-filter-select{flex-basis:112px;min-width:112px;font-size:12px;padding:8px 9px}
  .tech-controls .btn-outline{font-size:0;width:38px;min-width:38px;padding:0;border-radius:50%}
  .tech-controls .btn-outline::after{content:'×';font-size:18px;line-height:1;color:var(--text2)}
}


/* ===== Bloco CSS 2 extraído do HTML original ===== */
.exec-section{
    margin-top:20px;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:18px;
}
.exec-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:6px;
}
.exec-sub{
    font-size:13px;
    opacity:.75;
    margin-bottom:16px;
}
.exec-steps{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.exec-step{
    display:flex;
    align-items:center;
    gap:14px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
    border-radius:14px;
    padding:12px;
}
.exec-icon{
    width:52px;
    height:52px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    background:linear-gradient(135deg,#1f2937,#111827);
    flex-shrink:0;
}
.exec-content{
    flex:1;
}
.exec-step-title{
    font-size:14px;
    font-weight:700;
    margin-bottom:4px;
}
.exec-step-text{
    font-size:12px;
    opacity:.82;
    line-height:1.45;
}
.exec-illus{
    width:74px;
    height:52px;
    border-radius:10px;
    background:
      linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
    border:1px solid rgba(255,255,255,.06);
    position:relative;
    overflow:hidden;
    flex-shrink:0;
}
.exec-illus::before{
    content:'';
    position:absolute;
    inset:10px;
    border:2px solid rgba(255,255,255,.18);
    border-radius:6px;
}
.exec-illus::after{
    content:'';
    position:absolute;
    left:14px;
    right:14px;
    top:50%;
    height:2px;
    background:rgba(255,255,255,.18);
}
@media(max-width:680px){
    .exec-step{
        align-items:flex-start;
    }
    .exec-illus{
        display:none;
    }
}


/* ===== Bloco CSS 3 extraído do HTML original ===== */
.exec-section{
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.08);
}
.exec-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:6px;
}
.exec-sub{
    font-size:13px;
    opacity:.72;
    margin-bottom:18px;
}
.exec-steps{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.exec-step{
    display:flex;
    gap:14px;
    align-items:center;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
    border-radius:14px;
    padding:12px;
}
.exec-icon{
    width:54px;
    height:54px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    flex-shrink:0;
    background:linear-gradient(135deg,#1f2937,#111827);
}
.exec-content{
    flex:1;
}
.exec-step-title{
    font-size:14px;
    font-weight:700;
    margin-bottom:4px;
}
.exec-step-text{
    font-size:12px;
    line-height:1.45;
    opacity:.82;
}
.exec-mini{
    width:72px;
    height:52px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
    position:relative;
    overflow:hidden;
    flex-shrink:0;
}
.exec-mini:before{
    content:'';
    position:absolute;
    inset:10px;
    border:2px solid rgba(255,255,255,.15);
    border-radius:6px;
}
.exec-mini:after{
    content:'';
    position:absolute;
    left:14px;
    right:14px;
    top:50%;
    height:2px;
    background:rgba(255,255,255,.15);
}
@media(max-width:700px){
    .exec-mini{display:none;}
}


/* ===== Bloco CSS 4 extraído do HTML original ===== */
.exec-section{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}
.exec-title{
  font-size:16px;
  font-weight:800;
  color:var(--text);
  margin-bottom:4px;
}
.exec-sub{
  font-size:12px;
  color:var(--text3);
  margin-bottom:14px;
  line-height:1.5;
}
.exec-steps{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.exec-step{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 11px;
}
.exec-icon{
  width:42px;
  height:42px;
  border-radius:10px;
  background:rgba(0,50,255,.12);
  border:1px solid var(--border2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:19px;
  flex-shrink:0;
}
.exec-content{
  flex:1;
  min-width:0;
}
.exec-step-title{
  font-size:13px;
  font-weight:800;
  color:var(--text);
  margin-bottom:2px;
}
.exec-step-text{
  font-size:12px;
  color:var(--text2);
  line-height:1.45;
}
.exec-mini{
  width:62px;
  height:42px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.035);
  position:relative;
  overflow:hidden;
  flex-shrink:0;
}
.exec-mini::before{
  content:'';
  position:absolute;
  inset:8px;
  border:2px solid rgba(0,255,255,.26);
  border-radius:5px;
}
.exec-mini::after{
  content:'';
  position:absolute;
  left:12px;
  right:12px;
  top:50%;
  height:2px;
  background:rgba(0,255,255,.25);
}
@media(max-width:620px){
  .exec-mini{display:none;}
  .exec-step{align-items:flex-start;}
}


/* ===== Bloco CSS 5 extraído do HTML original ===== */
.exec-section{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}
.exec-title{
  font-size:16px;
  font-weight:800;
  color:var(--text);
  margin-bottom:4px;
}
.exec-sub{
  font-size:12px;
  color:var(--text3);
  margin-bottom:14px;
  line-height:1.5;
}
.exec-system-note{
  background:rgba(0,255,255,.08);
  border:1px solid rgba(0,255,255,.22);
  border-radius:12px;
  padding:10px 12px;
  color:var(--text2);
  font-size:12px;
  line-height:1.55;
  margin-bottom:12px;
}
.exec-system-note strong{color:var(--or1);}
.exec-steps{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.exec-step{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 11px;
}
.exec-step.emphasis{
  background:rgba(0,255,255,.055);
  border-color:rgba(0,255,255,.28);
}
.exec-icon{
  width:42px;
  height:42px;
  border-radius:10px;
  background:rgba(0,50,255,.12);
  border:1px solid var(--border2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:19px;
  flex-shrink:0;
}
.exec-step.emphasis .exec-icon{
  background:rgba(0,255,255,.13);
  border-color:rgba(0,255,255,.34);
}
.exec-content{
  flex:1;
  min-width:0;
}
.exec-step-title{
  font-size:13px;
  font-weight:800;
  color:var(--text);
  margin-bottom:2px;
}
.exec-step-text{
  font-size:12px;
  color:var(--text2);
  line-height:1.45;
}
.exec-mini{
  width:62px;
  height:42px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.035);
  position:relative;
  overflow:hidden;
  flex-shrink:0;
}
.exec-mini::before{
  content:'';
  position:absolute;
  inset:8px;
  border:2px solid rgba(0,255,255,.26);
  border-radius:5px;
}
.exec-mini::after{
  content:'';
  position:absolute;
  left:12px;
  right:12px;
  top:50%;
  height:2px;
  background:rgba(0,255,255,.25);
}
.exec-footnote{
  margin-top:10px;
  font-size:11px;
  color:var(--text3);
  line-height:1.5;
}
@media(max-width:620px){
  .exec-mini{display:none;}
  .exec-step{align-items:flex-start;}
}


/* ===== Bloco CSS 6 extraído do HTML original ===== */
/* Correção específica do popup Ficha Técnica:
   - mantém o scroll funcionando;
   - deixa o cabeçalho com o X sempre visível dentro do modal;
   - não cria overlay global e não bloqueia a tela inicial. */

#modal-ficha-tecnica{
    overflow:hidden !important;
}

#modal-ficha-tecnica > .modal{
    position:relative !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    max-height:88vh !important;
    padding-top:0 !important;
}

/* Cabeçalho grudado no topo do conteúdo rolável */
#modal-ficha-tecnica .ficha-sticky-head{
    position:sticky !important;
    top:0 !important;
    z-index:100 !important;
    background:linear-gradient(180deg, rgba(17,24,39,.98), rgba(17,24,39,.94)) !important;
    backdrop-filter:blur(10px);
    padding:16px 0 12px 0 !important;
    margin-bottom:12px !important;
}

/* Botão X sempre acessível enquanto o popup estiver aberto */
#modal-ficha-tecnica .ficha-sticky-close{
    position:relative !important;
    z-index:101 !important;
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    background:rgba(15,23,42,.82) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    color:var(--text,#fff) !important;
    box-shadow:0 8px 24px rgba(0,0,0,.25);
}

#modal-ficha-tecnica .ficha-sticky-close:hover{
    transform:scale(1.04);
    background:rgba(30,41,59,.92) !important;
}

/* Garante que o conteúdo não fique escondido atrás do cabeçalho */
#modal-ficha-tecnica #ficha-tecnica-body{
    padding-bottom:18px;
}

@media(max-width:680px){
    #modal-ficha-tecnica > .modal{
        max-height:calc(100dvh - 24px) !important;
    }
    #modal-ficha-tecnica .ficha-sticky-head{
        padding-top:12px !important;
    }
}


/* ===== Bloco CSS 7 extraído do HTML original ===== */
.p1-breadcrumb{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  font-size:12px;color:var(--text3);margin-bottom:12px;
}
.p1-breadcrumb span{color:var(--text2)}
.p1-breadcrumb strong{color:var(--or1);font-weight:800}
.p1-hero{
  background:linear-gradient(135deg,rgba(0,255,255,.10),rgba(0,50,255,.045));
  border:1px solid var(--border2);border-radius:var(--radius);padding:16px;margin-bottom:14px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.p1-hero-title{font-size:18px;font-weight:850;margin-bottom:4px;letter-spacing:-.2px;}
.p1-hero-sub{font-size:12px;color:var(--text2);line-height:1.55;max-width:720px;}
.p1-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.p1-flow{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px;
  background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);padding:10px 12px;
}
.p1-flow-step{font-size:12px;font-weight:800;color:var(--text2);padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);}
.p1-flow-step.on{color:var(--or1);background:rgba(0,255,255,.08);border-color:rgba(0,255,255,.25);}
.p1-flow-sep{color:var(--text3);font-size:12px;}
.p1-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin-bottom:14px;}
.p1-card{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:15px;
  cursor:pointer;transition:all .18s;position:relative;overflow:hidden;min-height:132px;
}
.p1-card:hover{border-color:var(--border2);transform:translateY(-1px);background:rgba(0,50,255,.035);}

.p1-top-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;}
.p1-top-title{font-size:18px;font-weight:850;letter-spacing:-.2px;}
.p1-top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.p1-breadcrumb a{color:var(--text2);text-decoration:none;cursor:pointer;}
.p1-breadcrumb a:hover{color:var(--or1);}
.p1-select-box{width:24px;height:24px;border-radius:7px;border:1px solid rgba(0,255,255,.32);background:rgba(255,255,255,.035);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;flex-shrink:0;}
.p1-select-box.chk{background:linear-gradient(135deg,var(--or1),var(--or2));border-color:transparent;color:#fff;}
.p1-clean-card{min-height:105px;}
.p1-clean-card .p1-card-top{padding-right:54px;}
.p1-clean-card .p1-card-foot{display:none;}
.p1-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:rgba(42,72,122,.40);border:1px solid rgba(0,50,255,.45);border-radius:14px;padding:11px 14px;margin-bottom:14px;}
.p1-selection-left{display:flex;align-items:center;gap:10px;color:var(--text2);font-size:13px;}
.p1-selection-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
@media(max-width:680px){.p1-top-head{align-items:flex-start;flex-direction:column}.p1-top-actions{width:100%;justify-content:flex-start}}

.p1-card.sel{border-color:rgba(0,255,255,.35);background:rgba(0,255,255,.04);}
.p1-card-top{display:flex;gap:11px;align-items:flex-start;margin-bottom:10px;}
.p1-card-icon{width:40px;height:40px;border-radius:11px;background:rgba(0,50,255,.12);border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.p1-card-title{font-size:14px;font-weight:850;color:var(--text);margin-bottom:3px;line-height:1.25;}
.p1-card-meta{font-size:11px;color:var(--text3);line-height:1.45;}
.p1-card-desc{font-size:12px;color:var(--text2);line-height:1.5;margin-top:7px;}
.p1-card-foot{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px;}
.p1-chip{font-size:10px;font-weight:800;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid var(--border);color:var(--text2);}
.p1-chip.hot{color:var(--or1);background:rgba(0,255,255,.10);border-color:rgba(0,255,255,.22);}
.p1-empty{background:var(--card);border:1px dashed var(--border2);border-radius:var(--radius);padding:38px 18px;text-align:center;color:var(--text3);}
.p1-empty .ico{font-size:42px;opacity:.55;margin-bottom:9px;}
.p1-empty strong{color:var(--text);}
.p1-card-actions{position:absolute;top:10px;right:10px;display:flex;gap:5px;opacity:.9;}
.p1-mini-btn{border:1px solid var(--border);background:var(--card2);color:var(--text2);border-radius:8px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px;}
.p1-mini-btn:hover{border-color:var(--border2);color:var(--or1);}
.p1-system-row{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 13px;margin-bottom:8px;display:flex;align-items:center;gap:10px;transition:all .18s;}
.p1-system-row:hover{border-color:var(--border2);}
.p1-system-row.selected-item{border-color:var(--border2);background:rgba(0,50,255,.05);}
.p1-system-main{flex:1;min-width:0;cursor:pointer;}
.p1-system-name{font-size:13px;font-weight:800;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.p1-system-meta{font-size:11px;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.p1-system-area{font-size:13px;font-weight:800;color:var(--or1);white-space:nowrap;}
@media(max-width:620px){
  .p1-flow-sep{display:none}.p1-flow-step{flex:1;text-align:center;min-width:110px}.p1-actions{width:100%}.p1-actions button{flex:1}.p1-system-area{display:none}
}


/* ===== Bloco CSS 8 extraído do HTML original ===== */
.p1-title-line{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap;}
  .p1-prev-section{
    appearance:none;border:none;background:transparent;color:var(--text3);cursor:pointer;
    font-size:12px;font-weight:750;padding:7px 2px;border-radius:8px;display:inline-flex;align-items:center;gap:5px;
    transition:color .18s, background .18s;
  }
  .p1-prev-section:hover{color:var(--or1);background:rgba(0,255,255,.06);}
  .p1-title-divider{width:1px;height:18px;background:rgba(255,255,255,.10);}
  .p1-view-toggle{display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.035);border:1px solid var(--border);border-radius:12px;padding:3px;}
  .p1-view-btn{border:none;background:transparent;color:var(--text3);border-radius:9px;padding:7px 10px;font-size:12px;font-weight:800;cursor:pointer;}
  .p1-view-btn.active{background:linear-gradient(135deg,rgba(0,255,255,.20),rgba(0,50,255,.16));color:var(--or1);}
  .p1-grid.p1-list-mode{display:block;}
  .p1-grid.p1-list-mode .p1-card{min-height:0;margin-bottom:8px;padding:12px 14px;}
  .p1-grid.p1-list-mode .p1-card-top{margin-bottom:0;align-items:center;}
  .p1-grid.p1-list-mode .p1-card-icon{width:34px;height:34px;border-radius:10px;font-size:18px;}
  .p1-grid.p1-list-mode .p1-card-desc{display:none;}
  .p1-grid.p1-list-mode .p1-clean-card .p1-card-top{padding-right:72px;}
  .p1-grid.p1-list-mode .p1-card-title{font-size:14px;}
  .p1-grid.p1-list-mode .p1-card-meta{font-size:12px;color:var(--text2);}
  .p1-grid.p1-card-mode{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin-bottom:14px;}
  .p1-grid.p1-card-mode .p1-card{margin-bottom:0;}
  @media(max-width:680px){
    .p1-title-line{width:100%;}
    .p1-view-toggle{width:100%;justify-content:space-between;}
    .p1-view-btn{flex:1;}
  }


/* ===== Bloco CSS 9 extraído do HTML original ===== */
/* Remove visualmente qualquer alternador residual de Lista/Cards em Projetos */
  .p1-view-toggle{display:none !important;}

  /* Orientação global dentro de Projetos: tudo como lista, nada em grade de cards */
  #tab-projetos .p1-grid,
  #tab-projetos .p1-grid.p1-list-mode,
  #tab-projetos .p1-grid.p1-card-mode{
    display:block !important;
    grid-template-columns:none !important;
    gap:0 !important;
    margin-bottom:14px;
  }

  #tab-projetos .p1-card,
  #tab-projetos .p1-grid.p1-card-mode .p1-card,
  #tab-projetos .p1-grid.p1-list-mode .p1-card{
    min-height:0 !important;
    margin-bottom:8px !important;
    padding:12px 14px !important;
    border-radius:var(--radius-sm) !important;
    display:block !important;
  }

  #tab-projetos .p1-card:hover{
    transform:none !important;
  }

  #tab-projetos .p1-card-top,
  #tab-projetos .p1-grid.p1-card-mode .p1-card-top,
  #tab-projetos .p1-grid.p1-list-mode .p1-card-top{
    margin-bottom:0 !important;
    align-items:center !important;
  }

  #tab-projetos .p1-card-icon,
  #tab-projetos .p1-grid.p1-card-mode .p1-card-icon,
  #tab-projetos .p1-grid.p1-list-mode .p1-card-icon{
    width:34px !important;
    height:34px !important;
    border-radius:10px !important;
    font-size:18px !important;
  }

  #tab-projetos .p1-card-desc{
    display:none !important;
  }

  #tab-projetos .p1-clean-card .p1-card-top,
  #tab-projetos .p1-grid.p1-list-mode .p1-clean-card .p1-card-top,
  #tab-projetos .p1-grid.p1-card-mode .p1-clean-card .p1-card-top{
    padding-right:72px !important;
  }

  #tab-projetos .p1-card-title{font-size:14px !important;}
  #tab-projetos .p1-card-meta{font-size:12px !important;color:var(--text2) !important;}


/* ══ DESIGN SYSTEM — Topbar unificada para Projetos/Sistema/Resultado ══ */
.app-topbar{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:13px;
  width:100%;
  box-sizing:border-box;
  flex-wrap:nowrap;
}
.app-topbar-title{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  font-weight:800;
  color:var(--text);
}
.app-topbar .btn-primary{
  font-size:13px;
  padding:8px 16px;
  flex-shrink:0;
}
.app-topbar .back-btn-sm{
  min-height:34px;
}
@media(max-width:520px){
  .app-topbar{gap:7px;}
  .app-topbar-title{font-size:14px;}
  .app-topbar .btn-primary{font-size:12px;padding:8px 12px;}
}

/* ══ UI/UX — hierarquia de ações: ação principal + menu ⋮ ══ */
.ux-actions-compact{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;}
.ux-primary-action{box-shadow:0 6px 18px rgba(0,50,255,.22);}
.ux-action-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.ux-more-btn{
  width:34px;height:34px;border-radius:50%;border:1px solid var(--border);
  background:var(--card3);color:var(--text2);font-size:20px;line-height:1;
  cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .18s;
}
.ux-more-btn:hover{border-color:var(--border2);color:var(--or1);background:rgba(0,50,255,.08);}
.ux-action-menu{
  display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:900;
  min-width:190px;background:var(--card2);border:1px solid var(--border);
  border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.55);overflow:hidden;
}
.ux-action-menu.open{display:block;}
.ux-action-item{
  width:100%;border:0;background:transparent;color:var(--text2);padding:11px 13px;
  display:flex;align-items:center;gap:9px;text-align:left;font-size:13px;font-weight:600;
  cursor:pointer;border-bottom:1px solid rgba(255,255,255,.045);transition:background .15s,color .15s;
}
.ux-action-item:last-child{border-bottom:0;}
.ux-action-item:hover{background:rgba(255,255,255,.045);color:var(--text);}
.ux-action-item.danger{color:var(--red);}
.ux-action-item.danger:hover{background:rgba(255,60,60,.10);}
.ux-card-action-footer{
  padding:10px 14px;border-top:1px solid var(--border);background:var(--card2);
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.ux-card-action-footer .ux-primary-action{flex:1;justify-content:center;}
.sel-bar .ux-action-wrap,.pj-sel-bar .ux-action-wrap{align-self:center;}
@media(max-width:520px){
  .ux-card-action-footer{padding:9px 10px;}
  .ux-action-menu{min-width:180px;}
  .ux-primary-action{font-size:12px;padding:8px 12px;}
}

/* ══ AJUSTE RESPONSIVO — Cabeçalhos de Projetos/Ambientes/Sistemas ══
   Em telas pequenas, mantém o título e as ações na mesma linha.
   Os botões textuais viram botões compactos por ícone para evitar quebra visual. */
@media(max-width:680px){
  #tab-projetos .p1-top-head{
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
    margin-bottom:12px !important;
  }

  #tab-projetos .p1-top-title{
    font-size:17px !important;
    line-height:1.15 !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  #tab-projetos .p1-title-line{
    width:auto !important;
    min-width:0 !important;
    flex:1 1 auto !important;
    flex-wrap:nowrap !important;
    overflow:hidden !important;
  }

  #tab-projetos .p1-prev-section{
    flex:0 0 auto !important;
    max-width:92px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  #tab-projetos .p1-title-divider{
    flex:0 0 auto !important;
  }

  #tab-projetos .p1-top-actions{
    width:auto !important;
    flex:0 0 auto !important;
    justify-content:flex-end !important;
    gap:6px !important;
    flex-wrap:nowrap !important;
  }

  #tab-projetos .p1-top-actions .btn-outline,
  #tab-projetos .p1-top-actions .btn-primary,
  #tab-projetos .p1-top-actions .btn-green,
  #tab-projetos .p1-top-actions .btn-danger,
  #tab-projetos .p1-top-actions .btn-pdf{
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    padding:0 !important;
    border-radius:50% !important;
    font-size:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
  }

  #tab-projetos .p1-top-actions .btn-outline::before,
  #tab-projetos .p1-top-actions .btn-primary::before,
  #tab-projetos .p1-top-actions .btn-green::before,
  #tab-projetos .p1-top-actions .btn-danger::before,
  #tab-projetos .p1-top-actions .btn-pdf::before{
    font-size:17px !important;
    line-height:1 !important;
    color:inherit !important;
  }

  /* Página principal: Importar / Novo projeto */
  #tab-projetos .p1-top-actions .btn-outline:first-child::before{content:'⇩';}
  #tab-projetos .p1-top-actions .btn-primary:first-child::before{content:'+';font-size:22px !important;font-weight:900;}
  #tab-projetos .p1-top-actions .btn-primary:nth-child(2)::before{content:'+';font-size:22px !important;font-weight:900;}

  /* Outras telas de Projetos: Novo ambiente / Novo sistema */
  #tab-projetos .p1-top-actions .btn-primary:only-child::before{content:'+';font-size:22px !important;font-weight:900;}
  #tab-projetos .p1-top-actions .btn-green::before{content:'✓';font-weight:900;}
  #tab-projetos .p1-top-actions .btn-danger::before{content:'×';font-size:20px !important;font-weight:900;}
  #tab-projetos .p1-top-actions .btn-pdf::before{content:'PDF';font-size:10px !important;font-weight:900;}
}

@media(max-width:390px){
  #tab-projetos .p1-top-head{gap:6px !important;}
  #tab-projetos .p1-top-actions{gap:5px !important;}
  #tab-projetos .p1-top-actions .btn-outline,
  #tab-projetos .p1-top-actions .btn-primary,
  #tab-projetos .p1-top-actions .btn-green,
  #tab-projetos .p1-top-actions .btn-danger,
  #tab-projetos .p1-top-actions .btn-pdf{
    width:35px !important;
    min-width:35px !important;
    height:35px !important;
  }
  #tab-projetos .p1-prev-section{
    max-width:38px !important;
    font-size:0 !important;
    padding:7px 4px !important;
  }
  #tab-projetos .p1-prev-section::before{
    content:'←';
    font-size:16px;
    color:var(--text3);
  }
}

/* === Ajustes do tour didático e logo inicial === */
.home-brand-logo{display:flex;justify-content:center;align-items:center;margin:8px auto 22px;padding:8px 0 2px;}
.home-brand-logo img{height:80px;width:auto;max-width:min(92vw,520px);object-fit:contain;display:block;}
.tour-logo-start{display:flex;align-items:center;justify-content:center;min-height:104px;margin:2px 0 16px;padding:18px;border-radius:18px;background:linear-gradient(135deg,rgba(0,255,255,.08),rgba(0,50,255,.04));border:1px solid rgba(0,255,255,.16);}
.tour-logo-start img{height:80px;width:auto;max-width:100%;object-fit:contain;display:block;}
.tour-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px;width:100%;max-width:440px;}
.tour-flow div{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px 6px;text-align:center;}
.tour-flow b{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;margin:0 auto 6px;background:linear-gradient(135deg,var(--or1),var(--or2));color:#fff;font-size:12px;}
.tour-flow span{font-size:11px;color:var(--text2);font-weight:700;}
.tour-visual-card{background:#0d1420;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:18px;margin:0 0 18px;box-shadow:0 14px 40px rgba(0,0,0,.18);}
.tour-mini-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:#fff;font-weight:800;}
.tour-mini-header button{border:0;border-radius:999px;background:linear-gradient(135deg,var(--or1),var(--or2));color:#fff;font-size:11px;font-weight:800;padding:8px 12px;}
.tour-mini-list{display:flex;flex-direction:column;gap:4px;padding:13px 14px;border-radius:13px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);margin-top:8px;color:#fff;}
.tour-mini-list.active{background:rgba(0,255,255,.08);border-color:rgba(0,255,255,.28);}
.tour-mini-list small{color:rgba(255,255,255,.42);font-size:11px;}
.tour-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
.tour-grid-4 div{min-height:88px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#fff;font-size:24px;text-align:center;}
.tour-grid-4 b{font-size:12px;}.tour-grid-4 small{font-size:10px;color:rgba(255,255,255,.42);}
.tour-form-demo{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.tour-form-demo div{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:11px 12px;}
.tour-form-demo label{display:block;font-size:10px;color:rgba(255,255,255,.38);font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px;}
.tour-form-demo span{font-size:13px;color:#fff;font-weight:800;}
.tour-result-demo{display:flex;flex-direction:column;gap:8px;}
.tour-result-demo div{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);}
.tour-result-demo strong{color:#fff;font-size:12px;}.tour-result-demo span{color:var(--or1);font-weight:900;font-size:13px;}.tour-result-demo small{grid-column:1/3;color:rgba(255,255,255,.42);font-size:11px;}
.tour-pdf-demo{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.tour-page,.tour-layout{min-height:132px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:16px;display:flex;flex-direction:column;gap:10px;}
.tour-page b,.tour-layout b{font-size:28px;color:var(--or1);}.tour-page span,.tour-layout span{height:12px;border-radius:99px;background:rgba(255,255,255,.10);font-size:0;}
@media(max-width:620px){.home-brand-logo img{height:58px}.tour-logo-start img{height:62px}.tour-flow{grid-template-columns:repeat(2,1fr)}.tour-grid-4{grid-template-columns:repeat(2,1fr)}.tour-form-demo,.tour-pdf-demo{grid-template-columns:1fr}}

/* Ajuste solicitado — ações no rodapé dos quantitativos */
.ux-card-action-footer .ux-footer-action{
  flex:1;
  min-width:0;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
}
.ux-card-action-footer .ux-more-btn{
  width:38px;
  height:38px;
}

/* Ajuste visual — botão Layout inferior seguindo o padrão do topo */
.ux-card-action-footer .ux-layout-action{
  background:var(--card2);
  border:1px solid var(--border);
  color:var(--text2);
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  box-shadow:none;
}
.ux-card-action-footer .ux-layout-action:hover{
  border-color:var(--border2);
  color:var(--or1);
  transform:none;
}

/* Teste UX — Quantitativo com cabeçalho fixo e unidades roláveis */
#tab-resultado .quant-page{
  height:calc(100vh - 96px);
  min-height:520px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  position:relative;
}
#tab-resultado .quant-topbar{
  flex-shrink:0;
  margin-bottom:10px;
  padding-bottom:10px;
  border-bottom:1px solid var(--border);
  background:var(--bg);
  position:relative;
  z-index:20;
}
#tab-resultado .quant-fixed-info{
  flex-shrink:0;
}
#tab-resultado .quant-results-grid{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
#tab-resultado .quant-results-grid .result-card{
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  margin-bottom:0;
}
#tab-resultado .quant-results-grid .result-head{
  flex-shrink:0;
  background:var(--card);
  z-index:5;
}
#tab-resultado .quant-results-grid .otim-section{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
#tab-resultado .quant-scroll-top{
  position:absolute;
  right:16px;
  bottom:16px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid var(--border2);
  background:var(--grad);
  color:#fff;
  font-size:20px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,50,255,.30);
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s, box-shadow .18s;
}
#tab-resultado .quant-scroll-top:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(0,50,255,.38);
}
@media(max-width:520px){
  #tab-resultado .quant-page{height:calc(100vh - 82px);min-height:480px;}
  #tab-resultado .quant-topbar{gap:6px;}
  #tab-resultado .quant-topbar .btn-primary{padding:8px 10px;font-size:11px;}
  #tab-resultado .quant-scroll-top{right:12px;bottom:12px;width:40px;height:40px;font-size:18px;}
}

/* Ajuste UX — janela de quantitativo responsiva com scroll interno único/seguro */
body.quant-mode .main-content{
  overflow:hidden;
}
body.quant-mode .content-inner,
body.quant-mode #tab-resultado{
  height:100%;
  min-height:0;
}
body.quant-mode #tab-resultado{
  overflow:hidden;
}
#tab-resultado .quant-page{
  height:100%;
  min-height:0;
  max-height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  position:relative;
}
#tab-resultado .quant-topbar,
#tab-resultado .quant-fixed-info{
  flex:0 0 auto;
}
#tab-resultado .quant-results-grid{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
#tab-resultado .quant-results-grid .result-card{
  min-height:0;
  max-height:100%;
}
#tab-resultado .quant-results-grid .otim-section{
  min-height:0;
  overflow-y:auto;
  padding-bottom:18px;
}
#tab-resultado .quant-scroll-top{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  right:12px;
  bottom:12px;
  width:34px;
  height:34px;
  font-size:15px;
  color:rgba(255,255,255,.70);
  background:rgba(0,50,255,.16);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
  backdrop-filter:blur(8px);
  transform:translateY(6px);
}
#tab-resultado .quant-scroll-top.visible{
  opacity:.45;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
#tab-resultado .quant-scroll-top.visible:hover{
  opacity:1;
  background:var(--grad);
  color:#fff;
  box-shadow:0 10px 24px rgba(0,50,255,.22);
  transform:translateY(-1px);
}
@media(max-width:520px){
  #tab-resultado .quant-page{height:100%;min-height:0;}
  #tab-resultado .quant-scroll-top{right:10px;bottom:10px;width:32px;height:32px;font-size:14px;}
}

/* ══════════════════════════════════════════
   V3-01 — Entrada prática/detalhada
══════════════════════════════════════════ */
.v3-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,520px);gap:22px;align-items:stretch;margin-bottom:22px;}
.v3-hero-copy,.v3-mode-card,.quick-panel,.quick-form-card,.quick-result-card{background:var(--card);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);}
.v3-hero-copy{padding:34px;display:flex;flex-direction:column;justify-content:center;min-height:250px;}
.v3-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:var(--or1);font-weight:800;margin-bottom:10px;}
.v3-hero h1{font-size:34px;line-height:1.05;margin:0 0 12px;color:var(--text);letter-spacing:-.03em;}
.v3-hero p{font-size:15px;line-height:1.6;color:var(--text2);max-width:620px;margin:0;}
.v3-mode-grid{display:grid;grid-template-columns:1fr;gap:14px;}
.v3-mode-card{padding:24px;text-align:left;cursor:pointer;color:var(--text);transition:.18s ease;display:flex;flex-direction:column;gap:8px;min-height:118px;}
.v3-mode-card:hover,.quick-category:hover,.quick-system-card:hover{transform:translateY(-2px);border-color:rgba(0,50,255,.45);}
.v3-mode-card.primary{background:linear-gradient(135deg,rgba(0,255,255,.18),rgba(0,255,255,.04));border-color:rgba(0,255,255,.35);}
.v3-mode-ico{font-size:25px;}
.v3-mode-card strong{font-size:20px;}
.v3-mode-card small{color:var(--text3);font-size:13px;line-height:1.45;}
.quick-panel{padding:24px;margin-top:10px;}
.quick-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;}
.quick-head h2{font-size:26px;margin:0;color:var(--text);letter-spacing:-.02em;}
.quick-link{border:0;background:rgba(255,255,255,.06);color:var(--text2);border-radius:999px;padding:8px 12px;cursor:pointer;}
.quick-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px;}
.quick-category,.quick-system-card{border:1px solid var(--border);background:var(--card2);border-radius:18px;color:var(--text);padding:18px;cursor:pointer;transition:.18s ease;text-align:left;}
.quick-category{display:flex;flex-direction:column;gap:7px;}
.quick-category span{font-size:26px;}.quick-category strong{font-size:17px}.quick-category small,.quick-system-card small{color:var(--text3)}
.quick-category.muted{opacity:.55;}
.quick-section-title{font-size:13px;text-transform:uppercase;letter-spacing:.1em;color:var(--text3);font-weight:800;margin:10px 0 12px;}
.quick-system-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.quick-system-card{min-height:154px;display:flex;flex-direction:column;gap:7px;align-items:flex-start;}
.quick-system-card.sel{border-color:var(--or1);box-shadow:0 0 0 2px rgba(0,255,255,.16) inset;background:linear-gradient(135deg,rgba(0,255,255,.14),rgba(255,255,255,.03));}
.quick-system-img{height:54px;width:100%;border-radius:14px;background:linear-gradient(135deg,rgba(0,255,255,.16),rgba(255,255,255,.04));display:flex;align-items:center;justify-content:center;font-size:20px;letter-spacing:.12em;color:var(--or1);font-weight:900;}
.quick-system-card strong{font-size:18px}.quick-system-card span{color:var(--text2);font-size:13px;}
.quick-form-card{padding:20px;margin-top:18px;box-shadow:none;}
.quick-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:12px;}
.quick-form-grid label span{display:block;font-size:12px;color:var(--text3);font-weight:700;margin-bottom:7px;text-transform:uppercase;letter-spacing:.08em;}
.quick-options{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0 14px;color:var(--text2);font-size:13px;}
.quick-options label{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.045);border:1px solid var(--border);border-radius:999px;padding:8px 12px;}
.quick-result-card{margin-top:18px;padding:18px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));}
.quick-result-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
.quick-result-top strong{display:block;color:var(--text);font-size:18px}.quick-result-top span{display:block;color:var(--text3);font-size:12px;margin-top:3px}.quick-result-top button{border:1px solid var(--border);background:var(--card2);color:var(--text);border-radius:999px;padding:8px 12px;cursor:pointer;}
.quick-list{display:grid;gap:8px;}.quick-list-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:11px 12px;background:rgba(255,255,255,.045);border:1px solid var(--border);border-radius:13px;color:var(--text2);}.quick-list-row strong{color:var(--text);white-space:nowrap;}
.quick-note{font-size:12px;line-height:1.45;color:var(--text3);margin-top:12px;border-top:1px solid var(--border);padding-top:12px;}
@media(max-width:900px){.v3-hero{grid-template-columns:1fr}.quick-category-grid,.quick-system-grid{grid-template-columns:1fr 1fr}.quick-form-grid{grid-template-columns:1fr}.v3-hero h1{font-size:28px}}
@media(max-width:560px){.quick-category-grid,.quick-system-grid{grid-template-columns:1fr}.v3-hero-copy{padding:24px}.quick-panel{padding:16px}}

/* V3-01 ajustes — fluxo prático paginado */
.quick-page{max-width:1100px;margin:0 auto;padding:28px;min-height:calc(100vh - 180px);display:flex;flex-direction:column;justify-content:flex-start;}
.quick-subtitle{margin:8px 0 0;color:var(--text3);font-size:14px;line-height:1.5;max-width:680px;}
.quick-progress{display:flex;gap:8px;margin:-4px 0 24px;}
.quick-progress span{height:4px;flex:1;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid var(--border);}
.quick-progress span.on{background:linear-gradient(90deg,var(--or1),rgba(0,50,255,.45));border-color:rgba(0,255,255,.35);}
.quick-category-grid-page,.quick-system-grid-page{margin-top:10px;}
.quick-category-grid-page .quick-category{min-height:160px;}
.quick-form-card-page,.quick-result-card-page{max-width:820px;width:100%;margin:8px auto 0;}
.quick-options.two-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0;}
.quick-options.two-options label{border-radius:16px;justify-content:space-between;min-height:54px;}
.quick-options.two-options label span{font-size:12px;color:var(--text3);font-weight:800;text-transform:uppercase;letter-spacing:.08em;}
.quick-options.two-options select{max-width:130px;height:38px;}
.quick-actions-bottom{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:16px;flex-wrap:wrap;}
@media(max-width:700px){.quick-page{padding:16px;min-height:auto}.quick-options.two-options{grid-template-columns:1fr}.quick-actions-bottom{justify-content:stretch}.quick-actions-bottom>*{flex:1}.quick-head{align-items:flex-start}}

.quick-spacing-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0;}
.quick-check-card{display:flex;align-items:flex-start;gap:10px;flex-direction:column;background:rgba(255,255,255,.045);border:1px solid var(--border);border-radius:18px;padding:14px 16px;cursor:pointer;transition:.18s ease;}
.quick-check-card:hover{transform:translateY(-1px);border-color:rgba(0,50,255,.45);}
.quick-check-card.selected{border-color:rgba(0,255,255,.85);box-shadow:0 0 0 3px rgba(0,255,255,.12);background:rgba(0,255,255,.08);}
.quick-check-card input{accent-color:#00ffff;}
.quick-check-card span{font-weight:900;color:var(--text);}
.quick-check-card small{color:var(--text3);font-size:12px;}
@media(max-width:700px){.quick-spacing-options{grid-template-columns:1fr;}}

/* V3-06 — opções compactas do módulo prático */
.quick-form-grid-main{margin-bottom:16px;}
.quick-options-line{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:8px 0 16px;align-items:stretch;}
.quick-option-field{border:1px solid var(--border);border-radius:16px;padding:10px 12px;background:rgba(255,255,255,.035);display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:54px;}
.quick-option-field legend{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--text3);font-weight:800;padding:0 6px;}
.quick-mini-option{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid rgba(255,255,255,.10);border-radius:999px;background:rgba(255,255,255,.035);cursor:pointer;transition:.16s ease;font-size:13px;font-weight:800;color:var(--text2);line-height:1;}
.quick-mini-option:hover{border-color:rgba(0,50,255,.45);transform:translateY(-1px);}
.quick-mini-option.selected{border-color:rgba(0,255,255,.85);background:rgba(0,255,255,.10);color:var(--text);box-shadow:0 0 0 2px rgba(0,255,255,.08);}
.quick-mini-option input{accent-color:#00ffff;margin:0;}
.quick-mini-option span{white-space:nowrap;}
@media(min-width:900px){.quick-options-line{grid-template-columns:repeat(2,minmax(240px,1fr));}.quick-option-field{flex-wrap:nowrap;}.quick-option-field legend{min-width:92px;}}
@media(max-width:700px){.quick-options-line{grid-template-columns:1fr}.quick-option-field{align-items:flex-start;}}


/* ══════════════════════════════════════════
   OTIMIZZA CALC v3-07 — refinamento clean módulo prático
══════════════════════════════════════════ */
.h-admin,
.h-convidar,
.h-avatar,
.h-btn-sair{
  background:rgba(255,255,255,0.05) !important;
  color:var(--text2) !important;
  border:1px solid rgba(255,255,255,0.10) !important;
  font-weight:600 !important;
  box-shadow:none !important;
}
.h-admin:hover,
.h-convidar:hover,
.h-avatar:hover,
.h-btn-sair:hover,
.h-bell:hover,
.h-btn-ajuda:hover{
  background:rgba(255,255,255,0.075) !important;
  border-color:rgba(255,255,255,0.16) !important;
  color:var(--text) !important;
  opacity:1 !important;
}
#avatar-initials{
  background:rgba(255,255,255,0.09) !important;
  color:var(--text2) !important;
}

.quick-panel.quick-page{
  background:transparent;
  border:0;
  box-shadow:none;
  max-width:1040px;
  padding:20px 10px 28px;
}
.quick-head{
  margin-bottom:12px;
  align-items:center;
}
.quick-head h2{
  font-size:22px;
  letter-spacing:-.015em;
  font-weight:850;
}
.quick-subtitle{
  font-size:13px;
  max-width:620px;
  margin-top:5px;
}
.quick-progress{
  margin:0 0 18px;
  gap:6px;
}
.quick-progress span{
  height:3px;
  border:0;
  background:rgba(255,255,255,.075);
}
.quick-link{
  height:32px;
  padding:0 12px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  font-size:12px;
}
.quick-category-grid,
.quick-system-grid{
  gap:10px;
}
.quick-category,
.quick-system-card{
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.035);
  box-shadow:none;
}
.quick-category-grid-page .quick-category{
  min-height:118px;
}
.quick-category span{
  font-size:23px;
}
.quick-category strong,
.quick-system-card strong{
  font-size:15px;
  letter-spacing:-.01em;
}
.quick-category small,
.quick-system-card small,
.quick-system-card span{
  font-size:12px;
  line-height:1.35;
}
.quick-system-card{
  min-height:132px;
  gap:5px;
}
.quick-system-img{
  height:44px;
  border-radius:12px;
  font-size:17px;
  margin-bottom:2px;
  background:linear-gradient(135deg,rgba(0,255,255,.10),rgba(255,255,255,.035));
}
.quick-system-card.sel,
.quick-mini-option.selected{
  border-color:rgba(0,255,255,.65);
  box-shadow:0 0 0 2px rgba(0,255,255,.08) inset;
  background:rgba(0,255,255,.075);
}
.quick-form-card,
.quick-result-card{
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.075);
}
.quick-form-card-page{
  max-width:960px;
  padding:16px;
}
.quick-form-grid{
  gap:10px;
}
.quick-form-grid-main{
  margin-bottom:10px;
}
.quick-form-grid label span{
  font-size:10px;
  margin-bottom:5px;
  letter-spacing:.09em;
}
.quick-form-card .d-input{
  min-height:38px;
  height:38px;
  font-size:14px;
  border-radius:12px;
}
.quick-form-card .input-unit{
  height:38px;
  font-size:12px;
}
.quick-options-line{
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:10px;
  margin:4px 0 12px;
}
.quick-option-field{
  min-height:42px;
  padding:7px 9px;
  border-radius:14px;
  background:rgba(255,255,255,.026);
  flex-wrap:nowrap;
}
.quick-option-field legend{
  font-size:10px;
  min-width:78px;
}
.quick-mini-option{
  padding:6px 9px;
  font-size:12px;
  font-weight:750;
}
.quick-actions-bottom{
  margin-top:12px;
}
.quick-form-card .btn-next,
.quick-result-card .btn-next{
  min-height:40px;
  border-radius:12px;
  font-size:13px;
  font-weight:850;
  letter-spacing:.01em;
  box-shadow:0 8px 24px rgba(0,50,255,.16);
}
.quick-result-card-page{
  max-width:900px;
  padding:16px;
}
.quick-result-top{
  margin-bottom:12px;
}
.quick-result-top strong{
  font-size:16px;
}
.quick-list{
  gap:6px;
}
.quick-list-row{
  padding:9px 10px;
  border-radius:11px;
  font-size:13px;
  background:rgba(255,255,255,.032);
}
.quick-note{
  font-size:11.5px;
  padding-top:10px;
  margin-top:10px;
}
@media(min-width:900px){
  .quick-form-card-page .quick-form-grid-main{
    grid-template-columns:repeat(2,minmax(180px,1fr));
  }
  .quick-options-line:has(.quick-option-field:nth-child(1):last-child){
    grid-template-columns:minmax(260px,360px);
  }
}
@media(max-width:700px){
  .quick-panel.quick-page{padding:14px 4px 22px;}
  .quick-head{align-items:flex-start;}
  .quick-options-line{grid-template-columns:1fr;}
  .quick-option-field{flex-wrap:wrap;}
}


/* ══════════════════════════════════════════
   OTIMIZZA CALC v3-08 — correção clean / módulo prático profissional
══════════════════════════════════════════ */
.h-btn,
.h-admin,
.h-convidar,
.h-avatar,
.h-btn-sair,
.h-bell,
.h-btn-ajuda{
  background:rgba(255,255,255,0.045) !important;
  color:var(--text2) !important;
  border:1px solid rgba(255,255,255,0.095) !important;
  box-shadow:none !important;
  font-weight:600 !important;
}
.h-btn:hover,
.h-admin:hover,
.h-convidar:hover,
.h-avatar:hover,
.h-btn-sair:hover,
.h-bell:hover,
.h-btn-ajuda:hover{
  background:rgba(255,255,255,0.075) !important;
  color:var(--text) !important;
  border-color:rgba(255,255,255,0.16) !important;
}
.quick-panel.quick-page{max-width:1000px;padding-top:16px;}
.quick-head h2{font-size:20px !important;}
.quick-subtitle{font-size:12.5px !important;}
.quick-category-grid-page,.quick-system-grid-page{gap:8px !important;}
.quick-category-grid-page .quick-category,.quick-system-card{min-height:104px !important;padding:12px !important;border-radius:14px !important;}
.quick-system-grid{grid-template-columns:repeat(auto-fit,minmax(165px,1fr)) !important;}
.quick-system-img{height:38px !important;font-size:14px !important;border-radius:10px !important;}
.quick-category strong,.quick-system-card strong{font-size:14px !important;}
.quick-category small,.quick-system-card small,.quick-system-card span{font-size:11.5px !important;}
.quick-form-card-lean{max-width:1040px !important;padding:14px !important;background:rgba(255,255,255,.028) !important;}
.quick-form-toolbar{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:8px;align-items:end;}
.quick-dim-field span{display:block;font-size:10px;color:var(--text3);font-weight:800;margin-bottom:5px;text-transform:uppercase;letter-spacing:.08em;}
.quick-form-toolbar .d-input,.quick-form-toolbar .input-unit{height:36px !important;min-height:36px !important;}
.quick-form-toolbar .d-input{font-size:13px !important;border-radius:11px !important;}
.quick-option-field-inline{min-height:36px !important;padding:6px 8px !important;border-radius:12px !important;flex-wrap:nowrap !important;align-self:end;}
.quick-option-field-inline legend{min-width:auto !important;font-size:9.5px !important;padding:0 4px !important;}
.quick-option-field-inline .quick-mini-option{padding:5px 8px !important;font-size:11.5px !important;}
.quick-actions-bottom-lean{margin-top:12px !important;}
.quick-actions-bottom-lean .quick-link,.quick-actions-bottom-lean .btn-next{min-height:36px !important;height:36px !important;padding:0 14px !important;}
.quick-actions-bottom-lean .btn-next{flex:0 0 auto !important;min-width:190px;}
@media(min-width:980px){.quick-form-toolbar{grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) minmax(230px,auto) minmax(190px,auto);}}
@media(max-width:760px){.quick-form-toolbar{grid-template-columns:1fr;}.quick-option-field-inline{flex-wrap:wrap !important;}.quick-actions-bottom-lean{justify-content:stretch !important;}.quick-actions-bottom-lean .quick-link,.quick-actions-bottom-lean .btn-next{flex:1 1 auto !important;}}


/* ══════════════════════════════════════════
   OTIMIZZA CALC v3-09 — campos em grid horizontal no módulo prático
══════════════════════════════════════════ */
.quick-form-toolbar{
  display:grid !important;
  gap:10px !important;
  align-items:end !important;
}
.quick-dim-field{min-width:0;}
.quick-option-field-inline{
  width:100%;
  min-width:0;
}
.quick-option-field-inline legend{
  white-space:nowrap;
}
@media(min-width:980px){
  .quick-form-card-page{max-width:1040px;}
  .quick-form-toolbar{
    grid-template-columns:minmax(136px,1fr) minmax(136px,1fr) minmax(230px,auto) minmax(190px,auto) !important;
  }
  .quick-option-field-inline{
    justify-content:flex-start;
  }
}
@media(min-width:760px) and (max-width:979px){
  .quick-form-toolbar{
    grid-template-columns:repeat(2,minmax(160px,1fr)) !important;
  }
}
@media(max-width:759px){
  .quick-form-toolbar{
    grid-template-columns:1fr !important;
  }
}

/* ══════════════════════════════════════════
   OTIMIZZA CALC v3-10 — visual premium / ferramenta técnica inteligente
══════════════════════════════════════════ */
#s-main,
.screen.active{
  background:
    radial-gradient(circle at 18% 0%, rgba(0,255,255,.075), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(60,104,255,.055), transparent 34%),
    linear-gradient(180deg, #090d18 0%, #0b1020 55%, #080c16 100%) !important;
}
.main-header{
  background:rgba(8,12,22,.78) !important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.055) !important;
}
.main-header-inner{padding-top:9px;padding-bottom:9px;}
.h-logo-mark{box-shadow:0 10px 28px rgba(0,50,255,.18);}
.h-logo-text{letter-spacing:-.02em;}
.h-actions{gap:7px;}
.h-btn,
.h-admin,
.h-convidar,
.h-avatar,
.h-btn-sair,
.h-bell,
.h-btn-ajuda{
  background:rgba(255,255,255,.035) !important;
  border-color:rgba(255,255,255,.075) !important;
  color:rgba(255,255,255,.62) !important;
  border-radius:12px !important;
}
.h-btn:hover,
.h-admin:hover,
.h-convidar:hover,
.h-avatar:hover,
.h-btn-sair:hover,
.h-bell:hover,
.h-btn-ajuda:hover{
  background:rgba(255,255,255,.065) !important;
  border-color:rgba(255,255,255,.12) !important;
  color:rgba(255,255,255,.88) !important;
}
.quick-panel.quick-page{
  max-width:1080px !important;
  padding:18px 12px 30px !important;
}
.quick-head{
  padding:2px 2px 0;
  margin-bottom:14px !important;
}
.quick-head h2{
  font-size:21px !important;
  font-weight:820 !important;
  letter-spacing:-.03em !important;
}
.quick-subtitle{
  color:rgba(255,255,255,.43) !important;
  max-width:640px !important;
}
.quick-progress{
  height:4px;
  padding:0 2px;
  margin-bottom:20px !important;
}
.quick-progress span{
  background:rgba(255,255,255,.055) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}
.quick-progress span.on{
  background:linear-gradient(90deg, rgba(0,255,255,.95), rgba(0,50,255,.62)) !important;
  box-shadow:0 0 22px rgba(0,255,255,.18);
}
.quick-category-grid-page,
.quick-system-grid-page{
  gap:10px !important;
}
.quick-category,
.quick-system-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.024)) !important;
  border:1px solid rgba(255,255,255,.078) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.035) inset, 0 12px 34px rgba(0,0,0,.12) !important;
}
.quick-category::before,
.quick-system-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.055), transparent 42%);
  opacity:.5;
}
.quick-category:hover,
.quick-system-card:hover{
  transform:translateY(-2px) !important;
  border-color:rgba(0,255,255,.34) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset, 0 18px 42px rgba(0,0,0,.22) !important;
}
.quick-category strong,
.quick-system-card strong{
  color:rgba(255,255,255,.92) !important;
}
.quick-category small,
.quick-system-card small,
.quick-system-card span{
  color:rgba(255,255,255,.42) !important;
}
.quick-system-card.sel{
  background:linear-gradient(180deg, rgba(0,255,255,.125), rgba(255,255,255,.028)) !important;
  border-color:rgba(0,255,255,.55) !important;
  box-shadow:0 0 0 1px rgba(0,255,255,.16) inset, 0 18px 46px rgba(0,50,255,.075) !important;
}
.quick-system-img{
  background:
    linear-gradient(135deg, rgba(0,255,255,.14), rgba(255,255,255,.035)),
    rgba(255,255,255,.025) !important;
  border:1px solid rgba(255,255,255,.06);
  color:#00ffff !important;
}
.quick-form-card,
.quick-result-card,
.quick-form-card-lean{
  background:linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.024)) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px rgba(0,0,0,.18) !important;
}
.quick-form-card-page{border-radius:20px !important;}
.quick-dim-field span,
.quick-form-grid label span,
.quick-option-field-inline legend,
.quick-option-field legend{
  color:rgba(255,255,255,.38) !important;
  font-weight:760 !important;
}
.quick-form-toolbar .d-input,
.quick-form-card .d-input,
.quick-form-toolbar .input-unit,
.quick-form-card .input-unit{
  background:rgba(8,12,22,.52) !important;
  border-color:rgba(255,255,255,.075) !important;
  color:rgba(255,255,255,.88) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.025) inset !important;
}
.quick-form-toolbar .d-input:focus,
.quick-form-card .d-input:focus{
  border-color:rgba(0,255,255,.55) !important;
  box-shadow:0 0 0 3px rgba(0,255,255,.085) !important;
}
.quick-option-field-inline,
.quick-option-field{
  background:rgba(8,12,22,.38) !important;
  border-color:rgba(255,255,255,.075) !important;
}
.quick-mini-option{
  background:rgba(255,255,255,.032) !important;
  border-color:rgba(255,255,255,.07) !important;
  color:rgba(255,255,255,.58) !important;
}
.quick-mini-option:hover{
  color:rgba(255,255,255,.86) !important;
  background:rgba(255,255,255,.055) !important;
  border-color:rgba(0,255,255,.34) !important;
}
.quick-mini-option.selected{
  color:rgba(255,255,255,.94) !important;
  background:linear-gradient(135deg, rgba(0,255,255,.18), rgba(0,255,255,.07)) !important;
  border-color:rgba(0,255,255,.56) !important;
  box-shadow:0 0 0 1px rgba(0,255,255,.11) inset !important;
}
.quick-actions-bottom-lean .btn-next,
.quick-form-card .btn-next,
.quick-result-card .btn-next{
  background:linear-gradient(135deg, #00ffff, #0032ff) !important;
  color:#111827 !important;
  font-weight:900 !important;
  box-shadow:0 12px 34px rgba(0,50,255,.20), 0 1px 0 rgba(255,255,255,.30) inset !important;
  border:0 !important;
}
.quick-actions-bottom-lean .btn-next:hover,
.quick-form-card .btn-next:hover,
.quick-result-card .btn-next:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 42px rgba(0,50,255,.28), 0 1px 0 rgba(255,255,255,.34) inset !important;
}
.quick-link,
.quick-result-top button{
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  color:rgba(255,255,255,.58) !important;
}
.quick-link:hover,
.quick-result-top button:hover{
  color:rgba(255,255,255,.86) !important;
  background:rgba(255,255,255,.06) !important;
}
.quick-result-top strong{letter-spacing:-.015em;}
.quick-list-row{
  background:rgba(8,12,22,.38) !important;
  border-color:rgba(255,255,255,.06) !important;
}
.quick-list-row strong{color:#00ffff !important;}
.quick-note{border-top-color:rgba(255,255,255,.07) !important;color:rgba(255,255,255,.38) !important;}
.v3-hero-copy,
.v3-mode-card{
  background:linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.025)) !important;
  border-color:rgba(255,255,255,.08) !important;
  box-shadow:0 20px 60px rgba(0,0,0,.18) !important;
}
.v3-mode-card.primary{
  background:linear-gradient(135deg, rgba(0,255,255,.15), rgba(255,255,255,.03)) !important;
  border-color:rgba(0,255,255,.32) !important;
}
@media(max-width:759px){
  .quick-panel.quick-page{padding:14px 6px 24px !important;}
  .quick-head h2{font-size:19px !important;}
}

/* ══════════════════════════════════════════
   OTIMIZZA CALC v3-11 — responsividade e suporte
══════════════════════════════════════════ */
.main-tabs-inner{gap:2px;justify-content:center;}
.main-tab{padding-left:14px !important;padding-right:14px !important;}
.report-form{display:grid;gap:12px;margin-top:4px;}
.report-form label span{display:block;font-size:11px;color:var(--text3);font-weight:800;margin-bottom:6px;text-transform:uppercase;letter-spacing:.08em;}
.report-textarea{min-height:112px;resize:vertical;line-height:1.45;padding-top:10px !important;}
.report-textarea.small{min-height:82px;}
.report-note{font-size:12px;color:var(--text3);line-height:1.45;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:10px 12px;}

/* Os campos reduzem mais antes de quebrar para baixo */
.quick-form-card-lean,.quick-form-card-page{max-width:1120px !important;width:100%;}
.quick-form-toolbar{gap:8px !important;align-items:end !important;}
.quick-dim-field{min-width:110px !important;}
.quick-option-field-inline{min-width:0 !important;}
.quick-option-field-inline .quick-mini-option{white-space:nowrap;}

@media(min-width:1040px){
  .quick-form-toolbar{
    grid-template-columns:minmax(118px,.85fr) minmax(118px,.85fr) minmax(205px,1.05fr) minmax(170px,.9fr) !important;
  }
}
@media(min-width:820px) and (max-width:1039px){
  .quick-form-toolbar{
    grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) minmax(200px,1.2fr) minmax(168px,.9fr) !important;
  }
  .quick-option-field-inline{padding-left:7px !important;padding-right:7px !important;}
  .quick-option-field-inline .quick-mini-option{padding-left:7px !important;padding-right:7px !important;font-size:11px !important;}
}
@media(min-width:620px) and (max-width:819px){
  .quick-form-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:619px){
  .main-tabs{justify-content:flex-start;}
  .main-tabs-inner{justify-content:flex-start;min-width:max-content;padding:0 12px;}
  .main-tab{font-size:12.5px !important;padding:11px 12px !important;}
  .quick-panel.quick-page{padding:12px 4px 22px !important;}
  .quick-head{align-items:flex-start !important;gap:10px !important;}
  .quick-head h2{font-size:18px !important;line-height:1.15 !important;}
  .quick-subtitle{font-size:12px !important;line-height:1.4 !important;}
  .quick-form-card-lean{padding:12px !important;border-radius:16px !important;}
  .quick-form-toolbar{grid-template-columns:1fr !important;gap:9px !important;}
  .quick-form-toolbar .d-input,.quick-form-toolbar .input-unit{height:38px !important;min-height:38px !important;}
  .quick-option-field-inline{min-height:38px !important;justify-content:space-between !important;}
  .quick-option-field-inline legend{width:100%;margin-bottom:2px;}
  .quick-option-field-inline .quick-mini-option{flex:1 1 0;justify-content:center;}
  .quick-category-grid-page,.quick-system-grid-page{grid-template-columns:1fr !important;}
  .quick-category-grid-page .quick-category,.quick-system-card{min-height:88px !important;}
  .quick-actions-bottom-lean{flex-direction:column-reverse !important;align-items:stretch !important;}
  .quick-actions-bottom-lean .btn-next{width:100% !important;min-width:0 !important;}
}

/* v3-13 — Layout simplificado no cálculo prático */
.quick-result-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.quick-layout-panel{margin:14px 0 0;padding:14px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.035);border-radius:18px;}
.quick-layout-panel[hidden]{display:none!important;}
.quick-layout-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px;}
.quick-layout-head strong{display:block;font-size:14px;color:var(--text);}
.quick-layout-head span{display:block;font-size:11px;color:var(--text3);margin-top:2px;}
.quick-layout-wall{height:180px;display:grid;grid-template-columns:46px 1fr 46px;gap:10px;align-items:stretch;padding:10px;background:rgba(0,0,0,.10);border-radius:16px;overflow:hidden;}
.ql-board{border:1px solid rgba(255,255,255,.18);background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.08));border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--text2);font-size:10px;font-weight:800;writing-mode:vertical-rl;text-transform:uppercase;letter-spacing:.08em;}
.ql-structure{position:relative;border-radius:12px;background:rgba(0,255,255,.06);border:1px dashed rgba(0,255,255,.22);}
.ql-guide{position:absolute;left:8px;right:8px;height:18px;background:rgba(0,255,255,.62);border-radius:6px;box-shadow:0 8px 18px rgba(0,0,0,.12);}
.ql-guide span{position:absolute;left:8px;top:50%;transform:translateY(-50%);font-size:9px;color:rgba(20,20,20,.75);font-weight:900;white-space:nowrap;}
.ql-guide-top{top:8px}.ql-guide-bottom{bottom:8px}
.ql-studs{position:absolute;left:22px;right:22px;top:34px;bottom:34px;display:flex;justify-content:space-between;}
.ql-stud{width:16px;border-radius:7px;background:linear-gradient(90deg,rgba(170,184,204,.95),rgba(234,240,248,.92),rgba(130,145,165,.95));box-shadow:0 6px 14px rgba(0,0,0,.16);}
.quick-layout-ceiling{height:190px;position:relative;padding:10px;background:rgba(0,0,0,.10);border-radius:16px;overflow:hidden;}
.ql-ceiling-frame{position:absolute;inset:10px;border:12px solid rgba(0,255,255,.58);border-radius:16px;display:flex;align-items:flex-start;justify-content:center;color:rgba(20,20,20,.72);font-size:10px;font-weight:900;padding-top:4px;}
.ql-ceiling-grid{position:absolute;inset:34px;display:grid;place-items:center;background:repeating-linear-gradient(90deg,rgba(255,255,255,.09) 0 1px,transparent 1px 44px),repeating-linear-gradient(0deg,rgba(255,255,255,.065) 0 1px,transparent 1px 38px);border-radius:8px;}
.ql-profile{position:absolute;top:10px;bottom:10px;width:12px;border-radius:999px;background:linear-gradient(90deg,rgba(170,184,204,.95),rgba(234,240,248,.92),rgba(130,145,165,.95));box-shadow:0 6px 14px rgba(0,0,0,.16);}
.ql-profile.p1{left:24%}.ql-profile.p2{left:50%}.ql-profile.p3{left:76%}
.ql-support{position:absolute;width:14px;height:14px;border-radius:50%;background:rgba(88,166,255,.85);box-shadow:0 0 0 5px rgba(88,166,255,.12);}
.ql-support.s1{left:24%;top:28%}.ql-support.s2{left:50%;top:28%}.ql-support.s3{left:76%;top:64%}.ql-support.s4{left:50%;top:64%}
.ql-sheet-label{padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.12);color:var(--text);font-size:11px;font-weight:800;backdrop-filter:blur(4px);}
.quick-layout-legend{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap;margin-top:10px;color:var(--text3);font-size:11px;}
.quick-layout-legend span{display:inline-flex;align-items:center;gap:5px;}
.ql-dot{width:8px;height:8px;border-radius:50%;display:inline-block;}
.ql-dot-board{background:#9aa3ad}.ql-dot-stud{background:#2f80ff}.ql-dot-guide{background:#00ffff}.ql-dot-support{background:#f472b6}
@media(max-width:620px){.quick-layout-wall{height:150px;grid-template-columns:34px 1fr 34px;gap:7px}.quick-layout-ceiling{height:160px}.quick-result-actions{width:100%;justify-content:flex-start}.quick-result-top{align-items:flex-start}.quick-layout-legend{font-size:10px}}

/* v3-14 — Layout simplificado da cálculo rápido em modal */
.quick-layout-modal{
  width:min(920px,96vw);
  max-height:92vh;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 24px 80px rgba(0,0,0,.34);
}
.quick-layout-modal-head{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:var(--card2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-shrink:0;
}
.quick-layout-modal-title{font-size:15px;font-weight:750;color:var(--text);letter-spacing:-.01em;}
.quick-layout-modal-sub{font-size:11px;color:var(--text3);margin-top:2px;}
.quick-layout-modal-close{
  width:32px;height:32px;border-radius:50%;border:1px solid var(--border);
  background:transparent;color:var(--text2);cursor:pointer;font-size:20px;line-height:1;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.quick-layout-modal-close:hover{background:var(--card3);color:var(--text);}
.quick-layout-modal-canvas{
  flex:1;
  overflow:auto;
  background:#0d1420;
  padding:18px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
#quick-layout-modal-body{width:100%;max-width:820px;}
.quick-layout-svg{display:block;width:100%;height:auto;min-width:560px;}
.qls-bg{fill:#111a29;}
.qls-board{fill:#3a4350;stroke:#778292;stroke-width:1.1;opacity:.96;}
.qls-sheet-seam{stroke:#8090a6;stroke-width:1;opacity:.42;stroke-dasharray:0;}
.qls-sheet-seam.soft{opacity:.25;}
.qls-guide{stroke:#00ffff;stroke-width:8;stroke-linecap:square;}
.qls-frame{fill:none;stroke:#00ffff;stroke-width:8;}
.qls-stud{stroke:#2f80ff;stroke-width:4.5;stroke-linecap:square;}
.qls-support{fill:#f472b6;stroke:#f9a8d4;stroke-width:1.6;}
.qls-sheet-panel{fill:url(#qlBoardGrad);opacity:.46;stroke:rgba(230,238,247,.22);stroke-width:.6;}
.qls-screw{fill:#111a29;stroke:#9aa7b8;stroke-width:.8;opacity:.75;}
.qls-sheet-seam.stagger{stroke-dasharray:5 5;opacity:.48;}
.qls-guide-fill{fill:#00ffff;stroke:#00ffff;stroke-width:.8;}
.qls-support-symbol{filter:drop-shadow(0 0 4px rgba(244,114,182,.25));}
.qls-support-stem{stroke:#f472b6;stroke-width:2.2;stroke-linecap:round;}
.qls-support-box{fill:#f472b6;stroke:#f9a8d4;stroke-width:1.2;}
.qls-support-node{fill:#111a29;stroke:#f472b6;stroke-width:2.4;}

.qls-title{fill:#f4f7fb;font-size:14px;font-weight:700;letter-spacing:.01em;}
.qls-dim{fill:#f4f7fb;font-size:12px;font-weight:700;}
.qls-dim.small{font-size:10px;font-weight:650;}
.qls-dim-line{stroke:#e8eef7;stroke-width:1;opacity:.82;}
.qls-stud-node{fill:#111a29;stroke:#2f80ff;stroke-width:3;}
.qls-label{fill:#00ffff;font-size:10px;font-weight:750;letter-spacing:.08em;}
.qls-label.muted{fill:#8ea0bb;}
.qls-label.end{text-anchor:end;}
.qls-watermark{fill:#8ea0bb;font-size:20px;font-weight:700;opacity:.18;}
.quick-layout-modal-footer{
  padding:12px 16px;
  border-top:1px solid var(--border);
  background:var(--card2);
  flex-shrink:0;
}
.quick-layout-modal-legend{
  display:flex;
  gap:8px 14px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--text3);
  font-size:11px;
}
.quick-layout-modal-legend span{display:inline-flex;align-items:center;gap:6px;}
@media(max-width:700px){
  .quick-layout-modal{width:calc(100vw - 12px);max-height:94vh;border-radius:18px;}
  .quick-layout-modal-canvas{padding:10px;justify-content:flex-start;}
  .quick-layout-svg{min-width:620px;}
  .quick-layout-modal-title{font-size:14px;}
  .quick-layout-modal-legend{font-size:10px;gap:6px 10px;}
}
.qls-guide-fill{fill:#00ffff;stroke:#00ffff;}
.qls-sheet-panel{fill:rgba(148,163,184,.10);stroke:rgba(226,232,240,.18);stroke-width:.6;}
.qls-sheet-seam.stagger{stroke-dasharray:0;opacity:.55;}
.qls-screw{fill:#111827;stroke:#cbd5e1;stroke-width:.4;opacity:.65;}

/* v3-28 — ajustes de ações secundárias na cálculo rápido */
.quick-result-secondary-actions{
  justify-content:flex-end !important;
  align-items:center !important;
  gap:8px !important;
  margin-top:14px !important;
}
.quick-result-secondary-actions .quick-link{
  flex:0 0 auto !important;
  width:auto !important;
  min-height:34px !important;
  height:34px !important;
  padding:0 14px !important;
  font-size:12px !important;
  font-weight:600 !important;
  text-transform:none !important;
  letter-spacing:.01em !important;
  color:var(--text2) !important;
  background:rgba(255,255,255,.055) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}
.quick-result-secondary-actions .quick-link:hover{
  background:rgba(255,255,255,.085) !important;
  color:var(--text) !important;
}
@media(max-width:700px){
  .quick-result-secondary-actions{justify-content:stretch !important;}
  .quick-result-secondary-actions .quick-link{flex:1 1 0 !important;text-align:center;}
}


/* v3-29 — ajuste dos botões do cálculo prático */
.quick-actions-bottom-lean{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}
.quick-actions-bottom-lean .quick-cancel-btn{
  flex:0 1 auto !important;
}
.quick-actions-bottom-lean .quick-calc-btn{
  flex:0 0 auto !important;
}
@media(max-width:619px){
  .quick-actions-bottom-lean{
    flex-direction:row !important;
    align-items:center !important;
    justify-content:stretch !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
  }
  .quick-actions-bottom-lean .quick-cancel-btn{
    flex:0 1 38% !important;
    min-width:0 !important;
    width:auto !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }
  .quick-actions-bottom-lean .quick-calc-btn{
    flex:1 1 62% !important;
    min-width:0 !important;
    width:auto !important;
    padding-left:10px !important;
    padding-right:10px !important;
    white-space:normal !important;
    line-height:1.15 !important;
  }
}

/* v3-31 — correção definitiva: Cancelar na mesma linha do Calcular lista de compra */
.quick-actions-bottom.quick-actions-bottom-lean{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  align-items:stretch !important;
  gap:10px !important;
  width:100% !important;
  margin-top:14px !important;
  flex-wrap:nowrap !important;
}
.quick-actions-bottom.quick-actions-bottom-lean .quick-cancel-btn,
.quick-actions-bottom.quick-actions-bottom-lean .quick-calc-btn{
  width:100% !important;
  min-width:0 !important;
  height:38px !important;
  min-height:38px !important;
  margin:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:normal !important;
  line-height:1.15 !important;
}
.quick-actions-bottom.quick-actions-bottom-lean .quick-cancel-btn{
  grid-column:2 !important;
  grid-row:1 !important;
}
.quick-actions-bottom.quick-actions-bottom-lean .quick-calc-btn{
  grid-column:1 !important;
  grid-row:1 !important;
}
@media(max-width:560px){
  .quick-actions-bottom.quick-actions-bottom-lean{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .quick-actions-bottom.quick-actions-bottom-lean .quick-cancel-btn,
  .quick-actions-bottom.quick-actions-bottom-lean .quick-calc-btn{
    padding-left:8px !important;
    padding-right:8px !important;
    font-size:12px !important;
  }
}

.measure-input{width:100%;}
.measure-input::placeholder{font-size:.86em;color:var(--text3);}

/* v3-37 — alinhamento profissional dos campos no Cálculo Prático
   - labels Largura/Altura/Espaçamento na mesma linha visual
   - radios sem box externo, seguindo a mesma base dos inputs
   - grid com 3 colunas quando há apenas Largura, Altura e Espaçamento */
.quick-form-toolbar{
  align-items:start !important;
  gap:8px !important;
}
.quick-form-toolbar:has(> .quick-option-group:nth-child(3):last-child){
  grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(210px,1.06fr) !important;
}
.quick-dim-field,
.quick-option-group{
  min-width:0 !important;
  width:100% !important;
  align-self:start !important;
}
.quick-dim-field span,
.quick-option-title{
  display:block !important;
  height:14px !important;
  line-height:14px !important;
  margin:0 0 6px 0 !important;
  padding:0 !important;
  font-size:10px !important;
  color:rgba(255,255,255,.38) !important;
  font-weight:760 !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
  text-align:left !important;
  justify-content:flex-start !important;
}
.quick-option-field-inline.quick-option-group{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  gap:0 !important;
}
.quick-option-pills{
  height:36px !important;
  min-height:36px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  padding:0 !important;
  margin:0 !important;
}
.quick-option-pills .quick-mini-option{
  height:26px !important;
  min-height:26px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 9px !important;
  margin:0 !important;
  line-height:1 !important;
}
.quick-form-toolbar .d-input{
  width:100% !important;
  margin:0 !important;
}
@media(min-width:1040px){
  .quick-form-toolbar:has(> .quick-option-group:nth-child(3):last-child){
    grid-template-columns:minmax(190px,1fr) minmax(190px,1fr) minmax(230px,1.08fr) !important;
  }
}
@media(min-width:620px) and (max-width:819px){
  .quick-form-toolbar:has(> .quick-option-group:nth-child(3):last-child){
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:619px){
  .quick-option-pills{
    height:auto !important;
    min-height:38px !important;
  }
  .quick-option-pills .quick-mini-option{
    flex:1 1 0 !important;
    height:30px !important;
  }
}

/* v3-39 — padronização definitiva do alinhamento dos títulos dos campos práticos
   Força todos os títulos de campos/opções no Cálculo Prático a nascerem pela esquerda
   do próprio bloco, evitando herança de align-items:center dos fieldsets antigos. */
.quick-form-card .quick-form-toolbar .quick-dim-field,
.quick-form-card .quick-form-toolbar .quick-option-field,
.quick-form-card .quick-form-toolbar .quick-option-field-inline,
.quick-form-card .quick-form-toolbar .quick-option-group{
  text-align:left !important;
  align-items:stretch !important;
}
.quick-form-card .quick-form-toolbar .quick-dim-field > span,
.quick-form-card .quick-form-toolbar .quick-option-title,
.quick-form-card .quick-form-toolbar .quick-option-field > legend,
.quick-form-card .quick-form-toolbar .quick-option-field-inline > legend{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  display:block !important;
  text-align:left !important;
  align-self:stretch !important;
  justify-self:start !important;
  justify-content:flex-start !important;
}
.quick-form-card .quick-form-toolbar .quick-option-pills{
  width:100% !important;
  justify-content:flex-start !important;
  align-self:stretch !important;
}

/* v3-40 — correção de responsividade do Cálculo Prático
   Impede que os grupos de opções, principalmente Espaçamento em paredes,
   ultrapassem o limite do card em larguras intermediárias. */
.quick-form-card .quick-form-toolbar{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}
.quick-form-card .quick-form-toolbar > *{
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
.quick-form-card .quick-option-pills{
  min-width:0 !important;
  max-width:100% !important;
  overflow:visible !important;
}
.quick-form-card .quick-option-pills .quick-mini-option{
  min-width:0 !important;
  flex:0 1 auto !important;
  white-space:nowrap !important;
}

/* Parede: Largura / Altura / Espaçamento em 3 colunas mais flexíveis */
@media(min-width:701px){
  .quick-form-card .quick-form-toolbar:has(> .quick-option-group:nth-child(3):last-child){
    grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) minmax(154px,1fr) !important;
  }
}

/* Tablet / largura reduzida: evita que a terceira coluna estoure o card */
@media(max-width:700px){
  .quick-form-card .quick-form-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .quick-form-card .quick-form-toolbar:has(> .quick-option-group:nth-child(3):last-child) > .quick-option-group{
    grid-column:1 / -1 !important;
  }
  .quick-form-card .quick-option-pills{
    flex-wrap:wrap !important;
    align-content:flex-start !important;
    height:auto !important;
    min-height:36px !important;
  }
}

@media(max-width:480px){
  .quick-form-card .quick-form-toolbar{
    grid-template-columns:1fr !important;
  }
  .quick-form-card .quick-form-toolbar:has(> .quick-option-group:nth-child(3):last-child) > .quick-option-group{
    grid-column:auto !important;
  }
  .quick-form-card .quick-option-pills .quick-mini-option{
    flex:1 1 0 !important;
  }
}

/* v3-41 — Ícones editáveis dos sistemas de parede */
.quick-system-img{
  overflow:hidden;
  position:relative;
}
.quick-system-img.has-custom-img{
  min-height:86px !important;
  height:clamp(72px, 18vw, 126px) !important;
  padding:6px;
  background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(0,255,255,.08));
}
.quick-system-img.has-custom-img img{
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  margin:auto;
}
.sys-item{
  gap:10px;
}
.sys-icon-holder{
  width:58px;
  height:52px;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(0,255,255,.12),rgba(255,255,255,.04));
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  overflow:hidden;
}
.sys-icon-holder img{
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.sys-icon-holder span{
  font-size:11px;
  font-weight:900;
  color:var(--or1);
}
.adm-system-icons-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
  margin-bottom:9px;
}
.adm-system-icon-card{
  background:var(--card2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:14px;
}
.adm-system-icon-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.adm-system-icon-head strong{
  font-size:13px;
}
.adm-system-icon-head span{
  font-size:11px;
  color:var(--or1);
  font-weight:800;
}
.adm-system-icon-preview{
  height:130px;
  border-radius:12px;
  background:var(--bg);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  margin-bottom:10px;
}
.adm-system-icon-preview img{
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.adm-system-icon-empty{
  font-size:12px;
  color:var(--text3);
}
.adm-system-icon-actions{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.adm-system-icon-actions button{
  font-size:11px !important;
  padding:6px 9px !important;
  min-height:34px;
}
.adm-system-icon-upload{
  width:100%;
}
.adm-system-icon-controls{
  display:grid;
  grid-template-columns:44px 44px minmax(96px,1fr);
  gap:7px;
  align-items:center;
}
.adm-system-icon-step{
  width:44px !important;
  min-width:44px !important;
  padding:0 !important;
  font-size:15px !important;
  font-weight:900 !important;
}
.adm-system-icon-remove{
  width:100%;
  text-align:center;
  white-space:nowrap;
}
@media(max-width:560px){
  .quick-system-img.has-custom-img{height:clamp(70px, 34vw, 110px) !important;}
  .sys-icon-holder{width:50px;height:46px;}
  .adm-system-icons-grid{grid-template-columns:1fr;}
  .adm-system-icon-card{padding:12px;}
  .adm-system-icon-controls{grid-template-columns:42px 42px minmax(86px,1fr);gap:6px;}
  .adm-system-icon-step{width:42px !important;min-width:42px !important;}
}

/* v3-60 — UX: imagens dos sistemas ampliadas na Projeto Completo
   Objetivo: tornar a imagem a referência principal de escolha do sistema,
   aproximando a leitura visual do padrão usado na Cálculo Rápido. */
.drawer .sys-list{
  gap:12px !important;
}
.drawer .sys-item{
  min-height:138px !important;
  padding:12px !important;
  gap:14px !important;
  align-items:center !important;
  justify-content:flex-start !important;
}
.drawer .sys-icon-holder{
  width:clamp(128px, 38%, 172px) !important;
  height:112px !important;
  border-radius:16px !important;
  background:
    linear-gradient(135deg, rgba(0,255,255,.14), rgba(255,255,255,.04)),
    rgba(255,255,255,.025) !important;
  border:1px solid rgba(255,255,255,.075) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.045) inset, 0 10px 28px rgba(0,0,0,.14) !important;
}
.drawer .sys-icon-holder img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  padding:5px !important;
}
.drawer .sys-icon-holder + div{
  flex:1 1 auto !important;
  min-width:0 !important;
}
.drawer .sys-code{
  font-size:15px !important;
  line-height:1.2 !important;
}
.drawer .sys-desc{
  font-size:11.5px !important;
  line-height:1.35 !important;
  white-space:normal !important;
}
.drawer .sys-radio{
  margin-left:auto !important;
}
@media(max-width:560px){
  .drawer .sys-item{
    min-height:128px !important;
    gap:10px !important;
  }
  .drawer .sys-icon-holder{
    width:118px !important;
    height:96px !important;
  }
  .drawer .sys-code{font-size:14px !important;}
  .drawer .sys-desc{font-size:11px !important;}
}


/* Correções V3-62: tour responsivo e menu de ajuda */
#modal-tour{z-index:2500;}
#modal-tour .modal-inner{width:min(680px, calc(100vw - 24px));}
.tour-nav{position:relative;background:var(--card);z-index:5;}
.tour-nav .btn-outline,.tour-nav .btn-primary{min-width:116px;justify-content:center;}
.help-dropdown{z-index:3200 !important;}
.main-header,.main-header-inner,.h-actions,.help-wrap{overflow:visible !important;}
@media(max-width:720px){
  #modal-tour .modal-inner{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);}
  .tour-logo-start{min-height:auto;padding:14px;margin-bottom:12px;}
  .tour-logo-start img{height:56px;}
  .tour-slide{padding:22px 18px 14px;max-height:calc(100dvh - 174px);}
  .tour-nav{flex-direction:column;align-items:stretch;gap:12px;padding:12px 16px 16px;}
  .tour-dots{justify-content:center;order:1;}
  .tour-no-show{order:2;justify-content:center;}
  .tour-nav-btns{order:3;display:grid;grid-template-columns:1fr 1fr;width:100%;}
  .tour-nav-btns .btn-primary,.tour-nav-btns .btn-outline{width:100%;}
}
@media(max-width:420px){
  .tour-flow,.tour-grid-4{grid-template-columns:repeat(2,1fr);}
  .tour-form-demo,.tour-pdf-demo{grid-template-columns:1fr;}
  .tour-slide-title{font-size:18px;}
  .tour-slide-desc{font-size:13px;line-height:1.6;}
}

/* v3-63 — Dashboard Admin */
.admin-dashboard-hero{background:linear-gradient(135deg,rgba(0,255,255,.16),rgba(0,50,255,.08) 42%,rgba(255,255,255,.03));border:1px solid rgba(0,255,255,.22);border-radius:22px;padding:18px;margin-bottom:18px;position:relative;overflow:hidden}
.admin-dashboard-hero:after{content:"";position:absolute;right:-60px;top:-70px;width:190px;height:190px;background:radial-gradient(circle,rgba(0,255,255,.22),transparent 62%);pointer-events:none}
.admin-dashboard-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.16em;color:var(--or1);font-weight:900;margin-bottom:6px}
.admin-dashboard-title{font-size:22px;font-weight:900;color:var(--text);line-height:1.15;margin-bottom:6px}
.admin-dashboard-sub{font-size:12px;color:var(--text3);line-height:1.55;max-width:720px}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 16px}
.admin-kpi-card{background:var(--card2);border:1px solid var(--border);border-radius:16px;padding:13px 14px;min-height:98px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 10px 30px rgba(0,0,0,.14)}
.admin-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.admin-kpi-icon{width:32px;height:32px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--or1),var(--or2));box-shadow:0 8px 24px rgba(255,132,0,.22);font-size:15px}
.admin-kpi-label{font-size:11px;color:var(--text3);font-weight:700;line-height:1.25}
.admin-kpi-value{font-size:26px;font-weight:950;color:var(--text);line-height:1;margin-bottom:5px}
.admin-kpi-note{font-size:10.5px;color:var(--text3);line-height:1.35}
.admin-panel-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:12px;margin-bottom:18px}
.admin-panel-card{background:var(--card2);border:1px solid var(--border);border-radius:18px;padding:15px;min-width:0}
.admin-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.admin-panel-title{font-size:14px;font-weight:900;color:var(--text)}
.admin-panel-sub{font-size:11px;color:var(--text3);margin-top:3px;line-height:1.4}
.admin-rank-list{display:flex;flex-direction:column;gap:8px}
.admin-rank-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;background:var(--card3);border:1px solid var(--border);border-radius:13px;padding:9px 10px}
.admin-rank-pos{width:26px;height:26px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(0,255,255,.12);border:1px solid rgba(0,255,255,.20);color:var(--or1);font-size:11px;font-weight:900}
.admin-rank-name{font-size:12px;font-weight:800;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-rank-meta{font-size:10.5px;color:var(--text3);margin-top:2px}
.admin-rank-bar{height:7px;background:rgba(255,255,255,.06);border-radius:99px;margin-top:7px;overflow:hidden}
.admin-rank-fill{height:100%;background:linear-gradient(90deg,var(--or1),var(--or2));border-radius:99px;min-width:4px}
.admin-rank-num{font-size:12px;font-weight:900;color:var(--text2)}
.admin-type-grid{display:grid;grid-template-columns:1fr;gap:8px}
.admin-type-chip{background:var(--card3);border:1px solid var(--border);border-radius:13px;padding:10px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.admin-type-chip strong{font-size:12px;color:var(--text)}
.admin-type-chip span{font-size:11px;color:var(--text3)}
.admin-dashboard-empty{background:var(--card3);border:1px dashed var(--border2);border-radius:14px;padding:16px;text-align:center;color:var(--text3);font-size:12px;line-height:1.5}
@media(max-width:820px){.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-panel-grid{grid-template-columns:1fr}.admin-dashboard-title{font-size:19px}}
@media(max-width:480px){.admin-kpi-grid{grid-template-columns:1fr}.admin-kpi-card{min-height:88px}.admin-dashboard-hero{padding:15px}.admin-rank-row{grid-template-columns:30px 1fr}.admin-rank-num{grid-column:2}.admin-panel-card{padding:12px}}

/* v3-64 — Admin / Gestão de usuários */
.admin-users-intro{background:linear-gradient(135deg,rgba(0,255,255,.10),rgba(255,255,255,.035));border:1px solid rgba(0,255,255,.18);border-radius:18px;padding:14px 16px;margin:0 0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text2);font-size:12px;line-height:1.55}
.admin-users-intro strong{color:var(--text);font-size:13px}.admin-users-intro span{color:var(--text3)}
.admin-users-pill{background:rgba(0,50,255,.14);border:1px solid rgba(0,255,255,.30);color:var(--or1);border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900;white-space:nowrap;text-transform:uppercase;letter-spacing:.08em}
.admin-users-toolbar{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:10px;align-items:center}
.admin-users-table-wrap{background:var(--card2);border:1px solid var(--border);border-radius:18px;overflow:auto;box-shadow:0 10px 30px rgba(0,0,0,.16)}
.admin-users-table{width:100%;border-collapse:separate;border-spacing:0;min-width:820px}.admin-users-table th{font-size:10px;text-transform:uppercase;letter-spacing:.10em;color:var(--text3);font-weight:900;text-align:left;padding:12px 14px;background:rgba(255,255,255,.025);border-bottom:1px solid var(--border)}
.admin-users-table td{padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.055);vertical-align:middle}.admin-users-table tr:last-child td{border-bottom:none}
.admin-user-main{display:flex;align-items:center;gap:10px;min-width:240px}.admin-user-avatar{width:34px;height:34px;border-radius:13px;background:linear-gradient(135deg,var(--or1),var(--or2));display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:950;box-shadow:0 8px 22px rgba(255,132,0,.18)}
.admin-user-name{font-size:13px;color:var(--text);font-weight:850;line-height:1.2}.admin-user-email{font-size:11px;color:var(--text3);margin-top:2px}.admin-user-master{display:inline-block;margin-top:5px;font-size:10px;color:var(--or1);border:1px solid rgba(0,255,255,.30);border-radius:999px;padding:2px 7px;background:rgba(0,255,255,.08);font-weight:850}
.admin-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900}.admin-status.ok{background:rgba(67,209,124,.12);border:1px solid rgba(67,209,124,.30);color:#71e39e}.admin-status.blocked{background:rgba(255,77,77,.12);border:1px solid rgba(255,77,77,.30);color:#ff8585}
.admin-plan-select{background:var(--card3);border:1px solid var(--border);color:var(--text);border-radius:12px;padding:8px 10px;font-size:12px;outline:none;min-width:128px}.admin-plan-select:disabled{opacity:.55;cursor:not-allowed}
.admin-activity{display:flex;flex-direction:column;gap:3px;color:var(--text2);font-size:12px}.admin-activity strong{font-size:12px;color:var(--text);font-weight:800}.admin-activity span{font-size:11px;color:var(--text3)}
.admin-user-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.admin-user-actions button{font-size:11px;padding:7px 9px;border-radius:11px}.admin-user-actions button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){.admin-users-intro{align-items:flex-start;flex-direction:column}.admin-users-toolbar{grid-template-columns:1fr}.admin-users-table{min-width:760px}}

/* v3-65 — Central de mensagens / comunicados */
.admin-msg-hero{background:linear-gradient(135deg,rgba(0,255,255,.14),rgba(0,50,255,.07) 45%,rgba(255,255,255,.035));border:1px solid rgba(0,255,255,.22);border-radius:22px;padding:16px;margin:0 0 14px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;position:relative;overflow:hidden}
.admin-msg-hero:after{content:"";position:absolute;right:-50px;top:-60px;width:170px;height:170px;background:radial-gradient(circle,rgba(0,255,255,.20),transparent 64%);pointer-events:none}
.admin-msg-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.16em;color:var(--or1);font-weight:900;margin-bottom:5px}
.admin-msg-title{font-size:19px;font-weight:900;color:var(--text);line-height:1.2;margin-bottom:5px}
.admin-msg-sub{font-size:12px;color:var(--text3);line-height:1.55;max-width:720px}
.admin-msg-stats{display:grid;grid-template-columns:repeat(3,92px);gap:8px;position:relative;z-index:1}
.admin-msg-stats div{background:rgba(0,0,0,.18);border:1px solid var(--border);border-radius:16px;padding:10px;text-align:center}
.admin-msg-stats strong{display:block;font-size:22px;color:var(--or1);line-height:1;font-weight:900}.admin-msg-stats span{display:block;font-size:10px;color:var(--text3);margin-top:5px;text-transform:uppercase;letter-spacing:.08em}
.admin-msg-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:14px;align-items:start}.admin-msg-card{background:var(--card2);border:1px solid var(--border);border-radius:20px;padding:15px;box-shadow:0 12px 30px rgba(0,0,0,.15)}
.admin-msg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}.admin-msg-actions,.admin-msg-footer{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.admin-msg-history{display:flex;flex-direction:column;gap:9px;margin-top:12px;max-height:500px;overflow:auto;padding-right:2px}.admin-msg-history-item{background:var(--card3);border:1px solid var(--border);border-radius:15px;padding:12px}.admin-msg-history-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:6px}.admin-msg-history-top strong{font-size:13px;color:var(--text);line-height:1.3}.admin-msg-history-text{font-size:12px;color:var(--text2);line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.admin-msg-history-meta{font-size:10px;color:var(--text3);margin-top:7px;line-height:1.4}.admin-msg-history-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:9px}.admin-msg-history-actions .btn-outline,.admin-msg-history-actions .btn-danger{font-size:11px;padding:6px 9px}.msg-tipo-badge.msg-tipo-info{white-space:nowrap}
@media(max-width:900px){.admin-msg-hero,.admin-msg-grid{grid-template-columns:1fr}.admin-msg-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.admin-msg-form-grid,.admin-msg-stats{grid-template-columns:1fr}.admin-msg-title{font-size:17px}.admin-msg-card{padding:12px}}

/* V3-66 — Projetos na Cálculo Rápido */
.quick-project-shell{padding:32px clamp(16px,3vw,42px);max-width:1180px;margin:0 auto;}
.quick-project-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px;padding:22px;border:1px solid rgba(0,255,255,.22);border-radius:24px;background:linear-gradient(135deg,rgba(0,50,255,.18),rgba(18,25,38,.82));box-shadow:0 18px 48px rgba(0,0,0,.24)}
.quick-project-hero h2{margin:4px 0 6px;font-size:clamp(24px,3vw,36px);line-height:1.05;color:var(--text)}
.quick-project-hero p{margin:0;color:var(--text2);max-width:720px;line-height:1.55;font-size:14px}.quick-project-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.quick-project-actions .btn-primary,.quick-project-actions .btn-outline{white-space:nowrap}.quick-project-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.quick-project-metric{padding:16px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.035)}.quick-project-metric b{display:block;font-size:22px;color:var(--text)}.quick-project-metric span{font-size:12px;color:var(--text3)}
.quick-project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.quick-project-toolbar small{color:var(--text3)}.quick-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quick-project-card{position:relative;padding:18px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(180deg,var(--card),var(--card2));box-shadow:0 14px 36px rgba(0,0,0,.20);transition:.18s ease}.quick-project-card:hover{border-color:rgba(0,255,255,.45);transform:translateY(-1px)}.quick-project-card.selected{border-color:var(--brand);box-shadow:0 0 0 1px rgba(0,255,255,.35),0 18px 44px rgba(0,50,255,.18)}.quick-project-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.quick-project-check{width:18px;height:18px;accent-color:var(--brand);margin-top:4px}.quick-project-title{font-size:18px;font-weight:800;color:var(--text);margin-bottom:4px}.quick-project-meta{font-size:12px;color:var(--text3)}.quick-project-badges{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.quick-project-badge{font-size:11px;color:var(--text2);background:rgba(255,255,255,.06);border:1px solid var(--border);padding:5px 8px;border-radius:999px}.quick-project-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.quick-project-card-actions button,.quick-project-mini-btn{border:1px solid var(--border);background:var(--card3);color:var(--text2);border-radius:10px;padding:8px 10px;font-size:12px;cursor:pointer}.quick-project-card-actions button:hover,.quick-project-mini-btn:hover{border-color:var(--border2);color:var(--text)}.quick-project-mini-btn.danger{color:#ff9c9c}.quick-empty-project{padding:34px;border:1px dashed var(--border);border-radius:22px;text-align:center;color:var(--text3);background:rgba(255,255,255,.03)}.quick-empty-project strong{color:var(--text);font-size:16px}.quick-project-detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.quick-project-detail-title h2{margin:4px 0 4px}.quick-project-items{display:flex;flex-direction:column;gap:10px}.quick-project-item{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.035)}.quick-project-item strong{display:block;color:var(--text);font-size:14px}.quick-project-item span{display:block;color:var(--text3);font-size:12px;margin-top:3px}.quick-project-total{margin-top:16px;border:1px solid rgba(0,255,255,.22);border-radius:18px;background:rgba(0,50,255,.10);overflow:hidden}.quick-project-total-row{display:flex;justify-content:space-between;gap:14px;padding:10px 14px;border-top:1px solid rgba(255,255,255,.06);font-size:13px}.quick-project-total-row:first-child{border-top:0}.quick-project-total-row b{color:var(--text)}.quick-project-total-row span{color:var(--text2)}
@media(max-width:820px){.quick-project-hero,.quick-project-detail-top{flex-direction:column}.quick-project-actions{justify-content:flex-start}.quick-project-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-project-grid{grid-template-columns:1fr}.quick-project-item{grid-template-columns:1fr}.quick-project-shell{padding:18px 12px}}

/* Ajuste fino V3-67 — Projetos da Cálculo Rápido mais simples, seguindo a linha da Projeto Completo */
.quick-project-simple.quick-project-shell{padding:32px clamp(14px,3vw,42px);max-width:1120px;margin:0 auto;}
.quick-project-simple .app-topbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 12px;}
.quick-project-simple .app-topbar-title{margin-right:auto;font-weight:800;color:var(--text);font-size:16px;}
.quick-project-simple .quick-project-selection{margin:0 0 14px;}
.quick-project-simple .quick-project-grid{display:flex;flex-direction:column;gap:12px;}
.quick-project-simple .quick-project-card{position:relative;display:block;width:100%;padding:14px 74px 14px 14px;border-radius:14px;background:rgba(18,25,38,.72);border:1px solid rgba(255,255,255,.09);box-shadow:none;transition:border-color .16s ease, background .16s ease;}
.quick-project-simple .quick-project-card:hover{transform:none;border-color:rgba(0,255,255,.45);background:rgba(22,30,45,.86);}
.quick-project-simple .quick-project-card.selected{border-color:var(--brand);box-shadow:0 0 0 1px rgba(0,255,255,.25);}
.quick-project-simple .quick-project-card-head{display:flex;align-items:center;gap:12px;}
.quick-project-simple .quick-project-select{width:24px;height:24px;border-radius:7px;border:1px solid rgba(0,255,255,.55);display:flex;align-items:center;justify-content:center;color:#111;font-weight:900;flex:0 0 auto;cursor:pointer;background:rgba(0,255,255,.06);}
.quick-project-simple .quick-project-select.chk{background:linear-gradient(135deg,#00ffff,#0032ff);color:#111;border-color:#00ffff;}
.quick-project-simple .quick-project-folder{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(0,255,255,.18),rgba(0,50,255,.18));border:1px solid rgba(0,255,255,.45);font-size:18px;flex:0 0 auto;}
.quick-project-simple .quick-project-title{font-size:15px;line-height:1.15;font-weight:900;color:var(--text);margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.quick-project-simple .quick-project-meta{font-size:12px;color:var(--text2);margin:0;}
.quick-project-simple .quick-project-submeta{font-size:11px;color:var(--text3);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.quick-project-simple .quick-project-card-actions{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;gap:8px;margin:0;}
.quick-project-simple .quick-project-mini-btn{width:32px;height:32px;padding:0;border-radius:9px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;color:var(--text2);font-size:13px;}
.quick-project-simple .quick-project-mini-btn:hover{border-color:rgba(0,255,255,.45);color:var(--text);}
.quick-project-simple .quick-project-mini-btn.danger{color:#ff8585;}
.quick-project-simple .quick-empty-project{width:100%;padding:48px 18px;background:rgba(18,25,38,.58);border:1px dashed rgba(0,50,255,.45);border-radius:16px;text-align:center;color:var(--text3);}
.quick-project-simple .quick-empty-project .ico{font-size:36px;opacity:.35;margin-bottom:10px;}
.quick-project-simple .quick-empty-project strong{color:var(--text);}
@media(max-width:720px){
  .quick-project-simple.quick-project-shell{padding:18px 12px;}
  .quick-project-simple .app-topbar{flex-wrap:wrap;}
  .quick-project-simple .app-topbar-title{width:100%;}
  .quick-project-simple .quick-project-card{padding:14px;}
  .quick-project-simple .quick-project-card-actions{position:static;transform:none;margin-top:12px;justify-content:flex-end;}
  .quick-project-simple .quick-project-selection{flex-direction:column;align-items:stretch;}
}


/* v3-68 — Popup de novo projeto prático com identidade visual do app */
.project-branded-drawer{
  max-width:620px;
  padding:28px 28px 30px;
  border:1px solid rgba(0,255,255,.24);
  box-shadow:0 24px 80px rgba(0,0,0,.44);
}
.project-branded-drawer .drawer-handle{display:none;}
.project-modal-brand{
  width:100%;
  border:1px solid rgba(0,255,255,.22);
  background:linear-gradient(180deg,rgba(0,255,255,.06),rgba(0,50,255,.035));
  border-radius:22px;
  padding:18px 20px;
  margin:0 0 20px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.project-modal-brand img{
  max-width:min(430px,100%);
  height:auto;
  display:block;
}
.project-modal-kicker{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:800;
  color:var(--text3);
  margin-bottom:8px;
}
.project-modal-title{
  font-size:23px;
  letter-spacing:-.02em;
  margin-bottom:6px;
}
.project-modal-sub{
  max-width:500px;
  line-height:1.45;
  margin-bottom:22px;
}
.quick-project-create-modal .btn-next{
  margin-top:4px;
}
@media(max-width:560px){
  .project-branded-drawer{padding:22px 16px 24px;}
  .project-modal-brand{padding:14px;border-radius:18px;margin-bottom:16px;}
  .project-modal-title{font-size:20px;}
}

/* V3-69: salvamento automático na cálculo rápido */
.quick-save-status{
  margin:14px 0 0;
  padding:10px 14px;
  border:1px solid rgba(0,255,255,.28);
  background:rgba(0,255,255,.08);
  color:#00ffff;
  border-radius:14px;
  font-size:.88rem;
  font-weight:700;
  text-align:center;
}
.quick-result-secondary-actions .btn-next{min-width:140px;}

/* V3-70: ajustes finos em Projetos da Cálculo Rápido */
.quick-project-create-modal .project-modal-brand,
.quick-project-create-modal .project-modal-sub{display:none !important;}
.quick-project-create-modal{max-width:560px !important;}
.quick-project-create-modal .project-modal-kicker{margin-top:2px;}
.quick-result-secondary-actions{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  justify-content:flex-end !important;
  align-items:center !important;
}
.quick-result-secondary-actions .btn-next,
.quick-result-secondary-actions .quick-link{
  min-height:38px !important;
  height:38px !important;
  padding:0 16px !important;
  border-radius:12px !important;
  white-space:nowrap !important;
  flex:0 1 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.quick-result-secondary-actions .btn-next{min-width:140px !important;}
@media(max-width:640px){
  .quick-result-secondary-actions{flex-wrap:wrap !important;justify-content:stretch !important;}
  .quick-result-secondary-actions .btn-next,
  .quick-result-secondary-actions .quick-link{flex:1 1 100% !important;width:100% !important;}
}
@media(min-width:641px) and (max-width:860px){
  .quick-result-secondary-actions{justify-content:stretch !important;}
  .quick-result-secondary-actions .btn-next,
  .quick-result-secondary-actions .quick-link{flex:1 1 0 !important;min-width:0 !important;}
}

/* V3-71 — ajustes UX da Cálculo Rápido: projeto limpo + sistema clicável */
.quick-project-item-clickable{cursor:pointer;transition:.18s ease;}
.quick-project-item-clickable:hover{border-color:rgba(0,255,255,.48);background:rgba(0,50,255,.10);transform:translateY(-1px);}
.quick-project-item-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.quick-add-system-drawer{max-width:620px;}
.quick-add-system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 14px;}
.quick-add-system-card{border:1px solid var(--border);background:linear-gradient(180deg,var(--card2),var(--card));color:var(--text);border-radius:16px;padding:16px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:7px;min-height:118px;transition:.18s ease;}
.quick-add-system-card:hover{border-color:rgba(0,255,255,.50);transform:translateY(-1px);box-shadow:0 12px 28px rgba(0,0,0,.22);}
.quick-add-system-card span{width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--brand),var(--brand2));box-shadow:0 8px 18px rgba(255,127,0,.20);}
.quick-add-system-card strong{font-size:16px;}
.quick-add-system-card small{color:var(--text3);font-size:12px;line-height:1.35;}
@media(max-width:640px){
  .quick-add-system-grid{grid-template-columns:1fr;}
  .quick-project-item-actions{justify-content:stretch;}
  .quick-project-item-actions .quick-project-mini-btn{flex:1 1 auto;}
}

/* Ajuste Fino V4 - Cálculo Rápido */
.quick-name-field{
  flex-basis: 100%;
  max-width: none;
}
.quick-name-field input{
  width: 100%;
}


/* V5 — remoção definitiva do cabeçalho institucional indevido nos popups/drawers */
.drawer .popup-brand-header,
.drawer .popup-brand,
.drawer .modal-brand-header,
.drawer .drawer-brand-header,
.drawer .project-modal-brand,
.drawer .project-modal-sub,
.modal .popup-brand-header,
.modal .popup-brand,
.modal .modal-brand-header,
.modal .drawer-brand-header,
.modal .project-modal-brand,
.modal .project-modal-sub,
.quick-layout-modal .popup-brand-header,
.quick-layout-modal .modal-brand-header,
.quick-layout-modal .drawer-brand-header,
[data-popup-brand],
[data-modal-brand],
[data-drawer-brand]{display:none !important;}


/* Ajuste V5 — ampliar ícones do popup Adicionar sistema */
#drawer-tipo .sys-item > div:first-child{
  font-size:44px !important;
  line-height:1 !important;
  margin-bottom:10px !important;
}
#drawer-tipo .sys-item{
  min-height:132px !important;
  justify-content:center !important;
  padding:22px 16px !important;
}
#drawer-tipo .sys-code{
  font-size:15px !important;
}
#drawer-tipo .sys-desc{
  font-size:12px !important;
  line-height:1.25 !important;
}
.quick-add-system-card{
  min-height:148px !important;
  padding:20px !important;
  justify-content:center !important;
}
.quick-add-system-card span{
  width:56px !important;
  height:56px !important;
  border-radius:16px !important;
  font-size:30px !important;
  line-height:1 !important;
}
.quick-add-system-card strong{
  font-size:17px !important;
}
.quick-category-grid-page .quick-category{
  min-height:148px !important;
  padding:20px !important;
  justify-content:center !important;
}
.quick-category span{
  font-size:40px !important;
  line-height:1 !important;
}
@media(max-width:560px){
  #drawer-tipo .sys-item{min-height:122px !important;padding:18px 12px !important;}
  #drawer-tipo .sys-item > div:first-child{font-size:40px !important;}
  .quick-add-system-card{min-height:132px !important;}
  .quick-add-system-card span{width:52px !important;height:52px !important;font-size:28px !important;}
}

/* V3-93 — Correção de rolagem nos drawers da Projeto Completo
   A listagem/opções dos sistemas agora rola pelo overlay inteiro, evitando corte em telas menores. */
#drawer-tipo.open,
#drawer-parede.open,
#drawer-teto.open,
#drawer-revestimento.open,
#drawer-forro.open{
  position:fixed !important;
  inset:0 !important;
  align-items:flex-start !important;
  justify-content:center !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch !important;
  padding:20px 12px 32px !important;
}
#drawer-tipo.open > .drawer,
#drawer-parede.open > .drawer,
#drawer-teto.open > .drawer,
#drawer-revestimento.open > .drawer,
#drawer-forro.open > .drawer{
  max-height:none !important;
  overflow:visible !important;
  margin:0 auto !important;
}
@media(max-width:480px){
  #drawer-tipo.open,
  #drawer-parede.open,
  #drawer-teto.open,
  #drawer-revestimento.open,
  #drawer-forro.open{
    padding:10px 8px 24px !important;
  }
}


/* v3-94 — Correção global de rolagem em quantitativos e listas extensas
   - Total Consolidado: lista interna com scroll, sem cortar materiais.
   - Áreas de resultado/listagem: preserva cabeçalho e libera rolagem quando o conteúdo passa da tela.
*/
body.quant-mode #tab-resultado .quant-fixed-info{
  flex:0 1 auto;
  min-height:0;
  overflow:hidden;
}
body.quant-mode #tab-resultado .total-consolidado-card{
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:min(58vh, 560px);
}
body.quant-mode #tab-resultado .total-consolidado-head{
  flex:0 0 auto;
}
body.quant-mode #tab-resultado .total-consolidado-list{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  padding-bottom:14px;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-results-grid{
  min-height:160px;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-results-grid .result-card{
  min-height:0;
}

/* Salvaguardas para telas/listas detalhadas que possam extrapolar a altura visível */
.screen.active .main-body,
.screen.active .main-content,
.screen.active .content-inner,
.screen.active .page-wrap{
  min-height:0;
}
.drawer,
.modal,
.quick-layout-modal,
.p1-grid,
.sys-list,
.results-grid,
.quant-results-grid,
.otim-section{
  overscroll-behavior:contain;
}
@media(max-height:720px){
  body.quant-mode #tab-resultado .total-consolidado-card{
    max-height:calc(100dvh - 210px);
  }
}

/* v3-95 — Quantitativo combinado mais legível
   Mostra o total consolidado e, abaixo de cada material, a contribuição de cada sistema selecionado. */
body.quant-mode #tab-resultado .total-consolidado-card-v95{
  margin-bottom:14px;
  overflow:hidden;
  border:1px solid rgba(0,255,255,.35);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
body.quant-mode #tab-resultado .total-consolidado-card-v95 .qsum-head{
  background:var(--grad);
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
body.quant-mode #tab-resultado .qsum-title{
  font-size:14px;
  font-weight:800;
  color:#fff;
}
body.quant-mode #tab-resultado .qsum-desc{
  font-size:11px;
  color:rgba(255,255,255,.78);
  margin-top:2px;
}
body.quant-mode #tab-resultado .qsum-icon{font-size:22px;}
body.quant-mode #tab-resultado .qsum-list{
  background:var(--card2);
  max-height:min(46vh, 520px);
  overflow-y:auto;
  overflow-x:hidden;
  padding-bottom:10px;
}
body.quant-mode #tab-resultado .qsum-section{border-top:1px solid var(--border);}
body.quant-mode #tab-resultado .qsum-sec-title{
  position:sticky;
  top:0;
  z-index:2;
  padding:8px 16px 7px;
  font-size:10px;
  color:var(--text3);
  letter-spacing:1px;
  text-transform:uppercase;
  font-weight:800;
  background:var(--card3);
}
body.quant-mode #tab-resultado .qsum-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 16px;
  padding:12px 16px;
  border-top:1px solid rgba(255,255,255,.055);
}
body.quant-mode #tab-resultado .qsum-name{
  color:var(--text);
  font-size:13px;
  font-weight:650;
  line-height:1.3;
}
body.quant-mode #tab-resultado .qsum-sub{
  margin-top:3px;
  color:var(--text3);
  font-size:11px;
}
body.quant-mode #tab-resultado .qsum-total{
  text-align:right;
  color:var(--or2);
  white-space:nowrap;
  align-self:start;
}
body.quant-mode #tab-resultado .qsum-total strong{font-size:18px;line-height:1;}
body.quant-mode #tab-resultado .qsum-total span{font-size:10px;color:var(--text3);margin-left:4px;font-weight:500;}
body.quant-mode #tab-resultado .qsum-breakdown{
  grid-column:1 / -1;
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:2px;
}
body.quant-mode #tab-resultado .qsum-system-row{
  display:grid;
  grid-template-columns:minmax(140px,1fr) minmax(90px,.8fr) auto;
  gap:8px;
  align-items:center;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.065);
  background:rgba(255,255,255,.025);
  border-radius:10px;
}
body.quant-mode #tab-resultado .qsum-system-name{
  color:var(--text2);
  font-size:12px;
  font-weight:700;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.quant-mode #tab-resultado .qsum-system-consumo{
  color:var(--text3);
  font-size:11px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.quant-mode #tab-resultado .qsum-system-qty{
  color:var(--or2);
  font-size:12px;
  white-space:nowrap;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-results-grid{
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  gap:12px;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-results-grid .result-card{
  max-height:none;
  overflow:visible;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-results-grid .otim-section{
  flex:none;
  max-height:none;
  overflow:visible;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-results-grid .otim-row{
  min-height:42px;
}
@media(max-width:720px){
  body.quant-mode #tab-resultado .qsum-list{max-height:44vh;}
  body.quant-mode #tab-resultado .qsum-item{grid-template-columns:1fr;}
  body.quant-mode #tab-resultado .qsum-total{text-align:left;}
  body.quant-mode #tab-resultado .qsum-system-row{grid-template-columns:1fr auto;}
  body.quant-mode #tab-resultado .qsum-system-consumo{grid-column:1 / -1;}
}

/* v3-96 — Correção de leitura no quantitativo combinado
   Mantém seleção no topo e coloca total consolidado + sistemas em uma área única de rolagem.
   Remove cortes de linhas e evita listas internas comprimidas. */
body.quant-mode #tab-resultado .quant-page-multi{
  min-height:0 !important;
  overflow:hidden !important;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-fixed-info{
  flex:0 0 auto !important;
  overflow:visible !important;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-combined-scroll{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:0 4px 24px 0 !important;
  display:block !important;
  overscroll-behavior:contain !important;
  scrollbar-width:thin;
}
body.quant-mode #tab-resultado .quant-page-multi .total-consolidado-card,
body.quant-mode #tab-resultado .quant-page-multi .total-consolidado-card-v95{
  max-height:none !important;
  overflow:visible !important;
}
body.quant-mode #tab-resultado .quant-page-multi .total-consolidado-list,
body.quant-mode #tab-resultado .quant-page-multi .qsum-list{
  max-height:none !important;
  overflow:visible !important;
  padding-bottom:8px !important;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-results-grid{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  min-height:0 !important;
  overflow:visible !important;
  padding:0 !important;
}
body.quant-mode #tab-resultado .quant-page-multi .quant-results-grid .result-card{
  display:block !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  margin-bottom:0 !important;
}
body.quant-mode #tab-resultado .quant-page-multi .result-head{
  align-items:flex-start !important;
}
body.quant-mode #tab-resultado .quant-page-multi .otim-section,
body.quant-mode #tab-resultado .quant-page-multi .mat-list{
  display:block !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding-bottom:10px !important;
}
body.quant-mode #tab-resultado .quant-page-multi .otim-row,
body.quant-mode #tab-resultado .quant-page-multi .mat-row{
  min-height:36px !important;
  align-items:flex-start !important;
  overflow:visible !important;
}
body.quant-mode #tab-resultado .quant-page-multi .otim-nm,
body.quant-mode #tab-resultado .quant-page-multi .mat-nm,
body.quant-mode #tab-resultado .quant-page-multi .qsum-name,
body.quant-mode #tab-resultado .quant-page-multi .qsum-system-name,
body.quant-mode #tab-resultado .quant-page-multi .qsum-system-consumo{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  line-height:1.35 !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
}
body.quant-mode #tab-resultado .quant-page-multi .qsum-system-row{
  grid-template-columns:minmax(150px,1.1fr) minmax(120px,.9fr) auto !important;
  align-items:flex-start !important;
}
body.quant-mode #tab-resultado .quant-page-multi .qsum-sec-title{
  position:static !important;
}
@media(max-width:720px){
  body.quant-mode #tab-resultado .quant-page-multi .qsum-item{grid-template-columns:1fr !important;}
  body.quant-mode #tab-resultado .quant-page-multi .qsum-total{text-align:left !important;}
  body.quant-mode #tab-resultado .quant-page-multi .qsum-system-row{grid-template-columns:1fr !important;}
}

/* v3-97 — Nova hierarquia do quantitativo combinado
   Resumo executivo → total consolidado → sistemas selecionados. */
body.quant-mode #tab-resultado .quant-combined-exec{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom:14px;
}
body.quant-mode #tab-resultado .qexec-card{
  border:1px solid rgba(0,255,255,.35);
  background:linear-gradient(180deg, rgba(0,255,255,.10), rgba(255,255,255,.025));
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}
body.quant-mode #tab-resultado .qexec-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px 8px;
}
body.quant-mode #tab-resultado .qexec-kicker{
  color:var(--or2);
  font-size:11px;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
}
body.quant-mode #tab-resultado .qexec-title{
  color:var(--text);
  font-size:18px;
  line-height:1.15;
  font-weight:900;
  margin-top:2px;
}
body.quant-mode #tab-resultado .qexec-note{
  color:var(--text2);
  font-size:12px;
  text-align:right;
  line-height:1.35;
  max-width:360px;
}
body.quant-mode #tab-resultado .qexec-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding:10px 16px 16px;
}
body.quant-mode #tab-resultado .qexec-metric{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:14px;
  padding:12px 12px 10px;
  min-height:82px;
}
body.quant-mode #tab-resultado .qexec-metric span{
  display:block;
  color:var(--text3);
  font-size:10px;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
  margin-bottom:6px;
}
body.quant-mode #tab-resultado .qexec-metric strong{
  display:block;
  color:var(--text);
  font-size:21px;
  line-height:1.05;
  font-weight:900;
}
body.quant-mode #tab-resultado .qexec-metric small{
  display:block;
  color:var(--text3);
  font-size:11px;
  margin-top:6px;
  line-height:1.25;
}
body.quant-mode #tab-resultado .total-consolidado-card-v97 .qsum-list{
  background:var(--card2);
}
body.quant-mode #tab-resultado .qsum-item-v97{
  padding-top:13px !important;
  padding-bottom:13px !important;
}
body.quant-mode #tab-resultado .qsum-breakdown-details{
  grid-column:1 / -1;
  margin-top:2px;
}
body.quant-mode #tab-resultado .qsum-breakdown-details summary{
  cursor:pointer;
  width:max-content;
  max-width:100%;
  color:var(--or2);
  font-size:11px;
  font-weight:800;
  padding:6px 9px;
  border:1px solid rgba(0,255,255,.28);
  border-radius:999px;
  background:rgba(0,255,255,.07);
  list-style:none;
}
body.quant-mode #tab-resultado .qsum-breakdown-details summary::-webkit-details-marker{display:none;}
body.quant-mode #tab-resultado .qsum-breakdown-details[open] summary{
  margin-bottom:6px;
}
body.quant-mode #tab-resultado .qsystems-block{
  margin:8px 0 10px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:14px;
}
body.quant-mode #tab-resultado .qsystems-title{
  color:var(--text);
  font-size:15px;
  font-weight:900;
}
body.quant-mode #tab-resultado .qsystems-sub{
  color:var(--text3);
  font-size:12px;
  margin-top:3px;
}
@media(max-width:860px){
  body.quant-mode #tab-resultado .qexec-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.quant-mode #tab-resultado .qexec-head{flex-direction:column;}
  body.quant-mode #tab-resultado .qexec-note{text-align:left;max-width:none;}
}
@media(max-width:520px){
  body.quant-mode #tab-resultado .qexec-grid{grid-template-columns:1fr;}
}

/* Ajuste v3-98 — cabeçalho hierárquico do cálculo salvo na cálculo rápido */
.quick-saved-calc-head{min-width:0;display:flex;flex-direction:column;gap:4px;}
.quick-saved-calc-label{font-size:12px;line-height:1;text-transform:uppercase;letter-spacing:.12em;color:var(--text3);font-weight:800;}
.quick-saved-calc-name{margin:0 !important;font-size:22px !important;line-height:1.18 !important;color:var(--text) !important;font-weight:900 !important;letter-spacing:-.02em;}
.quick-saved-calc-system{font-size:15px;line-height:1.25;color:var(--text2);font-weight:700;}
.quick-saved-calc-meta{font-size:13px;line-height:1.25;color:var(--or1);font-weight:800;}
.quick-result-top-clean{border-bottom:1px solid var(--border);padding-bottom:12px;}
@media(max-width:620px){.quick-saved-calc-name{font-size:18px !important}.quick-saved-calc-system{font-size:14px}.quick-saved-calc-meta{font-size:12px}.quick-head{align-items:flex-start !important;}}

/* ══ ADMIN SHELL v4-8 ══ */
.adm-shell{display:grid;grid-template-columns:180px 1fr;height:100%;min-height:0;}
.adm-nav{background:var(--bg3);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:12px 8px;gap:4px;overflow-y:auto;}
.adm-nav-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--radius-sm);cursor:pointer;font-size:13px;color:var(--text2);transition:.15s;position:relative;user-select:none;}
.adm-nav-item:hover{background:var(--card2);color:var(--text);}
.adm-nav-item.active{background:linear-gradient(135deg,rgba(0,255,255,.18),rgba(0,50,255,.12));color:var(--or1);font-weight:700;border:1px solid var(--border2);}
.adm-nav-ico{font-size:16px;flex-shrink:0;}.adm-nav-lbl{flex:1;min-width:0;}
.adm-nav-badge{position:absolute;top:6px;right:8px;min-width:16px;height:16px;background:var(--red,#ff5555);border-radius:99px;font-size:9px;font-weight:700;color:#fff;display:flex;align-items:center;justify-content:center;padding:0 4px;}
.adm-content{overflow-y:auto;padding:22px 26px 32px;min-height:0;}
.adm-section-title{font-size:18px;font-weight:700;color:var(--text);margin-bottom:4px;}
.adm-section-sub{font-size:12px;color:var(--text3);line-height:1.5;margin-bottom:18px;}
.adm-card{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;margin-bottom:12px;}
.adm-card-title{font-size:13px;font-weight:700;color:var(--text);margin-bottom:10px;}.adm-card-sub{font-size:11px;color:var(--text3);margin-bottom:10px;line-height:1.5;}
.adm-field-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:9px;}.adm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;}
.adm-master-row{display:flex;align-items:center;justify-content:space-between;background:var(--card3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;margin-bottom:8px;gap:10px;flex-wrap:wrap;}
.adm-master-info{flex:1;min-width:0;}.adm-master-email{font-size:13px;font-weight:700;color:var(--text);word-break:break-all;}.adm-master-label{font-size:11px;color:var(--text3);margin-top:2px;}
@media(max-width:680px){.adm-shell{grid-template-columns:1fr;grid-template-rows:auto 1fr;}.adm-nav{flex-direction:row;border-right:none;border-bottom:1px solid var(--border);padding:8px;overflow-x:auto;overflow-y:hidden;gap:4px;}.adm-nav-item{flex-direction:column;padding:7px 10px;font-size:11px;min-width:60px;text-align:center;gap:4px;}.adm-nav-ico{font-size:18px;}.adm-content{padding:16px;}.adm-field-row{grid-template-columns:1fr;}}


/* ══ Projeto Completo v4-11 — redução cognitiva visível ══ */
.pc11-shell{display:flex;flex-direction:column;gap:14px;}
.pc11-hero{border:1px solid rgba(0,255,255,.26);background:linear-gradient(135deg,rgba(0,255,255,.13),rgba(255,255,255,.035) 48%,rgba(0,0,0,.08));border-radius:22px;padding:16px;box-shadow:0 14px 40px rgba(0,0,0,.18);}
.pc11-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--text3);font-size:12px;font-weight:700;margin-bottom:12px;}
.pc11-breadcrumb span{color:var(--text2)}.pc11-breadcrumb strong{color:var(--or1)}
.pc11-hero-main{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;}
.pc11-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:var(--or1);font-weight:900;margin-bottom:4px;}
.pc11-title{font-size:25px;line-height:1.1;font-weight:950;color:var(--text);letter-spacing:-.03em;}
.pc11-sub{font-size:13px;color:var(--text3);line-height:1.45;margin-top:6px;max-width:720px;}
.pc11-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.pc11-stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:16px;}
.pc11-step{border:1px solid var(--border);background:rgba(255,255,255,.035);border-radius:14px;padding:9px 10px;min-width:0;position:relative;overflow:hidden;}
.pc11-step.done{border-color:rgba(70,210,140,.28);background:rgba(70,210,140,.08)}
.pc11-step.active{border-color:rgba(0,255,255,.48);background:rgba(0,255,255,.12);box-shadow:inset 0 0 0 1px rgba(0,255,255,.08)}
.pc11-step-num{font-size:11px;color:var(--text3);font-weight:800}.pc11-step-label{display:block;margin-top:2px;color:var(--text);font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc11-step.active .pc11-step-label{color:var(--or1)}
.pc11-progress{height:7px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden;margin-top:12px;}.pc11-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--or1),#0032ff);border-radius:999px;}
.pc11-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px;}
.pc11-metric{border:1px solid var(--border);background:rgba(0,0,0,.12);border-radius:16px;padding:12px;}.pc11-metric small{display:block;color:var(--text3);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.pc11-metric strong{display:block;color:var(--text);font-size:20px;line-height:1.1;margin-top:4px}.pc11-metric em{font-style:normal;color:var(--or1);font-size:12px;font-weight:800;}
.pc11-workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;align-items:start;}.pc11-workspace-single{grid-template-columns:1fr;}.pc11-main-panel,.pc11-aside{border:1px solid var(--border);background:var(--card2);border-radius:20px;padding:14px;}.pc11-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px;}.pc11-panel-title{font-size:16px;color:var(--text);font-weight:950}.pc11-panel-sub{font-size:12px;color:var(--text3);margin-top:3px;line-height:1.4}.pc11-aside{position:sticky;top:12px;}.pc11-aside-title{font-size:13px;color:var(--text);font-weight:950;margin-bottom:10px}.pc11-aside-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(255,255,255,.07);padding:8px 0;font-size:12px}.pc11-aside-row span{color:var(--text3)}.pc11-aside-row strong{color:var(--text);text-align:right}.pc11-next{margin-top:12px;border:1px solid rgba(0,255,255,.25);background:rgba(0,255,255,.08);border-radius:14px;padding:10px;color:var(--text2);font-size:12px;line-height:1.4}.pc11-next strong{color:var(--or1)}
.pc11-disclosure{border:1px solid var(--border);background:rgba(255,255,255,.025);border-radius:16px;margin-top:10px;overflow:hidden}.pc11-disclosure summary{cursor:pointer;list-style:none;padding:11px 13px;color:var(--text);font-size:13px;font-weight:900;display:flex;justify-content:space-between;align-items:center}.pc11-disclosure summary::-webkit-details-marker{display:none}.pc11-disclosure summary:after{content:'▾';color:var(--or1);font-size:12px}.pc11-disclosure[open] summary:after{content:'▴'}.pc11-disclosure-body{padding:0 13px 13px;color:var(--text3);font-size:12px;line-height:1.5}.pc11-empty-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px dashed rgba(0,255,255,.32);background:rgba(0,255,255,.06);border-radius:18px;padding:16px;margin-top:8px}.pc11-empty-cta strong{color:var(--text)}.pc11-empty-cta span{display:block;color:var(--text3);font-size:12px;margin-top:3px;line-height:1.4}
.pc11-compact-list{display:flex;flex-direction:column;gap:8px}.pc11-compact-list .p1-system-row{background:rgba(0,0,0,.10);border-radius:15px;border:1px solid rgba(255,255,255,.07)}
@media(max-width:920px){.pc11-workspace{grid-template-columns:1fr}.pc11-aside{position:relative;top:auto;order:-1}.pc11-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pc11-stepper{grid-template-columns:1fr;}.pc11-step{display:flex;align-items:center;gap:8px}.pc11-step-label{margin-top:0}.pc11-hero-main{flex-direction:column}.pc11-actions{justify-content:flex-start}}
@media(max-width:560px){.pc11-title{font-size:21px}.pc11-summary-grid{grid-template-columns:1fr}.pc11-empty-cta{flex-direction:column;align-items:flex-start}.pc11-hero{padding:13px}.pc11-main-panel,.pc11-aside{padding:12px;border-radius:16px}}

/* Ajuste v4-16 — Configuração clicável de recursos por plano */
.admin-plan-config{margin:0 0 18px 0;border:1px solid rgba(0,255,255,.25);background:linear-gradient(180deg,rgba(0,255,255,.06),rgba(255,255,255,.02));border-radius:18px;padding:16px;box-shadow:0 18px 45px rgba(0,0,0,.12)}
.admin-plan-config-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.admin-plan-config-head strong{display:block;color:var(--text);font-size:15px;margin-bottom:4px}
.admin-plan-config-head span{display:block;color:var(--text3);font-size:12px;line-height:1.45;max-width:820px}
.admin-plan-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.admin-plan-block{border:1px solid var(--border);background:rgba(255,255,255,.035);border-radius:16px;padding:14px;min-width:0}
.admin-plan-block h4{margin:0 0 12px;color:var(--text);font-size:13px;letter-spacing:.02em}
.admin-plan-block p{margin:-4px 0 12px;color:var(--text3);font-size:12px;line-height:1.4}
.admin-plan-check,.admin-plan-num{display:flex;gap:10px;align-items:flex-start;border:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.10);border-radius:12px;padding:10px;margin:8px 0;cursor:pointer}
.admin-plan-check input{margin-top:3px;accent-color:var(--or1)}
.admin-plan-check span,.admin-plan-num span{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.admin-plan-check strong,.admin-plan-num strong{font-size:12.5px;color:var(--text);font-weight:800}
.admin-plan-check small,.admin-plan-num small{font-size:11px;color:var(--text3);line-height:1.35}
.admin-plan-num{align-items:center;cursor:default}
.admin-plan-num input{width:86px;border:1px solid var(--border);border-radius:10px;background:var(--bg2);color:var(--text);padding:9px 10px;font-weight:800;text-align:center}
.admin-plan-systems{margin-top:0}
.admin-plan-systems-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-plan-system-card{border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.10);border-radius:14px;padding:12px}
.admin-plan-system-head{display:flex;align-items:center;gap:9px;margin-bottom:10px;cursor:pointer;color:var(--text)}
.admin-plan-system-head input,.admin-plan-system-list input{accent-color:var(--or1)}
.admin-plan-system-list{display:flex;flex-direction:column;gap:7px}
.admin-plan-system-list label{display:flex;gap:8px;align-items:flex-start;font-size:11.5px;color:var(--text2);line-height:1.25;cursor:pointer}
.admin-plan-system-list input:disabled+span{opacity:.45}
@media(max-width:980px){.admin-plan-config-grid,.admin-plan-systems-grid{grid-template-columns:1fr}.admin-plan-config-head{flex-direction:column}.admin-plan-num input{width:76px}}

/* V4-18 — Itens bloqueados por plano visíveis, porém desabilitados */
.plan-disabled,
.sys-item.plan-disabled,
.quick-category.plan-disabled,
.quick-system-card.plan-disabled{
  opacity:.42;
  filter:grayscale(.35);
  cursor:not-allowed!important;
  position:relative;
  border-style:dashed!important;
}
.plan-disabled .sys-radio{opacity:.35;}
.plan-lock-badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:7px;
  width:max-content;
  max-width:100%;
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px 8px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.01em;
  color:var(--text3);
  background:rgba(255,255,255,.04);
}
.quick-category.plan-disabled:after,
.quick-system-card.plan-disabled:after,
.sys-item.plan-disabled:after{
  content:'Desabilitado';
  position:absolute;
  right:10px;
  top:10px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px 7px;
  font-size:9px;
  font-weight:800;
  color:var(--text3);
  background:rgba(0,0,0,.10);
}

/* V4-19 — Teste PRO temporário por usuário */
.admin-trial-status{margin-top:6px;font-size:11px;line-height:1.25;color:var(--text3);font-weight:700;max-width:190px;}
.admin-trial-status.active{display:inline-block;border-radius:999px;padding:4px 8px;background:rgba(29,158,117,.12);color:var(--green,#1D9E75);border:1px solid rgba(29,158,117,.28);}
.admin-users-table .admin-user-actions{gap:6px;flex-wrap:wrap;max-width:430px;}
.admin-users-table .admin-user-actions button{white-space:nowrap;}

/* V4-21 — Sistemas Construtivos bloqueados por plano */
.tech-card-dyn.plan-disabled,
.tech-card-dyn.tech-plan-disabled{
  opacity:.46;
  filter:grayscale(.4);
  cursor:not-allowed;
  border-style:dashed!important;
}
.tech-card-dyn.plan-disabled .tech-mini-btn,
.tech-card-dyn.tech-plan-disabled .tech-mini-btn{
  cursor:not-allowed;
}
.tech-card-dyn.plan-disabled:after,
.tech-card-dyn.tech-plan-disabled:after{
  content:'Desabilitado';
  position:absolute;
  right:10px;
  top:10px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px 7px;
  font-size:9px;
  font-weight:800;
  color:var(--text3);
  background:rgba(0,0,0,.10);
}
.admin-plan-systems-manager{margin-top:16px;}
.admin-plan-systems-grid-wide{grid-template-columns:repeat(4,minmax(0,1fr));}
.admin-plan-system-option.is-on span{color:var(--text);font-weight:800;}
.admin-plan-system-option.is-off span{opacity:.7;}
@media(max-width:980px){.admin-plan-systems-grid-wide{grid-template-columns:1fr;}}

/* ═══════════════════════════════════════════════════════════
   PWA / APP MOBILE — Otimizza Calc
════════════════════════════════════════════════════════════ */
html {
  min-height: 100%;
  background: #0f172a;
}
body {
  min-height: 100%;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
button, .h-btn, .card, .quick-card, .project-card, .system-card {
  touch-action: manipulation;
}
input, select, textarea {
  font-size: 16px;
}
.pwa-install-btn {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 9999;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 14px 40px rgba(13, 148, 136, .32);
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.pwa-install-btn.is-visible { display: inline-flex; }
.pwa-install-btn .pwa-install-icon { font-size: 16px; line-height: 1; }
.pwa-update-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10000;
  width: min(420px, calc(100% - 32px));
  background: rgba(15, 23, 42, .96);
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 12px;
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.pwa-update-toast.is-visible { display: flex; }
.pwa-update-toast button {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: #0d9488;
  color: #fff;
  font-weight: 800;
}
@media (display-mode: standalone) {
  .pwa-install-btn { display: none !important; }
}
@media (max-width: 640px) {
  .pwa-install-btn {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 10px 13px;
  }
}

/* v4-28 — ajustes mobile solicitados no Correcoes.pdf */
html, body, .app{
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
  touch-action:manipulation;
}
.screen.active{height:100dvh;min-height:0;overflow:hidden;}
.main-body{min-height:0;overflow:hidden;}
.main-content{
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
  padding-bottom:calc(96px + env(safe-area-inset-bottom)) !important;
  scroll-padding-bottom:120px;
}
.content-inner,.page-wrap,.quick-page,.quick-panel,#tab-inicio,#tab-pratico,#tab-projetos,#tab-sistemas,#tab-resultado{
  min-height:0;
}
input, textarea, select, .field-input, .quick-input{
  font-size:16px !important;
}

/* Logos padronizadas */
.home-brand-logo img{
  width:420px !important;
  height:auto !important;
  max-width:calc(100vw - 32px) !important;
}
#h-logo-custom-wrap img{
  height:38px !important;
  width:auto !important;
  max-width:240px !important;
}
.tour-logo-start img,
#tour-hero-img{
  width:360px !important;
  height:auto !important;
  max-width:calc(100vw - 56px) !important;
}

/* Tour guiado sempre centralizado e com rolagem interna adequada */
#modal-tour.modal-bg,
#modal-tour{
  align-items:center !important;
  justify-content:center !important;
  padding:12px !important;
}
#modal-tour .modal-inner{
  margin:auto !important;
  max-height:calc(100dvh - 24px) !important;
  overflow:hidden !important;
}
#modal-tour .tour-slides{min-height:0;overflow:hidden;}
#modal-tour .tour-slide{
  max-height:calc(100dvh - 150px) !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
}

/* Home: cards de métricas mais profissionais e equilibrados */
#inicio-metrics-v47{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}
#inicio-metrics-v47 > div{
  min-height:92px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-radius:16px !important;
}

/* Cards de escolha com imagens maiores e hierarquia melhor */
.quick-system-card{
  min-height:190px !important;
  gap:10px !important;
  justify-content:flex-start !important;
}
.quick-system-img{
  width:100% !important;
  min-height:108px !important;
  height:118px !important;
  border-radius:14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  overflow:hidden;
}
.quick-system-img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  padding:4px !important;
}
.quick-system-card strong{
  font-size:17px !important;
  line-height:1.15 !important;
}
.quick-system-card span{
  font-size:13px !important;
  color:var(--text2) !important;
  line-height:1.3 !important;
}
.quick-system-card small:empty{display:none !important;}

/* Modais/drawers em mobile com área útil e botões acessíveis */
.modal-bg{align-items:center !important;justify-content:center !important;}
.modal,.drawer,.modal-card,.quick-layout-modal{
  max-height:calc(100dvh - 24px) !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
}
.drawer-backdrop,.modal-backdrop,.modal-bg{overscroll-behavior:contain;}

@media(max-width:620px){
  .main-header-inner{padding:8px 12px !important;}
  #h-logo-custom-wrap img{height:38px !important;max-width:178px !important;}
  .home-brand-logo{margin:4px auto 18px !important;}
  .home-brand-logo img{width:420px !important;max-width:calc(100vw - 28px) !important;}
  #inicio-actions-v47{grid-template-columns:1fr !important;gap:10px !important;}
  #inicio-metrics-v47{grid-template-columns:1fr 1fr !important;gap:10px !important;}
  #inicio-metrics-v47 > div{padding:14px !important;min-height:86px;}
  #inicio-metrics-v47 strong{font-size:24px !important;}
  .quick-system-grid-page{grid-template-columns:1fr !important;gap:12px !important;}
  .quick-system-card{min-height:184px !important;padding:14px !important;}
  .quick-system-img{height:116px !important;min-height:116px !important;}
  #modal-tour .modal-inner{width:calc(100vw - 24px) !important;max-height:calc(100dvh - 24px) !important;}
  #modal-tour .tour-slide{max-height:calc(100dvh - 174px) !important;}
  #modal-tour .tour-nav{padding:12px 14px 14px !important;}
}

@media(max-width:380px){
  #h-logo-custom-wrap img{max-width:150px !important;}
  #inicio-metrics-v47{grid-template-columns:1fr !important;}
}

/* v4-29 — Tour em modo touch/swipe */
#modal-tour .tour-slides{
  touch-action:pan-y;
  user-select:none;
}
#modal-tour .tour-slide{
  overscroll-behavior:contain;
}
#modal-tour .tour-nav{
  gap:10px;
}
@media(max-width:620px){
  #modal-tour .tour-nav{
    flex-direction:column;
    align-items:center;
  }
  #modal-tour .tour-no-show{
    order:3;
    margin-top:2px;
  }
  #modal-tour .tour-dots{
    order:1;
  }
  #modal-tour .tour-nav-btns{
    order:2;
    width:100%;
    justify-content:space-between;
  }
  #tour-prev-btn,#tour-next-btn{
    min-width:120px;
  }
}


/* v4-30 — Correções prioridade 1: Home, Projeto Completo, zoom, scroll e Tour */
html, body{
  width:100%;
  min-height:100%;
  height:100%;
  overflow:hidden !important;
}
.app{
  height:100dvh !important;
  min-height:100dvh !important;
  overflow:hidden !important;
}
.screen.active{
  height:100dvh !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.main-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.main-content{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
  overscroll-behavior:contain !important;
  padding-bottom:calc(112px + env(safe-area-inset-bottom)) !important;
}
.content-inner,
#tab-inicio,#tab-pratico,#tab-projetos,#tab-sistemas,#tab-resultado,
.quick-page,.quick-shell,.p1-wrap,.p1-grid,.p1-list-mode{
  min-height:0 !important;
}

/* Garante interação com campos do Projeto Completo e demais formulários */
input, textarea, select, button,
.d-input,.field-input,.quick-input,.measure-input,
[contenteditable="true"]{
  pointer-events:auto !important;
  user-select:text;
  -webkit-user-select:text;
  touch-action:auto !important;
  font-size:16px !important;
}
button, .btn-primary, .btn-outline, .btn-next, .h-btn, .p1-mini-btn, .p1-card, .p1-system-row{
  user-select:none;
  -webkit-user-select:none;
  touch-action:manipulation !important;
}
.modal-bg:not(.open), .drawer-bg:not(.open), .drawer-backdrop:not(.open){
  display:none !important;
  pointer-events:none !important;
}
.modal-bg.open, .drawer-bg.open, .drawer-backdrop.open{
  pointer-events:auto !important;
}

/* Logo Home: horizontal, 420px, sem herdar altura da versão vertical */
.home-brand-logo{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  margin:6px auto 22px !important;
  padding:6px 0 0 !important;
}
.home-brand-logo img{
  content:url('../assets/logo-otimizza-calc-horizontal.png');
  width:420px !important;
  height:auto !important;
  max-width:calc(100vw - 32px) !important;
  max-height:none !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:0 !important;
}
#h-logo-custom-wrap img{
  content:url('../assets/logo-otimizza-calc-horizontal.png');
  height:38px !important;
  width:auto !important;
  max-width:240px !important;
  object-fit:contain !important;
  border-radius:0 !important;
}

/* Tour centralizado, com rolagem interna e logo horizontal em px */
#modal-tour.modal-bg{
  position:absolute !important;
  inset:0 !important;
  display:none;
  align-items:center !important;
  justify-content:center !important;
  padding:12px !important;
  overflow:hidden !important;
}
#modal-tour.modal-bg.open{display:flex !important;}
#modal-tour .modal-inner{
  margin:auto !important;
  width:min(680px, calc(100vw - 24px)) !important;
  max-height:calc(100dvh - 24px) !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
#modal-tour .tour-slides{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:hidden !important;
  touch-action:pan-y !important;
}
#modal-tour .tour-slide{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:calc(100dvh - 168px) !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
}
#tour-hero-img,
.tour-logo-start img{
  content:url('../assets/logo-otimizza-calc-horizontal.png');
  width:360px !important;
  height:auto !important;
  max-width:calc(100vw - 56px) !important;
  max-height:none !important;
  object-fit:contain !important;
  border-radius:0 !important;
}
@media(max-width:620px){
  .home-brand-logo img{width:420px !important;max-width:calc(100vw - 28px) !important;}
  #h-logo-custom-wrap img{height:38px !important;max-width:178px !important;}
  #modal-tour .modal-inner{width:calc(100vw - 24px) !important;max-height:calc(100dvh - 24px) !important;}
  #modal-tour .tour-slide{max-height:calc(100dvh - 188px) !important;}
}

/* V4-31 — Prioridade 2: cards, ícones e hierarquia visual */
#drawer-tipo .drawer > div[style*="grid-template-columns"]{
  gap:14px !important;
  margin-top:8px !important;
}
#drawer-tipo .sys-item{
  min-height:172px !important;
  padding:24px 18px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:8px !important;
  border-radius:20px !important;
}
#drawer-tipo .sys-item > div:first-child{
  font-size:64px !important;
  line-height:1 !important;
  margin:0 0 8px !important;
  width:86px !important;
  height:86px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:22px !important;
  background:linear-gradient(135deg,rgba(0,255,255,.18),rgba(255,255,255,.05)) !important;
}
#drawer-tipo .sys-code{
  font-size:18px !important;
  font-weight:850 !important;
  letter-spacing:-.01em !important;
}
#drawer-tipo .sys-desc{
  max-width:190px !important;
  font-size:12.5px !important;
  line-height:1.3 !important;
  color:var(--text3) !important;
}

.quick-category-grid-page,
.quick-system-grid-page{
  gap:16px !important;
}
.quick-category-grid-page{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr)) !important;
}
.quick-category-grid-page .quick-category{
  min-height:178px !important;
  padding:24px 20px !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:10px !important;
  border-radius:22px !important;
}
.quick-category-grid-page .quick-category span{
  width:84px !important;
  height:84px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 auto 4px !important;
  border-radius:22px !important;
  background:linear-gradient(135deg,rgba(0,255,255,.18),rgba(255,255,255,.05)) !important;
  font-size:58px !important;
  line-height:1 !important;
}
.quick-category-grid-page .quick-category strong{
  font-size:18px !important;
  font-weight:850 !important;
}
.quick-category-grid-page .quick-category small{
  max-width:210px !important;
  font-size:12.5px !important;
  line-height:1.35 !important;
}

.quick-system-grid-page{
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr)) !important;
}
.quick-system-card{
  min-height:246px !important;
  padding:16px !important;
  gap:10px !important;
  align-items:stretch !important;
  border-radius:22px !important;
}
.quick-system-img{
  height:152px !important;
  min-height:152px !important;
  border-radius:18px !important;
  margin-bottom:4px !important;
}
.quick-system-img.has-custom-img img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  padding:2px !important;
}
.quick-system-card strong{
  font-size:18px !important;
  line-height:1.15 !important;
  font-weight:850 !important;
  letter-spacing:-.02em !important;
}
.quick-system-card span{
  font-size:13.5px !important;
  line-height:1.3 !important;
  color:rgba(255,255,255,.62) !important;
}
.quick-system-card small{
  font-size:11.5px !important;
  line-height:1.25 !important;
}

#drawer-parede .sys-list .sys-item{
  min-height:76px !important;
  padding:16px !important;
  align-items:center !important;
  border-radius:16px !important;
}
#drawer-parede .sys-list .sys-code{
  font-size:17px !important;
  font-weight:850 !important;
  line-height:1.15 !important;
}
#drawer-parede .sys-list .sys-desc{
  margin-top:4px !important;
  font-size:13px !important;
  line-height:1.3 !important;
  color:var(--text3) !important;
}

@media(max-width:620px){
  #drawer-tipo .drawer > div[style*="grid-template-columns"]{grid-template-columns:1fr 1fr !important;gap:12px !important;}
  #drawer-tipo .sys-item{min-height:158px !important;padding:20px 12px !important;}
  #drawer-tipo .sys-item > div:first-child{width:74px !important;height:74px !important;font-size:54px !important;}
  .quick-category-grid-page{grid-template-columns:1fr 1fr !important;gap:12px !important;}
  .quick-category-grid-page .quick-category{min-height:158px !important;padding:18px 12px !important;}
  .quick-category-grid-page .quick-category span{width:72px !important;height:72px !important;font-size:50px !important;}
  .quick-system-grid-page{grid-template-columns:1fr !important;gap:14px !important;}
  .quick-system-card{min-height:244px !important;padding:14px !important;}
  .quick-system-img{height:158px !important;min-height:158px !important;}
}

/* V4-32 — Prioridade 3: refinamento UX/UI mobile sem alterar regras de cálculo */
:root{
  --tap-min:44px;
}

/* Base de toque e leitura */
button,
[role="button"],
.h-btn,
.btn-primary,
.btn-outline,
.btn-next,
.drawer-cancel,
.tog,
.sys-item,
.quick-category,
.quick-system-card,
.card,
.project-card,
.quick-project-item,
.modal-proj-item{
  min-height:var(--tap-min);
  -webkit-tap-highlight-color:rgba(0,255,255,.18);
}
button:disabled,
.btn-next:disabled,
.btn-primary:disabled,
.btn-outline:disabled{
  opacity:.45 !important;
  cursor:not-allowed !important;
  filter:saturate(.65) !important;
}

/* Modais e drawers: centro, scroll interno e rodapé utilizável no celular */
.modal-bg.open,
.drawer-bg.open{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:14px !important;
  overflow:hidden !important;
  overscroll-behavior:contain !important;
}
.modal,
.drawer{
  width:min(720px, calc(100vw - 28px)) !important;
  max-height:calc(100dvh - 28px) !important;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch !important;
  border-radius:24px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.48) !important;
  overscroll-behavior:contain !important;
  scrollbar-width:thin !important;
}
.drawer{
  padding:22px !important;
}
.modal{
  padding:22px !important;
}
.drawer-title,
.modal-title{
  font-size:20px !important;
  line-height:1.18 !important;
  letter-spacing:-.02em !important;
  margin-bottom:6px !important;
}
.drawer-sub,
.modal-sub{
  font-size:13.5px !important;
  line-height:1.45 !important;
  margin-bottom:18px !important;
}
.drawer-close-x{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:var(--text2) !important;
  font-size:24px !important;
  line-height:1 !important;
}
.drawer-close-x:hover,
.drawer-close-x:focus-visible{
  background:rgba(255,60,60,.14) !important;
  color:#fff !important;
  border-color:rgba(255,60,60,.32) !important;
}

/* Botões: padrão SaaS mais consistente */
.btn-next,
.btn-primary,
.login-btn,
.google-btn{
  min-height:46px !important;
  border-radius:14px !important;
  font-weight:800 !important;
  letter-spacing:-.01em !important;
  box-shadow:0 10px 26px rgba(0,50,255,.16) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
}
.btn-outline,
.drawer-cancel,
.quick-link,
.p1-mini-btn{
  min-height:44px !important;
  border-radius:14px !important;
  font-weight:700 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
}
.btn-next:active,
.btn-primary:active,
.btn-outline:active,
.drawer-cancel:active,
.h-btn:active{
  transform:translateY(1px) scale(.99) !important;
}
.btn-next,
.drawer-cancel{
  width:100% !important;
}

/* Formulários: campos maiores, labels e foco mais visíveis */
input,
select,
textarea,
.d-input,
.field-input,
.quick-input,
.measure-input{
  font-size:16px !important;
  line-height:1.25 !important;
}
.d-input,
.field-input,
.quick-input,
.measure-input,
.input-unit{
  min-height:48px !important;
  border-radius:14px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.045) !important;
  color:var(--text) !important;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}
textarea.field-input,
.report-textarea{
  min-height:110px !important;
  resize:vertical !important;
}
.d-input:focus,
.field-input:focus,
.quick-input:focus,
.measure-input:focus,
select:focus,
textarea:focus{
  border-color:rgba(0,255,255,.82) !important;
  box-shadow:0 0 0 3px rgba(0,255,255,.16) !important;
  background:rgba(255,255,255,.065) !important;
  outline:none !important;
}
label span,
.input-label,
.quick-form-card label,
.drawer label{
  font-size:12.5px !important;
  font-weight:750 !important;
  color:rgba(255,255,255,.76) !important;
  margin-bottom:7px !important;
  display:block !important;
}
.input-pair,
.quick-form-grid,
.quick-form-toolbar{
  gap:12px !important;
}

/* Cards: leitura, respiro e hierarquia */
.card,
.project-card,
.quick-card,
.p1-card,
.quick-project-item,
.quick-project-metric,
.admin-panel-card,
.admin-kpi-card,
.system-card,
.quick-system-card,
.quick-category,
.sys-item,
.modal-proj-item,
.admin-msg-card,
.admin-msg-history-item{
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.028)) !important;
  box-shadow:0 8px 24px rgba(0,0,0,.14) !important;
}
.card:hover,
.project-card:hover,
.quick-card:hover,
.quick-project-item:hover,
.system-card:hover,
.quick-system-card:hover,
.quick-category:hover,
.sys-item:hover,
.modal-proj-item:hover{
  border-color:rgba(0,255,255,.36) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035)) !important;
}
.card strong,
.project-card strong,
.quick-card strong,
.quick-project-item strong,
.system-card strong,
.quick-system-card strong,
.sys-code{
  letter-spacing:-.02em !important;
}

/* Listas: separação, toque e scroll mais fluido */
.sys-list,
.modal-proj-list,
.admin-msg-history,
.quick-project-list,
.project-list,
.p1-list,
.tech-list{
  gap:10px !important;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch !important;
  overscroll-behavior:contain !important;
  padding-right:2px !important;
}
.modal-proj-item,
.sys-item,
.quick-project-item,
.p1-system-row,
.admin-rank-row,
.admin-msg-history-item{
  padding:14px !important;
}
.sys-radio,
.tog{
  flex:0 0 auto !important;
}

/* Grupos de ações: alinhamento consistente */
.action-row,
.drawer-actions,
.modal-actions,
.quick-actions-bottom,
.quick-result-actions,
.quick-result-secondary-actions,
.p1-top-actions,
.admin-msg-actions,
.admin-msg-footer{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}
.action-row .btn-next,
.drawer-actions .btn-next,
.modal-actions .btn-next,
.quick-actions-bottom .btn-next,
.quick-result-secondary-actions .btn-next{
  width:auto !important;
  min-width:150px !important;
}

/* Seleção de sistema: imagem e texto com leitura mais profissional */
.quick-system-card,
.drawer .sys-item{
  transition:transform .16s ease, border-color .16s ease, background .16s ease !important;
}
.quick-system-card:active,
.drawer .sys-item:active{
  transform:scale(.995) !important;
}
.quick-system-card.selected,
.drawer .sys-item.selected,
.quick-category.active,
.quick-system-card.active{
  border-color:rgba(0,255,255,.72) !important;
  box-shadow:0 0 0 3px rgba(0,255,255,.13), 0 10px 28px rgba(0,0,0,.22) !important;
}

/* Mobile específico */
@media(max-width:620px){
  .modal-bg.open,
  .drawer-bg.open{
    padding:10px !important;
    align-items:center !important;
  }
  .modal,
  .drawer{
    width:calc(100vw - 20px) !important;
    max-height:calc(100dvh - 20px) !important;
    padding:18px 16px !important;
    border-radius:22px !important;
  }
  .drawer-title,
  .modal-title{
    font-size:19px !important;
  }
  .drawer-sub,
  .modal-sub{
    font-size:13px !important;
    margin-bottom:16px !important;
  }
  .input-pair{
    grid-template-columns:1fr !important;
    display:grid !important;
  }
  .action-row,
  .drawer-actions,
  .modal-actions,
  .quick-actions-bottom,
  .quick-result-actions,
  .quick-result-secondary-actions,
  .p1-top-actions,
  .admin-msg-actions,
  .admin-msg-footer{
    justify-content:stretch !important;
  }
  .action-row > *,
  .drawer-actions > *,
  .modal-actions > *,
  .quick-actions-bottom > *,
  .quick-result-secondary-actions > *,
  .p1-top-actions > *{
    flex:1 1 auto !important;
  }
  .btn-next,
  .btn-primary,
  .btn-outline,
  .drawer-cancel,
  .quick-link{
    width:100% !important;
  }
  .sys-list,
  .modal-proj-list,
  .admin-msg-history{
    max-height:min(58dvh, 520px) !important;
  }
  .quick-project-metrics,
  .admin-kpi-grid{
    gap:10px !important;
  }
  .quick-project-metric,
  .admin-kpi-card,
  .card,
  .project-card,
  .quick-card{
    padding:14px !important;
  }
  .drawer .sys-item{
    gap:12px !important;
  }
}

@media(max-width:380px){
  .modal,
  .drawer{padding:16px 14px !important;}
  .drawer-title,
  .modal-title{font-size:18px !important;}
  .btn-next,
  .btn-primary,
  .btn-outline,
  .drawer-cancel{font-size:14px !important;}
}

/* v4-33 — Correção crítica: modal +Projeto utilizável no mobile */
#drawer-novo-proj.drawer-bg.open{
  z-index:12000 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:auto !important;
}
#drawer-novo-proj > .drawer{
  position:relative !important;
  z-index:12001 !important;
  pointer-events:auto !important;
  touch-action:auto !important;
  overscroll-behavior:contain;
}
#drawer-novo-proj input,
#drawer-novo-proj button{
  pointer-events:auto !important;
  touch-action:manipulation !important;
  -webkit-user-select:text !important;
  user-select:text !important;
}
#drawer-novo-proj .btn-next,
#drawer-novo-proj .drawer-cancel{
  -webkit-user-select:none !important;
  user-select:none !important;
}

/* v4-34 — Modal fixo e independente para Novo Projeto Completo */
#v434-novo-proj-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:99999 !important;
  display:none;
  align-items:center !important;
  justify-content:center !important;
  padding:16px !important;
  background:rgba(0,0,0,.78) !important;
  pointer-events:auto !important;
}
#v434-novo-proj-modal.open{display:flex !important;}
#v434-novo-proj-card{
  width:min(520px, calc(100vw - 32px)) !important;
  max-height:calc(100dvh - 32px) !important;
  overflow:auto !important;
  background:var(--card,#151923) !important;
  border:1px solid var(--border,rgba(255,255,255,.12)) !important;
  border-radius:20px !important;
  padding:22px 18px 20px !important;
  box-shadow:0 24px 90px rgba(0,0,0,.55) !important;
  pointer-events:auto !important;
  touch-action:auto !important;
}
#v434-novo-proj-card *{pointer-events:auto !important;}
#v434-novo-proj-card .v434-title{font-size:20px;font-weight:800;color:var(--text,#fff);margin:0 0 4px;}
#v434-novo-proj-card .v434-sub{font-size:13px;color:var(--text2,#aab2c0);margin:0 0 18px;line-height:1.45;}
#v434-novo-proj-card label{display:block;font-size:11px;color:var(--text3,#7f8897);letter-spacing:.08em;text-transform:uppercase;font-weight:700;margin:14px 0 7px;}
#v434-novo-proj-card input{
  width:100% !important;
  height:48px !important;
  background:var(--bg3,#0e1118) !important;
  border:1px solid var(--border,rgba(255,255,255,.12)) !important;
  border-radius:14px !important;
  color:var(--text,#fff) !important;
  padding:0 14px !important;
  font-size:16px !important;
  outline:none !important;
  -webkit-user-select:text !important;
  user-select:text !important;
  touch-action:auto !important;
}
#v434-novo-proj-card input:focus{border-color:var(--or2,#00ffff) !important;box-shadow:0 0 0 3px rgba(0,255,255,.12) !important;}
#v434-novo-proj-card .v434-actions{display:flex;gap:10px;margin-top:20px;}
#v434-novo-proj-card button{min-height:46px;border-radius:14px;font-size:15px;font-weight:800;cursor:pointer;touch-action:manipulation !important;}
#v434-novo-proj-card .v434-create{flex:1;background:linear-gradient(135deg,var(--or1,#0032ff),var(--or2,#00ffff));color:#fff !important;border:0;text-shadow:0 1px 2px rgba(0,0,0,.35);}
#v434-novo-proj-card .v434-cancel{background:transparent;color:var(--text2,#aab2c0);border:1px solid var(--border,rgba(255,255,255,.14));padding:0 16px;}
@media(max-width:480px){
  #v434-novo-proj-modal{align-items:flex-end !important;padding:10px !important;}
  #v434-novo-proj-card{width:100% !important;border-radius:22px 22px 16px 16px !important;padding:20px 16px calc(20px + env(safe-area-inset-bottom)) !important;}
  #v434-novo-proj-card .v434-actions{flex-direction:column;}
}

/* v4-37 — Padronização de Adicionar Sistema + centralização real de popups/mobile */
/* Popups/drawers devem abrir no centro da tela, inclusive os modais criados via JS. */
.modal-bg.open,
.drawer-bg.open,
#v434-novo-proj-modal.open{
  position:fixed !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:16px !important;
  overflow:hidden !important;
}
.modal,
.drawer,
#v434-novo-proj-card{
  margin:auto !important;
}
@media(max-width:480px){
  #v434-novo-proj-modal.open,
  .modal-bg.open,
  .drawer-bg.open{
    align-items:center !important;
    justify-content:center !important;
    padding:12px !important;
  }
  #v434-novo-proj-card{
    width:min(520px, calc(100vw - 24px)) !important;
    border-radius:22px !important;
    max-height:calc(100dvh - 24px) !important;
  }
}

/* Cálculo Rápido > Adicionar Sistema deve ter a mesma escala visual do Projeto Completo. */
#drawer-quick-tipo .quick-add-system-drawer{
  max-width:620px !important;
}
#drawer-quick-tipo .quick-add-system-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  margin:16px 0 14px !important;
}
#drawer-quick-tipo .quick-add-system-card{
  min-height:158px !important;
  padding:20px 12px !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:10px !important;
  border-radius:18px !important;
}
#drawer-quick-tipo .quick-add-system-card span{
  width:74px !important;
  height:74px !important;
  min-width:74px !important;
  min-height:74px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 auto 4px !important;
  border-radius:20px !important;
  font-size:54px !important;
  line-height:1 !important;
  background:linear-gradient(135deg,rgba(0,255,255,.18),rgba(255,255,255,.05)) !important;
  box-shadow:none !important;
}
#drawer-quick-tipo .quick-add-system-card strong{
  font-size:17px !important;
  font-weight:850 !important;
  line-height:1.15 !important;
}
#drawer-quick-tipo .quick-add-system-card small{
  max-width:190px !important;
  font-size:12px !important;
  line-height:1.3 !important;
  color:var(--text3) !important;
}
@media(max-width:620px){
  #drawer-quick-tipo .quick-add-system-grid{
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
  }
  #drawer-quick-tipo .quick-add-system-card{
    min-height:158px !important;
    padding:20px 12px !important;
  }
  #drawer-quick-tipo .quick-add-system-card span{
    width:74px !important;
    height:74px !important;
    min-width:74px !important;
    min-height:74px !important;
    font-size:54px !important;
  }
}
@media(max-width:360px){
  #drawer-quick-tipo .quick-add-system-grid,
  #drawer-tipo .drawer > div[style*="grid-template-columns"]{
    grid-template-columns:1fr !important;
  }
}

/* V4-38 — Centralização real dos popups/drawers
   Corrige overrides antigos que prendiam drawers do Projeto Completo no topo. */
.drawer-bg.open,
.modal-bg.open{
  position:fixed !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:16px !important;
  overflow:hidden !important;
  min-height:100dvh !important;
}

/* Drawers de seleção/criação/adição de sistema antes estavam com flex-start */
#drawer-tipo.open,
#drawer-parede.open,
#drawer-teto.open,
#drawer-revestimento.open,
#drawer-forro.open,
#drawer-novo-proj.open,
#drawer-novo-quick-proj.open{
  position:fixed !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:16px !important;
  overflow:hidden !important;
  min-height:100dvh !important;
}

#drawer-tipo.open > .drawer,
#drawer-parede.open > .drawer,
#drawer-teto.open > .drawer,
#drawer-revestimento.open > .drawer,
#drawer-forro.open > .drawer,
#drawer-novo-proj.open > .drawer,
#drawer-novo-quick-proj.open > .drawer,
.modal-bg.open > .modal{
  margin:auto !important;
  max-height:calc(100dvh - 32px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch !important;
}

/* Mantém os modais de layout técnico em formato amplo quando necessário */
#modal-layout-teto.open,
#modal-layout-parede.open,
#modal-quick-layout.open{
  align-items:center !important;
  justify-content:center !important;
}

@media(max-width:620px){
  .drawer-bg.open,
  .modal-bg.open,
  #drawer-tipo.open,
  #drawer-parede.open,
  #drawer-teto.open,
  #drawer-revestimento.open,
  #drawer-forro.open,
  #drawer-novo-proj.open,
  #drawer-novo-quick-proj.open{
    padding:10px !important;
  }
  #drawer-tipo.open > .drawer,
  #drawer-parede.open > .drawer,
  #drawer-teto.open > .drawer,
  #drawer-revestimento.open > .drawer,
  #drawer-forro.open > .drawer,
  #drawer-novo-proj.open > .drawer,
  #drawer-novo-quick-proj.open > .drawer,
  .modal-bg.open > .modal{
    max-height:calc(100dvh - 20px) !important;
  }
}


/* v4-41 — camadas seguras entre login e app */
.screen{z-index:0;visibility:hidden;}
.screen.active{z-index:10;visibility:visible;}
#s-login.active{z-index:10000;}
#s-main.active{z-index:20;}
#s-login .login-bg,
#s-login .login-card,
#s-login .google-btn,
#s-login .login-btn,
#s-login input,
#s-login button{pointer-events:auto !important;}
#s-login.active ~ #s-main{pointer-events:none !important;}

/* v4-42 — Cálculo Rápido: organização dos botões no mobile */
@media(max-width:700px){
  .quick-project-simple .app-topbar{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    align-items:stretch !important;
    margin:0 0 12px !important;
  }
  .quick-project-simple .app-topbar-title{
    grid-column:1 / -1 !important;
    width:auto !important;
    margin:0 0 2px !important;
    font-size:18px !important;
    line-height:1.15 !important;
    font-weight:900 !important;
  }
  .quick-project-simple .app-topbar .btn-outline,
  .quick-project-simple .app-topbar .btn-primary{
    width:100% !important;
    min-height:44px !important;
    padding:0 12px !important;
    border-radius:12px !important;
    justify-content:center !important;
    font-size:13px !important;
    font-weight:800 !important;
    white-space:nowrap !important;
  }
  .quick-project-simple .quick-project-selection{
    display:block !important;
    padding:0 !important;
    margin:0 0 14px !important;
    border:0 !important;
    background:transparent !important;
  }
  .quick-project-simple .quick-project-selection .p1-selection-left{
    display:none !important;
  }
  .quick-project-simple .quick-project-selection .p1-selection-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    width:100% !important;
  }
  .quick-project-simple .quick-project-selection .p1-selection-actions button{
    width:100% !important;
    min-height:44px !important;
    padding:0 12px !important;
    border-radius:12px !important;
    justify-content:center !important;
    font-size:13px !important;
    font-weight:800 !important;
    white-space:nowrap !important;
  }
}

/* v4-44 — Cálculo Rápido mobile: manter barra de seleção e hierarquia visual */
@media(max-width:700px){
  .quick-project-simple .quick-project-selection.quick-selection-panel-v43,
  .quick-project-simple .quick-project-selection.p1-selection-bar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    padding:12px !important;
    margin:0 0 14px !important;
    border:1px solid var(--border) !important;
    background:rgba(255,255,255,.045) !important;
    border-radius:16px !important;
    box-shadow:0 10px 30px rgba(0,0,0,.16) !important;
  }
  .quick-project-simple .quick-project-selection .p1-selection-left,
  .quick-project-simple .quick-project-selection .quick-selection-head-v43{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    width:100% !important;
    margin:0 0 2px !important;
    color:var(--text2) !important;
    font-size:13px !important;
    line-height:1.3 !important;
  }
  .quick-project-simple .quick-project-selection .p1-selection-actions,
  .quick-project-simple .quick-project-selection .quick-selection-actions-v43{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    width:100% !important;
  }
  .quick-project-simple .quick-project-selection .p1-selection-actions button,
  .quick-project-simple .quick-project-selection .quick-selection-actions-v43 button{
    width:100% !important;
    min-height:42px !important;
    padding:0 12px !important;
    border-radius:12px !important;
    justify-content:center !important;
    font-size:13px !important;
    font-weight:800 !important;
    white-space:nowrap !important;
  }
}


/* V4-45: refinamento da tela de resultado do Cálculo Rápido */
.quick-page-resultado .quick-head-resultado{
  display:block !important;
  margin-bottom:12px !important;
}
.quick-page-resultado .quick-saved-calc-head{
  width:100%;
  max-width:100%;
  padding:0 0 2px;
}
.quick-page-resultado .quick-saved-calc-label{
  margin-bottom:2px;
}
.quick-page-resultado .quick-saved-calc-name{
  margin-bottom:2px !important;
}
.quick-page-resultado .quick-saved-calc-system{
  max-width:100%;
}
.quick-page-resultado .quick-progress{
  margin-top:2px;
  margin-bottom:26px;
}
.quick-page-resultado .quick-result-secondary-actions{
  margin-top:16px;
}
.quick-page-resultado .quick-result-secondary-actions .btn-next{
  min-height:48px;
}
@media(max-width:620px){
  .quick-page-resultado .quick-head-resultado{
    padding:0 2px;
    margin-bottom:10px !important;
  }
  .quick-page-resultado .quick-saved-calc-label{
    font-size:11px !important;
    letter-spacing:.1em;
  }
  .quick-page-resultado .quick-saved-calc-name{
    font-size:20px !important;
    line-height:1.1 !important;
  }
  .quick-page-resultado .quick-saved-calc-system{
    font-size:13px !important;
    line-height:1.22 !important;
    max-width:260px;
  }
  .quick-page-resultado .quick-saved-calc-meta{
    font-size:12px !important;
    line-height:1.2 !important;
  }
  .quick-page-resultado .quick-progress{
    margin-bottom:24px !important;
  }
}

/* v4-46 — Tela de resultado do cálculo: cabeçalho limpo e ações no rodapé */
.quick-saved-calc-head-with-close{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px;
  gap:12px;
  align-items:start;
}
.quick-saved-calc-copy{min-width:0;display:flex;flex-direction:column;gap:4px;}
.quick-result-close-x{
  width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  color:var(--text);
  font-size:24px;line-height:1;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.quick-result-close-x:hover{background:rgba(0,255,255,.14);border-color:rgba(0,255,255,.32);color:var(--or1);}
.quick-result-actions-stack{
  display:grid !important;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:16px;
}
.quick-result-actions-stack button{
  width:100%;
  min-height:46px;
  justify-content:center;
}
.quick-result-card-page .quick-result-top-clean{padding-right:0;}
.quick-result-card-page .quick-result-actions{display:none !important;}
@media(min-width:720px){
  .quick-result-actions-stack{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
  .quick-saved-calc-head-with-close{grid-template-columns:minmax(0,1fr) 38px;gap:10px;}
  .quick-result-close-x{width:38px;height:38px;border-radius:13px;font-size:22px;}
  .quick-result-actions-stack button{min-height:48px;}
}

/* v4-47 — Cálculo Rápido: formulário de dimensões sem botão voltar no cabeçalho */
.quick-dim-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr 1.25fr !important;
  gap:10px !important;
  align-items:stretch !important;
  width:100% !important;
  margin-top:16px !important;
}
.quick-dim-actions .quick-back-btn,
.quick-dim-actions .quick-cancel-btn,
.quick-dim-actions .quick-calc-btn{
  width:100% !important;
  height:42px !important;
  min-height:42px !important;
  min-width:0 !important;
  margin:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-transform:none !important;
  font-weight:800 !important;
}
.quick-dim-actions .quick-back-btn{
  grid-column:1 !important;
  grid-row:1 !important;
}
.quick-dim-actions .quick-cancel-btn{
  grid-column:2 !important;
  grid-row:1 !important;
}
.quick-dim-actions .quick-calc-btn{
  grid-column:3 !important;
  grid-row:1 !important;
}
.quick-head:not(.quick-head-resultado){
  align-items:flex-start !important;
}
.quick-head:not(.quick-head-resultado) > div:first-child{
  min-width:0 !important;
  max-width:100% !important;
}
.quick-head:not(.quick-head-resultado) h2{
  line-height:1.12 !important;
  margin-bottom:6px !important;
}
.quick-head:not(.quick-head-resultado) .quick-subtitle{
  max-width:760px !important;
}
@media(max-width:560px){
  .quick-dim-actions{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .quick-dim-actions .quick-back-btn{
    grid-column:1 !important;
    grid-row:1 !important;
  }
  .quick-dim-actions .quick-cancel-btn{
    grid-column:2 !important;
    grid-row:1 !important;
  }
  .quick-dim-actions .quick-calc-btn{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
  }
}


/* v4-48 — Projeto Completo mobile: ações respeitando a grid do app */
@media(max-width:700px){
  #tab-projetos .page-wrap{
    padding-left:12px !important;
    padding-right:12px !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }
  #tab-projetos .home-brand-logo,
  #tab-projetos .pro-dashboard{
    display:none !important;
  }
  #tab-projetos .pj-header-box{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    align-items:stretch !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 0 12px !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  #tab-projetos .pj-header-left{
    display:none !important;
  }
  #tab-projetos .pj-header-actions{
    grid-column:1 / -1 !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    align-items:stretch !important;
    margin:0 !important;
    padding:0 !important;
  }
  #tab-projetos .pj-header-actions .btn-outline,
  #tab-projetos .pj-header-actions .btn-primary,
  #tab-projetos .pj-header-actions button{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:44px !important;
    padding:0 12px !important;
    border-radius:12px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:13px !important;
    font-weight:850 !important;
  }
  #tab-projetos .empty-state{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    margin-top:0 !important;
  }
}

/* v4-49 — Projeto Completo: menu responsivo após criar projeto */
@media (max-width: 640px){
  #tab-projetos .pc11-shell{gap:12px;}
  #tab-projetos .pc11-hero{padding:12px;border-radius:18px;}
  #tab-projetos .pc11-breadcrumb{font-size:10.5px;gap:5px;line-height:1.25;margin-bottom:10px;max-width:100%;}
  #tab-projetos .pc11-breadcrumb span:last-child{display:none;}
  #tab-projetos .pc11-kicker{font-size:10px;letter-spacing:.12em;margin-bottom:3px;}
  #tab-projetos .pc11-title{font-size:20px;line-height:1.15;}
  #tab-projetos .pc11-hero-main{display:grid;grid-template-columns:1fr;gap:12px;align-items:stretch;}
  #tab-projetos .pc11-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 44px;gap:8px;width:100%;align-items:stretch;justify-content:stretch;}
  #tab-projetos .pc11-actions .back-btn-sm,
  #tab-projetos .pc11-actions .btn-primary{height:44px;min-height:44px;width:100%;padding:0 10px;border-radius:13px;display:flex;align-items:center;justify-content:center;white-space:nowrap;}
  #tab-projetos .pc11-actions .back-btn-sm{font-size:12px;}
  #tab-projetos .pc11-actions .btn-primary{font-size:0;}
  #tab-projetos .pc11-actions .btn-primary::after{content:'+ Item';font-size:13px;font-weight:900;}
  #tab-projetos .pc11-actions .ux-action-wrap{width:44px;min-width:44px;height:44px;display:flex;align-items:stretch;justify-content:center;}
  #tab-projetos .pc11-actions .ux-more-btn{width:44px;height:44px;border-radius:13px;}
  #tab-projetos .pc11-actions .ux-action-menu{right:0;left:auto;}
  #tab-projetos .pc11-main-panel{padding:12px;border-radius:16px;}
  #tab-projetos .pc11-panel-head{display:grid;grid-template-columns:1fr auto;align-items:start;gap:10px;}
  #tab-projetos .pc11-panel-head .btn-primary{height:38px;min-height:38px;padding:0 12px;font-size:0;border-radius:12px;white-space:nowrap;}
  #tab-projetos .pc11-panel-head .btn-primary::after{content:'+ Item';font-size:12px;font-weight:900;}
  #tab-projetos .pc11-panel-title{font-size:15px;}
  #tab-projetos .pc11-panel-sub{font-size:11px;line-height:1.3;}
  #tab-projetos .pc11-empty-cta{padding:14px;border-radius:15px;margin-top:6px;}
}

@media (max-width: 380px){
  #tab-projetos .pc11-actions{grid-template-columns:1fr 1fr 42px;gap:7px;}
  #tab-projetos .pc11-actions .back-btn-sm,
  #tab-projetos .pc11-actions .btn-primary,
  #tab-projetos .pc11-actions .ux-action-wrap,
  #tab-projetos .pc11-actions .ux-more-btn{height:42px;min-height:42px;}
  #tab-projetos .pc11-actions .back-btn-sm{font-size:11px;}
  #tab-projetos .pc11-actions .btn-primary::after{font-size:12px;}
}

/* v4-50 — Projeto Completo: botões inferiores dos drawers responsivos no mobile */
@media (max-width: 640px){
  #drawer-parede.open > .drawer,
  #drawer-teto.open > .drawer,
  #drawer-revestimento.open > .drawer,
  #drawer-forro.open > .drawer{
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 28px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 18px 14px 18px !important;
    box-sizing: border-box !important;
  }

  #drawer-parede .drawer > div[id^="ps"] > div[style*="display:flex"],
  #drawer-teto .drawer > div[id^="ts"] > div[style*="display:flex"],
  #drawer-revestimento .drawer > div[id^="rs"] > div[style*="display:flex"],
  #drawer-forro .drawer > div[id^="fs"] > div[style*="display:flex"]{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px !important;
    align-items: stretch !important;
  }

  #drawer-parede .drawer > div[id^="ps"] > div[style*="display:flex"] > .btn-outline,
  #drawer-parede .drawer > div[id^="ps"] > div[style*="display:flex"] > .btn-next,
  #drawer-teto .drawer > div[id^="ts"] > div[style*="display:flex"] > .btn-outline,
  #drawer-teto .drawer > div[id^="ts"] > div[style*="display:flex"] > .btn-next,
  #drawer-revestimento .drawer > div[id^="rs"] > div[style*="display:flex"] > .btn-outline,
  #drawer-revestimento .drawer > div[id^="rs"] > div[style*="display:flex"] > .btn-next,
  #drawer-forro .drawer > div[id^="fs"] > div[style*="display:flex"] > .btn-outline,
  #drawer-forro .drawer > div[id^="fs"] > div[style*="display:flex"] > .btn-next{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: initial !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    box-sizing: border-box !important;
  }

  #drawer-parede .drawer > div[id^="ps"] > div[style*="display:flex"] > .btn-next,
  #drawer-teto .drawer > div[id^="ts"] > div[style*="display:flex"] > .btn-next,
  #drawer-revestimento .drawer > div[id^="rs"] > div[style*="display:flex"] > .btn-next,
  #drawer-forro .drawer > div[id^="fs"] > div[style*="display:flex"] > .btn-next{
    grid-column: 2 !important;
  }

  #drawer-parede .drawer > div[id^="ps"] > div[style*="display:flex"] > .btn-outline,
  #drawer-teto .drawer > div[id^="ts"] > div[style*="display:flex"] > .btn-outline,
  #drawer-revestimento .drawer > div[id^="rs"] > div[style*="display:flex"] > .btn-outline,
  #drawer-forro .drawer > div[id^="fs"] > div[style*="display:flex"] > .btn-outline{
    grid-column: 1 !important;
  }
}

@media (max-width: 360px){
  #drawer-parede .drawer > div[id^="ps"] > div[style*="display:flex"],
  #drawer-teto .drawer > div[id^="ts"] > div[style*="display:flex"],
  #drawer-revestimento .drawer > div[id^="rs"] > div[style*="display:flex"],
  #drawer-forro .drawer > div[id^="fs"] > div[style*="display:flex"]{
    grid-template-columns: 1fr !important;
  }
  #drawer-parede .drawer > div[id^="ps"] > div[style*="display:flex"] > .btn-outline,
  #drawer-parede .drawer > div[id^="ps"] > div[style*="display:flex"] > .btn-next,
  #drawer-teto .drawer > div[id^="ts"] > div[style*="display:flex"] > .btn-outline,
  #drawer-teto .drawer > div[id^="ts"] > div[style*="display:flex"] > .btn-next,
  #drawer-revestimento .drawer > div[id^="rs"] > div[style*="display:flex"] > .btn-outline,
  #drawer-revestimento .drawer > div[id^="rs"] > div[style*="display:flex"] > .btn-next,
  #drawer-forro .drawer > div[id^="fs"] > div[style*="display:flex"] > .btn-outline,
  #drawer-forro .drawer > div[id^="fs"] > div[style*="display:flex"] > .btn-next{
    grid-column: 1 !important;
  }
}

/* ========================================================================
   v4-51 — Revisão global de responsividade, leitura e navegação
   Escopo: ajustes somente de layout/CSS para mobile/tablet/desktop.
   ======================================================================== */

/* Base anti-overflow e leitura consistente */
html, body, .app, .screen, .main-body, .main-content, .content-inner{
  max-width:100%;
}
html, body{
  overscroll-behavior-y:none;
}
body, button, input, select, textarea{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
input, select, textarea{
  font-size:16px !important; /* evita zoom automático no iOS/Android */
  min-height:44px;
}
button, .btn-primary, .btn-outline, .btn-next, .drawer-cancel, .h-btn, .main-tab{
  min-height:44px;
  touch-action:manipulation;
}
img, svg, video, canvas{
  max-width:100%;
}

/* Header e navegação principal */
.main-header-inner{
  gap:10px;
}
.h-logo{
  min-width:0;
}
.h-logo img,
.h-logo .h-logo-img{
  max-width:clamp(150px, 34vw, 245px) !important;
  height:auto !important;
  object-fit:contain !important;
}
.h-actions{
  min-width:0;
}
.main-tabs{
  justify-content:flex-start;
}
.main-tabs-inner{
  justify-content:flex-start;
  overflow-x:auto;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}
.main-tabs-inner::-webkit-scrollbar{display:none;}
.main-tab{
  scroll-snap-align:start;
  flex:0 0 auto;
}

/* Conteúdo — largura e respiro coerentes em todos os módulos */
.main-content,
.content-inner,
.page-wrap,
#tab-inicio,
#tab-rapido,
#tab-projetos,
#tab-sistemas{
  min-width:0 !important;
  overflow-x:hidden !important;
}
.content-inner,
.page-wrap{
  width:100%;
  max-width:var(--app-max);
  margin-left:auto;
  margin-right:auto;
}
.card, .quick-panel, .quick-form-card, .quick-result-card,
.pc11-hero, .pc11-main-panel, .pc11-empty-cta,
.modal, .drawer, .login-card{
  overflow-wrap:anywhere;
}

/* Cards e listas — alvo de toque e hierarquia */
.sys-item,
.quick-system-card,
.quick-category,
.modal-proj-item,
.pc11-empty-cta,
.result-item,
.calc-card,
.saved-calc-card{
  min-width:0;
}
.sys-list,
.quick-system-grid,
.quick-category-grid,
.pro-dashboard,
.pc11-shell{
  width:100%;
  max-width:100%;
}
.sys-code,
.sys-desc,
.quick-system-card strong,
.quick-system-card span,
.pc11-title,
.pc11-panel-title,
.pc11-panel-sub{
  min-width:0;
}

/* Modais e drawers — sempre dentro do viewport, com botões acessíveis */
.modal-bg,
.drawer-bg{
  position:fixed !important;
  inset:0 !important;
  align-items:center !important;
  justify-content:center !important;
  padding:16px !important;
  overflow:hidden !important;
}
.modal,
.drawer{
  width:min(720px, calc(100vw - 32px)) !important;
  max-width:calc(100vw - 32px) !important;
  max-height:calc(100dvh - 32px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch !important;
}
.drawer-close-x,
.tour-close-x,
.quick-layout-modal-close,
.ficha-sticky-close{
  min-width:44px !important;
  min-height:44px !important;
}

/* Formulários — leitura e navegação por dedo */
.field-input,
.d-input,
.measure-input,
.quick-form-grid input,
.quick-form-grid select,
.quick-form-grid textarea,
input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
.field-lbl,
.field-label,
.quick-form-grid label span{
  line-height:1.25;
}

/* Botões e grupos de ação — não estourar a grid */
.btn-primary,
.btn-outline,
.btn-next,
.drawer-cancel,
.login-btn,
.google-btn,
.quick-link{
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.quick-actions,
.pj-header-actions,
.pc11-actions,
.quick-dim-actions,
.quick-result-actions,
.result-actions,
.modal-actions,
.drawer-actions{
  max-width:100%;
}

/* Resultado do cálculo — leitura no topo e ações agrupadas */
#tab-resultado .quant-page,
#tab-resultado .quick-result-card,
#tab-resultado .quick-panel{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

/* Tablet */
@media (max-width:900px){
  :root{--app-pad:16px;}
  .content-inner,
  .page-wrap{
    padding-left:16px !important;
    padding-right:16px !important;
  }
  .main-tabs-inner{
    padding-left:16px !important;
    padding-right:16px !important;
  }
  .quick-category-grid,
  .quick-system-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
  .pro-dashboard{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}

/* Mobile geral */
@media (max-width:640px){
  :root{--app-pad:14px;}
  .main-header-inner{
    padding:8px 12px !important;
  }
  .h-logo img,
  .h-logo .h-logo-img{
    max-width:154px !important;
  }
  .h-btn{
    height:42px !important;
    min-width:42px !important;
    padding:0 10px !important;
    border-radius:14px !important;
  }
  .h-actions{gap:6px !important;}
  .main-tab{
    padding:11px 14px !important;
    font-size:12px !important;
  }
  .main-tabs-inner{
    padding-left:12px !important;
    padding-right:12px !important;
    justify-content:flex-start !important;
  }
  .content-inner,
  .page-wrap{
    padding-left:12px !important;
    padding-right:12px !important;
  }
  .quick-panel,
  .quick-form-card,
  .quick-result-card,
  .pc11-hero,
  .pc11-main-panel,
  .login-card,
  .card{
    border-radius:16px !important;
    padding:14px !important;
  }
  .quick-head,
  .quick-result-top,
  .pc11-panel-head{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    align-items:start !important;
  }
  .quick-head h2,
  .pc11-title{
    font-size:20px !important;
    line-height:1.15 !important;
  }
  .drawer-title,
  .modal-title{
    font-size:18px !important;
    line-height:1.18 !important;
  }
  .drawer-sub,
  .modal-sub{
    font-size:12px !important;
    line-height:1.35 !important;
  }
  .quick-category-grid,
  .quick-system-grid,
  .pro-dashboard,
  .quick-form-grid{
    grid-template-columns:1fr !important;
  }
  .quick-category,
  .quick-system-card{
    padding:14px !important;
    min-height:auto !important;
  }
  .quick-system-img{
    min-height:82px !important;
  }
  .sys-item{
    display:grid !important;
    grid-template-columns:96px minmax(0,1fr) 26px !important;
    gap:10px !important;
    align-items:center !important;
    padding:10px !important;
  }
  .sys-item img,
  .sys-item .sys-img,
  .sys-item picture{
    width:96px !important;
    max-width:96px !important;
  }
  .sys-code{
    font-size:14px !important;
    line-height:1.12 !important;
  }
  .sys-desc{
    font-size:11px !important;
    line-height:1.28 !important;
  }
  .modal-bg,
  .drawer-bg{
    padding:8px !important;
  }
  .modal,
  .drawer{
    width:calc(100vw - 16px) !important;
    max-width:calc(100vw - 16px) !important;
    max-height:calc(100dvh - 18px) !important;
    border-radius:16px !important;
    padding:16px 14px !important;
  }
  .modal-actions,
  .drawer-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .modal-actions .btn-primary,
  .modal-actions .btn-outline,
  .drawer-actions .btn-primary,
  .drawer-actions .btn-outline,
  .drawer-actions .btn-next{
    width:100% !important;
    min-width:0 !important;
  }
  .modal-proj-item{
    padding:12px !important;
    min-height:54px !important;
  }
}

/* Mobile estreito */
@media (max-width:430px){
  :root{--app-pad:10px;}
  .main-header-inner{
    padding-left:10px !important;
    padding-right:10px !important;
  }
  .h-logo img,
  .h-logo .h-logo-img{
    max-width:148px !important;
  }
  .main-tab{
    padding-left:12px !important;
    padding-right:12px !important;
  }
  .content-inner,
  .page-wrap{
    padding-left:10px !important;
    padding-right:10px !important;
  }
  .quick-panel,
  .quick-form-card,
  .quick-result-card,
  .pc11-hero,
  .pc11-main-panel,
  .login-card,
  .card{
    padding:12px !important;
  }
  .sys-item{
    grid-template-columns:84px minmax(0,1fr) 24px !important;
  }
  .sys-item img,
  .sys-item .sys-img,
  .sys-item picture{
    width:84px !important;
    max-width:84px !important;
  }
  .quick-dim-actions,
  .pc11-actions,
  .pj-header-actions{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .quick-dim-actions .quick-calc-btn,
  .pj-header-actions .btn-primary{
    grid-column:auto !important;
  }
}

/* Celulares muito estreitos: tudo em uma coluna para evitar corte lateral */
@media (max-width:360px){
  .h-logo img,
  .h-logo .h-logo-img{max-width:128px !important;}
  .h-actions{gap:4px !important;}
  .h-btn{min-width:38px !important;height:38px !important;padding:0 8px !important;}
  .main-tab{font-size:11px !important;padding:10px 10px !important;}
  .quick-dim-actions,
  .pc11-actions,
  .pj-header-actions,
  .modal-actions,
  .drawer-actions{
    grid-template-columns:1fr !important;
  }
  .quick-dim-actions > *,
  .pc11-actions > *,
  .pj-header-actions > *,
  .modal-actions > *,
  .drawer-actions > *{
    grid-column:1 !important;
  }
}

/* v4-52 — Cálculo Rápido mobile: alinhamento após criação de cálculo */
@media (max-width:700px){
  .quick-calc-page-v43.quick-project-simple.quick-project-shell{
    width:100% !important;
    max-width:100% !important;
    margin:0 auto !important;
    padding:18px 16px 28px !important;
    box-sizing:border-box !important;
  }
  .quick-calc-page-v43 .app-topbar{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    margin:0 0 10px !important;
    align-items:stretch !important;
  }
  .quick-calc-page-v43 .app-topbar-title{
    grid-column:1 / -1 !important;
    margin:0 0 2px !important;
    font-size:18px !important;
    line-height:1.2 !important;
  }
  .quick-calc-page-v43 .app-topbar .btn-outline,
  .quick-calc-page-v43 .app-topbar .btn-primary{
    width:100% !important;
    min-height:42px !important;
    border-radius:12px !important;
    padding:0 10px !important;
  }

  .quick-calc-page-v43 .quick-project-selection.quick-selection-panel-v43{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    padding:12px !important;
    margin:0 0 12px !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.045) !important;
    border:1px solid rgba(255,255,255,.10) !important;
    box-sizing:border-box !important;
  }
  .quick-calc-page-v43 .quick-selection-head-v43{
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
    min-height:26px !important;
    margin:0 !important;
    font-size:11px !important;
    line-height:1.25 !important;
    color:var(--text2) !important;
  }
  .quick-calc-page-v43 .quick-selection-actions-v43{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    width:100% !important;
  }
  .quick-calc-page-v43 .quick-selection-actions-v43 button{
    width:100% !important;
    min-height:38px !important;
    padding:0 8px !important;
    border-radius:11px !important;
    font-size:11px !important;
    font-weight:800 !important;
  }

  .quick-calc-page-v43 .quick-project-grid.p1-list-mode{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
  }
  .quick-calc-page-v43 .quick-project-card.p1-clean-card{
    width:100% !important;
    min-height:98px !important;
    padding:16px 76px 16px 12px !important;
    border-radius:14px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    background:rgba(18,25,38,.72) !important;
  }
  .quick-calc-page-v43 .quick-project-card-head.p1-card-top{
    width:100% !important;
    display:grid !important;
    grid-template-columns:26px 34px minmax(0,1fr) !important;
    gap:9px !important;
    align-items:center !important;
    padding-right:0 !important;
    margin:0 !important;
  }
  .quick-calc-page-v43 .quick-project-select.p1-select-box{
    width:22px !important;
    height:22px !important;
    border-radius:7px !important;
  }
  .quick-calc-page-v43 .quick-project-folder.p1-card-icon{
    width:34px !important;
    height:34px !important;
    border-radius:10px !important;
    font-size:17px !important;
  }
  .quick-calc-page-v43 .quick-project-title.p1-card-title{
    font-size:14px !important;
    line-height:1.15 !important;
    margin:0 0 3px !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  .quick-calc-page-v43 .quick-project-submeta{
    font-size:10px !important;
    line-height:1.15 !important;
    margin:0 0 2px !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    color:var(--text3) !important;
  }
  .quick-calc-page-v43 .quick-project-meta.p1-card-meta{
    font-size:11px !important;
    line-height:1.1 !important;
    color:var(--text2) !important;
  }
  .quick-calc-page-v43 .quick-project-card-actions.p1-card-actions{
    position:absolute !important;
    right:10px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    display:flex !important;
    gap:7px !important;
    margin:0 !important;
  }
  .quick-calc-page-v43 .quick-project-mini-btn.p1-mini-btn{
    width:34px !important;
    height:34px !important;
    border-radius:12px !important;
  }
}

/* v4-53 — Projeto Completo: correção da barra de ações inicial no mobile */
@media (max-width:700px){
  #tab-projetos .page-wrap{
    width:100% !important;
    max-width:100% !important;
    padding-left:14px !important;
    padding-right:14px !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
  }
  #tab-projetos .app-topbar{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    align-items:stretch !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 0 12px !important;
    box-sizing:border-box !important;
  }
  #tab-projetos .app-topbar-title{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 0 2px !important;
    font-size:18px !important;
    line-height:1.15 !important;
    font-weight:900 !important;
    color:var(--text) !important;
    display:block !important;
  }
  #tab-projetos .app-topbar .btn-outline,
  #tab-projetos .app-topbar .btn-primary,
  #tab-projetos .app-topbar .ux-primary-action{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:42px !important;
    padding:0 10px !important;
    border-radius:12px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:13px !important;
    font-weight:900 !important;
    box-sizing:border-box !important;
  }
  #tab-projetos .p1-grid,
  #tab-projetos .p1-list-mode,
  #tab-projetos .p1-empty{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  #tab-projetos .p1-empty{
    margin-top:10px !important;
    padding:30px 18px !important;
    text-align:center !important;
  }
}

@media (max-width:380px){
  #tab-projetos .page-wrap{
    padding-left:12px !important;
    padding-right:12px !important;
  }
  #tab-projetos .app-topbar{
    gap:8px !important;
  }
  #tab-projetos .app-topbar .btn-outline,
  #tab-projetos .app-topbar .btn-primary,
  #tab-projetos .app-topbar .ux-primary-action{
    font-size:12px !important;
    padding:0 8px !important;
  }
}


/* v4-54 — Projeto Completo: menu do projeto responsivo e mais limpo no mobile */
@media (max-width:700px){
  #tab-projetos .pc11-hero{
    padding:14px !important;
    overflow:visible !important;
  }
  #tab-projetos .pc11-hero-main{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
  }
  #tab-projetos .pc11-actions{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px !important;
    gap:8px !important;
    width:100% !important;
    max-width:100% !important;
    align-items:stretch !important;
    justify-content:stretch !important;
  }
  #tab-projetos .pc11-actions .back-btn-sm,
  #tab-projetos .pc11-actions .btn-primary,
  #tab-projetos .pc11-actions .ux-primary-action{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 8px !important;
    border-radius:13px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    box-sizing:border-box !important;
    font-size:12px !important;
    line-height:1 !important;
    font-weight:900 !important;
  }
  #tab-projetos .pc11-actions .btn-primary::after,
  #tab-projetos .pc11-actions .ux-primary-action::after{
    content:none !important;
    display:none !important;
  }
  #tab-projetos .pc11-actions .ux-action-wrap{
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    grid-column:auto !important;
    display:flex !important;
    align-items:stretch !important;
    justify-content:center !important;
  }
  #tab-projetos .pc11-actions .ux-more-btn{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    border-radius:13px !important;
  }
  #tab-projetos .pc11-panel-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:10px !important;
    align-items:start !important;
  }
  #tab-projetos .pc11-panel-head .btn-primary,
  #tab-projetos .pc11-panel-head .ux-primary-action{
    width:auto !important;
    min-width:82px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 12px !important;
    font-size:12px !important;
    border-radius:12px !important;
  }
  #tab-projetos .pc11-panel-head .btn-primary::after,
  #tab-projetos .pc11-panel-head .ux-primary-action::after{
    content:none !important;
    display:none !important;
  }
}

@media (max-width:360px){
  #tab-projetos .pc11-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px !important;
    gap:7px !important;
  }
  #tab-projetos .pc11-actions .back-btn-sm,
  #tab-projetos .pc11-actions .btn-primary,
  #tab-projetos .pc11-actions .ux-primary-action,
  #tab-projetos .pc11-actions .ux-action-wrap,
  #tab-projetos .pc11-actions .ux-more-btn{
    height:42px !important;
    min-height:42px !important;
  }
  #tab-projetos .pc11-actions .ux-action-wrap,
  #tab-projetos .pc11-actions .ux-more-btn{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
  }
  #tab-projetos .pc11-actions .back-btn-sm,
  #tab-projetos .pc11-actions .btn-primary,
  #tab-projetos .pc11-actions .ux-primary-action{
    font-size:11px !important;
    padding:0 6px !important;
  }
}

/* v4-55 — Projeto Completo: menu limpo e fluxo de ações dentro de Itens do projeto */
#tab-projetos .pc55-shell{
  gap:14px;
}
#tab-projetos .pc55-hero{
  padding:16px;
}
#tab-projetos .pc55-hero-main{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
#tab-projetos .pc55-title-block{
  min-width:0;
}
#tab-projetos .pc55-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-shrink:0;
}
#tab-projetos .pc55-actions .back-btn-sm{
  min-width:116px;
}
#tab-projetos .pc55-panel{
  padding:16px;
}
#tab-projetos .pc55-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
#tab-projetos .pc55-add-item{
  min-width:96px;
  height:42px;
  flex-shrink:0;
}
#tab-projetos .pc55-selection-box{
  border:1px solid rgba(0,255,255,.20);
  background:rgba(255,255,255,.035);
  border-radius:16px;
  padding:12px;
  margin:10px 0 12px;
}
#tab-projetos .pc55-selection-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#tab-projetos .pc55-selection-left{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
#tab-projetos .pc55-selection-left .sel-count{
  font-size:12px;
  color:rgba(255,255,255,.78);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#tab-projetos .pc55-generate{
  width:100%;
  margin-top:10px;
  min-height:44px;
}
#tab-projetos .pc55-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

@media (max-width:640px){
  #tab-projetos .pc55-shell{gap:10px;padding-inline:10px;}
  #tab-projetos .pc55-hero{padding:12px;border-radius:17px;}
  #tab-projetos .pc55-hero-main{
    display:grid !important;
    grid-template-columns:1fr auto;
    align-items:end;
    gap:10px;
  }
  #tab-projetos .pc55-actions{
    display:flex !important;
    gap:7px;
    align-items:center;
    justify-content:flex-end;
    width:auto !important;
  }
  #tab-projetos .pc55-actions .back-btn-sm{
    min-width:98px !important;
    width:auto !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 12px !important;
    border-radius:12px !important;
    font-size:12px !important;
  }
  #tab-projetos .pc55-actions .ux-action-wrap,
  #tab-projetos .pc55-actions .ux-more-btn{
    width:40px !important;
    min-width:40px !important;
    height:40px !important;
    min-height:40px !important;
  }
  #tab-projetos .pc55-panel{
    padding:12px !important;
    border-radius:16px !important;
  }
  #tab-projetos .pc55-panel-head{
    display:grid !important;
    grid-template-columns:1fr auto !important;
    gap:10px !important;
    align-items:start !important;
    margin-bottom:8px !important;
  }
  #tab-projetos .pc55-panel-head .pc11-panel-title{font-size:15px !important;line-height:1.15;}
  #tab-projetos .pc55-panel-head .pc11-panel-sub{font-size:10.5px !important;line-height:1.25;max-width:190px;}
  #tab-projetos .pc55-add-item{
    min-width:72px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 12px !important;
    border-radius:12px !important;
    font-size:12px !important;
  }
  #tab-projetos .pc55-selection-box{
    padding:10px !important;
    border-radius:14px !important;
    margin:8px 0 10px !important;
  }
  #tab-projetos .pc55-selection-row{gap:8px !important;}
  #tab-projetos .pc55-selection-left .sel-count{font-size:11px !important;}
  #tab-projetos .pc55-generate{
    min-height:42px !important;
    font-size:12px !important;
    border-radius:12px !important;
  }
  #tab-projetos .pc55-list .p1-system-row{
    grid-template-columns:28px 36px minmax(0,1fr) auto !important;
    gap:8px !important;
    align-items:center !important;
    padding:10px !important;
    border-radius:14px !important;
  }
  #tab-projetos .pc55-list .p1-system-area{
    display:none !important;
  }
  #tab-projetos .pc55-list .item-actions{
    display:flex !important;
    gap:4px !important;
    margin-left:0 !important;
  }
  #tab-projetos .pc55-list .item-actions .ia-btn{
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    min-height:32px !important;
    border-radius:10px !important;
    font-size:13px !important;
  }
  #tab-projetos .pc55-list .p1-system-name{font-size:12.5px !important;line-height:1.2;}
  #tab-projetos .pc55-list .p1-system-meta{font-size:10.5px !important;line-height:1.25;}
}

@media (max-width:380px){
  #tab-projetos .pc55-panel-head .pc11-panel-sub{max-width:170px;}
  #tab-projetos .pc55-actions .back-btn-sm{min-width:90px !important;padding:0 10px !important;}
  #tab-projetos .pc55-add-item{min-width:68px !important;padding:0 10px !important;}
}

/* v4-56 — Correção seleção de sistemas: texto reposicionado sem reduzir imagem */
.drawer .sys-list .sys-item{
  box-sizing:border-box !important;
  overflow:hidden !important;
}
.drawer .sys-list .sys-icon-holder{
  flex:0 0 auto !important;
  position:relative !important;
  z-index:1 !important;
}
.drawer .sys-list .sys-icon-holder + div{
  position:relative !important;
  z-index:2 !important;
  min-width:0 !important;
  overflow:visible !important;
}
.drawer .sys-list .sys-code,
.drawer .sys-list .sys-desc{
  display:block !important;
  max-width:100% !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
}
@media (max-width:620px){
  .drawer .sys-list .sys-item{
    display:grid !important;
    grid-template-columns:104px minmax(0,1fr) 24px !important;
    column-gap:14px !important;
    row-gap:0 !important;
    align-items:center !important;
    min-height:104px !important;
    padding:10px 12px !important;
  }
  .drawer .sys-list .sys-icon-holder{
    grid-column:1 !important;
    grid-row:1 !important;
    width:104px !important;
    height:78px !important;
    margin:0 !important;
  }
  .drawer .sys-list .sys-icon-holder img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    padding:4px !important;
  }
  .drawer .sys-list .sys-icon-holder + div{
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:center !important;
    padding-left:0 !important;
  }
  .drawer .sys-list .sys-radio{
    grid-column:3 !important;
    grid-row:1 !important;
    justify-self:end !important;
    margin-left:0 !important;
  }
  .drawer .sys-list .sys-code{
    font-size:13px !important;
    line-height:1.15 !important;
    margin:0 0 4px !important;
  }
  .drawer .sys-list .sys-desc{
    font-size:10.5px !important;
    line-height:1.25 !important;
    margin:0 !important;
  }
}
@media (max-width:360px){
  .drawer .sys-list .sys-item{
    grid-template-columns:98px minmax(0,1fr) 22px !important;
    column-gap:12px !important;
    padding:10px !important;
  }
  .drawer .sys-list .sys-icon-holder{
    width:98px !important;
    height:76px !important;
  }
}

/* v4-57 — Projeto Completo: resultado do item com menu superior limpo e ações inferiores */
#tab-resultado .v57-quant-topbar{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:10px !important;
  align-items:center !important;
  margin-bottom:12px !important;
}
#tab-resultado .v57-project-back,
#tab-resultado .v57-layout-btn{
  min-height:42px !important;
  border-radius:14px !important;
  padding:0 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
#tab-resultado .v57-project-back{
  justify-self:start !important;
  max-width:100% !important;
}
#tab-resultado .v57-layout-btn{
  justify-self:end !important;
  min-width:106px !important;
}
#tab-resultado .v57-quant-actions{
  margin:14px 0 0 !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
  width:100% !important;
}
#tab-resultado .v57-quant-actions button{
  width:100% !important;
  min-height:46px !important;
  border-radius:13px !important;
  font-weight:900 !important;
}
#tab-resultado .quant-page:not(.quant-page-multi) .quant-results-grid{
  margin-bottom:0 !important;
}

@media (max-width:700px){
  #tab-resultado .quant-page{
    padding-left:14px !important;
    padding-right:14px !important;
    overflow-x:hidden !important;
  }
  #tab-resultado .v57-quant-topbar{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:8px !important;
  }
  #tab-resultado .v57-project-back,
  #tab-resultado .v57-layout-btn{
    height:40px !important;
    min-height:40px !important;
    padding:0 11px !important;
    font-size:12px !important;
    border-radius:13px !important;
  }
  #tab-resultado .v57-project-back{
    max-width:170px !important;
  }
  #tab-resultado .v57-layout-btn{
    min-width:96px !important;
  }
  #tab-resultado .v57-quant-actions{
    gap:9px !important;
    margin-top:12px !important;
  }
  #tab-resultado .v57-quant-actions button{
    min-height:44px !important;
    font-size:13px !important;
  }
}
@media (max-width:360px){
  #tab-resultado .quant-page{padding-left:12px !important;padding-right:12px !important;}
  #tab-resultado .v57-project-back{max-width:150px !important;}
  #tab-resultado .v57-layout-btn{min-width:88px !important;}
}

/* v4-59 — Projeto Completo: botão Projetos alinhado no topo e menu mais limpo */
#tab-projetos .pc59-shell{
  width:100%;
  max-width:920px;
  margin:0 auto;
  padding:0 14px 24px;
  box-sizing:border-box;
}
#tab-projetos .pc59-hero{
  border:1px solid rgba(0,255,255,.28);
  background:linear-gradient(180deg,rgba(20,28,44,.88),rgba(16,23,36,.78));
  border-radius:20px;
  padding:16px;
  margin:0 0 12px;
  box-sizing:border-box;
}
#tab-projetos .pc59-hero-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
#tab-projetos .pc59-breadcrumb{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--text3);
  font-size:11px;
  font-weight:700;
}
#tab-projetos .pc59-breadcrumb span,
#tab-projetos .pc59-breadcrumb strong{color:var(--or1);}
#tab-projetos .pc59-projects-btn{
  height:36px;
  min-height:36px;
  padding:0 14px;
  border-radius:12px;
  flex:0 0 auto;
  align-self:flex-start;
}
#tab-projetos .pc59-kicker{
  color:var(--or1);
  font-size:11px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:.08em;
  margin-bottom:5px;
}
#tab-projetos .pc59-title{
  color:var(--text);
  font-size:22px;
  line-height:1.05;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#tab-projetos .pc59-panel{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(20,28,44,.88);
  border-radius:18px;
  padding:14px;
  box-sizing:border-box;
}
#tab-projetos .pc59-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
#tab-projetos .pc59-panel-title{
  color:var(--text);
  font-size:16px;
  line-height:1.15;
  font-weight:900;
}
#tab-projetos .pc59-panel-sub{
  color:var(--text3);
  font-size:11px;
  line-height:1.3;
  margin-top:2px;
  max-width:470px;
}
#tab-projetos .pc59-add-item{
  min-width:88px;
  height:40px;
  min-height:40px;
  padding:0 14px;
  border-radius:13px;
  flex:0 0 auto;
}
#tab-projetos .pc59-selection-box{
  border:1px solid rgba(0,255,255,.28);
  background:rgba(255,255,255,.035);
  border-radius:15px;
  padding:10px;
  margin:8px 0 12px;
}
#tab-projetos .pc59-selection-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#tab-projetos .pc59-selection-left{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
#tab-projetos .pc59-delete-selected{
  height:34px;
  min-height:34px;
  padding:0 12px;
  border-radius:12px;
  font-size:12px;
}
#tab-projetos .pc59-generate{
  width:100%;
  min-height:42px;
  margin-top:10px;
  border-radius:13px;
}
#tab-projetos .pc59-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
#tab-projetos .pc59-empty{
  margin-top:0;
  padding:28px 16px;
  border:1px dashed rgba(0,50,255,.45);
  border-radius:15px;
  background:rgba(255,255,255,.025);
}
@media(max-width:640px){
  #tab-projetos .pc59-shell{padding:0 10px 22px !important;}
  #tab-projetos .pc59-hero{padding:12px !important;border-radius:17px !important;}
  #tab-projetos .pc59-hero-top{margin-bottom:9px !important;align-items:flex-start !important;}
  #tab-projetos .pc59-breadcrumb{font-size:10px !important;line-height:1.2 !important;}
  #tab-projetos .pc59-projects-btn{
    height:36px !important;
    min-height:36px !important;
    padding:0 12px !important;
    font-size:12px !important;
    border-radius:12px !important;
  }
  #tab-projetos .pc59-title{font-size:19px !important;}
  #tab-projetos .pc59-panel{padding:12px !important;border-radius:16px !important;}
  #tab-projetos .pc59-panel-head{align-items:flex-start !important;gap:10px !important;}
  #tab-projetos .pc59-panel-title{font-size:15px !important;}
  #tab-projetos .pc59-panel-sub{font-size:10.5px !important;max-width:170px !important;}
  #tab-projetos .pc59-add-item{
    min-width:72px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 12px !important;
    font-size:12px !important;
  }
  #tab-projetos .pc59-list .p1-system-row{
    grid-template-columns:28px 36px minmax(0,1fr) auto !important;
    gap:8px !important;
    align-items:center !important;
    padding:10px !important;
    border-radius:14px !important;
  }
  #tab-projetos .pc59-list .p1-system-area{display:none !important;}
  #tab-projetos .pc59-list .item-actions{display:flex !important;gap:4px !important;margin-left:0 !important;}
  #tab-projetos .pc59-list .item-actions .ia-btn{
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    min-height:32px !important;
    border-radius:10px !important;
    font-size:13px !important;
  }
}
@media(max-width:360px){
  #tab-projetos .pc59-projects-btn{padding:0 10px !important;font-size:11px !important;}
  #tab-projetos .pc59-panel-sub{max-width:150px !important;}
  #tab-projetos .pc59-add-item{min-width:66px !important;padding:0 10px !important;}
}


/* v4-60 — Projeto Completo: botão ← Projetos fixado no topo direito do cabeçalho */
#tab-projetos .pc59-hero{
  position:relative !important;
  padding:16px 16px 18px !important;
  min-height:96px !important;
}
#tab-projetos .pc59-hero-top{
  display:block !important;
  margin:0 118px 8px 0 !important;
}
#tab-projetos .pc59-projects-btn{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  align-self:auto !important;
  height:38px !important;
  min-height:38px !important;
  min-width:92px !important;
  padding:0 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  z-index:2 !important;
}
#tab-projetos .pc59-kicker,
#tab-projetos .pc59-title{
  max-width:calc(100% - 118px) !important;
}
@media(max-width:640px){
  #tab-projetos .pc59-hero{
    padding:12px 12px 14px !important;
    min-height:88px !important;
  }
  #tab-projetos .pc59-hero-top{
    margin:0 104px 7px 0 !important;
  }
  #tab-projetos .pc59-projects-btn{
    top:12px !important;
    right:12px !important;
    height:36px !important;
    min-height:36px !important;
    min-width:88px !important;
    padding:0 12px !important;
    font-size:11.5px !important;
  }
  #tab-projetos .pc59-kicker,
  #tab-projetos .pc59-title{
    max-width:calc(100% - 104px) !important;
  }
}
@media(max-width:360px){
  #tab-projetos .pc59-hero-top{margin-right:94px !important;}
  #tab-projetos .pc59-projects-btn{
    min-width:82px !important;
    padding:0 9px !important;
    font-size:10.5px !important;
  }
  #tab-projetos .pc59-kicker,
  #tab-projetos .pc59-title{
    max-width:calc(100% - 94px) !important;
  }
}


/* v4-61 — Projeto Completo: alinhar botão ← Projetos no topo do cabeçalho real (pc11/pc55) */
#tab-projetos .pc11-hero.pc55-hero{
  position:relative !important;
  padding:14px 14px 16px !important;
  min-height:104px !important;
  box-sizing:border-box !important;
}
#tab-projetos .pc11-hero.pc55-hero .pc11-breadcrumb{
  margin:0 116px 8px 0 !important;
  max-width:calc(100% - 116px) !important;
  min-height:32px !important;
  display:flex !important;
  align-items:center !important;
  line-height:1.2 !important;
}
#tab-projetos .pc11-hero.pc55-hero .pc11-hero-main,
#tab-projetos .pc11-hero.pc55-hero .pc55-hero-main{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
#tab-projetos .pc11-hero.pc55-hero .pc55-title-block{
  display:block !important;
  max-width:calc(100% - 116px) !important;
}
#tab-projetos .pc11-hero.pc55-hero .pc55-actions,
#tab-projetos .pc11-hero.pc55-hero .pc58-project-actions{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  width:auto !important;
  max-width:none !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:flex-end !important;
  z-index:5 !important;
}
#tab-projetos .pc11-hero.pc55-hero .pc58-projects-btn,
#tab-projetos .pc11-hero.pc55-hero .pc55-actions .back-btn-sm{
  width:auto !important;
  min-width:96px !important;
  max-width:112px !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 12px !important;
  border-radius:13px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:12px !important;
  font-weight:850 !important;
  line-height:1 !important;
}
#tab-projetos .pc11-hero.pc55-hero .pc11-kicker,
#tab-projetos .pc11-hero.pc55-hero .pc11-title{
  max-width:calc(100% - 116px) !important;
}
@media(max-width:640px){
  #tab-projetos .pc11-hero.pc55-hero{
    padding:12px 12px 14px !important;
    min-height:106px !important;
  }
  #tab-projetos .pc11-hero.pc55-hero .pc11-breadcrumb{
    margin:0 100px 8px 0 !important;
    max-width:calc(100% - 100px) !important;
    min-height:34px !important;
  }
  #tab-projetos .pc11-hero.pc55-hero .pc55-title-block,
  #tab-projetos .pc11-hero.pc55-hero .pc11-kicker,
  #tab-projetos .pc11-hero.pc55-hero .pc11-title{
    max-width:calc(100% - 100px) !important;
  }
  #tab-projetos .pc11-hero.pc55-hero .pc55-actions,
  #tab-projetos .pc11-hero.pc55-hero .pc58-project-actions{
    top:12px !important;
    right:12px !important;
  }
  #tab-projetos .pc11-hero.pc55-hero .pc58-projects-btn,
  #tab-projetos .pc11-hero.pc55-hero .pc55-actions .back-btn-sm{
    min-width:90px !important;
    max-width:96px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 9px !important;
    font-size:11px !important;
  }
}
@media(max-width:360px){
  #tab-projetos .pc11-hero.pc55-hero .pc11-breadcrumb{
    margin-right:88px !important;
    max-width:calc(100% - 88px) !important;
  }
  #tab-projetos .pc11-hero.pc55-hero .pc55-title-block,
  #tab-projetos .pc11-hero.pc55-hero .pc11-kicker,
  #tab-projetos .pc11-hero.pc55-hero .pc11-title{
    max-width:calc(100% - 88px) !important;
  }
  #tab-projetos .pc11-hero.pc55-hero .pc58-projects-btn,
  #tab-projetos .pc11-hero.pc55-hero .pc55-actions .back-btn-sm{
    min-width:82px !important;
    max-width:88px !important;
    padding:0 8px !important;
    font-size:10.5px !important;
  }
}

/* v4-62 — ações de seleção em Projeto Completo sem menu de três pontos */
.pc62-selection-box{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pc62-selection-row{
  align-items:center;
}
.pc62-selection-left{
  min-height:30px;
}
.pc62-selected-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  width:100%;
}
.pc62-selected-actions button{
  min-height:42px;
  border-radius:12px;
  font-weight:800;
  white-space:nowrap;
  padding:10px 12px;
}
.pc62-action-main{
  grid-column:1 / -1;
}
@media(max-width:520px){
  .pc62-selected-actions{
    grid-template-columns:1fr;
  }
  .pc62-selected-actions button{
    width:100%;
  }
}

/* v4-63 — ações de itens selecionados como botões, sem menu de três pontos */
#tab-projetos .pc63-selected-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  width:100%;
  margin-top:10px;
}
#tab-projetos .pc63-selected-actions button{
  min-height:42px;
  border-radius:12px;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
  padding:10px 12px;
}
#tab-projetos .pc63-selected-actions .pc62-action-main{
  grid-column:1 / -1;
}
@media(max-width:420px){
  #tab-projetos .pc63-selected-actions{
    grid-template-columns:1fr;
  }
  #tab-projetos .pc63-selected-actions button{
    width:100%;
  }
}

/* v4-65 — Desktop: centralização do menu principal */
@media (min-width: 721px){
  .main-tabs{
    justify-content:center !important;
  }
  .main-tabs-inner{
    width:100% !important;
    max-width:var(--app-max) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    justify-content:center !important;
    padding-left:var(--app-pad) !important;
    padding-right:var(--app-pad) !important;
    overflow-x:visible !important;
    min-width:0 !important;
  }
  .main-tab{
    flex:0 0 auto !important;
  }
}

/* v4-66 — Projeto Completo: resultado de item com lista completa e ações após o quantitativo */
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi){
  height:auto !important;
  min-height:calc(100vh - 96px) !important;
  max-height:none !important;
  overflow:visible !important;
  display:block !important;
}
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-results-grid{
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  margin-bottom:14px !important;
}
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-results-grid .result-card{
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-results-grid .otim-section,
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-results-grid .mat-list{
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  padding-bottom:0 !important;
}
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .v57-quant-actions,
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-bottom-actions{
  position:static !important;
  margin-top:14px !important;
  padding-bottom:24px !important;
}
body.quant-mode .main-content,
body.quant-mode .content-inner,
body.quant-mode #tab-resultado{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  height:auto !important;
  min-height:100% !important;
}
@media (max-width:700px){
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi){
    min-height:calc(100vh - 82px) !important;
    padding-bottom:20px !important;
  }
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .v57-quant-actions button{
    min-height:46px !important;
  }
}

/* v4-67 — Projeto Completo: ações do quantitativo em grade responsiva
   4 colunas quando houver espaço; 2 colunas em largura intermediária; 1 coluna em telas estreitas. */
#tab-resultado .v57-quant-actions,
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .v57-quant-actions,
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-bottom-actions{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(145px, 1fr)) !important;
  gap:10px !important;
  align-items:stretch !important;
  width:100% !important;
}
#tab-resultado .v57-quant-actions button,
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .v57-quant-actions button,
body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-bottom-actions button{
  width:100% !important;
  min-width:0 !important;
  min-height:44px !important;
  padding-left:15px !important;
  padding-right:15px !important;
  white-space:normal !important;
  line-height:1.15 !important;
  text-align:center !important;
}
@media (min-width:900px){
  #tab-resultado .v57-quant-actions,
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .v57-quant-actions,
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-bottom-actions{
    grid-template-columns:repeat(4, minmax(145px, 1fr)) !important;
  }
}
@media (max-width:700px){
  #tab-resultado .v57-quant-actions,
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .v57-quant-actions,
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-bottom-actions{
    grid-template-columns:repeat(auto-fit, minmax(138px, 1fr)) !important;
    gap:9px !important;
  }
  #tab-resultado .v57-quant-actions button,
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .v57-quant-actions button,
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-bottom-actions button{
    padding-left:12px !important;
    padding-right:12px !important;
    font-size:12.5px !important;
  }
}
@media (max-width:318px){
  #tab-resultado .v57-quant-actions,
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .v57-quant-actions,
  body.quant-mode #tab-resultado .quant-page:not(.quant-page-multi) .quant-bottom-actions{
    grid-template-columns:1fr !important;
  }
}


/* v4-68 — Projeto Completo: etapa única de especificações */
.drawer-section-title{
  margin:18px 0 10px;
  padding-top:14px;
  border-top:1px solid var(--border);
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--text2);
}
.drawer-section-title:first-of-type{
  margin-top:10px;
  padding-top:0;
  border-top:0;
}

/* v4-69 — Especificações em grid responsivo para reduzir scroll */
.spec-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  column-gap:12px;
  row-gap:12px;
  align-items:stretch;
  margin-bottom:14px;
}
.spec-field{
  min-width:0;
  background:rgba(255,255,255,.018);
  border:1px solid rgba(255,255,255,.045);
  border-radius:14px;
  padding:10px;
}
.spec-field .field-lbl{
  margin-bottom:7px;
  min-height:14px;
}
.spec-field .opt-group{
  margin-bottom:0;
  gap:6px;
}
.spec-field .opt{
  padding:8px 10px;
  flex:1 1 auto;
  text-align:center;
  min-width:max-content;
}
.spec-toggle-field{
  display:flex;
  padding:0;
  border:0;
  background:transparent;
}
.spec-toggle-field .toggle-row{
  width:100%;
  margin-bottom:0;
  min-height:68px;
}
@media (max-width:560px){
  .spec-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    column-gap:8px;
    row-gap:9px;
  }
  .spec-field{
    padding:8px;
  }
  .spec-field .field-lbl{
    font-size:9.5px;
    letter-spacing:.65px;
  }
  .spec-field .opt-group{
    gap:5px;
  }
  .spec-field .opt{
    padding:8px 7px;
    font-size:11.5px;
    min-width:0;
  }
  .spec-toggle-field .toggle-row{
    padding:10px 9px;
    min-height:64px;
  }
  .spec-toggle-field .toggle-info .t-lbl{
    font-size:12px;
  }
  .spec-toggle-field .toggle-info .t-sub{
    font-size:10px;
    line-height:1.25;
  }
}
@media (max-width:370px){
  .spec-grid{
    grid-template-columns:1fr;
  }
}

/* v4-70 — Especificações em grid responsivo aplicadas a todos os sistemas */
.spec-grid-contents{display:contents;}
.spec-grid-contents[style*="display: none"],
.spec-grid-contents[style*="display:none"]{display:none!important;}
.spec-span-2{grid-column:1 / -1;}
.spec-info-field{background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 13px;color:var(--text2);line-height:1.55;}
.spec-info-title{color:var(--or1);font-weight:800;font-size:13px;margin-bottom:5px;}
.spec-info-line{font-size:12px;color:var(--text2);}
.spec-alert{background:rgba(0,50,255,.10);border:1px solid rgba(0,50,255,.25);border-radius:10px;padding:9px 11px;font-size:11px;color:var(--text2);}
#rs3 .spec-grid,#ts3 .spec-grid,#fs3 .spec-grid{margin-bottom:13px;}
#rs3 .spec-field,#ts3 .spec-field,#fs3 .spec-field{min-width:0;}
#t-direcao-wrap[style*="display: none"],#t-direcao-wrap[style*="display:none"],#t-la-wrap[style*="display: none"],#t-la-wrap[style*="display:none"],#t-perf-wrap[style*="display: none"],#t-perf-wrap[style*="display:none"],#r-la-wrap[style*="display: none"],#r-la-wrap[style*="display:none"],#f-tak-wrap[style*="display: none"],#f-tak-wrap[style*="display:none"],#f-amf-wrap[style*="display: none"],#f-amf-wrap[style*="display:none"]{display:none!important;}
@media(max-width:520px){
  #t-direcao-wrap > div[style*="grid-template-columns"]{grid-template-columns:1fr!important;}
  .spec-span-2{grid-column:auto;}
}

/* v4-71 — Correção global de leitura dos menus expansíveis/selects
   Garante contraste no Painel Admin e em todos os selects do app. */
select,
select.d-input,
.d-input select,
.admin-plan-select,
.perm-select,
.tech-filter-select {
  background-color: #172033 !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02) !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color-scheme: dark !important;
}

select:hover,
select.d-input:hover,
.admin-plan-select:hover,
.perm-select:hover,
.tech-filter-select:hover {
  border-color: rgba(0,255,255,.52) !important;
}

select:focus,
select.d-input:focus,
.admin-plan-select:focus,
.perm-select:focus,
.tech-filter-select:focus {
  outline: none !important;
  border-color: #00ffff !important;
  box-shadow: 0 0 0 3px rgba(0,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.04) !important;
  position: relative !important;
  z-index: 50 !important;
}

select option,
select optgroup,
.d-input option,
.admin-plan-select option,
.perm-select option,
.tech-filter-select option {
  background-color: #172033 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

select option:checked,
select option:hover,
.d-input option:checked,
.admin-plan-select option:checked,
.perm-select option:checked,
.tech-filter-select option:checked {
  background-color: #00ffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

/* Painel Admin: evita que campos e menus fiquem visualmente presos ou sem contraste em tabelas/cards */
#modal-admin select,
#modal-admin .d-input,
#modal-admin .admin-plan-select,
#modal-admin .perm-select,
#modal-admin .tech-filter-select {
  min-height: 42px;
  border-radius: 12px !important;
  font-size: 14px !important;
}

#modal-admin .admin-plan-select,
#modal-admin .perm-select {
  min-width: 132px;
}

#modal-admin .admin-users-table-wrap,
#modal-admin .admin-users-table,
#modal-admin .admin-users-table tbody,
#modal-admin .admin-users-table tr,
#modal-admin .admin-users-table td {
  position: relative;
}

#modal-admin .admin-users-table td:has(select),
#modal-admin .adm-row:has(select),
#modal-admin .adm-field-row:has(select) {
  overflow: visible !important;
  z-index: 5;
}

#modal-admin .admin-users-table td:has(select:focus),
#modal-admin .adm-row:has(select:focus),
#modal-admin .adm-field-row:has(select:focus) {
  z-index: 80;
}

@media (max-width: 760px) {
  #modal-admin select,
  #modal-admin .admin-plan-select,
  #modal-admin .perm-select,
  #modal-admin .tech-filter-select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important;
  }
}


/* v4-75 — Layout técnico mobile: respeita safe area e reduz altura do modal.
   Evita que o cabeçalho do layout de Parede fique sob status bar/notch do celular. */
@media (max-width: 620px){
  #modal-layout-parede.open,
  #modal-layout-teto.open{
    align-items:flex-start !important;
    justify-content:center !important;
    padding-left:10px !important;
    padding-right:10px !important;
    padding-top:max(28px, calc(env(safe-area-inset-top) + 18px)) !important;
    padding-bottom:max(12px, env(safe-area-inset-bottom)) !important;
  }
  #modal-layout-parede.open > div,
  #modal-layout-teto.open > div{
    width:100% !important;
    max-width:760px !important;
    height:82dvh !important;
    max-height:calc(100dvh - 72px) !important;
    margin:0 auto !important;
    border-radius:18px !important;
  }
  #modal-layout-parede.open > div > div:first-child,
  #modal-layout-teto.open > div > div:first-child{
    min-height:64px !important;
    padding:12px 14px !important;
    gap:10px !important;
  }
  #modal-layout-parede.open > div > div:first-child > div:first-child,
  #modal-layout-teto.open > div > div:first-child > div:first-child{
    min-width:0 !important;
    flex:1 1 auto !important;
  }
  #lp-titulo,
  #layout-titulo{
    font-size:14px !important;
    line-height:1.15 !important;
    white-space:normal !important;
  }
  #lp-sub,
  #layout-sub{
    font-size:10.5px !important;
    line-height:1.25 !important;
  }
  #modal-layout-parede.open button,
  #modal-layout-teto.open button{
    min-height:38px !important;
    touch-action:manipulation !important;
  }
  #lp-canvas-wrap,
  #layout-canvas-wrap{
    padding:12px !important;
    min-height:0 !important;
  }
  #lp-legenda,
  #layout-legenda{
    max-height:28dvh !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }
}

/* v4-75 — Especificações de Teto mobile: leitura em pares.
   Direção dos perfis mantém Largura/Comprimento lado a lado; Lã Mineral fica ao lado de Comprimento dos perfis. */
@media (max-width: 520px){
  #ts3 .spec-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
  #t-direcao-wrap{
    grid-column:1 / -1 !important;
  }
  #t-direcao-wrap > div[style*="grid-template-columns"]{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:7px !important;
  }
  #t-direcao-wrap .dir-opt{
    padding:9px 8px !important;
    min-width:0 !important;
  }
  #t-direcao-wrap .dir-opt > div{
    align-items:flex-start !important;
    gap:6px !important;
  }
  #t-direcao-wrap .dir-opt div[id$="-label"]{
    font-size:11px !important;
    line-height:1.2 !important;
  }
  #t-direcao-wrap .dir-opt div[id$="-desc"]{
    font-size:9.5px !important;
    line-height:1.2 !important;
  }
  #t-la-wrap,
  #t-perf-wrap{
    grid-column:auto !important;
  }
}
@media (max-width: 340px){
  #ts3 .spec-grid{
    grid-template-columns:1fr !important;
  }
  #t-direcao-wrap > div[style*="grid-template-columns"]{
    grid-template-columns:1fr !important;
  }
}


/* v4-77 — Parede: Tipo de chapa igual ao padrão compacto do Teto */
#ps3 #ctp-ST,
#ps3 #ctp-RU,
#ps3 #ctp-RF{
  min-width:0 !important;
  flex:1 1 0 !important;
}
@media (max-width:520px){
  #ps3 #ctp-ST,
  #ps3 #ctp-RU,
  #ps3 #ctp-RF{
    padding:8px 6px !important;
  }
  #ps3 #ctp-ST > div:first-child,
  #ps3 #ctp-RU > div:first-child,
  #ps3 #ctp-RF > div:first-child{
    font-size:12px !important;
    line-height:1.1 !important;
  }
  #ps3 #ctp-ST > div:last-child,
  #ps3 #ctp-RU > div:last-child,
  #ps3 #ctp-RF > div:last-child{
    font-size:9px !important;
    line-height:1.1 !important;
    white-space:normal !important;
  }
}

/* v4-78 — UX de Vãos e Aberturas: leitura, labels e grid responsivo */
.vao-card{padding:14px;border-radius:16px;}
.vao-head{gap:12px;align-items:flex-start;}
.vao-lbl{display:block;font-size:14px;font-weight:800;color:var(--text1);line-height:1.2;}
.vao-hint{font-size:11px;color:var(--text3);margin-top:3px;line-height:1.25;}
.vao-tipo-group{margin:10px 0 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.vao-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;}
.vao-field{display:flex;flex-direction:column;gap:6px;min-width:0;}
.vao-field>span{font-size:10.5px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;color:var(--text2);line-height:1.15;}
.vao-field>span em{font-style:normal;color:var(--text3);font-weight:700;text-transform:none;letter-spacing:0;}
.vao-field .d-input{width:100%;min-width:0;}
.vao-position{margin-top:12px;padding-top:12px;border-top:1px solid rgba(148,163,184,.20);}
.vao-section-title{font-size:11px;font-weight:900;color:var(--text2);letter-spacing:.055em;text-transform:uppercase;margin-bottom:3px;}
.vao-section-title span{color:var(--text3);font-weight:800;text-transform:none;letter-spacing:0;}
.vao-section-sub{font-size:11px;color:var(--text3);line-height:1.35;margin-bottom:9px;}
.vao-peitoril{margin-top:10px;max-width:calc(50% - 5px);}
@media (max-width:430px){
  .vao-card{padding:12px;}
  .vao-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .vao-tipo-group{gap:7px;}
  .vao-tipo-group .opt{padding-left:6px;padding-right:6px;font-size:12px;}
  .vao-field>span{font-size:10px;}
  .vao-peitoril{max-width:none;}
}
@media (max-width:340px){
  .vao-grid,.vao-tipo-group{grid-template-columns:1fr;}
}

/* v4-79 — Painel Admin / Planos: responsividade mobile refinada
   Corrige overflow, textos espremidos, grids de status e botões em telas estreitas. */
.admin-panel-stat{
  min-width:0;
  background:rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:10px 11px;
  box-sizing:border-box;
}
.admin-panel-stat span{
  display:block;
  color:var(--text3);
  font-size:10.5px;
  font-weight:800;
  line-height:1.25;
  margin-bottom:4px;
}
.admin-panel-stat strong{
  display:block;
  color:var(--text);
  font-size:12.5px;
  font-weight:900;
  line-height:1.25;
  word-break:normal;
  overflow-wrap:anywhere;
}

@media (max-width: 720px){
  #modal-admin{
    padding:6px !important;
    align-items:center !important;
    justify-content:center !important;
  }
  #modal-admin .modal-card{
    width:calc(100vw - 12px) !important;
    max-width:calc(100vw - 12px) !important;
    max-height:calc(100dvh - 12px) !important;
    border-radius:18px !important;
  }
  #modal-admin .modal-card > div:first-child{
    padding:15px 16px !important;
  }
  #modal-admin-body{
    padding:10px 12px 18px !important;
    overflow-x:hidden !important;
  }
  #modal-admin .adm-shell{
    grid-template-columns:1fr !important;
    grid-template-rows:auto 1fr !important;
    min-width:0 !important;
    width:100% !important;
  }
  #modal-admin .adm-nav{
    padding:8px 6px !important;
    gap:5px !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }
  #modal-admin .adm-nav-item{
    min-width:58px !important;
    padding:7px 8px !important;
    white-space:nowrap !important;
  }
  #modal-admin .adm-content{
    padding:14px 10px 22px !important;
    min-width:0 !important;
    overflow-x:hidden !important;
  }

  #modal-admin .admin-plan-config,
  #modal-admin .admin-users-intro,
  #modal-admin .admin-plan-block,
  #modal-admin .admin-plan-system-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  #modal-admin .admin-plan-config{
    padding:12px !important;
    border-radius:16px !important;
    margin:0 0 12px !important;
  }
  #modal-admin .admin-plan-config[style*="margin-top"]{
    margin-top:12px !important;
  }
  #modal-admin .admin-plan-config-head,
  #modal-admin .admin-users-intro{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  #modal-admin .admin-plan-config-head > div,
  #modal-admin .admin-users-intro > div{
    min-width:0 !important;
    max-width:100% !important;
  }
  #modal-admin .admin-plan-config-head strong,
  #modal-admin .admin-users-intro strong{
    display:block !important;
    line-height:1.25 !important;
    word-break:normal !important;
  }
  #modal-admin .admin-plan-config-head span,
  #modal-admin .admin-users-intro span{
    max-width:100% !important;
    line-height:1.4 !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }
  #modal-admin .admin-users-pill{
    align-self:flex-start !important;
    max-width:100% !important;
    white-space:normal !important;
    line-height:1.25 !important;
    text-align:left !important;
  }

  #modal-admin .admin-plan-config-grid,
  #modal-admin .admin-plan-systems-grid,
  #modal-admin .admin-plan-systems-grid-wide,
  #modal-admin .auto-pro-trial-stats,
  #modal-admin .admin-plan-config > div[style*="grid-template-columns:repeat(3"],
  #modal-admin .admin-plan-config > div[style*="grid-template-columns: repeat(3"]{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  #modal-admin .admin-panel-stat{
    padding:10px 11px !important;
  }
  #modal-admin .admin-panel-stat span{
    font-size:10.5px !important;
    line-height:1.25 !important;
  }
  #modal-admin .admin-panel-stat strong{
    font-size:12.5px !important;
    line-height:1.25 !important;
  }

  #modal-admin .admin-plan-num,
  #modal-admin .admin-plan-check{
    display:flex !important;
    align-items:stretch !important;
    gap:8px !important;
    padding:10px !important;
    margin:7px 0 !important;
    min-width:0 !important;
  }
  #modal-admin .admin-plan-num{
    flex-direction:column !important;
  }
  #modal-admin .admin-plan-check{
    flex-direction:row !important;
  }
  #modal-admin .admin-plan-num span,
  #modal-admin .admin-plan-check span{
    min-width:0 !important;
    width:100% !important;
  }
  #modal-admin .admin-plan-num strong,
  #modal-admin .admin-plan-check strong{
    font-size:12px !important;
    line-height:1.25 !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }
  #modal-admin .admin-plan-num small,
  #modal-admin .admin-plan-check small{
    font-size:10.5px !important;
    line-height:1.3 !important;
  }
  #modal-admin .admin-plan-num input{
    width:100% !important;
    max-width:100% !important;
    min-height:42px !important;
    font-size:16px !important;
    text-align:left !important;
  }

  #modal-admin .admin-plan-config .admin-user-actions,
  #modal-admin .admin-users-intro .admin-user-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    gap:8px !important;
    justify-content:stretch !important;
  }
  #modal-admin .admin-plan-config .admin-user-actions button,
  #modal-admin .admin-users-intro .admin-user-actions button{
    width:100% !important;
    min-height:42px !important;
    justify-content:center !important;
    white-space:normal !important;
    line-height:1.2 !important;
  }

  #modal-admin .auto-pro-trial-config .adm-field-row{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  #modal-admin .auto-pro-trial-config label,
  #modal-admin .auto-pro-trial-config .d-input{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
}


/* v4-81 — Correção responsiva Admin > Config */
#modal-admin .modal-card{max-width:min(1040px,96vw);}
#modal-admin .adm-content,
#modal-admin .adm-card,
#modal-admin .adm-master-row,
#modal-admin .adm-config-app-row{min-width:0;box-sizing:border-box;}
#modal-admin .adm-card{overflow:hidden;}
#modal-admin .adm-config-app-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(116px,auto)!important;gap:10px!important;align-items:center!important;}
#modal-admin .adm-config-app-row .d-input{min-width:0!important;width:100%!important;}
#modal-admin .adm-config-app-row .btn-primary{min-width:112px!important;width:auto!important;white-space:nowrap!important;}
#modal-admin .adm-master-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;}
#modal-admin .adm-master-email,
#modal-admin .adm-master-label,
#modal-admin code{overflow-wrap:anywhere;word-break:break-word;}
#modal-admin .adm-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
#modal-admin .adm-actions .btn-primary{max-width:100%;white-space:normal;}
#modal-admin .adm-card .d-input{width:100%;max-width:100%;box-sizing:border-box;}
#modal-admin .adm-card div[style*="justify-content:space-between"] span{min-width:0;overflow-wrap:anywhere;}
@media(max-width:680px){
  #modal-admin{padding:8px!important;align-items:center!important;}
  #modal-admin .modal-card{width:min(96vw,420px)!important;max-height:94vh!important;border-radius:18px!important;}
  #modal-admin .modal-card > div:first-child{padding:16px 18px!important;}
  #modal-admin .adm-content{padding:14px!important;overflow-x:hidden!important;}
  #modal-admin .adm-section-title{font-size:17px!important;line-height:1.25!important;}
  #modal-admin .adm-section-sub{font-size:11.5px!important;line-height:1.45!important;margin-bottom:14px!important;}
  #modal-admin .adm-card{padding:14px!important;border-radius:16px!important;}
  #modal-admin .adm-card-title{font-size:13px!important;line-height:1.25!important;}
  #modal-admin .adm-card-sub{font-size:11px!important;line-height:1.45!important;}
  #modal-admin .adm-config-app-row{grid-template-columns:1fr!important;}
  #modal-admin .adm-config-app-row .btn-primary{width:100%!important;min-height:46px!important;}
  #modal-admin .adm-master-row{grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;}
  #modal-admin .adm-master-row .adm-badge{justify-self:flex-start;}
  #modal-admin .adm-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  #modal-admin .adm-actions .btn-primary,
  #modal-admin .adm-actions .btn-outline,
  #modal-admin .adm-actions .btn-danger{width:100%!important;min-height:46px!important;}
  #modal-admin .adm-card div[style*="display:flex;justify-content:space-between"]{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;align-items:start!important;}
  #modal-admin .adm-card div[style*="display:flex;justify-content:space-between"] span:last-child{text-align:left!important;}
}
@media(max-width:380px){
  #modal-admin .adm-nav-item{min-width:54px!important;padding:7px 8px!important;}
  #modal-admin .adm-nav-lbl{font-size:10px!important;}
  #modal-admin .adm-content{padding:12px!important;}
  #modal-admin .adm-card{padding:12px!important;}
}


/* v4-85 — Login: Google como ação secundária e texto público sem menção a Admin */
#s-login .google-btn{
  background:rgba(255,255,255,.045) !important;
  color:var(--text) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  box-shadow:none !important;
  min-height:48px !important;
  padding:12px 14px !important;
  font-weight:750 !important;
}
#s-login .google-btn:hover,
#s-login .google-btn:focus-visible{
  background:rgba(255,255,255,.075) !important;
  border-color:rgba(0,255,255,.35) !important;
}
#s-login .google-btn svg{
  flex:0 0 auto;
}
#s-login .login-btn{
  box-shadow:0 14px 32px rgba(0,50,255,.24) !important;
}

/* v4-88 — Padronização total da identidade azul/ciano: remoção dos resíduos amarelo/laranja */
:root{
  --or1:#00ffff !important;
  --or2:#0032ff !important;
  --orange:#00ffff !important;
  --orange-2:#0032ff !important;
  --brand:#00ffff !important;
  --brand2:#0032ff !important;
  --grad:linear-gradient(135deg,#00ffff 0%,#0032ff 100%) !important;
}

/* Cards, headers e estados que ainda herdavam laranja */
.pc11-hero,
.v3-mode-card.primary,
.quick-result-card,
.quick-empty,
.empty-card,
.total-consolidado-card-v95,
.qexec-card,
.tech-notes,
.quick-category.selected,
.quick-system-card.sel,
.quick-check-card.selected,
body.quant-mode #tab-resultado .total-consolidado-card-v95,
body.quant-mode #tab-resultado .qexec-card{
  border-color:rgba(0,255,255,.35) !important;
  background:linear-gradient(135deg,rgba(0,255,255,.12),rgba(0,50,255,.05),rgba(255,255,255,.025)) !important;
  box-shadow:0 14px 40px rgba(0,50,255,.14) !important;
}

/* Linhas de progresso/separadores */
.quick-progress span.on,
.stepbar .step.active,
.stepbar-line.active,
.progress-line.active,
.wizard-progress .active,
.pc11-step.active,
body.quant-mode #tab-resultado .qsum-breakdown-details summary{
  background:linear-gradient(90deg,#00ffff,#0032ff) !important;
  border-color:rgba(0,255,255,.48) !important;
  color:#fff !important;
  box-shadow:0 0 22px rgba(0,255,255,.16) !important;
}

/* Botões e chamadas principais */
.btn-primary,
.btn-next,
.login-btn,
.quick-btn-primary,
.quick-calc-btn,
.quick-action-primary,
.pc11-primary,
button.primary,
button[class*="primary"],
button[class*="btn-primary"]{
  background:linear-gradient(135deg,#00ffff 0%,#0032ff 100%) !important;
  border-color:transparent !important;
  color:#fff !important;
  box-shadow:0 12px 34px rgba(0,50,255,.22),0 1px 0 rgba(255,255,255,.22) inset !important;
}

/* Números, valores, chips e textos de destaque */
.result-qty,
.mat-qty,
.otim-qty,
.qsum-total,
.qsum-system-qty,
.badge,
.r-tag,
.pc11-breadcrumb strong,
.pc11-kicker,
.quick-mini-option.selected,
.quick-list-row strong:last-child,
.quick-result-card strong,
.quick-result-card span{
  color:#00ffff !important;
}

/* Radios, opções selecionadas e foco */
.opt.sel,
.sys-item.sel,
.quick-mini-option.selected,
.quick-option.selected,
.quick-check-card.selected,
input[type="radio"]:checked,
input[type="checkbox"]:checked{
  accent-color:#00ffff !important;
  border-color:#00ffff !important;
  background-color:rgba(0,255,255,.10) !important;
  box-shadow:0 0 0 2px rgba(0,255,255,.10) inset !important;
}

/* Bordas pontilhadas/avisos que ficaram âmbar */
[style*="255,168,0"],
[style*="255,138,0"],
[style*="255,109,0"],
[style*="245,158,11"],
[style*="249,115,22"]{
  border-color:rgba(0,255,255,.35) !important;
  background:rgba(0,255,255,.08) !important;
  color:var(--text2) !important;
  box-shadow:none !important;
}

#s-login .login-btn{
  box-shadow:0 14px 32px rgba(0,50,255,.24) !important;
}

/* v4-95: padronização do botão Novo Projeto */
#v434-create-proj-btn,.quick-project-create-modal .btn-next,#drawer-novo-proj .btn-next{color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.35) !important;}

/* === Tour Guiado v4-98 — didático visual com ID Otimizza Calc === */
#modal-tour .tour-slide{gap:0;}
#modal-tour .tour-slide-desc strong{color:var(--or1);}
.tour-kpi-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;max-width:500px;margin-top:18px;}
.tour-kpi-row div{border:1px solid rgba(0,255,255,.18);background:linear-gradient(145deg,rgba(0,255,255,.08),rgba(255,255,255,.025));border-radius:16px;padding:14px 10px;text-align:center;}
.tour-kpi-row b{display:block;color:var(--or1);font-size:20px;line-height:1;font-weight:900;margin-bottom:7px;}
.tour-kpi-row span{display:block;color:var(--text2);font-size:11px;font-weight:800;line-height:1.35;}
.tour-home-preview{width:100%;max-width:470px;display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 18px;}
.tour-home-card{position:relative;min-height:116px;padding:20px 18px;border-radius:20px;background:linear-gradient(155deg,rgba(255,255,255,.07),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 18px 44px rgba(0,0,0,.22);overflow:hidden;}
.tour-home-card-fast{border-color:rgba(0,255,255,.34);background:linear-gradient(155deg,rgba(0,255,255,.07),rgba(255,255,255,.025));}
.tour-home-card:before{content:"";position:absolute;inset:-1px;pointer-events:none;background:radial-gradient(circle at 86% 12%,rgba(0,255,255,.15),transparent 32%);}
.tour-home-icon{position:absolute;top:15px;left:50%;transform:translateX(-50%);color:var(--or1);font-size:27px;line-height:1;font-weight:900;}
.tour-home-card strong{display:block;color:var(--text);font-size:15px;font-weight:900;margin-top:22px;margin-bottom:8px;}
.tour-home-card span{display:block;color:var(--text3);font-size:11px;line-height:1.45;max-width:330px;}
.tour-home-card small{display:inline-flex;margin-top:14px;padding:5px 9px;border-radius:999px;background:rgba(0,255,255,.10);color:var(--or1);font-size:9px;font-weight:900;}
.tour-stepper-card,.tour-project-board{width:100%;max-width:500px;border:1px solid rgba(255,255,255,.09);background:linear-gradient(155deg,rgba(255,255,255,.06),rgba(255,255,255,.025));border-radius:20px;padding:16px;margin-bottom:18px;box-shadow:0 18px 44px rgba(0,0,0,.20);}
.tour-step{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start;padding:12px;border-radius:15px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.03);margin-bottom:8px;}
.tour-step:last-child{margin-bottom:0;}
.tour-step b,.tour-project-line i{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:rgba(0,255,255,.10);color:var(--or1);border:1px solid rgba(0,255,255,.20);font-style:normal;font-weight:900;}
.tour-step.active b{background:linear-gradient(135deg,var(--or1),var(--or2));color:#00131a;}
.tour-step strong,.tour-project-line strong{display:block;color:var(--text);font-size:13px;font-weight:900;margin-bottom:4px;}
.tour-step span,.tour-project-line small{display:block;color:var(--text3);font-size:11px;line-height:1.42;}
.tour-project-header{display:flex;justify-content:space-between;align-items:center;padding:0 2px 12px;margin-bottom:10px;border-bottom:1px solid rgba(255,255,255,.07);}
.tour-project-header span{color:var(--text);font-weight:900;font-size:14px;}
.tour-project-header button{border:0;border-radius:999px;padding:7px 11px;background:linear-gradient(135deg,var(--or1),var(--or2));color:#00131a;font-size:11px;font-weight:900;}
.tour-project-line{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:center;padding:10px 8px;border-radius:14px;background:rgba(255,255,255,.03);margin-top:7px;}
.tour-output-grid{width:100%;max-width:500px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px;}
.tour-output-grid div{border:1px solid rgba(255,255,255,.09);background:linear-gradient(155deg,rgba(255,255,255,.06),rgba(255,255,255,.025));border-radius:18px;padding:16px;min-height:122px;box-shadow:0 14px 34px rgba(0,0,0,.18);}
.tour-output-grid b{display:block;font-size:23px;margin-bottom:9px;}
.tour-output-grid strong{display:block;color:var(--text);font-size:13px;font-weight:900;margin-bottom:6px;}
.tour-output-grid span{display:block;color:var(--text3);font-size:11px;line-height:1.42;}
.tour-final-card{width:100%;max-width:460px;border:1px solid rgba(0,255,255,.22);background:radial-gradient(circle at 50% 0,rgba(0,255,255,.13),transparent 44%),linear-gradient(155deg,rgba(255,255,255,.06),rgba(255,255,255,.025));border-radius:24px;padding:28px 22px;text-align:center;margin:0 0 18px;box-shadow:0 20px 50px rgba(0,0,0,.24);}
.tour-final-mark{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:0 auto 14px;border-radius:50%;background:linear-gradient(135deg,var(--or1),var(--or2));color:#00131a;font-size:28px;font-weight:900;}
.tour-final-card strong{display:block;color:var(--text);font-size:18px;font-weight:900;margin-bottom:8px;}
.tour-final-card span{display:block;color:var(--text2);font-size:12px;line-height:1.6;}
@media(max-width:620px){
  .tour-kpi-row{grid-template-columns:1fr;gap:8px;}
  .tour-output-grid{grid-template-columns:1fr;}
  .tour-output-grid div{min-height:auto;}
  .tour-home-card{min-height:108px;padding:18px 16px;}
  .tour-stepper-card,.tour-project-board{padding:12px;}
}

/* === v4-99 — Refinamento visual do Tour Guiado: leitura, ícones e hierarquia === */
#modal-tour .tour-pro-modal{
  width:min(720px, calc(100vw - 24px)) !important;
  border:1px solid rgba(0,255,255,.16) !important;
  background:linear-gradient(180deg,rgba(12,19,38,.98),rgba(7,12,24,.98)) !important;
  box-shadow:0 28px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
#modal-tour .tour-pro-slide{
  padding:22px 28px 18px !important;
  gap:0 !important;
}
.tour-topline{
  width:100%;max-width:540px;display:flex;align-items:center;justify-content:space-between;
  margin:0 auto 14px;padding:8px 10px;border-radius:999px;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);
  color:var(--text3);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.10em;
}
.tour-topline b{color:var(--or1);font-size:10px;letter-spacing:.02em;}
.tour-hero-panel{
  width:100%;max-width:540px;display:grid;grid-template-columns:1fr 88px;gap:14px;align-items:stretch;margin:0 auto 18px;
}
#modal-tour .tour-logo-start{
  margin:0 !important;min-height:110px !important;padding:20px !important;border-radius:22px !important;
  background:radial-gradient(circle at 14% 20%,rgba(0,255,255,.18),transparent 36%),linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025)) !important;
  border:1px solid rgba(0,255,255,.18) !important;
}
.tour-hero-icon{
  display:flex;align-items:center;justify-content:center;border-radius:22px;
  background:linear-gradient(145deg,rgba(0,50,255,.24),rgba(0,255,255,.08));
  border:1px solid rgba(0,255,255,.18);color:var(--or1);
}
.tour-hero-icon svg{width:42px;height:42px;filter:drop-shadow(0 0 16px rgba(0,255,255,.22));}
#modal-tour .tour-slide-num{margin-bottom:7px !important;color:var(--or1) !important;letter-spacing:.13em !important;}
#modal-tour .tour-slide-title{max-width:560px;font-size:24px !important;line-height:1.12 !important;margin-bottom:10px !important;}
#modal-tour .tour-slide-desc{max-width:560px;font-size:14px !important;line-height:1.68 !important;color:rgba(231,238,255,.76) !important;}
.tour-pro-kpis{max-width:540px !important;gap:12px !important;margin-top:20px !important;}
.tour-pro-kpis div{position:relative;overflow:hidden;padding:15px 10px 14px !important;border-radius:18px !important;}
.tour-pro-kpis div:after{content:"";position:absolute;inset:auto -20% -55% -20%;height:70%;background:radial-gradient(circle,rgba(0,255,255,.18),transparent 62%);}
.tour-pro-kpis b{display:flex !important;align-items:center;justify-content:center;width:34px;height:34px;margin:0 auto 8px !important;border-radius:50%;background:linear-gradient(135deg,var(--or1),var(--or2));color:#00131a !important;font-size:15px !important;}
.tour-pro-kpis span{font-size:11px !important;position:relative;z-index:1;}
.tour-pro-home-preview{max-width:540px !important;gap:12px !important;margin-bottom:18px !important;}
.tour-pro-home-preview .tour-home-card{min-height:132px !important;padding:22px 20px 18px !important;border-radius:22px !important;}
.tour-pro-home-preview .tour-home-icon{top:18px !important;left:auto !important;right:18px !important;transform:none !important;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(0,255,255,.10);border:1px solid rgba(0,255,255,.18);}
.tour-svg-icon svg{width:25px;height:25px;}
.tour-pro-home-preview .tour-home-card strong{font-size:16px !important;margin-top:0 !important;padding-right:58px;margin-bottom:9px !important;}
.tour-pro-home-preview .tour-home-card span{font-size:12px !important;line-height:1.55 !important;max-width:390px !important;}
.tour-flow-visual{width:100%;max-width:600px;display:grid;grid-template-columns:1fr 30px 1fr 30px 1fr;gap:8px;align-items:stretch;margin:0 auto 20px;}
.tour-flow-node{display:flex;flex-direction:column;gap:8px;min-height:152px;padding:16px 14px;border-radius:22px;background:linear-gradient(155deg,rgba(255,255,255,.065),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.09);box-shadow:0 16px 40px rgba(0,0,0,.18);}
.tour-flow-node.active{border-color:rgba(0,255,255,.28);background:linear-gradient(155deg,rgba(0,255,255,.10),rgba(255,255,255,.025));}
.tour-flow-node i{width:38px;height:38px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--or1);background:rgba(0,255,255,.10);border:1px solid rgba(0,255,255,.18);font-style:normal;}
.tour-flow-node svg{width:23px;height:23px;}
.tour-flow-node strong{color:var(--text);font-size:13px;font-weight:900;line-height:1.2;}
.tour-flow-node span{color:var(--text3);font-size:11px;line-height:1.45;}
.tour-flow-arrow{display:flex;align-items:center;justify-content:center;color:var(--or1);font-size:21px;font-weight:900;opacity:.85;}
.tour-pro-board{max-width:560px !important;padding:18px !important;border-radius:24px !important;}
.tour-pro-board .tour-project-header{padding-bottom:14px !important;margin-bottom:11px !important;}
.tour-pro-board .tour-project-line{padding:12px 10px !important;border:1px solid rgba(255,255,255,.06);}
.tour-pro-board .tour-project-line strong{font-size:13px !important;}
.tour-pro-board .tour-project-line small{font-size:11px !important;line-height:1.45 !important;}
.tour-pro-output{max-width:560px !important;gap:12px !important;}
.tour-pro-output div{position:relative;min-height:132px !important;padding:18px !important;border-radius:22px !important;overflow:hidden;}
.tour-pro-output div:before{content:"";position:absolute;right:-26px;top:-26px;width:78px;height:78px;border-radius:50%;background:rgba(0,255,255,.08);}
.tour-pro-output b{display:flex !important;align-items:center;justify-content:center;width:42px;height:42px;border-radius:15px;margin-bottom:11px !important;background:rgba(0,255,255,.10);border:1px solid rgba(0,255,255,.18);color:var(--or1);}
.tour-pro-output b svg{width:24px;height:24px;}
.tour-pro-output strong{font-size:13px !important;}
.tour-pro-output span{font-size:11px !important;line-height:1.48 !important;}
.tour-pro-final{max-width:520px !important;border-radius:28px !important;padding:34px 26px !important;}
.tour-pro-final .tour-final-mark{box-shadow:0 0 0 8px rgba(0,255,255,.08),0 14px 32px rgba(0,255,255,.14);}
#modal-tour .tour-nav{border-top:1px solid rgba(255,255,255,.07) !important;background:rgba(7,12,24,.92) !important;backdrop-filter:blur(16px);}
#modal-tour .tour-dot{width:8px;height:8px;background:rgba(255,255,255,.16);}
#modal-tour .tour-dot.active{width:28px;background:linear-gradient(90deg,var(--or1),var(--or2));}
@media(max-width:620px){
  #modal-tour .tour-pro-slide{padding:18px 16px 12px !important;}
  .tour-topline{margin-bottom:10px;}
  .tour-hero-panel{grid-template-columns:1fr;gap:10px;margin-bottom:14px;}
  .tour-hero-icon{display:none;}
  #modal-tour .tour-logo-start{min-height:88px !important;padding:16px !important;}
  #modal-tour .tour-slide-title{font-size:20px !important;}
  #modal-tour .tour-slide-desc{font-size:13px !important;line-height:1.58 !important;}
  .tour-flow-visual{grid-template-columns:1fr;gap:10px;}
  .tour-flow-arrow{display:none;}
  .tour-flow-node{min-height:auto;padding:14px;}
  .tour-pro-kpis{grid-template-columns:1fr !important;}
  .tour-pro-home-preview .tour-home-card{min-height:auto !important;padding:18px 16px !important;}
  .tour-pro-home-preview .tour-home-icon{width:38px;height:38px;right:14px;top:14px;}
  .tour-pro-output{grid-template-columns:1fr !important;}
  .tour-pro-output div{min-height:auto !important;}
  .tour-pro-final{padding:28px 20px !important;}
}


/* === v4-100 — Correção de responsividade dos ícones no Tour Guiado === */
#modal-tour .tour-pro-modal{
  max-height:min(92vh, 860px) !important;
  overflow:hidden !important;
}
#modal-tour .tour-slides{
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
}
#modal-tour .tour-pro-slide{
  min-height:auto !important;
  justify-content:flex-start !important;
}
#modal-tour svg{
  display:block !important;
  flex:0 0 auto !important;
  max-width:100% !important;
  max-height:100% !important;
}
#modal-tour .tour-hero-icon{
  width:88px !important;
  min-width:88px !important;
  height:auto !important;
}
#modal-tour .tour-hero-icon svg{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
}
#modal-tour .tour-svg-icon svg,
#modal-tour .tour-home-icon svg{
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;
  max-width:24px !important;
  max-height:24px !important;
}
#modal-tour .tour-flow-node i,
#modal-tour .tour-pro-output b{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  overflow:hidden !important;
}
#modal-tour .tour-flow-node svg,
#modal-tour .tour-pro-output b svg{
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;
  max-width:24px !important;
  max-height:24px !important;
}
#modal-tour .tour-topline{
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:row !important;
  gap:10px !important;
}
#modal-tour .tour-topline span,
#modal-tour .tour-topline b{
  display:inline-block !important;
  white-space:nowrap !important;
}
#modal-tour .tour-output-grid div{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
}
@media(max-width:760px){
  #modal-tour .tour-pro-modal{width:calc(100vw - 20px) !important;max-height:92vh !important;}
  #modal-tour .tour-pro-slide{padding:18px 16px 14px !important;}
  #modal-tour .tour-flow-visual{grid-template-columns:1fr !important;}
  #modal-tour .tour-flow-arrow{display:none !important;}
  #modal-tour .tour-flow-node{min-height:auto !important;padding:14px !important;}
  #modal-tour .tour-pro-output{grid-template-columns:1fr 1fr !important;}
}
@media(max-width:520px){
  #modal-tour .tour-pro-output{grid-template-columns:1fr !important;}
  #modal-tour .tour-pro-kpis{grid-template-columns:1fr !important;}
  #modal-tour .tour-pro-home-preview .tour-home-card{padding:18px 14px !important;}
  #modal-tour .tour-nav{gap:10px !important;padding:12px !important;}
  #modal-tour .tour-no-show{font-size:11px !important;}
}


/* ══ INSTALAR APP / PWA ══ */
.h-install-app{
  gap:7px;
  background:linear-gradient(135deg,rgba(0,255,255,.12),rgba(0,50,255,.18));
  border-color:rgba(0,255,255,.24);
  color:var(--text);
  font-weight:700;
}
.h-install-app:hover{border-color:rgba(0,255,255,.48);transform:translateY(-1px);}
.install-app-modal{
  width:min(620px,94vw);
  max-height:92vh;
  overflow:hidden;
  padding:0;
  border-radius:24px;
  border:1px solid rgba(0,255,255,.22);
  background:linear-gradient(180deg,rgba(3,31,41,.98),rgba(2,20,30,.98));
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}
.install-app-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.02);
}
.install-app-brand img{height:42px;width:auto;max-width:260px;display:block;}
.install-app-close{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);color:var(--text2);font-size:20px;cursor:pointer;
}
.install-app-body{padding:28px 28px 30px;text-align:center;overflow-y:auto;max-height:calc(92vh - 76px);}
.install-app-icon{
  width:78px;height:78px;margin:0 auto 16px;border-radius:24px;
  display:flex;align-items:center;justify-content:center;color:var(--or1);
  background:linear-gradient(135deg,rgba(0,255,255,.12),rgba(0,50,255,.22));
  border:1px solid rgba(0,255,255,.22);
}
.install-app-icon svg{width:42px;height:42px;}
.install-app-kicker{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:var(--text3);margin-bottom:8px;}
.install-app-body h2{font-size:24px;line-height:1.15;margin:0 0 10px;color:var(--text);}
.install-app-body p{font-size:14px;line-height:1.65;color:var(--text2);max-width:480px;margin:0 auto 20px;}
.install-app-primary{
  width:min(360px,100%);height:52px;border:0;border-radius:16px;cursor:pointer;
  font-size:15px;font-weight:800;color:#fff;
  background:linear-gradient(135deg,#00d7ff,#0032ff);
  box-shadow:0 14px 34px rgba(0,88,255,.28);
}
.install-app-primary.is-disabled{
  cursor:default;background:rgba(255,255,255,.08);color:var(--text3);box-shadow:none;border:1px solid rgba(255,255,255,.08);
}
.install-platform-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px;text-align:left;}
.install-platform-card{
  display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:16px;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);
}
.install-platform-ico{width:32px;height:32px;border-radius:10px;background:rgba(0,255,255,.10);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:17px;}
.install-platform-card b{display:block;font-size:13px;color:var(--text);margin-bottom:4px;}
.install-platform-card span{display:block;font-size:11.5px;line-height:1.45;color:var(--text3);}
.install-app-note{margin-top:18px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);font-size:12px;line-height:1.5;color:var(--text3);text-align:left;}
@media(max-width:620px){
  .install-app-brand img{height:34px;max-width:210px;}
  .install-app-body{padding:22px 18px 24px;}
  .install-platform-grid{grid-template-columns:1fr;}
  .install-app-body h2{font-size:21px;}
}
