:root{color-scheme:dark;--bg:#080e19;--panel:#111c2d;--panel2:#17243a;--line:#263650;--text:#f3f6ff;--muted:#a7b9d8;--accent:#6464ff;--accent2:#2685ff;--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 Inter,system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.w3-button,.w3-btn{cursor:pointer;transition:.2s}button:hover,.w3-button:hover,.w3-btn:hover{filter:brightness(1.15)}.w3-top{position:fixed;top:0;right:0;left:280px;z-index:4!important;height:70px;display:flex;align-items:center;padding:0 24px;background:#0b1322;border-bottom:1px solid var(--line);gap:10px}.w3-bar-item{display:inline-flex;align-items:center;gap:10px;padding:12px 15px}.w3-top .w3-bar-item{border:0;background:transparent;color:var(--text);border-radius:12px}.w3-right{margin-left:auto}.w3-dropdown-hover{position:relative;display:inline-flex;align-items:center}.w3-dropdown-content{display:none;position:absolute;right:0;top:100%;min-width:230px;max-width:min(380px,95vw);padding:10px;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:14px;box-shadow:0 18px 60px #0009;z-index:8}.w3-dropdown-hover:hover>.w3-dropdown-content,.w3-dropdown-hover:focus-within>.w3-dropdown-content{display:block}.w3-dropdown-content .w3-bar-item{display:flex;width:100%;border-radius:9px}.w3-sidebar{position:fixed;left:0;top:0;bottom:0;width:280px!important;background:#0b1322!important;border-right:1px solid var(--line);overflow:auto;z-index:5!important;padding:12px 16px}.app-brand{padding:23px 14px 30px;display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800;letter-spacing:-.4px}.app-brand i{color:#8780ff;font-size:28px}.app-brand b{color:#8581ff}.w3-sidebar .w3-bar-item{display:flex;width:100%;border-radius:12px;margin:3px 0;color:var(--muted)}.w3-sidebar .w3-bar-item:hover,.w3-sidebar .w3-bar-item:first-child{background:#202d57;color:white}.w3-sidebar hr{border:0;border-top:1px solid var(--line);margin:22px 0}.w3-main{margin-left:280px!important;margin-top:70px!important;min-height:calc(100vh - 70px);padding:26px 30px}.w3-container{padding:16px}.w3-padding{padding:20px}.w3-padding-16{padding:16px}.w3-margin-top{margin-top:18px}.w3-margin-bottom{margin-bottom:18px}.w3-section{margin:18px 0}.w3-center{text-align:center}.w3-left{float:left}.w3-small{font-size:13px}.w3-large{font-size:18px}.w3-opacity{opacity:.65}.w3-font-bold{font-weight:700}.w3-text-red{color:#ff697a!important}.w3-text-white{color:white}.w3-round,.w3-round-large{border-radius:12px}.w3-round-xlarge{border-radius:20px}.w3-circle{border-radius:50%}.w3-card,.w3-modal-content{background:var(--panel)!important;border:1px solid var(--line);box-shadow:0 12px 35px #0003;border-radius:var(--radius)}.w3-card{height:100%;transition:transform .2s,border-color .2s}.w3-card:hover{transform:translateY(-3px);border-color:#555fb0}.w3-white,.w3-light-grey,.w3-dark-grey{background:var(--panel)!important;color:var(--text)!important}.w3-blue{background:linear-gradient(120deg,var(--accent2),#5d39ed)!important;color:white!important}.w3-button,.w3-btn{border:0;background:var(--panel2);color:var(--text);padding:11px 16px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.w3-block{display:flex;width:100%}.w3-row,.w3-row-padding{display:flex;flex-wrap:wrap;gap:18px}.w3-row-padding>.w3-col{flex:1 1 calc(33.333% - 18px);min-width:220px}.w3-quarter{flex:1 1 190px}.w3-display-container{position:relative}.w3-display-bottommiddle{position:absolute;bottom:10px;left:0;right:0}.w3-display-topright{position:absolute;right:0;top:0}.w3-badge,.w3-tag{display:inline-flex;align-items:center;justify-content:center;background:#333e65;color:white;border-radius:30px;padding:3px 8px}.w3-badge.demo{width:12px;height:12px;border:1px solid white;background:#ffffff44;cursor:pointer;margin:0 4px}.w3-badge.demo.w3-white{background:#fff!important}.mySlides{border-radius:20px;max-height:320px;object-fit:cover;background:var(--panel)}header>.w3-display-container{overflow:hidden;border-radius:20px;background:linear-gradient(110deg,#16264a,#11192d)}#apps h2{font-size:28px;text-align:left;font-weight:750;margin:8px 0 25px}#apps .w3-card img{box-shadow:0 7px 30px #0005}#apps .w3-card h3{font-size:20px;margin:12px 0}#apps .w3-card p{color:var(--muted);min-height:48px}footer{border-top:1px solid var(--line);margin-top:30px;padding:22px 0;color:var(--muted)}footer h5{color:white;font-size:15px}footer .w3-bar{display:flex;flex-wrap:wrap;justify-content:center}.w3-modal{display:none;position:fixed;inset:0;z-index:15;background:#000b;align-items:center;justify-content:center;padding:20px}.w3-modal-content{width:min(520px,100%);max-height:90vh;overflow:auto;padding:20px}.w3-input,.w3-select,input[type=email],input[type=password],textarea,select{width:100%;background:#0b1525;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:12px;outline:none}.w3-input:focus,.w3-select:focus{border-color:var(--accent)}label{display:block;margin:8px 0;color:var(--muted)}.w3-border{border:1px solid var(--line)}.w3-overlay{display:none;position:fixed;inset:0;background:#0009;z-index:4}.w3-hide-large{display:none!important}.w3-hide-small{display:block}.w3-hide-medium{display:block}.w3-display-right{position:absolute;right:8px;top:50%;transform:translateY(-50%)}.w3-half{width:50%}.w3-bar-block{display:block}.w3-animate-left,.w3-animate-opacity{transition:.2s}@media(max-width:1100px){.w3-row-padding>.w3-col{flex-basis:calc(50% - 18px)}}@media(max-width:900px){.w3-sidebar{display:none;width:min(300px,85vw)!important}.w3-top{left:0}.w3-main{margin-left:0!important;padding:18px 14px}.w3-hide-large{display:inline-flex!important}.w3-top .w3-hide-medium{display:none}.w3-overlay{display:none}}@media(max-width:600px){.w3-row-padding>.w3-col{flex-basis:100%}.w3-top{padding:0 10px}.w3-main{padding:12px 8px}.w3-container{padding:12px}.w3-half{width:100%}.w3-row{gap:8px}.app-brand{font-size:18px}}
/* Topbar: perfil fixo no canto direito, sem dependência do float do W3 */
.w3-top{background:#0b1322!important;justify-content:flex-start;overflow:visible!important}
.w3-top>.app-profile-menu{margin-left:auto!important;flex:0 0 auto;order:10;position:relative}
.w3-top>.app-profile-menu>.app-profile-trigger{display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--panel2)!important}
.w3-top>.app-profile-menu>.w3-dropdown-content{position:absolute;top:calc(100% + 10px);right:0;left:auto;min-width:250px;max-width:min(320px,calc(100vw - 20px));z-index:20}
.w3-top>.app-profile-menu>.w3-dropdown-content .w3-bar-item{justify-content:flex-start;text-align:left}
@media(max-width:600px){.w3-top>.app-profile-menu>.w3-dropdown-content{right:0}}

/* Perfil: abre somente enquanto o cursor está no menu; o botão não mantém foco após clique */
.w3-top>.app-profile-menu>.app-profile-trigger{width:auto;min-width:46px;gap:10px;padding:5px 12px}
.app-profile-name{font-size:14px;font-weight:650;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-profile-chevron{font-size:11px;color:var(--muted)}
.w3-top>.app-profile-menu>.w3-dropdown-content{display:none!important;top:100%;margin-top:0;padding-top:12px;background:var(--panel)!important;background-clip:padding-box}
.w3-top>.app-profile-menu:hover>.w3-dropdown-content{display:block!important}
.w3-top>.app-profile-menu:focus-within:not(:hover)>.w3-dropdown-content{display:none!important}
@media(max-width:600px){.app-profile-name{max-width:85px}}

/* Hero do catálogo: controles proporcionais e centralizados */
.apps-hero{position:relative;width:100%;height:clamp(220px,28vw,340px);border:1px solid var(--line);border-radius:22px;overflow:hidden;background:linear-gradient(125deg,#19274b,#101a2b)}
.apps-hero>a{display:block;width:100%;height:100%}
.apps-hero-image{display:block;width:100%;height:100%;max-height:none!important;object-fit:cover;border-radius:0!important}
.apps-hero-controls{position:absolute;inset:0;pointer-events:none;display:flex;align-items:flex-end;justify-content:center;gap:9px;padding:0 62px 20px;margin:0!important;background:linear-gradient(0deg,#08101cb8,transparent 34%)}
.apps-hero-prev,.apps-hero-next{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:#0d182bc9;border:1px solid #ffffff33;border-radius:50%;color:#fff;font-size:19px;cursor:pointer;pointer-events:auto;transition:background .2s}
.apps-hero-prev{left:16px}.apps-hero-next{right:16px}
.apps-hero-prev:hover,.apps-hero-next:hover{background:#4d55c8}
.apps-hero-dot{display:inline-flex!important;position:relative;width:9px!important;height:9px!important;min-width:9px;padding:0!important;border:1px solid #e2e8f6!important;border-radius:50%;background:#ffffff66!important;cursor:pointer;pointer-events:auto;transition:transform .2s,background .2s}
.apps-hero-dot.w3-white{background:#fff!important;transform:scale(1.25)}
.apps-hero-dot:hover{background:#fff!important}
@media(max-width:600px){.apps-hero{height:210px;border-radius:16px}.apps-hero-controls{padding:0 52px 16px}.apps-hero-prev,.apps-hero-next{width:34px;height:34px;font-size:16px}.apps-hero-prev{left:9px}.apps-hero-next{right:9px}}


/* The Tapejara · acabamento visual do layout dev */
:root{
 --bg:#080f1d;--panel:#101c2d;--panel2:#182841;--line:#293b55;
 --text:#f4f8ff;--muted:#a6b7d2;--accent:#3989ff;--accent2:#1573f7;
 --tp-gradient:linear-gradient(120deg,#188aff,#4c6ef5 58%,#6652e7);
 --tp-shadow:0 14px 42px rgba(0,0,0,.2)
}
body.app-shell{background:radial-gradient(ellipse 85% 44% at 75% -12%,rgba(35,100,211,.12),transparent 75%),var(--bg)}
.w3-top{background:rgba(11,20,36,.97)!important;backdrop-filter:blur(14px);border-bottom:1px solid #293b55}
.w3-sidebar{background:#0b1424!important;border-right:1px solid #293b55}
.app-brand{border-bottom:1px solid #293b55;padding-bottom:24px;margin-bottom:14px;letter-spacing:-.6px}
.app-brand i{color:#48a2ff}
.app-brand b{color:#60acff}
.w3-sidebar .w3-bar-item{font-weight:570;min-height:44px;transition:background .2s,color .2s,transform .2s}
.w3-sidebar .w3-bar-item:hover{background:#1b3355;color:#fff;transform:translateX(3px)}
.w3-sidebar .w3-bar-item:focus-visible,.w3-top button:focus-visible,.w3-button:focus-visible,a:focus-visible{outline:2px solid #63adff;outline-offset:3px}
.w3-top>.app-profile-menu>.app-profile-trigger{border:1px solid #344c6d;border-radius:14px;background:#192a43!important;box-shadow:0 3px 16px #0003}
.w3-top>.app-profile-menu>.w3-dropdown-content{box-shadow:0 18px 45px #0008;border:1px solid #34445d!important}
.w3-main{max-width:none}
.w3-card,.w3-modal-content{box-shadow:var(--tp-shadow);border-color:#2c3d58}
.w3-card:hover{border-color:#4177c1}
.w3-blue{background:var(--tp-gradient)!important}
.w3-button,.w3-btn{font-weight:600}
.w3-button:active,.w3-btn:active{transform:scale(.985)}
.w3-input,.w3-select,input[type=email],input[type=password],textarea,select{transition:border-color .2s,box-shadow .2s}
.w3-input:focus,.w3-select:focus,input:focus-visible,textarea:focus-visible,select:focus-visible{border-color:#438ef9;box-shadow:0 0 0 3px rgba(51,130,255,.12)}
.apps-hero{border-color:#2e4362;box-shadow:0 16px 48px #0005}
#apps h2{letter-spacing:-.65px}
footer{border-color:#293b55}
@media(max-width:900px){.w3-sidebar{box-shadow:16px 0 55px #0008}.w3-top{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){.w3-card,.w3-button,.w3-btn,.w3-sidebar .w3-bar-item{transition:none!important}}


/* Rodape institucional The Tapejara */
.tp-footer{background:linear-gradient(155deg,#0d192b,#0b1424 72%)!important;border:1px solid #263953;border-radius:22px;margin-top:42px;padding:32px 32px 0;color:#b3c4dd;box-shadow:0 15px 45px #0003}
.tp-footer-top{display:grid;grid-template-columns:minmax(250px,2fr) repeat(2,minmax(140px,1fr));gap:36px;padding-bottom:30px}
.tp-footer-logo{font-size:23px;font-weight:850;letter-spacing:-.9px;color:#f6f9ff}.tp-footer-logo span{color:#4ba4ff}
.tp-footer-tagline{font-size:13px;color:#87baff;margin:4px 0 18px}
.tp-footer-description{max-width:340px;line-height:1.75;font-size:14px}
.tp-footer-home{display:inline-flex;gap:8px;align-items:center;margin-top:10px;color:#9acaff;font-weight:650;font-size:13px}
.tp-footer h5{margin:0 0 17px;font-size:14px;font-weight:750;color:#f5f8ff}
.tp-footer-links{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.tp-footer-links a{font-size:13px;color:#a9bdd8;transition:color .2s}
.tp-footer a:hover{color:#6db4ff}
.tp-footer-discover{border-top:1px solid #263953;padding:25px 0}
.tp-footer-discover-head h5{margin-bottom:4px}
.tp-footer-discover-head p{margin:0 0 17px;font-size:13px;color:#90a7c8}
.tp-footer-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.tp-footer-app{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #2a3d59;border-radius:12px;background:#142239;min-width:0;transition:transform .2s,border-color .2s}
.tp-footer-app:hover{transform:translateY(-2px);border-color:#4185d5}
.tp-footer-app img{height:36px;width:36px;flex-shrink:0;border-radius:9px;object-fit:cover}
.tp-footer-app span{font-size:12px;color:#e4edff;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.tp-footer-app i{font-size:10px;color:#839fc1}
.tp-footer-bottom{border-top:1px solid #263953;padding:18px 0;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:#8ea5c5}
.tp-footer-bottom-right{display:flex;gap:15px;align-items:center;flex-wrap:wrap}
.tp-footer-bottom-right a{font-size:17px;color:#b6c9e5}
.tp-footer-version{border:1px solid #2a3d59;border-radius:9px;padding:5px 9px;background:#15243a;font-size:11px}
@media(max-width:900px){.tp-footer{padding:24px 22px 0}.tp-footer-top{grid-template-columns:1fr 1fr;gap:28px}.tp-footer-brand{grid-column:1/-1}}
@media(max-width:520px){.tp-footer{padding:20px 16px 0;border-radius:16px}.tp-footer-top{gap:22px}.tp-footer-apps{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-footer-app{padding:8px}.tp-footer-bottom{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.tp-footer-app{transition:none}}


/* Sidebar The Tapejara - layout expandido e compacto */
:root{--tp-side-width:280px}
body.app-shell .w3-sidebar#mySidebar{width:var(--tp-side-width)!important;display:flex;flex-direction:column;padding:13px 14px;transition:width .22s ease,transform .22s ease}
body.app-shell .w3-top{left:var(--tp-side-width);transition:left .22s ease}
body.app-shell .w3-main{margin-left:var(--tp-side-width)!important;transition:margin-left .22s ease}
.tp-side-brand{margin-bottom:0!important;padding:20px 9px!important;min-height:80px;white-space:nowrap;overflow:hidden}
.tp-side-brand i{width:28px;text-align:center;flex:none;color:#6ab1ff}
.tp-side-brand span{font-size:16px;line-height:1.2;color:#f6f9ff}
.tp-side-brand b{color:#66b0ff}
.tp-side-brand small{display:block;font-size:10px;font-weight:500;letter-spacing:.04em;color:#93a9c7;margin-top:5px}
.tp-side-scroll{flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.tp-side-section{border-top:1px solid #263a56;padding:17px 0 13px}
.tp-side-heading{display:block;font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#829bbc;font-weight:750;margin:0 10px 9px}
#mySidebar .tp-side-link{min-height:45px;display:flex;align-items:center;gap:13px;padding:11px 13px;margin:3px 0;border-radius:11px;color:#bacce5;font-size:13px;font-weight:580;white-space:nowrap}
#mySidebar .tp-side-link i{width:20px;text-align:center;font-size:15px;flex:none}
#mySidebar .tp-side-link:hover{background:#203d63;color:#fff}
#mySidebar .tp-side-link.is-active{background:#1c3d66;color:#f8fbff;box-shadow:inset 3px 0 #63b0ff}
.tp-side-ads{border-top:1px solid #263a56;padding:16px 0;min-width:0}
.tp-side-ads .adsSidebar{max-width:100%;overflow:hidden}
.tp-side-bottom{border-top:1px solid #263a56;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 7px 3px;color:#8da6c8;font-size:11px}
.tp-side-collapse{border:1px solid #2b4160;background:#172c49;color:#c2d7f5;border-radius:10px;padding:8px 10px;cursor:pointer}
body.tp-sidebar-compact{--tp-side-width:78px}
body.tp-sidebar-compact #mySidebar{padding-left:11px;padding-right:11px}
body.tp-sidebar-compact #mySidebar .tp-side-label,body.tp-sidebar-compact #mySidebar .tp-side-heading,body.tp-sidebar-compact #mySidebar .tp-side-ads{display:none!important}
body.tp-sidebar-compact #mySidebar .tp-side-brand{justify-content:center;padding-left:0!important;padding-right:0!important}
body.tp-sidebar-compact #mySidebar .tp-side-link{justify-content:center;padding:12px}
body.tp-sidebar-compact #mySidebar .tp-side-bottom{justify-content:center}
body.tp-sidebar-compact #mySidebar .tp-side-collapse i{transform:rotate(180deg)}
@media(max-width:900px){
 body.app-shell .w3-sidebar#mySidebar{width:min(300px,85vw)!important;display:none;z-index:12!important;box-shadow:16px 0 55px #0008}
 body.app-shell .w3-sidebar#mySidebar.tp-mobile-open{display:flex!important}
 body.app-shell .w3-top{left:0!important}
 body.app-shell .w3-main{margin-left:0!important}
 body.tp-sidebar-compact #mySidebar .tp-side-label,body.tp-sidebar-compact #mySidebar .tp-side-heading,body.tp-sidebar-compact #mySidebar .tp-side-ads{display:initial!important}
 body.tp-sidebar-compact #mySidebar .tp-side-brand,body.tp-sidebar-compact #mySidebar .tp-side-link{justify-content:flex-start}
 body.tp-sidebar-compact #mySidebar .tp-side-bottom{justify-content:space-between}
 body.app-shell .w3-overlay#myOverlay{position:fixed;inset:0;background:#0009;z-index:11;display:none}
 body.app-shell .w3-overlay#myOverlay.tp-mobile-open{display:block!important}
 #tpSidebarCollapse{display:none}
}
@media(prefers-reduced-motion:reduce){body.app-shell .w3-sidebar#mySidebar,body.app-shell .w3-top,body.app-shell .w3-main{transition:none}}
