/* MONALISA_OTIMIZADOR_ALVO_V1 — Etapa C: Otimizador por alvo */
/* o otimizador antigo fica no DOM, oculto */
body.ot-on #view-intermediate > .mo-work-command,
body.ot-on #view-intermediate > #moOptimizerGuide,
body.ot-on #view-intermediate > .mo-saved-criteria,
body.ot-on #view-intermediate > #moOptimizerDataContext,
body.ot-on #view-intermediate > #strategyOptimizerSection,
body.ot-on #view-intermediate > #moOptimizerProbability,
body.ot-on #view-intermediate > .tool-section-probability,
body.ot-on #view-intermediate > .card:has(#goBuilderFromOptimizerBtn),
body.ot-on #view-intermediate > #moOptimizerFlow,
body.ot-on #view-intermediate > .mo-friendly-details,
body.ot-on #view-intermediate > .journey-next-card,
body.ot-on #view-intermediate .mo-work-context,
body.ot-on #view-intermediate > #moFeedback-intermediate{display:none!important;}

.ot{--ot-up:#0d9f6e;--ot-dn:#d63b3b;--ot-acc:#1d6fd8;--ot-amb:#b45309;--ot-pur:#7c5cd6;--ot-t1:#0f1923;--ot-t2:#4a6080;--ot-t3:#8a9ab5;--ot-bd:#dde4ee;--ot-sf:#f4f7fb;
  font-family:'DM Sans',sans-serif;color:var(--ot-t1);display:grid;gap:14px;margin-bottom:12px;min-width:0;}
.ot *{box-sizing:border-box;}
.ot-card{background:#fff;border:1px solid var(--ot-bd);border-top:3px solid var(--ot-acc);border-radius:16px;padding:18px 20px;display:grid;gap:14px;min-width:0;}
.ot-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;}
.ot-head > div{min-width:0;flex:1 1 320px;}
.ot-kicker{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ot-t3);}
.ot-head h3{margin:4px 0 2px;font-size:20px;line-height:1.25;}
.ot-sub{margin:0;font-size:13px;color:var(--ot-t2);line-height:1.5;}
.ot-sub b{color:var(--ot-t1);}
.ot-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.ot-muted{font-size:12px;color:var(--ot-t2);line-height:1.45;}
.ot-dir svg,.ot-say-ico svg,.ot-ask svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

.ot-say{display:flex;align-items:center;gap:8px;border:1.5px solid #cfdcec;border-radius:14px;padding:6px 6px 6px 12px;background:var(--ot-sf);}
.ot-say:focus-within{border-color:var(--ot-acc);background:#fff;box-shadow:0 0 0 3px rgba(29,111,216,.12);}
.ot-say-ico{display:inline-flex;color:var(--ot-acc);flex:none;} .ot-say-ico svg{width:20px;height:20px;}
.ot-say input{flex:1;min-width:0;border:0;background:transparent;font:500 15px 'DM Sans',sans-serif;color:var(--ot-t1);padding:8px 0;outline:none;}
.ot-say button{min-height:40px;white-space:nowrap;flex:none;}
.ot-msg{margin:-6px 0 0;font-size:12.5px;color:var(--ot-acc);}
.ot-msg:empty{display:none;}

.ot-grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;}
.ot-grid3{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.4fr);gap:10px;align-items:stretch;}
.ot-field{display:flex;flex-direction:column;gap:7px;min-width:0;}
.ot-label{font-size:12px;font-weight:700;color:var(--ot-t2);}
.ot-label em{font-style:normal;font-weight:500;color:var(--ot-t3);}
.ot-box{background:var(--ot-sf);border:1px solid var(--ot-bd);border-radius:12px;padding:12px;}
.ot-chips{display:flex;flex-wrap:wrap;gap:6px;}
.ot-chip{border:1px solid #cfd9e6;background:#fff;border-radius:999px;padding:6px 12px;min-height:34px;font:600 13px 'DM Sans',sans-serif;color:var(--ot-t2);cursor:pointer;}
.ot-chip[aria-pressed="true"]{background:#e8f1fc;border-color:var(--ot-acc);color:var(--ot-acc);}
.ot-chip-exp{display:inline-flex;flex-direction:column;align-items:flex-start;border-radius:10px;padding:4px 11px;line-height:1.35;}
.ot-chip-exp small{font-weight:500;font-size:11px;color:var(--ot-t3);}
.ot-und-in input{width:100%;max-width:260px;border:1px solid #cfd9e6;border-radius:10px;padding:8px 10px;font:500 13px 'DM Sans',sans-serif;text-transform:uppercase;}
.ot-dirs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
.ot-dir{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;border:1px solid #cfd9e6;background:#fff;border-radius:12px;padding:8px 4px;font:600 12.5px 'DM Sans',sans-serif;color:var(--ot-t2);cursor:pointer;text-align:center;}
.ot-dir svg{width:22px;height:22px;}
.ot-dir[aria-pressed="true"]{background:#e8f1fc;border-color:var(--ot-acc);color:var(--ot-acc);}
.ot-chip:focus-visible,.ot-dir:focus-visible{outline:2px solid var(--ot-acc);outline-offset:2px;}

.ot-chart-box,.ot-map-box{border:1px solid var(--ot-bd);border-radius:12px;padding:12px;background:#fff;min-width:0;position:relative;}
.ot-chart-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;margin-bottom:8px;}
.ot-chart-head strong{font-size:14.5px;} .ot-chart-head small{font-size:12px;color:var(--ot-t2);}

.ot-num{display:flex;align-items:stretch;border:1px solid #cfd9e6;border-radius:10px;overflow:hidden;background:#fff;}
.ot-num input{flex:1;min-width:0;border:0;padding:8px 10px;font:700 16px 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;text-align:center;outline:none;}
.ot-num button{width:38px;border:0;background:var(--ot-sf);font:700 17px 'DM Sans',sans-serif;color:var(--ot-t1);cursor:pointer;}
.ot-num button:hover{background:#e8f1fc;color:var(--ot-acc);}
.ot-num-r span{display:flex;align-items:center;padding:0 0 0 10px;color:var(--ot-t3);font-weight:600;font-size:13px;}
.ot-num-r input{text-align:left;}
.ot-num:focus-within{border-color:var(--ot-acc);}
.ot-real{display:flex;flex-direction:column;gap:6px;min-width:0;}
.ot-real p{margin:0;font-size:13px;line-height:1.5;color:var(--ot-t2);}
.ot-real b{color:var(--ot-t1);}
.ot-real-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.ot-real-top strong{font-size:22px;font-variant-numeric:tabular-nums;}
.ot-tag{font-size:11.5px;font-weight:700;border-radius:999px;padding:3px 10px;}
.ot-tag.is-hard{background:#fdeaea;color:#a12a2a;} .ot-tag.is-mid{background:#fff4e0;color:var(--ot-amb);} .ot-tag.is-easy{background:#e3f6ee;color:#0a7a55;}

.ot-ask{display:inline-flex;align-items:center;gap:7px;min-height:38px;white-space:nowrap;}
.ot-ask svg{width:16px;height:16px;}
.ot-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.ot-picks-one{grid-template-columns:minmax(0,1fr);}
.ot-picks-one .ot-pick{max-width:520px;}
.ot-pick{--pk:var(--ot-acc);border:1px solid var(--ot-bd);border-top:4px solid var(--pk);border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:9px;min-width:0;}
.ot-pick.is-a{--pk:#1d6fd8;} .ot-pick.is-b{--pk:#7c5cd6;} .ot-pick.is-c{--pk:#b45309;} .ot-pick.is-sel{--pk:#0f1923;}
.ot-pick.is-on{box-shadow:0 0 0 2px var(--pk);}
.ot-pick-top{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;}
.ot-pick-tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--pk);}
.ot-pick-tag i{width:10px;height:10px;background:var(--pk);border-radius:50%;}
.ot-pick.is-b .ot-pick-tag i{border-radius:1px;transform:rotate(45deg);} .ot-pick.is-c .ot-pick-tag i{border-radius:2px;}
.ot-warn{font-size:11px;font-weight:700;color:var(--ot-amb);background:#fff4e0;border-radius:999px;padding:2px 8px;}
.ot-pick h4{margin:0;font-size:15.5px;line-height:1.3;overflow-wrap:anywhere;}
.ot-legs{margin:-4px 0 0;font-size:12px;color:var(--ot-t2);overflow-wrap:anywhere;}
.ot-big{background:var(--ot-sf);border-radius:10px;padding:9px 11px;display:flex;flex-direction:column;gap:1px;}
.ot-big span{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ot-t3);}
.ot-big strong{font-size:22px;font-variant-numeric:tabular-nums;}
.ot-big small{font-size:12px;color:var(--ot-t2);}
.is-up{color:var(--ot-up);} .is-down{color:var(--ot-dn);}
.ot-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;margin:0;}
.ot-facts div{min-width:0;}
.ot-facts dt{font-size:11.5px;color:var(--ot-t2);line-height:1.3;}
.ot-facts dd{margin:1px 0 0;font-size:14.5px;font-weight:700;font-variant-numeric:tabular-nums;}
.ot-zone{margin:0;font-size:12.5px;color:var(--ot-t1);background:#eefaf4;border-radius:8px;padding:6px 9px;line-height:1.45;}
.ot-why{margin:0;font-size:12px;color:var(--ot-t2);}
.ot-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;}
.ot-actions button{flex:1 1 auto;min-height:38px;white-space:nowrap;}
.ot-empty{grid-column:1/-1;border:1px dashed #cfd9e6;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--ot-t2);}
.ot-empty strong{color:var(--ot-t1);}

.ot-map{position:relative;padding-top:18px;}
.ot-ylabel{position:absolute;top:0;left:0;font-size:11.5px;color:var(--ot-t2);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.ot-svg{display:block;max-width:100%;font-family:'DM Sans',sans-serif;}
.ot-grid{stroke:#eef2f7;} .ot-grid.is-zero{stroke:#a9b8cc;}
.ot-ax{fill:var(--ot-t3);font-size:10.5px;font-variant-numeric:tabular-nums;stroke:none;} .ot-ax-t{fill:var(--ot-t2);font-size:11px;}
.ot-dot{fill:rgba(74,96,128,.30);stroke:none;cursor:pointer;} .ot-dot.is-front{fill:rgba(74,96,128,.72);}
.ot-dot.is-bad{fill:#dfe5ee;cursor:default;} .ot-dot.is-over{fill:none;stroke:#a9b8cc;stroke-width:1;}
.ot-pk{cursor:pointer;} .ot-pk *{stroke:#fff;stroke-width:2;}
.ot-pk.is-a *{fill:#1d6fd8;} .ot-pk.is-b *{fill:#7c5cd6;} .ot-pk.is-c *{fill:#b45309;}
.ot-selring{fill:none;stroke:#0f1923;stroke-width:2;}
.ot-map-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:11.5px;color:var(--ot-t2);}
.ot-lg{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.ot-lg i{width:10px;height:10px;border-radius:50%;display:inline-block;}
.ot-lg.is-a i{background:#1d6fd8;} .ot-lg.is-b i{background:#7c5cd6;border-radius:1px;transform:rotate(45deg);width:9px;height:9px;} .ot-lg.is-c i{background:#b45309;border-radius:2px;}
.ot-lg.is-front i{background:rgba(74,96,128,.72);width:8px;height:8px;} .ot-lg.is-dot i{background:rgba(74,96,128,.30);width:8px;height:8px;}
.ot-lg.is-bad i{background:#dfe5ee;width:8px;height:8px;} .ot-lg.is-over i{border:1px solid #a9b8cc;width:8px;height:8px;}
.ot-tip{position:absolute;z-index:20;pointer-events:none;max-width:280px;background:#0f1923;color:#fff;border-radius:9px;padding:8px 10px;font:12.5px/1.45 'DM Sans',sans-serif;box-shadow:0 8px 24px rgba(15,25,35,.25);}
.ot-tip small{color:#a9b8cc;} .ot-tip .is-up{color:#5fe0b0;} .ot-tip .is-down{color:#ff8f8f;}
.ot-wait{display:flex;align-items:center;justify-content:center;min-height:160px;border:1px dashed #cfd9e6;border-radius:10px;color:var(--ot-t2);font-size:13px;padding:16px;text-align:center;}

.ot-how{border:1px solid var(--ot-bd);border-radius:12px;padding:10px 14px;background:var(--ot-sf);}
.ot-how summary{cursor:pointer;font-size:13.5px;font-weight:700;}
.ot-how-body{display:grid;gap:6px;margin-top:8px;}
.ot-how-body p{margin:0;font-size:13px;line-height:1.5;color:var(--ot-t2);}
.ot-how-body b{color:var(--ot-t1);}

@media (max-width:1100px){.ot-picks{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}.ot-grid3{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}.ot-real{grid-column:1/-1;}}
@media (max-width:760px){.ot-grid2{grid-template-columns:minmax(0,1fr);}.ot-picks{grid-template-columns:minmax(0,1fr);}}
@media (max-width:600px){
  .ot-card{padding:14px 12px;border-radius:14px;}
  .ot-grid3{grid-template-columns:minmax(0,1fr);}
  .ot-dirs{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ot-say{flex-wrap:wrap;padding:8px 10px;}
  .ot-say input{flex:1 1 calc(100% - 32px);}
  .ot-say button{flex:1 1 100%;}
  .ot-und-in input{max-width:none;}
  .ot-chart-box,.ot-map-box{padding:10px 8px;}
  .ot-actions button{flex:1 1 100%;}
}
