:root{color-scheme:dark;--bg:#080f1e;--line:#263e58;--soft:#92acc3;--text:#eef8ff;--mint:#5ce8cd;--red:#ff899f;--blue:#87b9ff;--gold:#ffd28d}
*{box-sizing:border-box}body{margin:0;min-width:320px;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:radial-gradient(ellipse at 62% -300px,#1c395e 0,transparent 65%),var(--bg);color:var(--text)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}
.app{display:flex;min-height:100vh}.side{width:210px;position:sticky;top:0;align-self:flex-start;height:100vh;border-right:1px solid var(--line);background:linear-gradient(165deg,#0e1c30,#080e1a);padding:26px 14px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;gap:10px;align-items:center;font-size:18px;font-weight:900;letter-spacing:.04em;padding:0 6px 30px}.brandIcon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#163e4c;border:1px solid #368a94;color:var(--mint);font-size:25px}.brand strong{color:var(--mint)}.brand small{display:block;color:#82a5b9;font-size:10px;margin-top:2px;letter-spacing:.15em}.side nav{display:grid;gap:8px}.nav{border:1px solid transparent;border-radius:9px;background:transparent;color:#93aec3;padding:13px;text-align:left;font-size:13px;font-weight:800}.nav.active{background:#102f3d;color:var(--mint);border-color:#2b6e7f}.sidefoot{margin-top:auto;font-size:12px;color:#c1d4e1;border-top:1px solid var(--line);padding:20px 9px}.sidefoot small{color:#83a0b5;line-height:1.7;display:block;margin-top:9px}
.main{width:calc(100% - 210px);max-width:1450px;padding:38px clamp(18px,4vw,64px) 25px;margin:0 auto;min-width:0}header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:26px;border-bottom:1px solid var(--line)}.eyebrow{font-size:10px;letter-spacing:.17em;color:#90bad5;font-weight:850}h1{font-size:clamp(29px,3vw,41px);letter-spacing:-.06em;margin:7px 0}h1 em{font-style:normal;color:var(--mint)}.sub{color:#98b4c9;font-size:12px;line-height:1.6;margin:0}.righthead{text-align:right;min-width:135px}.righthead>b{font-size:23px;color:var(--mint);font-variant-numeric:tabular-nums}.righthead small{font-size:10px;color:#7e9db3;display:block}.smallbtn{border:1px solid #365b74;border-radius:10px;background:#132c40;color:#dcecf8;padding:9px 13px;font-size:11px;font-weight:800;margin-top:10px}.connection{display:flex;gap:12px;align-items:center;padding:19px 0;color:#b0cad8;font-size:11px}.connectionText{display:flex;align-items:center;gap:10px}.connectionText strong{font-weight:750}.connection>span{margin-left:auto;color:#829fb4}.connection .smallbtn{margin:0}.pulse,.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--mint);box-shadow:0 0 13px #67e5cc;animation:pulse 2s infinite}.pulse.scanning{background:var(--gold)}.pulse.offline{background:var(--red)}@keyframes pulse{50%{opacity:.35}}
.focusInfo{display:flex;align-items:center;gap:22px;padding:20px 24px;border:1px solid #256678;background:linear-gradient(105deg,#112d3c,#0d2037 70%,#111d38);border-radius:17px;margin-bottom:18px}.focusInfo strong{font-size:19px}.focusInfo p{color:#a6c3d2;font-size:12px;line-height:1.55;max-width:720px;margin:6px 0 0}.focusInfo b{color:#e1eff8}.miniRadar{width:76px;height:76px;border-radius:50%;flex-shrink:0;border:1px solid #348593;background:repeating-radial-gradient(circle,#114050 0,#114050 1px,transparent 2px,transparent 19px);position:relative;overflow:hidden;display:grid;place-items:center}.beam{position:absolute;inset:0;background:conic-gradient(transparent 0deg,transparent 275deg,#4fe6ca84 335deg,transparent 359deg);animation:spin 4s linear infinite}.radarCenter{position:relative;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#10384a;border:1px solid var(--mint);color:var(--mint);font-weight:900}@keyframes spin{to{transform:rotate(360deg)}}.focusCounter{white-space:nowrap;color:var(--mint);font-size:12px;font-weight:900;border:1px solid #2f6a71;border-radius:9px;padding:8px 10px;margin-left:auto}
.pairGrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.pairCard{display:flex;flex-direction:column;min-width:0;padding:24px;border:1px solid #2e4b69;border-radius:17px;background:linear-gradient(150deg,#10253a,#0d182b);box-shadow:0 10px 30px #0001}.pairCard.first{border-color:#44716f;background:radial-gradient(circle at 0 0,#21483d35,transparent 55%),linear-gradient(150deg,#12283a,#0d182b)}.pairTop{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.pairTop h2{font-size:clamp(25px,2.5vw,34px);margin:10px 0 6px;letter-spacing:-.04em}.goldText{color:var(--gold)}.blueText{color:var(--blue)}.where{color:#95b5ca;font-size:11px;line-height:1.6;display:block}.pairTop .dot{height:5px;width:5px;vertical-align:middle;margin:0 5px}.status{font-size:9px;border:1px solid #5d7083;padding:7px 9px;border-radius:999px;color:#b7ccdd;white-space:nowrap;font-weight:850}.status.passed{border-color:#58ba99;color:var(--mint)}.status.offline{border-color:#866d54;color:#eab97f}.moveLine{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:27px 0 15px;padding:17px 0;border-top:1px solid #2b4860;border-bottom:1px solid #2b4860}.moveLine small{font-size:9px;color:#83a5b8;font-weight:750;letter-spacing:.05em}.direction{font-size:18px;font-weight:900;margin-top:5px}.up{color:var(--mint)}.down{color:var(--red)}.measures{text-align:right;max-width:45%}.measures strong{display:block;font-size:30px;margin-top:2px}.measures span{display:block;color:#97aebc;font-size:10px}.pillLine{display:flex;gap:7px;flex-wrap:wrap;color:#a4c0ce;font-size:10px}.pillLine span{border:1px solid #325065;background:#112a3b;border-radius:8px;padding:7px 9px}.reason{font-size:12px;color:#a9c3d3;line-height:1.7;min-height:84px}.cardFoot{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:auto}.cardFoot small{width:100%;font-size:10px;color:#738e9f}.primary,.secondary{border-radius:9px;padding:11px 13px;font-size:11px;font-weight:850}.primary{color:#042d32;background:linear-gradient(110deg,#4ae1ca,#87c9ff);border:1px solid #52d7c8}.secondary{color:#dceffc;background:#173044;border:1px solid #3a6375}
.sectionHead{margin:36px 0 17px}.sectionHead h2{font-size:23px;letter-spacing:-.035em;margin:7px 0 5px}.sectionHead p{font-size:12px;color:#91afc2;margin:0}.number{font-size:12px;color:var(--mint);border:1px solid #35827e;padding:3px 8px;border-radius:7px;vertical-align:middle}.alertList{display:grid;gap:12px}.placeholder{border:1px dashed #3b586d;background:#0d1c30;padding:21px;border-radius:13px;color:#99b5c5;font-size:12px;line-height:1.7}.study{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:21px;border:1px solid #346b72;background:#102838;border-radius:14px}.studyLabel{font-size:9px;color:#85bfd1;letter-spacing:.08em;font-weight:900}.study h3{font-size:21px;margin:6px 0}.study h3 span{color:#a4bdcc;font-size:12px}.study p{font-size:13px;font-weight:800;margin:0 0 7px}.study small{font-size:11px;color:#8babbc}.studyRate{text-align:right;max-width:145px}.studyRate b{font-size:32px;color:var(--mint)}.studyRate span{display:block;color:#93abbd;font-size:10px}
.fold{margin-top:17px;padding:18px;border:1px solid #253f55;background:#0e1d31;border-radius:13px}.fold summary{font-size:13px;font-weight:850;cursor:pointer}.fold summary span{color:var(--mint);margin-left:8px;font-size:11px}.pastList,.debugRows{display:grid;gap:9px;margin-top:14px}.pastList>div,.debugRows>div{display:grid;gap:4px;padding:11px 0;border-bottom:1px solid #2b455a;font-size:12px}.pastList span,.debugRows p,.muted{font-size:11px;color:#91aebd;line-height:1.6;margin:0}.risk{color:#839fb3;line-height:1.7;font-size:11px;margin-top:26px}footer{font-size:9px;color:#7795ac;margin-top:28px;padding:15px 0;border-top:1px solid var(--line);letter-spacing:.13em}.bankHeader{font-size:30px;margin:13px 0 23px}.bankGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.bankCard{background:#0f2234;border:1px solid #2e5466;padding:25px;border-radius:15px}.bankLabel,.bankCard label{display:block;font-size:12px;color:#a0bbca}.bankCard h3{font-size:30px;margin:14px 0 26px}.bankCard p{font-size:12px;color:#9cabbc;line-height:1.6}.bankInput{display:flex;gap:9px;margin-top:10px}.bankInput input{padding:11px;width:100%;min-width:0;border-radius:9px;background:#0a192a;border:1px solid #31526c;color:#effaff}.bankSteps{display:grid;gap:5px}.bankSteps>div{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:7px 1px;border-bottom:1px solid #2a4053}.toast{position:fixed;bottom:23px;right:22px;max-width:min(420px,calc(100vw - 44px));background:#1b4555;box-shadow:0 14px 40px #000a;padding:14px 18px;border-radius:10px;color:white;font-size:12px;z-index:20}
@media(max-width:1150px){.side{width:170px}.main{width:calc(100% - 170px);padding:27px 23px}.pairCard{padding:17px}.focusInfo{padding:17px}.pairTop{flex-wrap:wrap}.direction{font-size:15px}.measures strong{font-size:24px}}
@media(max-width:850px){.pairGrid,.bankGrid{grid-template-columns:1fr}.pairTop{flex-wrap:nowrap}.reason{min-height:0}}
@media(max-width:650px){.app{display:block}.side{position:relative;height:auto;width:100%;flex-direction:row;align-items:center;justify-content:space-between;padding:11px 14px}.brand{padding:0;font-size:14px}.brandIcon{height:33px;width:33px}.brand small{font-size:9px}.side nav{display:flex;gap:4px}.nav{font-size:11px;padding:8px}.sidefoot{display:none}.main{width:100%;padding:19px 15px}header{padding-bottom:18px}h1{font-size:29px}.sub{font-size:11px}.righthead{min-width:100px}.righthead>b{font-size:15px}.righthead .smallbtn{font-size:10px;padding:8px}.connection{flex-wrap:wrap}.connection>span{margin-left:0;flex:1}.focusInfo{gap:13px;padding:14px}.miniRadar{width:55px;height:55px}.focusInfo strong{font-size:15px}.focusInfo p{font-size:11px}.focusCounter{display:none}.pairCard{padding:17px}.moveLine{margin-top:20px}.study{padding:15px}.studyRate b{font-size:24px}}
@media(max-width:390px){.miniRadar{display:none}.pairTop{flex-wrap:wrap}.direction{font-size:14px}.measures{max-width:46%}}
@media(prefers-reduced-motion:reduce){.pulse,.beam{animation:none}}

/* V28 IA - mantém visual da V27 e localStorage db16_bank */
.aiIntro{font-size:13px;line-height:1.7;color:#aec6d8;background:#10283a;padding:18px;border-radius:13px;border:1px solid #2a5970;margin-bottom:16px}
.aiHistory{display:grid;gap:15px;margin-bottom:16px}.aiCard{border-radius:14px;border:1px solid #316574;background:linear-gradient(140deg,#112d3c,#0d1b2e);padding:21px}.aiHeader{display:flex;align-items:start;justify-content:space-between;gap:10px}.aiHeader h3{font-size:24px;margin:9px 0}.aiHeader h3 span{font-size:12px;color:#99b6ca;display:block;margin-top:5px}.aiCard p{font-size:13px;line-height:1.6;color:#cfdfeb}.aiCard p b{color:#58e0c9}.aiCaution{font-size:11px;color:#a8b6c5;border-top:1px solid #32566c;padding-top:14px;line-height:1.6}
@media(max-width:650px){.side nav{flex-wrap:wrap;justify-content:flex-end}.nav{padding:7px 5px;font-size:10px}.aiHeader{flex-wrap:wrap}}
