header{min-height:58px;padding:8px 22px;gap:14px}.brand{color:white;text-decoration:none}header strong{font-size:21px}.account{position:relative}.account summary{cursor:pointer;padding:8px}.account>div{position:absolute;right:0;top:100%;z-index:5;background:#142f49;padding:14px;min-width:150px;border-radius:8px;box-shadow:0 8px 24px #0003}.account form{margin-top:10px}.layout{grid-template-columns:190px minmax(0,1fr)}nav{padding:14px 10px}nav a{padding:10px 12px}main{padding:20px 24px}h1{font-size:23px;margin:5px 0 14px}.tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin-bottom:16px}.tabs a{padding:9px 12px;text-decoration:none;color:inherit;border-bottom:3px solid transparent}.tabs a.active{border-color:#168b99;font-weight:700;color:#168b99}.section-title{font-size:16px;margin:0 0 12px}.cards{gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}article,form,.scroll{padding:12px;margin-bottom:10px;border-radius:8px}article b{font-size:23px;margin-top:4px}article h3{font-size:15px;margin:0 0 6px}button{padding:8px 12px}input,select,textarea{padding:7px}input[type=checkbox]{width:auto}td,th{padding:8px}.quick{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 18px}.quick a{padding:9px 12px;border:1px solid var(--line);background:var(--panel);border-radius:6px;text-decoration:none}.action-panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;margin-bottom:10px}.action-panel summary{cursor:pointer;padding:11px 14px;font-weight:600}.action-panel form{border:0;margin:0}.filterbar{margin:0 0 10px;max-width:420px}.dark a{color:#75d5dd}.dark nav a.active,.dark nav a:hover{color:white}@media(max-width:700px){.layout{grid-template-columns:1fr}main{padding:12px}header{padding:8px 12px;flex-wrap:wrap}.tabs a{padding:8px}nav{padding:6px}.account>div{right:0}}
/* Premium Workspace */
body{--accent:#176d79;--soft:#e8f3f4;--muted:#536b80;--shadow:0 3px 12px #18304708;display:flex;flex-direction:column;min-height:100vh;font-size:14px;background:#f3f6fa}body.dark{--accent:#71d6d7;--soft:#203e49;--muted:#a9bdce;--shadow:0 3px 12px #0002;background:#101b29}header{position:sticky;top:0;z-index:20;min-height:58px;box-shadow:0 2px 8px #0002}header small{font-size:10px}header #theme-toggle{width:36px;height:36px;padding:0;font-size:19px;background:#ffffff15;border:1px solid #ffffff25}.account summary{display:flex;align-items:center;gap:8px;list-style:none}.account summary::-webkit-details-marker{display:none}.avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#ffffff18;color:white;font-weight:700}.layout{flex:1;min-height:0;grid-template-columns:210px minmax(0,1fr)}nav{padding:18px 10px}nav a{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:550;min-height:42px}nav a svg{width:18px;height:18px;flex:none}nav a.active{box-shadow:0 3px 8px #176d7925}main{padding:24px clamp(16px,2.6vw,38px)}h1{font-size:26px;letter-spacing:-.7px;margin:8px 0 18px}.eyebrow{letter-spacing:.2px;color:var(--muted);opacity:1}.eyebrow a{color:inherit;text-decoration:none}.tabs{background:var(--panel);border:1px solid var(--line);padding:5px;border-radius:10px;gap:5px;box-shadow:var(--shadow);margin-bottom:22px}.tabs a{border:0;border-radius:6px;font-size:13px;padding:9px 13px}.tabs a.active{background:var(--soft);color:var(--accent)}.tabs a:hover{background:var(--soft)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.section-title{font-size:17px;margin:0}.context-label{font-size:11px;color:var(--muted)}.page-hint{font-size:13px;color:var(--muted);margin:6px 0 16px}.cards article{border-top:3px solid #168b99;box-shadow:var(--shadow);padding:15px}.cards article b{font-size:25px;letter-spacing:-.5px}.quick a{color:var(--accent);font-weight:600;font-size:13px;box-shadow:var(--shadow)}.quick a:hover{background:var(--soft)}article,.scroll,.action-panel{box-shadow:var(--shadow)}.action-panel summary{list-style:none;display:flex;align-items:center;gap:9px;color:var(--accent);font-size:13px}.action-panel summary::-webkit-details-marker{display:none}.action-panel summary:before{content:'+';display:grid;place-items:center;background:var(--soft);width:24px;height:24px;border-radius:6px;font-size:18px}.action-panel[open] summary:before{content:'−'}.action-panel[open] summary{border-bottom:1px solid var(--line)}.action-panel form{padding:16px;box-shadow:none}label{font-size:12px;font-weight:600}input,select,textarea{min-height:36px}button:hover{filter:brightness(1.08)}:focus-visible{outline:2px solid #20a9b5;outline-offset:3px}.scroll{padding:0;max-height:65vh}th{position:sticky;top:0;background:var(--panel);color:var(--muted);z-index:1}tbody tr:hover{background:var(--soft)}td,th{padding:10px 12px}tr:last-child td{border-bottom:0}.filter-tools{display:flex;align-items:center;gap:10px;margin:12px 0;flex-wrap:wrap}.filter-tools input{max-width:420px;margin:0}.filter-tools small{color:var(--muted);opacity:1}.empty-state{border:1px dashed var(--line);background:var(--panel);border-radius:10px;text-align:center;padding:28px 14px;color:var(--muted);opacity:1}.version-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.version-row small{display:block;margin-top:5px}.download-link{font-size:12px;font-weight:600;color:var(--accent);text-decoration:none;background:var(--soft);padding:8px 12px;border-radius:6px}.corporate-footer{margin-top:auto;background:var(--panel);border-top:1px solid var(--line);padding:17px 12px;letter-spacing:.1px;line-height:1.7;color:var(--muted);font-size:12px}.corporate-footer strong{display:block;font-size:13px;letter-spacing:.8px;color:inherit}.corporate-footer strong span{color:var(--accent)}.corporate-footer i{font-style:normal;color:var(--accent)}.corporate-footer small{opacity:1;font-size:11px}.login{width:min(440px,calc(100% - 32px));margin:7vh auto;flex:1}.login form{padding:24px;box-shadow:var(--shadow)}.login h1{font-size:25px}.status-pill{display:inline-block;padding:3px 8px;border-radius:20px;background:var(--soft);color:var(--accent);font-size:11px;font-weight:650}.status-pill[data-status="Bloqueado"]{background:#fee2e2;color:#991b1b}.status-pill[data-status="Concluído"]{background:#dcfce7;color:#166534}.status-pill[data-status="Pendente"]{background:#fef3c7;color:#92400e}@media(max-width:760px){.layout{grid-template-columns:1fr}nav{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:6px}nav a{white-space:nowrap;flex:none}main{padding:15px}header{position:static;gap:8px}header small{display:none}.brand{margin-right:auto}.tabs{gap:2px}.tabs a{padding:8px;font-size:12px}.version-row{flex-wrap:wrap}.corporate-footer strong{font-size:11px}}
/* V18.3: responsive workspace, accessible navigation and touch controls */
body{--header-height:64px;--sidebar-width:224px}header{height:var(--header-height);min-height:var(--header-height);box-sizing:border-box;position:sticky;top:0;flex-wrap:nowrap;display:flex;align-items:center;gap:12px;padding:8px 18px}header .brand{min-width:0;white-space:nowrap;margin-right:0}header small{margin-right:auto}header #theme-toggle{margin-left:auto}#menu-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #ffffff30;border-radius:10px;background:#ffffff12;color:#fff}#menu-toggle:hover{background:#ffffff26}.layout{grid-template-columns:var(--sidebar-width) minmax(0,1fr);align-items:start;min-width:0}.layout main{min-width:0;width:100%;box-sizing:border-box;max-width:1800px;margin:0 auto}.layout nav{position:sticky;top:var(--header-height);height:calc(100dvh - var(--header-height));box-sizing:border-box;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding:20px 12px;border-right:1px solid var(--line);border-bottom:0}.layout nav:before{content:'ÁREAS DE TRABALHO';font-size:10px;letter-spacing:1.4px;color:var(--muted);padding:4px 12px 12px}.layout nav a{min-height:44px;white-space:normal;border-radius:9px}.nav-collapsed .layout{grid-template-columns:minmax(0,1fr)}.nav-collapsed .layout nav{display:none}.nav-backdrop{display:none}.tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;max-width:100%;box-sizing:border-box}.tabs a{flex:none;white-space:nowrap;min-height:40px;display:flex;align-items:center;box-sizing:border-box}.scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain}.scroll table{min-width:540px}.layout main pre{max-width:100%;overflow:auto;white-space:pre;tab-size:4}.layout main form{min-width:0;max-width:100%;box-sizing:border-box}.layout main input,.layout main select,.layout main textarea{max-width:100%;box-sizing:border-box}.layout main input[type=file]{width:100%}.cards article{min-width:0}.cards article b{font-variant-numeric:tabular-nums}.section-head{padding:0 0 8px;border-bottom:1px solid var(--line)}.page-hint{line-height:1.55}.quick a{min-height:42px;display:inline-flex;align-items:center;box-sizing:border-box}.corporate-footer{padding:18px 16px max(18px,env(safe-area-inset-bottom));overflow-wrap:anywhere}.account>div{max-width:calc(100vw - 24px)}.empty-state{padding:36px 16px}.empty-state:before{content:'—';display:block;font-size:26px;color:var(--accent);margin-bottom:6px}body.nav-open{overflow:hidden}
@media(max-width:1023px){body{--header-height:60px}.layout{grid-template-columns:minmax(0,1fr)}.layout nav{position:fixed;top:var(--header-height);bottom:0;left:0;width:min(300px,85vw);height:auto;z-index:31;background:var(--panel);transform:translateX(-105%);visibility:hidden;transition:transform .2s ease,visibility .2s;box-shadow:8px 0 30px #0002}.nav-open .layout nav{transform:translateX(0);visibility:visible}.nav-backdrop:not([hidden]){display:block;position:fixed;inset:var(--header-height) 0 0;z-index:30;background:#07182788;border:0;border-radius:0;width:100%;height:auto;padding:0}.layout main{padding:20px clamp(14px,3vw,28px)}header small{display:none}header{z-index:40}.layout nav a{min-height:48px}.tabs a{min-height:44px}.action-panel summary{min-height:44px;box-sizing:border-box}}
@media(max-width:600px){header{padding:6px 10px;gap:8px}header strong{font-size:clamp(16px,4.7vw,21px)}header #theme-toggle{width:40px;height:44px;flex:none}.account summary{padding:4px;min-height:44px;box-sizing:border-box;gap:4px;font-size:12px}.avatar{display:none}#menu-toggle{flex-basis:42px;width:42px}.layout main{padding:16px 12px}h1{font-size:23px;margin-bottom:12px}.tabs{margin-bottom:16px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cards article{padding:12px}.cards article b{font-size:22px}.section-title{font-size:16px}.context-label{display:none}.filter-tools input{width:100%;max-width:none}.layout main input:not([type=checkbox]):not([type=radio]),.layout main select,.layout main textarea,.login input{font-size:16px;min-height:44px}.layout main button,.download-link{min-height:44px}.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quick a{font-size:12px;overflow-wrap:anywhere}.version-row{align-items:flex-start}.corporate-footer{font-size:11px}.corporate-footer small{font-size:10px}.login{margin:24px auto}.login form{padding:18px}}
@media(max-width:350px){.account summary{font-size:0}.account summary .avatar{display:grid;font-size:12px}.account summary>span:last-child{font-size:12px}.cards,.quick{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.layout nav{transition:none}}
/* V18.4 — rodapé institucional, padrão Project */
body .corporate-footer{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;box-sizing:border-box;min-height:50px;margin-top:auto;padding:8px 14px max(8px,env(safe-area-inset-bottom));background:linear-gradient(110deg,#e0e5f4,#edf0fa);border-top:1px solid #d8deed;color:#425675;text-align:left;letter-spacing:0;line-height:1.35;font-size:11px;overflow-wrap:normal}
.corporate-footer .footer-identity{display:flex;align-items:center;gap:11px;min-width:0}.corporate-footer .footer-mark{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#637cf5,#8d54e8);color:#fff;box-shadow:0 3px 9px #655ce52b}.corporate-footer .footer-copy{min-width:0}.corporate-footer .footer-copy strong{font-size:11px;letter-spacing:.25px;font-weight:650;color:#263653;margin:0 0 2px}.corporate-footer .footer-copy i{color:#7865e9}.corporate-footer .footer-copy div{font-size:10px;color:#526783}.corporate-footer .footer-legal{font-size:11px;color:inherit;text-align:right;opacity:1;white-space:normal;margin:0}body.dark .corporate-footer{background:linear-gradient(110deg,#19253b,#202c43);border-color:#34415a;color:#c1cde1}body.dark .corporate-footer .footer-copy strong{color:#e3e9f6}body.dark .corporate-footer .footer-copy div{color:#aabbd4}body.dark .corporate-footer .footer-copy i{color:#a99aff}
@media(max-width:760px){body .corporate-footer{flex-wrap:wrap;gap:8px;padding:10px 12px max(10px,env(safe-area-inset-bottom))}.corporate-footer .footer-legal{text-align:left;font-size:10px;flex:1 1 100%;padding-left:45px;box-sizing:border-box;overflow-wrap:anywhere}}
@media(max-width:360px){.corporate-footer .footer-legal{padding-left:0}.corporate-footer .footer-copy strong{font-size:10px}}

/* V18.5 — Signature Edition: only unauthenticated workspace */
.auth-page .auth-shell{flex:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);padding:0;margin:0;width:100%;min-height:0;background:var(--panel)}
.auth-page .auth-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:24px;padding:clamp(32px,6vw,100px);background:radial-gradient(ellipse at 90% 12%,#214f68 0,transparent 50%),linear-gradient(145deg,#102438,#122f47 60%,#103d48);color:#eaf5ff}
.auth-hero:before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#b9d9ff09 1px,transparent 1px),linear-gradient(90deg,#b9d9ff09 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(120deg,transparent,#000)}
.auth-kicker{font-size:11px;font-weight:700;letter-spacing:2px;color:#a9c9d8;display:flex;align-items:center;gap:10px}.auth-kicker span{width:9px;height:9px;border-radius:50%;background:#70e3d3;box-shadow:0 0 18px #70e3d3}
.auth-page .auth-hero h1{font-size:clamp(32px,3.5vw,58px);line-height:1.13;letter-spacing:-1.8px;margin:0;color:#fff;font-weight:750}.auth-hero h1 em{font-style:normal;color:#70e3d3}.auth-hero p{font-size:clamp(14px,1.2vw,18px);line-height:1.7;color:#bed0df;max-width:520px;margin:0}.auth-diagram{max-width:570px;width:100%;padding:14px 0}.auth-diagram svg{display:block;width:100%;height:auto}.auth-features{display:flex;flex-wrap:wrap;gap:14px 24px;border-top:1px solid #ffffff20;padding-top:20px}.auth-features span{display:flex;gap:8px;color:#70e3d3;font-size:11px}.auth-features b{color:#d5e4ef;font-weight:500}
.auth-access{display:grid;place-items:center;padding:clamp(24px,5vw,80px);background:radial-gradient(ellipse at top right,#168b9910,transparent 65%),var(--panel)}.auth-card{width:min(100%,420px);min-width:0}.auth-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:var(--soft);color:var(--accent);margin-bottom:24px}.auth-symbol svg{width:29px;height:29px}.auth-overline{font-size:11px;letter-spacing:1.8px;font-weight:700;color:var(--accent)}.auth-card h2{font-size:clamp(25px,2.3vw,36px);line-height:1.2;letter-spacing:-1px;margin:12px 0;color:inherit}.auth-intro{color:var(--muted);line-height:1.65;margin:0 0 28px}.auth-page .auth-card form{display:flex;flex-direction:column;gap:10px;border:0;padding:0;margin:0;background:transparent;box-shadow:none}.auth-card label{font-size:13px;font-weight:650;margin:5px 0 0}.auth-card input:not([type=hidden]){width:100%;box-sizing:border-box;min-height:52px;font-size:16px;padding:12px 15px;border-radius:10px;background:var(--panel);border:1px solid var(--line);color:inherit}.auth-card input:focus-visible,.auth-card button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.auth-password{position:relative}.auth-password input:not([type=hidden]){padding-right:90px}.auth-password button{position:absolute;right:7px;top:7px;height:38px;background:transparent;color:var(--accent);font-size:12px;padding:0 10px}.auth-password button[hidden]{display:none}.auth-card .auth-submit{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:14px;min-height:52px;border-radius:10px;background:linear-gradient(110deg,#176d79,#125466);color:white;font-size:15px;font-weight:700;box-shadow:0 8px 20px #176d7928}.auth-submit:hover{filter:brightness(1.12)}.auth-note{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);display:flex;gap:9px;align-items:center}.auth-note span{color:var(--accent)}.auth-error{padding:12px;margin:0 0 15px;border:1px solid #d97878;border-radius:8px;background:#b33a3915;color:#a42b2b}.dark .auth-error{color:#ffb4b4}.auth-page.dark .auth-access{background:radial-gradient(ellipse at top right,#168b991a,transparent 65%),#101b29}
@media(max-width:900px){.auth-page .auth-shell{grid-template-columns:1fr}.auth-page .auth-hero{padding:32px clamp(20px,6vw,60px);gap:14px}.auth-page .auth-hero h1{font-size:clamp(27px,5vw,42px)}.auth-diagram,.auth-features{display:none}.auth-access{padding:36px 24px 48px}.auth-symbol{margin-bottom:16px}.auth-page header small{display:none}}
@media(max-width:480px){.auth-page .auth-hero{padding:23px 20px}.auth-hero p{font-size:13px}.auth-kicker{font-size:9px;letter-spacing:1px}.auth-access{padding:28px 20px 36px}.auth-card h2{font-size:26px}.auth-intro{margin-bottom:20px}.auth-page .auth-shell{min-height:0}.auth-symbol{width:46px;height:46px;border-radius:13px}}
/* V18.6 — account popover */
header .account{flex:none;min-width:0}header .account summary{display:flex;align-items:center;gap:9px;padding:4px 8px;border:1px solid transparent;border-radius:10px;min-height:44px;max-width:180px;font-size:13px;color:#fff}header .account summary:hover,header .account[open] summary{background:#ffffff12;border-color:#ffffff24}header .account summary::marker{content:''}header .account summary .avatar{display:grid;flex:none;width:32px;height:32px;background:linear-gradient(145deg,#246c83,#176d79);color:white;font-size:13px}header .account-name{color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header .account-chevron{width:15px;height:15px;color:#a9d9df;flex:none}header .account[open] .account-chevron{transform:rotate(180deg)}header .account>.account-panel{top:calc(100% + 10px);right:0;width:264px;max-width:calc(100vw - 24px);min-width:0;padding:14px;background:var(--panel);color:#183047;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 36px #071a3033;z-index:60;text-align:left}body.dark header .account>.account-panel{color:#e0eaf4}header .account-kicker{font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--muted);margin-bottom:12px}header .account-identity{display:flex;align-items:center;gap:11px;padding:0 0 14px;border-bottom:1px solid var(--line)}header .account-large-avatar{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:12px;background:linear-gradient(145deg,#246c83,#176d79);color:#fff;font-size:18px;font-weight:700}header .account-identity>div{min-width:0}header .account-identity b{display:block;font-size:14px;overflow-wrap:anywhere;margin-bottom:5px}header .account-role{display:inline-block;color:var(--accent);background:var(--soft);border-radius:5px;padding:3px 7px;font-size:11px;font-weight:600;overflow-wrap:anywhere}header .account-actions form{display:block;margin:8px 0 0;padding:0;border:0;background:none;box-shadow:none}header .account-logout{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:9px 10px;text-align:left;background:transparent;color:#a63842;font-size:13px;border-radius:8px}header .account-logout:hover{background:#a6384210}body.dark header .account-logout{color:#ffadb4}header .account-logout svg{width:18px;height:18px;flex:none}@media(max-width:600px){header .account summary{padding:3px 5px;gap:4px}header .account-name{display:none}header .account summary .avatar{width:30px;height:30px}header .account-chevron{width:12px;height:12px}header .account>.account-panel{position:fixed;top:calc(var(--header-height) + 8px);right:10px;max-width:calc(100vw - 20px)}}

/* V18.7 — alinhamento exclusivo do formulário de autenticação */
.auth-page .auth-access{min-width:0;padding:clamp(24px,4vw,64px)}
.auth-page .auth-card{width:100%;max-width:420px;margin-inline:auto;text-align:left;box-sizing:border-box}
.auth-page .auth-card form{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;justify-items:stretch;gap:9px;width:100%;max-width:none;text-align:left}
.auth-page .auth-card form>label{display:block;width:100%;text-align:left;justify-self:stretch;margin:7px 0 0;font-size:13px;line-height:1.4}
.auth-page .auth-card form input:not([type=hidden]),.auth-page .auth-card form>.auth-password,.auth-page .auth-card form>.auth-submit{display:block;width:100%;max-width:none;min-width:0;box-sizing:border-box;margin-inline:0;justify-self:stretch}
.auth-page .auth-card form input:not([type=hidden]){height:50px;min-height:50px;margin-block:0;font-size:16px}
.auth-page .auth-card form>.auth-password{position:relative;margin-block:0}
.auth-page .auth-card .auth-password input{padding-right:56px}
.auth-page .auth-card #auth-reveal{position:absolute;display:grid;place-items:center;right:4px;top:3px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;box-shadow:none;background:transparent;color:var(--accent)}
.auth-page .auth-card #auth-reveal[hidden]{display:none}
.auth-page #auth-reveal svg{width:21px;height:21px}.auth-page #auth-reveal .eye-slash{display:none}.auth-page #auth-reveal[aria-pressed=true] .eye-slash{display:block}
.auth-page .auth-card form>.auth-submit{display:flex;align-items:center;justify-content:center;gap:12px;height:50px;min-height:50px;margin-top:14px;font-size:14px}
.auth-page .auth-symbol{width:48px;height:48px;border-radius:14px;margin-bottom:18px}.auth-page .auth-symbol svg{width:25px;height:25px}
.auth-page .auth-card h2{font-size:clamp(24px,2vw,32px);margin:9px 0 10px}.auth-page .auth-intro{font-size:14px;margin-bottom:22px}.auth-page .auth-note{margin-top:22px;padding-top:16px}
@media(max-width:480px){.auth-page .auth-access{padding:26px 20px 32px}.auth-page .auth-card h2{font-size:25px}}
.diff-del td{background:#fee2e2;color:#991b1b;white-space:pre-wrap;font-family:monospace}.diff-add td{background:#dcfce7;color:#166534;white-space:pre-wrap;font-family:monospace}
body:not(.auth-page) .v38hero{background:linear-gradient(120deg,#10263b,#087f83);color:white;padding:24px;border-radius:18px;margin:18px 0}.v38hero h2,.v38hero small{color:white}.v38metrics,.v38four{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:16px 0}.v38metrics a{display:grid;gap:10px;padding:18px;border:1px solid #8193aa55;border-top:4px solid #14b8a6;border-radius:14px;color:inherit;text-decoration:none}.v38metrics a:nth-child(2){border-top-color:#8b5cf6}.v38metrics a:nth-child(3){border-top-color:#3b82f6}.v38metrics a:nth-child(4){border-top-color:#f59e0b}.v38metrics strong{font-size:32px}.v38bar{display:grid;grid-template-columns:110px 1fr 40px;gap:12px;align-items:center;margin:12px 0;color:inherit}.v38bar meter{width:100%;height:20px}.v38board{display:grid;grid-template-columns:repeat(5,minmax(210px,1fr));gap:12px;overflow:auto}.v38board section{border:1px solid #8193aa55;border-radius:14px;padding:10px}.v38board article{border-left:4px solid #14b8a6;cursor:grab}.v38four article{min-width:0;overflow:auto}.v38four pre{max-height:420px;overflow:auto}.v38track{height:16px;background:#8193aa33;border-radius:8px;overflow:hidden}.v38track span{display:block;height:100%;background:#64748b;border-radius:8px;overflow:hidden}.v38track i{display:block;height:100%;background:#14b8a6}.v38graph div{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0}.v38graph b{padding:10px;border:1px solid #14b8a6;border-radius:10px}
/* Workspace refinement */
body:not(.auth-page) #workspace{min-width:0;max-width:100%;padding:clamp(12px,2.4vw,32px)}
#workspace .v38hero{background:linear-gradient(115deg,#10263b,#155e75 65%,#0f766e);padding:clamp(18px,3vw,34px);box-shadow:0 12px 32px #10263b22}
#workspace .v38metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}#workspace .v38metrics a{background:var(--panel);box-shadow:0 6px 20px #10263b12;transition:transform .18s,box-shadow .18s}#workspace .v38metrics a:hover{transform:translateY(-3px);box-shadow:0 12px 28px #10263b24}
#workspace article{min-width:0;border-radius:16px}#workspace .v38board{max-width:100%;overscroll-behavior-inline:contain;scroll-snap-type:x proximity}#workspace .v38board section{scroll-snap-align:start;background:var(--panel)}#workspace .v38board article b{font-size:15px;overflow-wrap:anywhere}#workspace .v38four{grid-template-columns:repeat(2,minmax(0,1fr))}#workspace pre{max-width:100%;overflow:auto}#workspace .scroll{max-width:100%;overflow:auto}#workspace input,#workspace select,#workspace textarea{max-width:100%;min-width:0}#workspace .tabs{overflow-x:auto;max-width:100%}.insight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.insight-row,.insight-link{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.insight-row progress{flex:1;min-width:40px;accent-color:#0d9488}.insight-row b{font-size:15px}.insight-link strong{color:var(--accent);font-size:22px}.insight-link:hover{background:var(--soft)}
@media(max-width:700px){#workspace .v38four{grid-template-columns:minmax(0,1fr)}#workspace .v38bar{grid-template-columns:minmax(65px,100px) minmax(0,1fr) 30px}#workspace .v38board{grid-template-columns:repeat(5,minmax(220px,80vw))}#workspace .v38metrics strong{font-size:26px}#workspace form{max-width:100%;min-width:0}#workspace .tabs a{white-space:normal}}
@media(prefers-reduced-motion:reduce){#workspace *{transition:none!important;scroll-behavior:auto!important}}
.gov-panel{display:grid;gap:16px;min-width:0}.gov-panel article{border-inline-start:3px solid #0d9488}.gov-panel form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;align-items:end}.gov-panel textarea{min-height:110px;width:100%}.gov-panel .scroll{max-width:100%;overflow:auto}.gov-panel td{overflow-wrap:anywhere;max-width:440px}.gov-panel .cards article:nth-child(2){border-inline-start-color:#6366f1}.gov-panel .cards article:nth-child(3){border-inline-start-color:#d97706}.gov-panel .cards article:nth-child(4){border-inline-start-color:#2563eb}@media(max-width:600px){.gov-panel form{grid-template-columns:1fr}.gov-panel .cards{grid-template-columns:1fr 1fr}.gov-panel article{min-width:0}}

/* Paleta do Hub S2: somente cabeçalho autenticado e menu lateral. */
body:not(.auth-page) header, body.dark:not(.auth-page) header {background:#E1E824;color:#0D0D0D;}
body:not(.auth-page) header .brand, body:not(.auth-page) header .brand span, body:not(.auth-page) header small, body:not(.auth-page) header .account summary, body:not(.auth-page) header .account-name, body:not(.auth-page) header .account-chevron {color:#0D0D0D;}
body:not(.auth-page) header #menu-toggle, body:not(.auth-page) header #theme-toggle {color:#0D0D0D;background:#0D0D0D0D;border-color:#0D0D0D40;}
body:not(.auth-page) header #menu-toggle:hover, body:not(.auth-page) header #theme-toggle:hover, body:not(.auth-page) header .account summary:hover, body:not(.auth-page) header .account[open] summary {background:#0D0D0D18;border-color:#0D0D0D40;}
body:not(.auth-page) header .account summary .avatar {background:#0D0D0D;color:#E1E824;}
body .layout #main-nav, body.dark .layout #main-nav {background:#0D0D0D;border-color:#292929;}
body .layout #main-nav:before {color:#E1E824;}
body .layout #main-nav a, body.dark .layout #main-nav a {color:#BCBCBC;background:transparent;}
body .layout #main-nav a:hover, body.dark .layout #main-nav a:hover {color:#E1E824;background:#252525;}
body .layout #main-nav a.active, body.dark .layout #main-nav a.active {color:#0D0D0D;background:#E1E824;box-shadow:0 3px 8px #00000025;}
/* Contextual workspace only; header, sidebar, login and footer unchanged. */
#workspace .workspace-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:10px;border-radius:14px;align-items:stretch}
#workspace .workspace-tabs a{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 13px;border:1px solid #d8e2eb;border-radius:9px;font-weight:650;white-space:normal;transition:background .15s}
#workspace .workspace-tabs a.active{background:#126477;color:#fff;border-color:#126477;box-shadow:0 3px 9px #12647730}
#workspace .tab-symbol{display:grid;place-items:center;width:25px;height:25px;border-radius:6px;background:#12647715;font-size:17px;flex:none}
#workspace .active .tab-symbol{background:#ffffff25}body.dark #workspace .workspace-tabs a{border-color:#354354}body.dark #workspace .workspace-tabs a.active{background:#126477;color:white}
#workspace .smart-hero{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;background:linear-gradient(115deg,#102b40,#126477);color:white;padding:22px;border-radius:14px;margin:14px 0}#workspace .smart-hero h2,#workspace .smart-hero p,#workspace .smart-hero small{color:white;margin:5px 0}#workspace .smart-drop{display:block;border:2px dashed #648f9c;border-radius:12px;padding:20px;margin:10px 0;min-width:0}#workspace .smart-drop input{max-width:100%}#workspace .scroll{max-width:100%;overflow:auto}#workspace .scroll td{overflow-wrap:anywhere}#workspace .workspace-tabs a:focus-visible{outline:3px solid #9ba500;outline-offset:2px}@media(max-width:600px){#workspace .workspace-tabs a{flex:1 1 42%;font-size:12px}#workspace .smart-hero{padding:15px}}

/* Identidade S2 — superfícies autenticadas. Sem alterações de regras ou login. */
body:not(.auth-page){--accent:#525900;--soft:#f2f4c9;--muted:#62645c;--panel:#fff;--line:#dedfd5;--shadow:0 3px 14px #14160009;background:#f5f5f2;color:#171912}
body.dark:not(.auth-page){--accent:#e1e824;--soft:#343719;--muted:#bcbeb0;--panel:#20211e;--line:#3c3e35;--shadow:0 3px 14px #0003;background:#151613;color:#f1f2e9}
#workspace a{color:var(--accent)}
#workspace h1{color:inherit;display:table;padding-bottom:8px;border-bottom:4px solid #e1e824}
#workspace .section-head{border-bottom-color:var(--line)}
#workspace .section-title{border-inline-start:4px solid #e1e824;padding-inline-start:10px}
#workspace .tabs{background:var(--panel);border-color:var(--line)}
#workspace .workspace-tabs a,body.dark #workspace .workspace-tabs a{color:inherit;background:var(--panel);border-color:var(--line);box-shadow:none}
#workspace .workspace-tabs a:hover,body.dark #workspace .workspace-tabs a:hover{background:var(--soft);color:inherit;border-color:#9ca33a}
#workspace .workspace-tabs a.active,body.dark #workspace .workspace-tabs a.active{background:#e1e824;color:#10110b;border-color:#b8bf16;box-shadow:0 3px 8px #10110b18}
#workspace .tab-symbol{background:var(--soft);color:var(--accent)}
#workspace .active .tab-symbol{background:#10110b;color:#e1e824}
#workspace .action-panel summary{color:var(--accent)}
#workspace .action-panel summary:before{background:#e1e824;color:#10110b}
#workspace .action-panel[open] summary{background:var(--soft)}
#workspace button:not([class]),#workspace input[type=submit]{background:#e1e824;color:#10110b;border:1px solid #b8bf16}
#workspace button:disabled{opacity:.55;cursor:not-allowed}
#workspace button:focus-visible,#workspace a:focus-visible,#workspace input:focus-visible,#workspace select:focus-visible,#workspace textarea:focus-visible,#workspace summary:focus-visible{outline:2px solid #858c00;outline-offset:3px}
body.dark #workspace :focus-visible{outline-color:#e1e824}
#workspace input[type=checkbox],#workspace input[type=radio],#workspace progress{accent-color:#929900}
#workspace .quick a,#workspace .download-link{background:var(--soft);color:var(--accent);border-color:var(--line)}
#workspace .quick a:hover,#workspace .download-link:hover{background:#e1e824;color:#10110b}
#workspace .smart-hero,#workspace .v38hero{background:linear-gradient(115deg,#10110e,#292c1c);color:#f5f5ed;border:1px solid #41452a;border-inline-start:5px solid #e1e824;box-shadow:0 8px 24px #10110b20}
#workspace .smart-hero h2,#workspace .v38hero h2{color:#e1e824}
#workspace .smart-hero p,#workspace .smart-hero small,#workspace .v38hero small{color:#e5e7d8}
#workspace .smart-drop{border-color:#a4aa39;background:var(--soft)}
#workspace .cards article,#workspace .v38metrics a{border-top-color:#b5bc13}
#workspace .gov-panel article{border-inline-start-color:#b5bc13}
#workspace .v38graph b{border-color:#a4aa39}
#workspace .v38track i{background:#b5bc13}
#workspace .v38board article{border-left-color:#b5bc13}
#workspace .insight-row progress{accent-color:#929900}
#workspace th{background:var(--soft);color:inherit}
#workspace tbody tr:hover{background:var(--soft)}
#workspace .empty-state{border-color:#a4aa39}
#workspace .status-pill[data-status="Bloqueado"]{background:#fee2e2;color:#991b1b}
#workspace .status-pill[data-status="Concluído"]{background:#dcfce7;color:#166534}
#workspace .status-pill[data-status="Pendente"]{background:#fef3c7;color:#92400e}
#workspace .diff-del td{background:#fee2e2;color:#991b1b}
#workspace .diff-add td{background:#dcfce7;color:#166534}
/* Mantém o rodapé e o menu de conta com a identidade anteriormente homologada. */
body:not(.auth-page) .corporate-footer{--accent:#176d79;--muted:#536b80;--panel:#fff;--line:#dbe3eb}
body.dark:not(.auth-page) .corporate-footer{--accent:#71d6d7;--muted:#a9bdce;--panel:#192b3d;--line:#34465a}
@media(max-width:600px){#workspace .workspace-tabs a{flex:1 1 42%;min-width:0;overflow-wrap:anywhere}#workspace .workspace-tabs{gap:6px;padding:8px}#workspace .section-title{overflow-wrap:anywhere}}
/* Shared workspace icon system and compact operational states */
#workspace .tab-symbol svg{width:19px;height:19px;display:block}
#workspace .workspace-tabs a{transition:background .15s,border-color .15s;gap:9px}
#workspace .workspace-tabs a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#workspace .workspace-tabs a:not(.active):hover{border-color:#a8ad22;background:var(--soft)}
#workspace .external-owner{font-size:12px;overflow-wrap:anywhere;border-left:3px solid #b5bc13;padding-left:8px}
#workspace .v38board section{min-height:105px;border-top:3px solid #a3a3a3}
#workspace .v38board section[data-lane="Em andamento"]{border-top-color:#64748b}
#workspace .v38board section[data-lane="Em aprovação"]{border-top-color:#b5bc13}
#workspace .v38board section[data-lane="Concluído"]{border-top-color:#16a34a}
#workspace .v38board section[data-lane="Bloqueado"]{border-top-color:#dc2626}
#workspace .empty-state{min-height:0;padding:22px 14px;margin:12px 0}
@media(max-width:700px){#workspace .workspace-tabs a{min-height:44px}#workspace .tab-symbol svg{width:18px;height:18px}}
@media(prefers-reduced-motion:reduce){#workspace .workspace-tabs a{transition:none}}
/* Import workspace: isolated responsive layout */
#workspace .smart-workspace form{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0;overflow:hidden;border-radius:14px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}
#workspace .smart-step{min-width:0;padding:22px 24px;border-bottom:1px solid var(--line)}
#workspace .smart-step:last-child{border-bottom:0}
#workspace .smart-step h3{display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:16px}
#workspace .smart-step h3 span{display:grid;place-items:center;background:#e1e824;color:#10110b;border-radius:8px;width:34px;height:34px;font-size:13px;font-weight:750}
#workspace .smart-step p{margin:8px 0 16px;color:var(--muted);line-height:1.5}
#workspace .smart-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#workspace .smart-fields label{display:grid;gap:7px;min-width:0;font-weight:600}
#workspace .smart-fields input,#workspace .smart-fields select{width:100%;min-width:0;box-sizing:border-box;min-height:44px;margin:0}
#workspace .smart-workspace .smart-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;min-height:170px;padding:24px 16px;margin:16px 0 8px;background:var(--soft);color:var(--accent);border:2px dashed #a4aa39;border-radius:12px;overflow-wrap:anywhere}
#workspace .smart-drop span,#workspace .smart-drop output{font-size:12px;line-height:1.5;color:var(--muted)}
#workspace .smart-drop input[type=file]{display:block;width:min(100%,440px);max-width:100%;height:auto;min-height:44px;padding:7px;background:var(--panel);color:inherit;box-sizing:border-box}
#workspace .smart-drop input::file-selector-button{background:#e1e824;color:#10110b;border:0;border-radius:6px;padding:9px 12px;font-weight:650;cursor:pointer;margin-right:8px}
#workspace .smart-step .smart-limits,#workspace .smart-step .smart-note{font-size:12px;margin:10px 0 0}
#workspace .smart-actions{display:flex;flex-wrap:wrap;gap:10px}
#workspace .smart-actions button{min-height:44px;padding:10px 20px;border-radius:8px;font-weight:650;cursor:pointer}
#workspace .smart-analyze{background:#e1e824;color:#10110b;border:1px solid #b8bf16}
#workspace .smart-confirm{background:var(--panel);color:var(--accent);border:1px solid var(--accent)}
#workspace .smart-confirm:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:900px){#workspace .smart-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#workspace .smart-fields{grid-template-columns:minmax(0,1fr)}#workspace .smart-step{padding:16px}#workspace .smart-actions{flex-direction:column}#workspace .smart-actions button{width:100%}#workspace .smart-workspace .smart-drop{padding:16px 10px}}
