:root{
--bg:#ede9df;
--surface:#ffffff;
--surface-2:#f6f3ea;
--fg:#113a4d;
--fg-muted:#5f7a88;
--line:#ddd6c6;
--brand:#098bbc;
--brand-soft:#d9eefa;
--accent:#f16323;
--accent-soft:#fce0d1;
--good:#0f8a6a;
--good-soft:#d8f0e7;
--warn:#a16a05;
--warn-soft:#fdeecd;
--crit:#b22f1c;
--crit-soft:#fadfd9;
--header-bg:#098bbc;
--on-brand:#ffffff;
--header-fg:#ede9df;
--header-line:rgba(237,233,223,.28);
--shadow:0 1px 2px rgba(17,58,77,.07), 0 10px 28px rgba(17,58,77,.07);
--font-display:"Jost","Futura","Century Gothic",sans-serif;
--font-body:"Poppins",-apple-system,"Segoe UI",sans-serif;
--font-num:"IBM Plex Mono",ui-monospace,monospace;
}
@media (prefers-color-scheme: dark){
:root:not([data-theme="light"]){
--bg:#0b2230;
--surface:#11303f;
--surface-2:#17394a;
--fg:#ede9df;
--fg-muted:#9db4c0;
--line:#1f4a5d;
--brand:#aadff7;
--brand-soft:#123b50;
--accent:#ff8243;
--accent-soft:#3d2113;
--good:#4fc39c;
--good-soft:#0f382f;
--warn:#fcb017;
--warn-soft:#3a2d0c;
--crit:#f58a7a;
--crit-soft:#3f1d17;
--header-bg:#072735;
--on-brand:#0b2230;
--header-fg:#ede9df;
--header-line:rgba(237,233,223,.18);
--shadow:0 1px 2px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.35);
color-scheme:dark;
}
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--fg);font-family:var(--font-body);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,.display{font-family:var(--font-display);letter-spacing:-.01em;text-wrap:balance;margin:0}
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--header-bg);color:var(--header-fg)}
.head-in{max-width:1180px;margin:0 auto;padding:18px 16px 14px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.wordmark{font-family:var(--font-display);font-weight:500;font-size:29px;line-height:1;letter-spacing:-.035em;color:var(--header-fg);white-space:nowrap;text-box:trim-both cap alphabetic}
.wordmark i{font-style:italic;font-weight:500;letter-spacing:-.02em;margin-left:-.02em}
.brand-div{width:1px;height:18px;background:var(--header-fg);opacity:.35;flex:none}
.brandsub{font-size:10.5px;line-height:1;color:var(--header-fg);opacity:.8;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;text-box:trim-both cap alphabetic}
.head-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.role{font-size:11.5px;color:var(--header-fg);border:1px solid var(--header-line);border-radius:999px;padding:3px 11px;white-space:nowrap}
header nav{max-width:1180px;margin:0 auto;padding:0 16px 10px;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
header nav::-webkit-scrollbar{display:none}
header nav button{font-family:var(--font-display);font-weight:500;font-size:13.5px;color:var(--header-fg);opacity:.72;background:none;border:0;padding:7px 14px;border-radius:999px;cursor:pointer;white-space:nowrap}
header nav button:hover{opacity:1;background:var(--header-line)}
header nav button[aria-current="true"]{background:var(--header-fg);color:var(--header-bg);opacity:1;font-weight:600}
header nav button:focus-visible{outline:2px solid var(--header-fg);outline-offset:2px}
.btn:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
main{max-width:1180px;margin:0 auto;padding-block:22px 64px;padding-left:16px;padding-right:16px}
.sec-head{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-bottom:14px}
.sec-head p{margin:2px 0 0;color:var(--fg-muted);font-size:13.5px;max-width:62ch}
.sec-head .spacer{margin-left:auto}
.sec-head{border-bottom:1px solid var(--accent);padding-bottom:13px}
.sec-head h1{color:var(--brand);text-transform:uppercase;font-weight:600;letter-spacing:.005em}
section.card h2{color:var(--brand);font-weight:600;letter-spacing:.01em;border-bottom:1px solid var(--accent);padding-bottom:7px}
section.card h2 + p{margin-top:7px}
.watermark{position:fixed;right:-70px;bottom:-90px;width:430px;color:var(--brand);opacity:.07;pointer-events:none;z-index:0}
@media (max-width:860px){.watermark{display:none}}
header,main{position:relative;z-index:1}
.btn{font-family:var(--font-display);font-weight:500;font-size:13.5px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--fg);padding:8px 14px;cursor:pointer}
.btn:hover{border-color:var(--brand)}
.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.btn.primary:hover{filter:brightness(1.08)}
.btn.ghost{border-color:transparent;background:transparent;color:var(--fg-muted);padding:6px 9px;font-size:12.5px}
.btn.ghost:hover{background:var(--surface-2);color:var(--fg)}
.btn.danger:hover{border-color:var(--crit);color:var(--crit)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.pad{padding:16px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:12px;margin-bottom:16px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 15px;display:flex;flex-direction:column;gap:6px;min-width:0}
.kpi .lab{font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--fg-muted)}
.kpi .val{font-family:var(--font-display);font-weight:600;font-size:24px;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
.kpi .sub{font-size:12px;color:var(--fg-muted)}
.kpi.lead{border-left:3px solid var(--accent)}
.pos{color:var(--good)}.neg{color:var(--crit)}
.grid2{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;align-items:start}
@media (max-width:860px){.grid2{grid-template-columns:1fr}}
.chart{display:flex;flex-direction:column;gap:11px;margin-top:4px}
.crow{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:center;min-width:0}
@media (max-width:520px){.crow{grid-template-columns:1fr;gap:4px}}
.cname{font-size:12.5px;color:var(--fg-muted);min-width:0;overflow-wrap:anywhere}
.cbars{display:flex;flex-direction:column;gap:4px;min-width:0}
.cbar{display:flex;align-items:center;gap:8px;min-width:0}
.cbar .fill{height:12px;border-radius:4px;min-width:3px}
.cbar.r .fill{background:var(--brand)}
.cbar.c .fill{background:var(--accent)}
.cbar .v{font-family:var(--font-num);font-size:11.5px;color:var(--fg-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.legend{display:flex;gap:14px;font-size:12px;color:var(--fg-muted);margin-top:12px}
.swatch{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.dl{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
.dl li{display:flex;gap:10px;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line)}
.dl li:last-child{border-bottom:0}
.dl .when{font-family:var(--font-num);font-size:12px;color:var(--fg-muted);white-space:nowrap;min-width:62px}
.dl .what{flex:1;min-width:0;font-size:13.5px}
.dl .who{font-size:12px;color:var(--fg-muted)}
.tablewrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13.5px}
th{text-align:left;font-family:var(--font-display);font-weight:500;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-muted);padding:0 12px 9px;white-space:nowrap}
td{padding:11px 12px;border-top:1px solid var(--line);vertical-align:top}
td.n{font-family:var(--font-num);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
th.n{text-align:right}
tbody tr:hover{background:var(--surface-2)}
td.acts{text-align:right;white-space:nowrap}
.strong{font-weight:600}
.muted{color:var(--fg-muted);font-size:12.5px}
.pill{display:inline-block;font-size:11.5px;font-weight:500;padding:3px 9px;border-radius:999px;white-space:nowrap}
.p-neutral{background:var(--surface-2);color:var(--fg-muted)}
.p-brand{background:var(--brand-soft);color:var(--brand)}
.p-good{background:var(--good-soft);color:var(--good)}
.p-warn{background:var(--warn-soft);color:var(--warn)}
.p-crit{background:var(--crit-soft);color:var(--crit)}
.p-accent{background:var(--accent-soft);color:var(--accent)}
.statwrap{display:inline-flex;align-items:center;position:relative;border-radius:999px;padding-right:17px;max-width:100%}
.statwrap::after{content:"";position:absolute;right:8px;top:50%;width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-75%) rotate(45deg);opacity:.65;pointer-events:none}
.statwrap select{appearance:none;-webkit-appearance:none;background:transparent;border:0;color:inherit;font-family:var(--font-body);font-size:11.5px;font-weight:500;line-height:1.5;padding:3px 3px 3px 9px;width:auto;min-width:0;cursor:pointer;border-radius:999px}
.statwrap select:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.statwrap:hover{box-shadow:inset 0 0 0 1px currentColor}
.statwrap:has(select[disabled]){padding-right:9px;opacity:.75}
.statwrap:has(select[disabled]):hover{box-shadow:none}
.statwrap:has(select[disabled])::after{display:none}
.statwrap select[disabled]{cursor:default;padding-right:0}
form.rec{border-top:1px solid var(--line);margin-top:4px;padding-top:16px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.f{display:flex;flex-direction:column;gap:5px;min-width:0}
.f.wide{grid-column:1/-1}
label{font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--fg-muted)}
input,select,textarea{font-family:inherit;font-size:14px;color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:9px 10px;width:100%;min-width:0}
input[type=number]{font-family:var(--font-num)}
textarea{resize:vertical;min-height:62px}
.formacts{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.filters select,.filters input{width:auto;min-width:140px;font-size:13px;padding:7px 9px}
.empty{text-align:center;padding:34px 16px;color:var(--fg-muted)}
.empty h3{font-size:15px;color:var(--fg);margin-bottom:6px}
.empty p{margin:0 auto;max-width:44ch;font-size:13.5px}
.note{font-size:12.5px;color:var(--fg-muted);background:var(--surface-2);border-radius:10px;padding:10px 12px;margin-top:14px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(18px + env(safe-area-inset-bottom,0px));background:var(--fg);color:var(--bg);font-size:13px;padding:10px 16px;border-radius:999px;z-index:50;box-shadow:var(--shadow)}
@media (prefers-reduced-motion:no-preference){.toast{animation:rise .2s ease-out}}
@keyframes rise{from{opacity:0;transform:translateX(-50%) translateY(6px)}}
.sheet-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.sheet-head h3{font-size:15px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.sheet-mod{font-family:var(--font-body);font-weight:400;font-size:12px;color:var(--fg-muted)}
.sheet-x{margin-left:auto;display:none}
.mlist,.fab,.tabbar{display:none}
@media (max-width:720px){
body{font-size:14.5px}
.head-in{padding:15px 16px 14px}
.wordmark{font-size:25px}
.brandsub,.brand-div{display:none}
.role{font-size:10.5px;padding:2px 9px}
header nav{display:none}
main{padding-block:16px calc(108px + env(safe-area-inset-bottom,0px))}
.sec-head{padding-bottom:10px;margin-bottom:12px}
.sec-head h1{font-size:20px !important}
.sec-head p{font-size:12.5px}
.sec-head .btn.primary{display:none}
.kpis{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.kpi{padding:11px 12px;gap:3px;border-radius:12px}
.kpi .lab{font-size:10px;letter-spacing:.06em}
.kpi .val{font-size:19px}
.kpi .sub{font-size:11px;line-height:1.35}
.kpi:first-child:nth-last-child(2n+1){grid-column:1/-1}
.card{border-radius:12px}
.pad{padding:14px}
.grid2{gap:12px}
.filters{flex-wrap:nowrap;overflow-x:auto;margin:0 -14px 10px;padding:0 14px 2px;scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.filters select{min-width:0;flex:none;font-size:13px}
.filters .muted{flex:none;white-space:nowrap}
.tablewrap{display:none}
.mlist{display:flex;flex-direction:column;gap:10px}
section.card:has(.mlist){background:none;border:0;box-shadow:none;padding:0}
.mcard{border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:var(--surface);display:flex;flex-direction:column;gap:9px}
.mc-top{display:flex;gap:10px;align-items:flex-start}
.mc-title{flex:1;min-width:0;font-size:14px;line-height:1.35}
.mc-title .muted{font-size:12px}
.mc-val{font-family:var(--font-display);font-weight:600;font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mc-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:0}
.mc-meta div{min-width:0}
.mc-meta dt{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-muted)}
.mc-meta dd{margin:1px 0 0;font-size:12.5px;overflow-wrap:anywhere}
.mc-meta dd .muted{font-size:12.5px;color:var(--fg)}
.mc-foot{display:flex;align-items:center;gap:4px;border-top:1px solid var(--line);padding-top:9px}
.mc-foot .spacer{flex:1}
.mc-foot .btn.ghost{padding:7px 9px}
.statwrap select{font-size:12.5px;padding:5px 3px 5px 11px}
.fab{display:grid;place-items:center;position:fixed;right:16px;bottom:calc(78px + env(safe-area-inset-bottom,0px));width:54px;height:54px;border-radius:50%;border:0;background:var(--accent);color:#fff;box-shadow:0 6px 18px rgba(241,99,35,.38);z-index:25;cursor:pointer}
.fab svg{width:24px;height:24px}
.fab:active{transform:scale(.95)}
.tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 20px rgba(17,58,77,.06)}
.tabbar button{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;padding:6px 2px;color:var(--fg-muted);font-family:var(--font-display);font-size:10.5px;font-weight:500;letter-spacing:.01em;cursor:pointer;border-radius:10px;min-width:0}
.tabbar svg{width:23px;height:23px}
.tabbar button[aria-current="true"]{color:var(--brand)}
.tabbar button[aria-current="true"] svg{stroke-width:2.2}
.tabbar button[aria-current="true"]::after{content:"";width:16px;height:2px;border-radius:2px;background:var(--accent);margin-top:1px}
.tabbar button:not([aria-current="true"])::after{content:"";height:2px;margin-top:1px}
.tabbar button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
body.sheet-open{overflow:hidden}
body.sheet-open main{z-index:50}
body.sheet-open .tabbar{display:none}
form.rec{position:fixed;inset:0;z-index:40;background:var(--bg);margin:0;border:0;overflow-y:auto;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 0}
.sheet-head{position:sticky;top:calc(-12px - env(safe-area-inset-top,0px));background:var(--bg);margin:-12px -16px 12px;padding:14px 16px 12px;border-bottom:1px solid var(--accent);z-index:1}
.sheet-head h3{font-size:18px;color:var(--brand)}
.sheet-x{display:inline-flex}
.fields{grid-template-columns:1fr 1fr;gap:12px 10px}
.f.wide,.f:has(textarea){grid-column:1/-1}
.f:has(input[type=text]){grid-column:1/-1}
input,select,textarea{font-size:16px;padding:11px 12px;background:var(--surface)}
.formacts{position:sticky;bottom:0;margin:16px -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--bg);border-top:1px solid var(--line)}
.formacts .btn{flex:1;padding:13px 14px;font-size:15px}
.toast{bottom:calc(84px + env(safe-area-inset-bottom,0px));max-width:calc(100% - 32px);text-align:center;border-radius:14px}
body.sheet-open .toast{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
.dl .when{min-width:46px}
}
body[data-view="auth"] header, body[data-view="auth"] main, body[data-view="auth"] .tabbar,
body[data-view="pendente"] header, body[data-view="pendente"] main, body[data-view="pendente"] .tabbar,
body[data-view="carregando"] main, body[data-view="carregando"] .tabbar{display:none}
body[data-view="auth"], body[data-view="pendente"]{background:var(--header-bg)}
#gate:empty{display:none}
#gate{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px 16px;position:relative;z-index:1}
.auth-card{width:100%;max-width:400px;background:var(--surface);border-radius:18px;padding:28px 24px 22px;box-shadow:0 24px 60px rgba(4,30,44,.28);display:flex;flex-direction:column;gap:14px}
.auth-brand{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-bottom:14px;border-bottom:1px solid var(--accent)}
.auth-brand .wordmark{color:var(--brand);font-size:38px}
.auth-sub{font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-muted)}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--surface-2);border-radius:10px;padding:3px}
.auth-tabs button{font-family:var(--font-display);font-weight:500;font-size:14px;border:0;background:none;color:var(--fg-muted);padding:9px;border-radius:8px;cursor:pointer}
.auth-tabs button[aria-selected="true"]{background:var(--surface);color:var(--brand);font-weight:600;box-shadow:0 1px 3px rgba(17,58,77,.12)}
.auth-title{font-size:20px;color:var(--brand)}
.auth-text{margin:0;font-size:14px;color:var(--fg)}
#authform{display:flex;flex-direction:column;gap:12px}
#authform input{font-size:16px;padding:11px 12px;background:var(--surface)}
.auth-go{width:100%;padding:12px 14px;font-size:15px}
.auth-hint{margin:-6px 0 0;font-size:12px;color:var(--fg-muted)}
.auth-err{margin:0;font-size:13px;color:var(--crit);background:var(--crit-soft);border-radius:8px;padding:9px 11px}
.auth-msg{margin:0;font-size:13px;color:var(--good);background:var(--good-soft);border-radius:8px;padding:9px 11px}
.auth-link{align-self:center;background:none;border:0;color:var(--brand);font-family:var(--font-body);font-size:13px;cursor:pointer;padding:4px;text-decoration:underline;text-underline-offset:3px}
.auth-foot{margin:0;font-size:12px;color:var(--fg-muted);text-align:center}
button.role{background:none;font-family:var(--font-body);cursor:pointer}
button.role:hover{background:var(--header-line)}
button.role[aria-current="true"]{background:var(--header-fg);color:var(--header-bg);border-color:var(--header-fg)}
.addmembro{display:flex;flex-direction:column;gap:12px}
.addmembro .btn{align-self:flex-start}
.splash{display:none}
body[data-view="carregando"] .splash{display:grid;place-items:center;min-height:60vh;color:var(--fg-muted);font-size:13px}
