
:root{--bg:#f7f7f6;--surface:#fff;--surface2:#f1f1ef;--line:#e2e2de;--fg:#17171a;--muted:#6c6c75;
--accent:#4f46c9;--accent-soft:#eceafb;--ok:#157f4f;--ok-soft:#e3f3ea;--warn:#9a6300;--warn-soft:#fdf0d8;
--crit:#b3261e;--crit-soft:#fbe6e4;--radius:14px}
:root[data-theme=dark]{--bg:#101013;--surface:#18181c;--surface2:#1f1f25;--line:#2b2b33;--fg:#f2f2f4;--muted:#9a9aa6;
--accent:#9b94f5;--accent-soft:#232038;--ok:#5bd39a;--ok-soft:#14291f;--warn:#e8b45c;--warn-soft:#2a2112;
--crit:#ff8c80;--crit-soft:#2e1715;color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:400 16px/1.6 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3,.bn{font-family:"Space Grotesk",Inter,sans-serif;letter-spacing:-.015em;text-wrap:balance}
h1{font-size:clamp(1.6rem,1.15rem + 2.2vw,2.4rem);line-height:1.12;margin:0 0 .6rem;font-weight:700}
h2{font-size:1.25rem;margin:0 0 .4rem;font-weight:700}
h3{font-size:1rem;margin:0 0 .2rem;font-weight:700}
p{margin:0 0 .9rem;max-width:64ch}
a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:2px}
.num{font-variant-numeric:tabular-nums}
header.top{position:sticky;top:0;z-index:9;background:var(--surface);border-bottom:1px solid var(--line)}
.wrap{max-width:860px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
header .wrap{display:flex;align-items:center;gap:10px;padding-block:11px}
.bn{font-weight:700;font-size:1.05rem;text-decoration:none;color:var(--fg);display:flex;align-items:center;gap:8px}
header nav{margin-left:auto;display:flex;gap:4px;flex-wrap:wrap}
header nav a{font-size:.85rem;color:var(--muted);text-decoration:none;padding:6px 10px;border-radius:9px}
header nav a:hover{background:var(--surface2);color:var(--fg)}
main{padding-block:28px 60px;display:flex;flex-direction:column;gap:20px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.card.flat{background:var(--surface2);border-style:dashed}
.lead{color:var(--muted);font-size:1.05rem;max-width:58ch}
.eyebrow{font-size:.7rem;text-transform:uppercase;letter-spacing:.09em;font-weight:600;color:var(--muted)}
.tag{display:inline-flex;align-items:center;font-size:.68rem;font-weight:600;padding:3px 8px;border-radius:999px}
.tag.med{background:var(--ok-soft);color:var(--ok)}
.tag.min{background:var(--accent-soft);color:var(--accent)}
.tag.ex{background:var(--warn-soft);color:var(--warn)}
.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.kv{background:var(--surface2);border-radius:11px;padding:12px 13px;min-width:0}
.kv .k{font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:600}
.kv .v{font-weight:600;margin-top:2px;word-break:break-word}
.big{font-family:"Space Grotesk",sans-serif;font-size:1.85rem;font-weight:700;line-height:1.05}
.field{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
input[type=text]{flex:1;min-width:0;background:var(--surface);border:1.5px solid var(--line);color:var(--fg);border-radius:11px;padding:13px 14px;font:inherit;font-size:1rem}
input[type=text]:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
a.go{min-height:44px;line-height:18px;box-sizing:border-box}
button.go,a.go{border:0;background:var(--accent);color:#fff;font:inherit;font-weight:600;padding:13px 20px;border-radius:11px;cursor:pointer}
.hint{font-size:.82rem;color:var(--muted)}
.searchwrap{position:relative}
.sug{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:12px;max-height:250px;overflow:auto;box-shadow:0 10px 30px -18px rgba(0,0,0,.4)}
.sug button{display:flex;width:100%;justify-content:space-between;gap:10px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--fg);font:inherit;text-align:left;padding:10px 13px;cursor:pointer}
.sug button:hover{background:var(--accent-soft)}
.sug .uf{color:var(--muted);font-size:.8rem}
.rowline{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.rowline:last-child{border-bottom:0}
.rowline>b{white-space:nowrap;text-align:right}
.bar{height:6px;border-radius:99px;background:var(--surface2);overflow:hidden;margin-top:5px}
.bar i{display:block;height:100%;background:var(--accent)}
.whatnow{background:var(--accent-soft);border-radius:11px;padding:12px 14px}
.whatnow b{color:var(--accent)}
ul.clean{margin:0;padding-left:18px;color:var(--muted)}
ul.clean li{margin-bottom:6px}
ul.clean b{color:var(--fg)}
.movlist{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.movlist a{display:block;background:var(--surface2);border-radius:11px;padding:12px 13px;text-decoration:none;color:var(--fg)}
.movlist a:hover{outline:1.5px solid var(--accent)}
.movlist small{display:block;color:var(--muted);font-size:.8rem;margin-top:2px}
footer{border-top:1px solid var(--line);color:var(--muted);font-size:.8rem;padding-block:20px 40px}
footer a{color:var(--muted)}
footer a.pw:hover{color:var(--fg)}
.mark{width:28px;height:28px;flex:none}
.bn{white-space:nowrap}
#nbox:empty{display:none}
#nbox>.card:first-child{margin-top:0!important}
.tl{display:flex;flex-direction:column}
.ev{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.ev:last-child{border-bottom:0}
.sfProc:not([hidden])~.sfProc{border-top:1px solid var(--line)}
.ev .rail{flex:none;padding-top:8px}
.ev .dot{display:block;width:9px;height:9px;border-radius:50%;background:var(--line)}
.ev.ok .dot{background:var(--ok)}
.ev.crit .dot{background:var(--warn)}
.ev .body{min-width:0;flex:1}
.ev .when{display:block;font-size:.76rem;color:var(--muted)}
.ev .ttl{font-weight:600;margin:2px 0 4px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ev .say{font-size:.95rem;margin-top:2px}
.ev .say b{font-weight:600}
.ev .jur{font-size:.78rem;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}
.sel{width:100%;background:var(--surface);border:1.5px solid var(--line);color:var(--fg);border-radius:11px;padding:12px 14px;font:inherit;min-height:48px}
.grid.dois{grid-template-columns:1fr 1fr}
header nav a{display:inline-flex;align-items:center;min-height:40px}
.tema{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:10px;width:40px;height:40px;cursor:pointer;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0}
.tema:hover{border-color:var(--accent);color:var(--accent)}
#nbox:not(:empty)+.fato{display:none}
.fato{margin:10px 2px 0;font-size:.86rem;color:var(--muted);line-height:1.5}
.fato b{color:var(--fg);font-weight:650;font-variant-numeric:tabular-nums}
footer a{display:inline-block;padding:7px 0}
button.go:disabled{opacity:.6;cursor:default}
.rowbar{padding:10px 0;border-bottom:1px solid var(--line)}
.rowbar:last-child{border-bottom:0}
.rowbar .rt{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.rowbar .bar{margin-top:6px}
details.mais summary{cursor:pointer;color:var(--accent);font-weight:600;padding:14px 0 6px;list-style-position:inside}
.spin{display:inline-block;width:16px;height:16px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:sfgira .8s linear infinite;vertical-align:-3px;margin-right:8px}
.lupa{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:600 .85rem Inter,system-ui,sans-serif;cursor:pointer}
.lupa:hover{border-color:var(--accent);color:var(--accent)}
#sfCaixa,#nbox{scroll-margin-top:120px}
@keyframes sfgira{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.4s}}
@media (max-width:560px){
 header .wrap{flex-wrap:wrap;row-gap:0;padding-block:8px 2px}
 header .lupa{order:2;margin-left:auto;width:40px;height:40px;padding:0;justify-content:center}
 header .lupa span{display:none}
 header .tema{order:2;margin-left:0}
 header nav{order:3;width:100%;margin-left:0;flex-wrap:nowrap;justify-content:space-between}
 header nav a{padding:6px 4px}
 main{padding-block:18px 48px;gap:16px}
 .field{flex-direction:column}
 .field input[type=text]{flex:none;width:100%}
 .field button{width:100%;min-height:48px}
 .grid.um{grid-template-columns:1fr;gap:8px}
 #sfCaixa{padding:12px}
 #sfCaixa .field{flex-direction:row;flex-wrap:nowrap}
 #sfCaixa .field input[type=text]{flex:1;width:auto}
 #sfCaixa .field button{width:auto;padding-inline:16px}
}
