/* Módulo aislado de Estrategias: no altera los estilos del Panel, ICE ni Operaciones. */
.strategies-tool-root { width:100%; min-width:0; }
.st-app { display:grid; gap:19px; color:var(--text); }
.st-intro { display:flex; justify-content:space-between; gap:18px; align-items:center; }
.st-eyebrow { display:block; color:var(--accent); font-size:11px; letter-spacing:.09em; font-weight:800; text-transform:uppercase; }
.st-intro h3 { font-size:25px; letter-spacing:-.035em; margin:5px 0 6px; }
.st-intro p,.st-section-header p { font-size:13px; margin:0; line-height:1.55; color:var(--muted); }
.st-private { flex-shrink:0; border:1px solid rgba(116,167,255,.24); border-radius:100px; padding:8px 12px; font-size:11px; font-weight:700; color:#d3e3ff; background:rgba(116,167,255,.07); }
.st-nav { display:flex; flex-wrap:wrap; gap:5px; width:fit-content; max-width:100%; border:1px solid var(--line); border-radius:15px; padding:5px; background:var(--panel); }
.st-nav-btn { padding:10px 17px; border-radius:11px; background:transparent; color:var(--muted); font-size:13px; font-weight:800; }
.st-nav-btn.is-active { background:rgba(116,167,255,.16); color:#fff; box-shadow:inset 0 0 0 1px rgba(116,167,255,.25); }
.st-panel { min-width:0; background:rgba(255,255,255,.035); border:1px solid var(--line); border-radius:19px; padding:20px; }
.st-layout { min-width:0; display:grid; gap:18px; align-items:start; }
.st-layout--verify { grid-template-columns:minmax(0,1.6fr) minmax(270px, .8fr); }
.st-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.st-fields .field { min-width:0; }
.st-fields .input,.st-fields .select { width:100%; }
.st-hint { color:var(--muted); font-size:11px; line-height:1.4; }
.st-strategy-head { display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.02); padding:12px 14px; margin:20px 0; }
.st-direction { display:inline-flex; align-items:center; justify-content:center; padding:8px 11px; border-radius:11px; font-size:12px; font-weight:900; letter-spacing:.05em; }
.st-call { background:rgba(52,211,154,.13); color:#4be3aa; }
.st-put { background:rgba(255,109,122,.13); color:#ff8894; }
.st-strategy-head div { display:grid; gap:4px; }
.st-strategy-head strong { font-size:13px; }
.st-strategy-head span:last-child { color:var(--muted); font-size:12px; }
.st-progress-head { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:10px; font-size:13px; }
.st-progress-head span { color:var(--muted); font-size:12px; }
.st-progress-track { height:7px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.09); }
.st-progress-track div { height:100%; border-radius:99px; background:linear-gradient(90deg, #77a8ff,#48dbb0); transition:width .18s ease; }
.st-steps { display:grid; gap:10px; margin-top:16px; }
.st-step { display:flex; align-items:flex-start; gap:13px; border:1px solid var(--line); border-radius:14px; padding:15px 13px; background:rgba(255,255,255,.018); }
.st-step--yes { border-color:rgba(52,211,154,.33); background:rgba(52,211,154,.04); }
.st-step--no { border-color:rgba(255,109,122,.35); background:rgba(255,109,122,.04); }
.st-step-index { flex:0 0 25px; height:25px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:8px; font-size:12px; font-weight:900; color:var(--muted); }
.st-step--yes .st-step-index { background:rgba(52,211,154,.16); color:var(--success); }
.st-step--no .st-step-index { background:rgba(255,109,122,.15); color:var(--danger); }
.st-step-body { flex:1; min-width:0; }
.st-step-body strong { display:block; font-size:13px; line-height:1.45; font-weight:750; }
.st-step-body p { margin:6px 0 0; color:var(--muted); font-size:11.5px; line-height:1.45; }
.st-step-actions { margin-top:12px; display:flex; gap:7px; flex-wrap:wrap; }
.st-check-btn { padding:8px 12px; background:rgba(255,255,255,.045); border:1px solid var(--line); color:var(--muted); border-radius:9px; font-size:11px; font-weight:850; }
.st-check-btn.is-yes { background:rgba(52,211,154,.17); color:#50ebae; border-color:rgba(52,211,154,.4); }
.st-check-btn.is-no { background:rgba(255,109,122,.15); color:#ff8995; border-color:rgba(255,109,122,.36); }
.st-verdict { display:grid; gap:15px; position:sticky; top:20px; }
.st-verdict-header { display:flex; align-items:center; gap:11px; }
.st-verdict-icon { flex:0 0 38px; height:38px; display:grid; place-items:center; border-radius:13px; color:var(--accent); background:rgba(116,167,255,.12); font-size:21px; font-weight:900; }
.st-verdict h4 { font-size:15px; margin:3px 0 0; letter-spacing:-.015em; }
.st-verdict p { color:var(--muted); font-size:13px; line-height:1.5; margin:0; }
.st-plan { display:grid; gap:5px; padding:14px; border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:12px; }
.st-plan span { color:var(--muted); font-size:11px; }
.st-plan strong { font-size:12px; line-height:1.5; }
.st-notice { padding:12px 15px; border:1px solid rgba(116,167,255,.34); background:rgba(116,167,255,.09); color:#dce9ff; border-radius:12px; font-size:12px; line-height:1.55; }
.st-notice--error { border-color:rgba(255,109,122,.38); background:rgba(255,109,122,.08); color:#ffc8ce; }
.st-notice--success { border-color:rgba(52,211,154,.38); background:rgba(52,211,154,.08); color:#c2ffe9; }
.st-history,.st-stats { display:grid; gap:16px; min-width:0; }
.st-section-header { display:flex; align-items:start; justify-content:space-between; gap:16px; }
.st-section-header h4 { font-size:18px; margin:0 0 6px; letter-spacing:-.025em; }
.st-history-list { display:grid; gap:8px; }
.st-history-item { display:flex; align-items:center; justify-content:space-between; gap:15px; background:rgba(255,255,255,.03); border:1px solid var(--line); border-radius:13px; padding:15px; }
.st-history-main { flex:1; min-width:0; }
.st-history-title { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.st-history-title strong { font-size:13px; }
.st-history-title strong span { color:var(--muted); font-weight:600; }
.st-history-meta { color:var(--muted); margin-top:7px; font-size:11.5px; line-height:1.5; }
.st-history-actions { display:flex; gap:7px; flex-wrap:wrap; }
.st-history-actions .screen-badge { min-height:35px; }
.st-state { display:inline-flex; padding:5px 9px; border-radius:99px; font-size:10px; font-weight:850; }
.st-state--win { color:#72ecc0; background:rgba(52,211,154,.12); }
.st-state--loss { color:#ff9ba5; background:rgba(255,109,122,.12); }
.st-state--warn { color:#ffd28b; background:rgba(246,184,77,.1); }
.st-state--muted { color:var(--muted); background:rgba(255,255,255,.065); }
.st-neg { color:#ff8393 !important; }
.st-pos { color:#46dbab !important; }
.st-empty { padding:34px 20px; text-align:center; border:1px dashed var(--line-strong); border-radius:14px; color:var(--muted); font-size:13px; }
.st-more { width:fit-content; }
.st-live-result { min-height:44px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; background:rgba(255,255,255,.035); border:1px solid var(--line); border-radius:12px; padding:12px 14px; font-size:13px; }
.st-live-result>span:last-child { color:var(--muted); font-size:11px; }
.st-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; }
.st-kpis>div { padding:16px 13px; border-radius:14px; border:1px solid var(--line); background:rgba(255,255,255,.04); min-width:0; display:grid; gap:9px; }
.st-kpis span { font-size:11px; color:var(--muted); }
.st-kpis strong { font-size:19px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; letter-spacing:-.025em; }
.st-stats-controls { display:flex; flex-wrap:wrap; gap:14px; }
.st-stats-controls .field { flex:1 1 230px; }
.st-table-wrap { width:100%; min-width:0; overflow:auto; border:1px solid var(--line); border-radius:14px; }
.st-table { border-collapse:collapse; width:100%; min-width:670px; font-size:12px; font-variant-numeric:tabular-nums; }
.st-table th { text-align:left; font-size:11px; letter-spacing:.01em; color:var(--muted); padding:14px 12px; background:rgba(255,255,255,.06); white-space:nowrap; }
.st-table td { padding:15px 12px; border-top:1px solid var(--line); vertical-align:top; }
.st-table td:first-child { max-width:240px; }
.st-table td small { display:block; color:var(--muted); margin-top:6px; font-size:10px; line-height:1.35; }
.st-table td small.st-low-sample { color:var(--warning); }
.st-footnote { color:var(--muted); line-height:1.6; font-size:11px; max-width:950px; }
.st-app button:focus-visible,.st-app input:focus-visible,.st-app select:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:1100px) { .st-layout--verify { grid-template-columns:minmax(0,1fr); } .st-verdict { position:static; } .st-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:680px) { .st-intro { align-items:flex-start; flex-direction:column; gap:10px; }.st-intro h3 { font-size:22px; }.st-intro p { font-size:12px; }.st-nav { width:100%; }.st-nav-btn { flex:1 1 25%; font-size:12px; padding:11px 5px; } .st-panel { padding:15px; border-radius:16px; } .st-fields { grid-template-columns:minmax(0,1fr); gap:12px; } .st-history-item { align-items:flex-start; flex-direction:column; } .st-history-actions { width:100%; }.st-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.st-kpis>div:last-child { grid-column:span 2; }.st-step { padding:12px 10px; gap:9px; }.st-section-header { align-items:flex-start; }.st-step-actions button { flex:1; min-width:95px; }.st-check-btn { padding:9px 7px; } }

/* Reutiliza los botones, selectores y modales globales de Índice Operativo. */
.st-verdict > .screen-badge { width:100%; min-height:42px; }
.st-history-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.st-delete-icon { width:38px; min-width:38px; height:38px; padding:0; }
.st-delete-icon svg { display:block; pointer-events:none; }
.st-delete-icon:hover { border-color:rgba(255,109,122,.4); color:#ffa8b0; }
.st-modal-dialog { width:min(100%,570px); }
.st-modal-context { color:var(--muted); font-size:12px; margin:0 0 17px; }
.st-modal-form { display:grid; gap:17px; }
.st-modal-help { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.st-purchase-summary { display:flex; align-items:center; justify-content:space-between; gap:15px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.04); padding:16px; }
.st-purchase-summary span { color:var(--muted); font-size:12px; }
.st-purchase-summary strong { font-variant-numeric:tabular-nums; font-size:18px; }
.st-modal-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:9px; margin-top:5px; }
.st-modal-actions .screen-badge { min-height:42px; }
.st-modal-form .st-live-result { margin:0; }
@media (max-width:680px) {
  .st-modal-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .st-modal-actions .screen-badge { white-space:normal; min-height:43px; padding:9px; }
  .st-purchase-summary { flex-direction:column; align-items:flex-start; gap:6px; }
  .st-history-actions .screen-badge:not(.st-action-icon) { white-space:normal; }
}

/* Ajuste V3: mismas dimensiones de los controles globales y ticker obligatorio. */
.st-fields .field { display:flex; flex-direction:column; align-items:stretch; gap:8px; min-width:0; }
.st-fields .field > :is(input.input,select.select) { flex:0 0 48px; height:48px; min-height:48px; max-height:48px; width:100%; min-width:0; align-self:stretch; }
.st-fields .st-symbol-field > .input { background-color:#111d31; background-image:none; border-color:rgba(255,255,255,.14); color:#eef4ff; box-shadow:inset 0 0 0 1px rgba(255,255,255,.02); }
.st-fields .st-symbol-field > .input:hover { border-color:rgba(116,167,255,.28); }
.st-required-label { display:inline-block; margin-left:5px; font-size:10px; font-weight:800; color:var(--muted); }
.st-symbol-field--missing .st-required-label { color:var(--danger); }
.st-fields .st-symbol-field--missing > .input { border-color:var(--danger); box-shadow:0 0 0 2px rgba(255,109,122,.14); }
.st-symbol-field--missing #stSymbolHint { color:#ffabb4; }
.st-ticker-notice { display:flex; align-items:center; gap:9px; margin-top:12px; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,109,122,.40); background:rgba(255,109,122,.08); color:#ffc6cd; font-size:12px; line-height:1.5; }
.st-ticker-notice svg { flex:0 0 17px; }
.st-steps--locked { opacity:.65; }
.st-check-btn:disabled { opacity:.48; cursor:not-allowed; }
.st-action-icon { width:38px; min-width:38px; height:38px; min-height:38px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
.st-action-icon svg { display:block; pointer-events:none; }
.st-edit-icon:hover { border-color:rgba(116,167,255,.5); color:#bfd6ff; }
@media(max-width:680px){.st-history-actions .screen-badge.st-action-icon {flex:0 0 38px;min-width:38px;white-space:nowrap;}}
