:root{color-scheme:dark;--bg:#0b101b;--surface:#121a29;--surface2:#182235;--card:#151d2e;--line:#283448;--line2:#202c3e;--text:#f4f7fd;--muted:#8995ad;--dim:#67758e;--accent:#ff667c;--blue:#6287ff;--green:#36d2a0;--purple:#b183ff;--yellow:#f5b35e;--radius:16px;--shadow:0 22px 55px rgba(0,0,0,.2)}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.45}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}.hidden{display:none!important}a{color:var(--blue);text-decoration:none}.accent{color:var(--accent)}.eyebrow{letter-spacing:.15em;font-size:10px;font-weight:800;color:var(--accent);margin-bottom:12px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,3vw,34px);line-height:1.2;letter-spacing:-.045em;margin-bottom:7px}h2{font-size:17px;letter-spacing:-.025em;margin-bottom:4px}h3{font-size:14px;margin-bottom:4px}p{color:var(--muted)}small{color:var(--muted)}.auth-layout{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:32px;overflow:hidden;position:relative;padding:28px}.auth-backdrop{position:absolute;inset:0;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse at 5% 80%,#25152b,transparent 48%),radial-gradient(ellipse at 85% 0%,#172649,transparent 50%)}.orb{position:absolute;filter:blur(60px);border-radius:100%;opacity:.23}.orb-a{height:400px;width:400px;background:#ff597a;left:-140px;bottom:-180px}.orb-b{height:350px;width:350px;background:#356aff;right:-150px;top:-100px}.auth-brand{z-index:1;display:flex;align-items:center;gap:12px;font-size:25px;font-weight:900;letter-spacing:-.055em}.auth-brand small,.brand small{display:block;letter-spacing:.22em;color:var(--dim);font-size:9px;font-weight:800}.brand-logo{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;color:#fff;background:linear-gradient(135deg,#ff5f72,#a43f89);font-size:27px;font-weight:700;box-shadow:0 5px 30px #fb537634}.brand-logo.large{width:48px;height:48px;font-size:34px}.auth-card{z-index:1;border:1px solid #344055;border-radius:23px;background:linear-gradient(145deg,#172238f5,#101726fa);width:min(440px,100%);padding:37px;box-shadow:0 35px 100px #0006}.auth-card h1{font-size:28px}.auth-card p{margin-bottom:28px}.auth-card label{display:block;color:#cdd5e5;font-weight:600;font-size:12px;margin:0 0 17px}.auth-card input{margin-top:8px}.auth-foot{text-align:center;color:var(--dim);font-size:11px;margin-top:23px}.app-layout{display:flex;min-height:100dvh}.sidebar{position:sticky;top:0;flex:none;width:250px;height:100dvh;background:#0e1522;border-right:1px solid var(--line2);display:flex;flex-direction:column;z-index:20;overflow:auto}.brand{padding:31px 25px 34px;display:flex;align-items:center;gap:10px;font-size:22px;font-weight:850;letter-spacing:-.055em}.sidebar-caption{color:#56647b;font-size:9px;font-weight:900;letter-spacing:.17em;padding:0 25px 12px}.sidebar nav{padding:0 12px;display:flex;flex-direction:column;gap:3px}.nav-item{display:flex;align-items:center;gap:11px;border:1px solid transparent;background:transparent;color:#94a0b7;border-radius:10px;text-align:left;padding:10px 12px;font-size:12px;font-weight:600;min-height:39px}.nav-item:hover{background:#182235;color:#f8fbff}.nav-item.active{background:linear-gradient(90deg,#392338,#261f37);border-color:#6e3851;color:#fff}.nav-icon{font-size:19px;line-height:15px;color:#8593ad;width:22px;text-align:center}.nav-item.active .nav-icon{color:#ff8194}.nav-rule{height:1px;background:var(--line2);margin:13px 5px}.nav-num{margin-left:auto;border-radius:20px;background:#55354a;padding:1px 7px;color:#ffc9d6;font-size:10px}.sidebar-bottom{margin-top:auto;padding:24px 15px 17px}.source-mini{display:flex;gap:10px;align-items:flex-start;margin:0 6px 16px;padding:13px;background:#141e2f;border:1px solid var(--line2);border-radius:11px;color:var(--muted);font-size:11px}.source-mini strong{display:block;color:#cbd5e7;font-size:12px;margin-top:4px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{display:inline-block;width:7px;height:7px;flex:none;border-radius:50%;background:#f3a960;box-shadow:0 0 0 4px #f3a9601b;margin-top:5px}.status-dot.green{background:var(--green);box-shadow:0 0 0 4px #38d7a11d}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line2);padding:17px 7px 0}.avatar{width:34px;height:34px;border-radius:10px;background:#423356;color:#efd7ff;display:grid;place-items:center;font-weight:800}.profile-meta{min-width:0;flex:1}.profile-meta strong,.profile-meta small{display:block;overflow:hidden;text-overflow:ellipsis}.profile-meta strong{font-size:12px}.profile-meta small{font-size:10px}.profile button{border:0;background:transparent;font-size:20px;color:var(--muted)}.main-shell{flex:1;min-width:0}.topbar{height:72px;border-bottom:1px solid var(--line2);display:flex;align-items:center;padding:0 37px;gap:20px}.crumbs{color:#e6edfa;font-size:12px;font-weight:650;display:flex;gap:12px;align-items:center}.crumbs>span:first-child{color:var(--accent);font-weight:800;letter-spacing:.12em}.slash{color:#516079}.header-right{margin-left:auto;display:flex;align-items:center;gap:20px}.status-chip{font-size:11px;border:1px solid var(--line);padding:7px 11px;border-radius:7px;color:#bac5d9;display:flex;align-items:center;gap:9px}.status-chip .status-dot{margin-top:0}.date-clock{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.circle-btn,.menu-toggle{height:34px;width:34px;background:#182234;border:1px solid #2b3950;border-radius:9px;color:#c9d3e5;font-size:19px}.menu-toggle{display:none}.page{max-width:1530px;margin:auto;padding:39px 38px 22px}.page-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:25px}.page-heading .eyebrow{margin-bottom:8px}.page-heading p{font-size:13px;margin:0}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border-radius:9px;border:1px solid #3b4860;padding:10px 14px;background:#192539;color:#dfe7f5;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}.btn:hover{filter:brightness(1.12)}.btn-main{background:linear-gradient(125deg,#ff687e,#e84d72);border-color:#ff8191;color:#fff;box-shadow:0 8px 27px #fc5a742e}.btn-quiet{background:transparent;border-color:#334057}.btn-danger{color:#ffadb8;border-color:#6e344c;background:#2b1d2c}.btn.full{width:100%}.btn-sm{padding:7px 10px;font-size:11px}.grid{display:grid;gap:17px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:19px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,#172134,#121a29);box-shadow:0 8px 28px #05091314;overflow:hidden}.panel.pad{padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel-head h2{margin:0}.panel-head small{font-size:11px}.panel-eyebrow{font-size:10px;letter-spacing:.11em;font-weight:800;color:var(--muted)}.stat-card{padding:20px 22px;min-height:139px;position:relative}.stat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.stat-top span{font-size:11px;color:#9eacc2;font-weight:600}.stat-icon{height:32px;width:32px;border-radius:10px;display:grid;place-items:center;background:#ff668017;color:var(--accent);font-size:17px}.stat-icon.blue{background:#6586ff17;color:#8dabff}.stat-icon.green{background:#36d2a01a;color:var(--green)}.stat-icon.purple{background:#b183ff1a;color:var(--purple)}.stat-value{font-size:29px;line-height:1.1;font-weight:800;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.stat-sub{font-size:10px;color:var(--muted);margin-top:10px}.twocol{grid-template-columns:minmax(0,1.7fr) minmax(290px,.9fr)}.twoequal{grid-template-columns:repeat(2,minmax(0,1fr))}.threecol{grid-template-columns:repeat(3,minmax(0,1fr))}.space-bottom{margin-bottom:19px}.ticker{display:flex;flex-wrap:wrap;gap:7px}.pill{border:1px solid #3b4760;padding:6px 10px;border-radius:9px;font-size:12px;font-weight:800;letter-spacing:.01em;font-variant-numeric:tabular-nums;background:#1c2639;color:#b9c6da;display:inline-flex;align-items:center}.pill.mid{background:#1a3151;border-color:#2c5784;color:#81baff}.pill.high{background:#41265c;border-color:#73509b;color:#e8baff}.pill.super{background:#693047;border-color:#9d4b67;color:#ffb3c4}.meta-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px}.meta-row strong{color:#dce4f6}.legend{display:flex;gap:15px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.legend i{width:7px;height:7px;display:inline-block;border-radius:2px;margin-right:6px}.chart-box{min-height:228px;position:relative}.chart-box svg{display:block;width:100%;height:auto;max-height:260px}.chart-label{font-size:11px;fill:#7c8aa5}.h-bars{display:flex;flex-direction:column;gap:14px}.h-bar-row{display:grid;grid-template-columns:68px minmax(0,1fr) 58px;gap:12px;align-items:center;font-size:11px;color:var(--muted)}.bar-track{height:9px;background:#263247;border-radius:15px;overflow:hidden}.bar-fill{height:100%;min-width:2px;border-radius:15px;background:#6287ff}.h-bar-row b{text-align:right;color:#dae3f2;font-size:11px;font-variant-numeric:tabular-nums}.notice{padding:12px 15px;border:1px solid #57466a;background:#261f34;border-radius:11px;color:#e8d0f3;font-size:12px;margin-bottom:17px;display:flex;align-items:center;gap:11px}.notice.orange{border-color:#655039;background:#29261d;color:#f7dfba}.notice.green{border-color:#285a52;background:#172c2b;color:#a7ecd7}.empty{text-align:center;padding:46px 24px;color:var(--muted)}.empty .emoji{font-size:37px;display:block;margin-bottom:15px}.empty h3{color:var(--text);font-size:17px}.table-wrap{overflow:auto;border-radius:11px}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{color:#8997af;font-size:10px;letter-spacing:.08em;font-weight:800;background:#1b2639;border-bottom:1px solid var(--line);padding:12px 14px;white-space:nowrap}td{border-bottom:1px solid #263348;padding:11px 14px;color:#cbd6e8;white-space:nowrap}tr:last-child td{border-bottom:0}tbody tr:hover td{background:#ffffff05}.td-mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,Consolas,monospace;font-size:11px}.tag{font-size:10px;border:1px solid #35445c;color:#9db0d0;padding:4px 8px;border-radius:7px;white-space:nowrap}.tag.high{background:#3b2657;color:#e2b8ff;border-color:#674191}.tag.demo{background:#5b482c;color:#ffdca5;border-color:#8b673c}.tag.real{background:#183c38;color:#98e3c4;border-color:#26615d}.tag.low{background:#343d4d;color:#c0c9d8;border-color:#4e5970}.filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:7px;min-width:132px;font-size:11px;font-weight:650;color:#a7b6cb}.field.grow{flex:1}.form-row{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:15px}.input, input,textarea,select{background:#0f1725;border:1px solid #35435a;border-radius:9px;color:var(--text);padding:10px 11px;outline:none;min-height:40px;width:100%;font-size:12px}input:focus,textarea:focus,select:focus{border-color:#7985ff;box-shadow:0 0 0 3px #6784ff1c}input[type="datetime-local"]{color-scheme:dark}textarea{resize:vertical;line-height:1.5}select{cursor:pointer}.filters select{width:auto;min-width:150px}.mono{font-family:ui-monospace,Consolas,monospace}.big-pill{font-size:15px;padding:8px 12px}.heatmap{display:grid;grid-template-columns:repeat(12,1fr);gap:6px}.heat-cell{aspect-ratio:1.5;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:7px;background:#1f2b3e;border:1px solid #304055;gap:2px;min-width:0}.heat-cell b{font-size:12px}.heat-cell small{font-size:9px}.hmap-key{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin-top:17px}.square{width:13px;height:13px;border-radius:3px;display:inline-block;vertical-align:middle;margin-right:4px}.chart-columns{display:flex;gap:7px;align-items:end;height:200px;padding:12px 0 0}.column-item{flex:1;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:7px;color:var(--muted);font-size:9px;text-align:center;min-width:0}.column-item i{width:min(27px,100%);min-height:2px;border-radius:5px 5px 1px 1px;background:linear-gradient(0deg,#4f5cce,#aa83ff)}.column-item b{font-size:9px}.histogram{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.dist-box{padding:15px;border:1px solid var(--line);border-radius:12px;background:#192437}.dist-box b{display:block;font-size:20px;margin:9px 0}.dist-box small{font-size:10px}.dist-box .bar-track{margin-top:10px}.split-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.data-grid{grid-template-columns:1.1fr 1fr}.help{font-size:11px;color:var(--muted);line-height:1.65}.help code,.api-code{color:#a9c4ff;font-family:Consolas,monospace;background:#101a2a;padding:2px 5px;border-radius:4px;font-size:11px}.api-code{padding:15px;display:block;overflow-x:auto;white-space:pre;font-size:11px;line-height:1.6;border:1px solid var(--line)}.divider{height:1px;background:var(--line);margin:17px 0}.list-row{display:flex;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line2);align-items:center}.list-row:last-child{border-bottom:0}.list-row strong{display:block;font-size:12px}.list-row small{display:block;font-size:10px}.empty-inline{font-size:12px;color:var(--muted);padding:10px 0}.toast{position:fixed;bottom:22px;right:23px;z-index:100;padding:13px 17px;border-radius:10px;background:#28403b;border:1px solid #448b75;color:#d4ffec;box-shadow:var(--shadow);max-width:min(410px,calc(100vw - 40px));font-size:12px}.toast.error{background:#482433;border-color:#8c4056;color:#ffd5df}#toast:empty{display:none}.w100{width:100%}.muted{color:var(--muted)}.text-right{text-align:right}.stat-big{font-size:26px;font-weight:900;letter-spacing:-.04em}.danger-text{color:#ff94a6}.green-text{color:#6ce3bc}.mb-0{margin-bottom:0}.mt-15{margin-top:15px}.table-pagination{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:16px;color:var(--muted);font-size:11px}.badge-line{font-size:10px;border:1px solid var(--line);padding:5px 8px;border-radius:8px;color:#a7b6ce}.limit-progress{height:13px;border-radius:50px;background:#263248;overflow:hidden;margin:13px 0}.limit-progress>div{height:100%;background:linear-gradient(90deg,#3dd0a7,#ff657b);border-radius:50px;transition:width .2s}footer{font-size:10px;color:#63718a;margin-top:35px;padding-top:18px;border-top:1px solid var(--line2)}.mobile-scrim{display:none}@media(max-width:1200px){.sidebar{width:221px}.brand{padding-left:19px;font-size:20px}.page{padding:30px 25px}.topbar{padding:0 25px}.twocol{grid-template-columns:1.4fr 1fr}.histogram{grid-template-columns:repeat(4,1fr)}}@media(max-width:930px){.sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);width:260px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.mobile-scrim.open{display:block;position:fixed;inset:0;background:#0009;z-index:19}.menu-toggle{display:block}.twocol,.twoequal,.data-grid{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)}.date-clock{display:none}.page{padding:28px 20px}.topbar{padding:0 20px}}@media(max-width:560px){.auth-card{padding:26px 22px}.page{padding:23px 14px}.topbar{height:60px;padding:0 14px}.header-right{gap:8px}.status-chip{font-size:9px;padding:6px}.page-heading{align-items:start;flex-direction:column;margin-bottom:19px}.page-heading h1{font-size:27px}.kpis{gap:9px}.stat-card{padding:14px;min-height:112px}.stat-top{margin-bottom:10px}.stat-value{font-size:24px}.stat-top span{font-size:10px}.stat-icon{height:28px;width:28px}.grid{gap:11px}.panel.pad{padding:16px}.heatmap{grid-template-columns:repeat(6,minmax(0,1fr))}.histogram{grid-template-columns:repeat(2,minmax(0,1fr))}.h-bar-row{grid-template-columns:45px 1fr 47px;gap:7px}.header-right .circle-btn{height:29px;width:29px}.form-row{gap:10px}.field{flex:1;min-width:120px}.filters select{width:100%}.toast{right:12px;bottom:12px}}

/* AeroStats IA */
.ai-layout { display:grid; gap:18px; }
.ai-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.ai-tile { padding:16px; border-radius:12px; background:rgba(100,124,179,.10); border:1px solid rgba(151,173,213,.14); display:flex; flex-direction:column; gap:5px; }
.ai-tile small { color:#9eabc1; font-size:12px; }
.ai-tile strong { font-size:23px; line-height:1.4; }
.ai-negative { color:#fa9f9f; font-weight:600; }
.ai-layout .table-wrap { overflow:auto; }
.ai-layout h3 { margin:10px 0; font-size:15px; }
@media(max-width:680px){.ai-cards {grid-template-columns:1fr;}}

/* ===== AEROSTATS: TEMA CLARO ===== */
:root {
  color-scheme: light;
  --bg:#f4f6fb;
  --surface:#ffffff;
  --surface2:#f7f8fc;
  --card:#ffffff;
  --line:#e3e8f1;
  --line2:#e9edf4;
  --text:#20283a;
  --muted:#68748a;
  --dim:#8993a5;
  --shadow:0 12px 32px rgba(35,48,75,.07);
}
body {background:#f4f6fb;color:#20283a}
.sidebar {background:#fff;border-color:#e5e9f1}
.sidebar-caption {color:#929bad}
.nav-item {color:#667188}
.nav-item:hover {background:#f1f4fa;color:#28334a}
.nav-item.active {background:#fff0f3;border-color:#ffd4dc;color:#b83e5c}
.nav-item.active .nav-icon {color:#e65d79}
.nav-icon {color:#8490a5}
.nav-rule,.profile,footer {border-color:#e8ecf3}
.source-mini {background:#f7f8fc;border-color:#e6eaf2;color:#68748a}
.source-mini strong,.profile-meta strong {color:#303b51}
.avatar {background:#f0e8fb;color:#8052b5}
.topbar {border-color:#e6eaf2;background:#fff}
.crumbs {color:#303b51}
.slash {color:#a0a9b8}
.status-chip {border-color:#e1e6ef;color:#68748a}
.circle-btn,.menu-toggle {background:#fff;border-color:#e1e6ef;color:#526078}
.page {color:#20283a}
.panel {background:#fff;border-color:#e5e9f1;box-shadow:0 8px 26px rgba(35,48,75,.055)}
.panel-head h2,.stat-value,.empty h3 {color:#20283a}
.panel-head small,.panel-eyebrow,.stat-top span,.stat-sub {color:#748097}
.stat-icon {background:#fff0f3}
.stat-icon.blue {background:#edf3ff;color:#5579df}
.stat-icon.green {background:#e9f9f3;color:#239d78}
.stat-icon.purple {background:#f4edff;color:#9463d4}
.btn {background:#f6f8fc;border-color:#dfe5ef;color:#46536b}
.btn-quiet {background:#fff;border-color:#dfe5ef}
.btn-main {background:linear-gradient(125deg,#ff7187,#e84d72);border-color:#f4778c;color:#fff}
.btn-danger {color:#c64d68;border-color:#f0cbd4;background:#fff4f6}
.meta-row,.legend,.muted {color:#748097}
.meta-row strong {color:#344057}
.chart-label {fill:#7d899e}
.bar-track {background:#edf0f6}
.h-bar-row b {color:#344057}
.notice {background:#f7f1fb;border-color:#e6d8ef;color:#70517e}
.notice.orange {background:#fff8eb;border-color:#f1dfbd;color:#8b6732}
.notice.green {background:#effaf5;border-color:#c9eadc;color:#347a61}
.empty {color:#7c879b}
th {background:#f5f7fb;color:#758198;border-color:#e5e9f1}
td {color:#46536b;border-color:#edf0f5}
tbody tr:hover td {background:#f8f9fc}
.input,input,textarea,select {background:#fff;border-color:#dce3ed;color:#28344b}
input:focus,textarea:focus,select:focus {border-color:#8b9ff0;box-shadow:0 0 0 3px #6784ff18}
input[type="datetime-local"] {color-scheme:light}
.field {color:#66738a}
.tag {border-color:#e0e6ef;color:#65738a;background:#f8f9fc}
.tag.high {background:#f5edff;color:#8154b4;border-color:#e3d3f7}
.tag.demo {background:#fff7e9;color:#99713b;border-color:#f0dfbd}
.tag.real {background:#eaf8f1;color:#347b60;border-color:#ccebdc}
.tag.low {background:#f0f3f8;color:#66738a;border-color:#dfe5ee}
.dist-box {background:#f8f9fc;border-color:#e5e9f1}
.heat-cell {background:#f0edfa;border-color:#e2dcf1}
.help code,.api-code {background:#f1f4fa;color:#526da8}
.api-code {border-color:#e3e8f1}
.list-row {border-color:#edf0f5}
.badge-line {border-color:#e2e7ef;color:#68758b}
.limit-progress {background:#edf0f5}
footer {color:#8791a3}
.pill {background:#f0f3f8;border-color:#e0e6ef;color:#58657b}
.pill.mid {background:#eee8ff;border-color:#d8c8fa;color:#7650b3}
.pill.high {background:#f5eaff;border-color:#e2cafa;color:#8953b8}
.pill.super {background:#ffeaf0;border-color:#f8cbd7;color:#c04d70}

/* Cartões das últimas velas */
.candle-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
}
.candle-tile {
  min-width:0;
  min-height:76px;
  border:1px solid transparent;
  border-radius:12px;
  padding:12px 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.candle-tile strong {
  font-size:19px;
  line-height:1.2;
  font-weight:850;
}
.candle-tile small {
  font-size:10px;
  color:inherit;
  opacity:.82;
  white-space:normal;
}
.candle-low {
  background:#eaf4ff;
  border-color:#d2e7ff;
  color:#3479c5;
}
.candle-mid {
  background:#f0eaff;
  border-color:#dfd0ff;
  color:#8052bd;
}
.candle-high {
  background:#ffedf2;
  border-color:#ffd4df;
  color:#c34e70;
}
@media(max-width:560px) {
  .candle-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .candle-tile {min-height:68px;padding:9px 5px}
  .candle-tile strong {font-size:17px}
}

/* Ranking diário TOP 5 */
.daily-ranking{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.daily-rank-item{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.daily-rank-position{font-size:20px;font-weight:850;min-width:34px;color:var(--muted)}
.daily-rank-item:first-child .daily-rank-position{color:#c18a20}
.daily-rank-value{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.daily-rank-value strong{font-size:20px;font-weight:850;color:var(--purple)}
.daily-rank-value small{font-size:11px;color:var(--muted)}
.daily-rank-crown{font-size:22px}

/* Grade de velas: nove colunas */
.candle-grid-wrap{width:100%;overflow-x:auto}
.candle-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;min-width:560px}
.candle-tile{min-height:58px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0}
.candle-tile strong{font-size:clamp(11px,1.15vw,15px);white-space:nowrap}
.candle-tile small{font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:560px){
  .candle-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;min-width:560px}
  .candle-tile{min-height:54px;padding:7px 3px}
}

.grid.fivecol{grid-template-columns:repeat(5,minmax(0,1fr))}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:end}.form-grid label{display:flex;flex-direction:column;gap:7px;color:#a7b6cb;font-size:11px;font-weight:650}.form-grid input[type=checkbox]{width:auto;min-height:0;display:inline-block;margin-right:7px}.form-grid label:has(input[type=checkbox]){flex-direction:row;align-items:center}.form-actions{grid-column:1/-1}@media(max-width:930px){.grid.fivecol{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.grid.fivecol{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}}

/* Previsão de Velas: três rodadas recentes à esquerda, média central em destaque. */
.pv-view{display:grid;gap:18px}
.pv-warning{border:1px solid #f0d5aa;background:#fff9ed;color:#8a6130;border-radius:12px;padding:13px 16px;font-size:13px}
.pv-scroll{width:100%;overflow-x:auto;padding:9px 2px 13px}
.pv-grid{display:grid;grid-template-columns:repeat(9,minmax(85px,1fr));gap:10px;min-width:830px}
.pv-candle{border:1px solid #dce4f0;border-radius:13px;background:#f6f8fc;display:flex;flex-direction:column;justify-content:space-between;align-items:center;min-height:100px;padding:12px 7px;text-align:center;font-variant-numeric:tabular-nums}
.pv-candle span{font-size:10px;font-weight:850;color:#7989a2}
.pv-candle strong{font-size:22px;color:#516a9f;letter-spacing:-.04em}
.pv-candle small{font-size:10px;color:#8492a8}
.pv-candle.pv-recent{background:linear-gradient(165deg,#f6e6ff,#eadff8);border-color:#b778d9;box-shadow:0 8px 25px #9b64d52a;transform:translateY(-4px)}
.pv-candle.pv-recent span{color:#8951b1}.pv-candle.pv-recent strong{font-size:25px;color:#71358f}
.pv-candle.pv-last{background:linear-gradient(160deg,#ffe1ed,#f2d9f8);border-color:#e27eb1}
.pv-pointer{color:#9857ad;font-weight:750;font-size:12px;margin:1px 0 2px 5px}
.pv-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:17px}
.pv-forecast{background:radial-gradient(circle at 83% 9%,#9055ab88,transparent 45%),linear-gradient(135deg,#42233e,#251d45 54%,#192744);color:#fff;border:1px solid #80547e;border-radius:20px;padding:26px;box-shadow:0 17px 40px #9528662b;min-width:0}
.pv-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.pv-top span{color:#ffd4f4;font-size:12px;letter-spacing:.1em;font-weight:850}.pv-top b{font-size:11px;color:#c3f3d7;background:#28473594;border:1px solid #4b8b64;border-radius:40px;padding:5px 8px}
.pv-forecast h2{font-size:clamp(25px,3vw,36px);letter-spacing:-.045em;margin:29px 0 5px;color:#fff}
.pv-forecast p{color:#dccce9;font-size:13px;margin:0 0 26px}
.pv-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:10px}
.pv-boundary{min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:17px 7px;background:#211b35bb;border:1px solid #906c9c88;border-radius:13px}
.pv-boundary small{font-size:10px;letter-spacing:.05em;color:#dac6e6;font-weight:850}.pv-boundary strong{font-size:clamp(21px,2.2vw,31px);white-space:nowrap}
.pv-boundary.pv-mean{background:linear-gradient(135deg,#b05295,#7647a3 55%,#544caf);border:2px solid #efa5f4;box-shadow:0 8px 32px #ee82df67;transform:scale(1.04);z-index:1}
.pv-boundary.pv-mean small{color:#ffe6ff}.pv-boundary.pv-mean strong{font-size:clamp(28px,3.4vw,44px);color:#fff;text-shadow:0 3px 9px #4c2055}
.pv-forecast-foot{margin-top:28px;border-top:1px solid #cf9dd747;padding-top:14px;color:#e4d4ef;font-size:13px}.pv-forecast-foot strong{color:#fff}
.pv-telegram h2{font-size:16px;margin-bottom:4px}.pv-telegram>small{font-size:12px}.pv-message{margin-top:16px;background:#eff6fc;color:#465a73;border:1px solid #d6e5f1;border-radius:12px;padding:17px;font-size:13px;line-height:1.75}.pv-message p{margin:10px 0;color:#465a73}.pv-message strong{color:#3b4660}
.pv-quality{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.pv-quality>div{display:grid;gap:7px;background:#f7f8fc;border:1px solid #e2e7f0;border-radius:12px;padding:15px}.pv-quality small{font-size:12px}.pv-quality strong{font-size:25px;color:#60459a}
@media(max-width:1160px){.pv-main{grid-template-columns:1fr}}
@media(max-width:560px){.pv-forecast{padding:21px 13px}.pv-range{gap:6px}.pv-boundary{padding:14px 3px}.pv-boundary strong{font-size:clamp(18px,5vw,23px)}.pv-boundary.pv-mean strong{font-size:clamp(24px,6.5vw,33px)}.pv-boundary small{font-size:9px;letter-spacing:0}.pv-quality{grid-template-columns:1fr}}

/* Mapeamento de calor: estilos isolados */
.heat-controls{margin-bottom:14px}.heat-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.heat-count{border:1px solid color-mix(in srgb,var(--hc) 35%,var(--line));background:color-mix(in srgb,var(--hc) 10%,var(--surface));border-radius:12px;text-align:center;padding:12px 5px;color:var(--hc);display:flex;flex-direction:column}.heat-count strong{font-size:26px;line-height:1.2}.heat-count span{font-size:12px}.heat-read{display:flex;justify-content:space-between;align-items:center;font-size:21px;margin:18px 0 11px}.heat-gauge{height:15px;border-radius:20px;background:linear-gradient(90deg,#5b86c9,#36a5da,#d49a23,#e66b42,#d53b63);position:relative;margin:0 7px}.heat-gauge i{position:absolute;width:4px;height:23px;background:var(--text);border-radius:3px;top:-4px;transform:translateX(-50%);box-shadow:0 0 0 2px var(--surface)}.heat-legend{display:flex;justify-content:space-between;gap:3px;font-size:10px;margin:10px 0 14px}.heat-history{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;margin:14px 0}.heat-history div{min-height:12px;border-radius:3px}.heat-panel .help{margin-top:12px}.heat-count small{font-size:11px}@media(max-width:560px){.heat-count strong{font-size:22px}.heat-legend{font-size:9px}.heat-history{gap:2px}}
