/* Fleet / Custom account management UI v1 */
.account-strategy-dialog{
  width:min(900px,calc(100vw - 32px));max-height:min(900px,calc(100vh - 36px));padding:0;
  overflow:hidden;border:1px solid #23394b;border-radius:18px;background:#06111d;color:#eaf4fa;
  box-shadow:0 28px 100px rgba(0,0,0,.58)
}
.account-strategy-dialog[open]{display:flex;flex-direction:column}
.account-strategy-dialog::backdrop{background:rgba(0,7,14,.78);backdrop-filter:blur(5px)}
.strategy-dialog-head{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 24px 18px;border-bottom:1px solid #182d3e;background:linear-gradient(145deg,#0a1b2a,#06111d)}
.strategy-dialog-head h2{margin:5px 0 4px;font-size:24px;letter-spacing:-.035em}.strategy-dialog-head p{margin:0;color:#8299aa;font-size:12px}
.strategy-change-state{display:flex;gap:9px;align-items:center;margin:16px 24px 0;padding:10px 12px;border:1px solid;border-radius:10px;font-size:12px}
.strategy-change-state i{width:7px;height:7px;border-radius:50%;flex:0 0 auto}.strategy-change-state.ready{border-color:rgba(52,211,153,.3);background:rgba(16,185,129,.08);color:#9ce8cc}.strategy-change-state.ready i{background:#34d399;box-shadow:0 0 10px #34d399}
.strategy-change-state.locked{border-color:rgba(245,190,65,.28);background:rgba(245,158,11,.07);color:#e9c46b}.strategy-change-state.locked i{background:#f4b83f}
.strategy-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 24px}
.strategy-choice{position:relative;display:grid;gap:4px;text-align:left;padding:15px 16px;border:1px solid #223748;border-radius:12px;background:#081622;color:#eaf4fa;cursor:pointer}
.strategy-choice:hover:not(:disabled){border-color:#3d6a77}.strategy-choice.selected{border-color:#3ccfa4;background:linear-gradient(145deg,rgba(20,184,135,.14),rgba(7,22,34,.95));box-shadow:inset 0 0 0 1px rgba(52,211,153,.09)}
.strategy-choice:disabled{cursor:not-allowed;opacity:.55}.strategy-choice small,.strategy-builder-heading small,.strategy-summary-grid small,.strategy-target-summary small{font-family:"Space Mono",monospace;font-size:8px;letter-spacing:.14em;color:#5edbbd}
.strategy-choice strong{font-size:16px}.strategy-choice span{font-size:11px;color:#8198a9}.strategy-choice em{position:absolute;right:12px;top:12px;padding:3px 7px;border-radius:999px;background:#112534;color:#88a2b5;font-size:9px;font-style:normal}
.strategy-choice.selected em{background:rgba(32,210,157,.13);color:#78e6c6}
.strategy-dialog-body{flex:1 1 auto;min-height:0;overflow:auto;padding:0 24px 20px}
.strategy-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #1c3244;border-radius:12px;overflow:hidden}
.strategy-summary-grid>div{display:grid;gap:7px;padding:15px;border-right:1px solid #1c3244}.strategy-summary-grid>div:last-child{border-right:0}.strategy-summary-grid strong{font-size:13px}
.strategy-fleet-ladder,.strategy-builder-section,.strategy-target-summary{margin-top:14px;padding:15px;border:1px solid #1c3244;border-radius:12px;background:rgba(4,14,24,.46)}
.strategy-builder-heading{display:flex;gap:11px;align-items:flex-start;margin-bottom:13px}.strategy-builder-heading>span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #28505a;border-radius:50%;color:#7be1c7;font:700 10px "Space Mono",monospace}
.strategy-builder-heading>div{display:grid;gap:3px}.strategy-builder-heading strong{font-size:13px}.strategy-builder-heading p{margin:0;color:#72899a;font-size:11px}
.strategy-preview-rung{display:grid;grid-template-columns:28px 1fr 24px 1fr;align-items:center;padding:10px;border-top:1px solid #132737}.strategy-preview-rung span{color:#668093;font-size:10px}.strategy-preview-rung b{color:#dfeaf0}.strategy-preview-rung i{color:#527083;font-style:normal}.strategy-preview-rung strong{color:#6ee7b7}
.strategy-target-summary{display:flex;align-items:center;justify-content:space-between}.strategy-target-summary strong{color:#7be1c7}
.strategy-rung-row{display:grid;grid-template-columns:28px 1fr 24px 1fr 30px;gap:8px;align-items:end;padding:9px 0;border-top:1px solid #132737}.strategy-rung-row:first-child{border-top:0}
.strategy-rung-number{display:grid;place-items:center;width:24px;height:24px;margin-bottom:5px;border-radius:50%;background:#102331;color:#7adfc5;font:700 9px "Space Mono",monospace}
.strategy-rung-row label,.strategy-initial-stop,.strategy-target-field{display:grid;gap:5px;color:#8298a8;font-size:11px}.strategy-rung-row label small{font-size:9px}.strategy-arrow{align-self:center;color:#516d7f;text-align:center}
.strategy-percent-input{display:flex;align-items:center;min-height:38px;border:1px solid #253c4d;border-radius:9px;background:#06101a;overflow:hidden}.strategy-percent-input:focus-within{border-color:#39b999}.strategy-percent-input input{width:100%;border:0!important;background:transparent!important;padding:9px 8px!important;color:#eff8fc!important;font:700 12px "Space Mono",monospace;outline:0}.strategy-percent-input span{padding:0 9px;color:#698396}
.strategy-rung-remove{width:30px;height:38px;border:1px solid #3c2931;border-radius:8px;background:#180e14;color:#c98a96;font-size:17px;cursor:pointer}.strategy-rung-remove:disabled{opacity:.45}
.strategy-add-rung{margin-top:10px}.strategy-initial-stop{max-width:220px}.strategy-after-ten{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.strategy-radio{display:flex;gap:10px;padding:12px;border:1px solid #213748;border-radius:10px;background:#071521;cursor:pointer}.strategy-radio:has(input:checked){border-color:#39c59e;background:rgba(16,185,129,.08)}.strategy-radio span{display:grid;gap:3px}.strategy-radio b{font-size:12px}.strategy-radio small{font-size:10px;color:#7690a1}
.strategy-target-setting{display:flex;align-items:center;gap:20px;margin-top:14px;padding:14px;border:1px solid #244454;border-radius:10px;background:rgba(16,185,129,.045)}.strategy-target-field{flex:0 0 190px}.strategy-target-setting p{margin:0;color:#91aeb8;font-size:11px;line-height:1.5}.strategy-target-setting input:disabled{opacity:.55}.strategy-runner-example{margin-top:12px;color:#718a9b;font:10px "Space Mono",monospace}
.strategy-preview-start,.strategy-preview-target,#strategy-live-preview>div{display:grid;grid-template-columns:80px 80px 22px 1fr 60px;gap:7px;align-items:center;padding:8px 9px;border-top:1px solid #142838;font-size:11px}.strategy-preview-start{border-top:0!important}.strategy-preview-start i{grid-column:3/6;color:#7f97a8;font-style:normal}.strategy-preview-target{margin-top:4px;background:rgba(16,185,129,.06)}#strategy-live-preview b{color:#ebf5f9}#strategy-live-preview strong{color:#70e3c3}#strategy-live-preview em{color:#688397;font-size:9px;font-style:normal;text-align:right}
.strategy-muted{margin:10px 0;color:#7890a0;font-size:11px}.strategy-validation{display:flex;gap:10px;align-items:center;margin-top:12px;padding:10px 12px;border:1px solid rgba(52,211,153,.25);border-radius:9px;background:rgba(16,185,129,.06);color:#8ddfc7;font-size:10px}.strategy-validation strong{font-size:11px}.strategy-validation.has-error{border-color:rgba(248,113,113,.3);background:rgba(127,29,29,.1);color:#f3a0a0}
.strategy-dialog-footer{display:flex;flex:0 0 auto;justify-content:space-between;gap:20px;align-items:center;padding:14px 24px;border-top:1px solid #1c3040;background:#07121d}.strategy-dialog-footer>div:first-child{display:grid;gap:2px}.strategy-dialog-footer strong{font-size:11px}.strategy-dialog-footer small{color:#6f8798;font-size:9px}.strategy-footer-actions{display:flex;gap:8px;flex:0 0 auto}
.account-strategy-compact{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:13px 14px;border-top:1px solid #1c3445;border-bottom:1px solid #1c3445;background:linear-gradient(90deg,rgba(16,185,129,.055),transparent)}
.account-strategy-compact>div{display:grid;gap:3px}.account-strategy-compact small{font:700 8px "Space Mono",monospace;letter-spacing:.12em;color:#5cd9ba}.account-strategy-compact strong{font-size:13px;color:#e9f4f8}.account-strategy-compact span{font-size:10px;color:#768e9f}.account-strategy-compact .button{flex:0 0 auto;min-height:34px;padding:0 12px;font-size:10px}
.profile-model-button em{white-space:nowrap}
@media(max-width:760px){
  .account-strategy-dialog{width:calc(100vw - 18px);max-height:calc(100vh - 18px);border-radius:14px}
  .strategy-dialog-head{padding:17px 16px 14px}.strategy-dialog-head h2{font-size:20px}
  .strategy-change-state{margin:12px 14px 0}.strategy-choice-grid{grid-template-columns:1fr;padding:12px 14px;gap:8px}
  .strategy-dialog-body{padding:0 14px 14px}.strategy-summary-grid{grid-template-columns:1fr 1fr}.strategy-summary-grid>div:nth-child(2){border-right:0}
  .strategy-after-ten{grid-template-columns:1fr}.strategy-rung-row{grid-template-columns:24px 1fr 20px 1fr 28px;gap:5px}
  .strategy-target-setting{align-items:stretch;flex-direction:column;gap:7px}.strategy-target-field{flex:auto;max-width:190px}
  .strategy-dialog-footer{align-items:stretch;flex-direction:column;padding:12px 14px}.strategy-footer-actions{display:grid;grid-template-columns:1fr 1fr}.strategy-footer-actions .button{width:100%}
  .account-strategy-compact{align-items:stretch;flex-direction:column}.account-strategy-compact .button{width:100%}
}

/* Keep the choice labels and active management readable in the v4 dashboard. */
.account-strategy-dialog .strategy-choice{
  display:flex;align-items:center;min-height:64px;padding:14px 104px 14px 16px;
  color:#eaf4fa!important;font-size:15px!important;font-weight:750;line-height:1.3;
}
.account-strategy-dialog .strategy-choice em{top:50%;transform:translateY(-50%)}
.account-strategy-dialog .strategy-draft-note{margin:0 24px;padding:0 1px;color:#9db2bf;font-size:11px;line-height:1.5}
.profile-panel[data-account-strategy-v1] .dashboard-v4-model-summary,
.profile-panel[data-account-strategy-v1] dl,
.profile-panel[data-account-strategy-v1] .profile-help{display:none!important}
.account-strategy-dashboard-summary{display:grid;gap:7px;margin:0 0 12px;padding:14px;border:1px solid rgba(57,185,153,.32);border-radius:11px;background:rgba(16,185,129,.055)}
.account-strategy-dashboard-summary>small{color:#73e2c2;font:700 9px "Space Mono",monospace;letter-spacing:.1em}
.account-strategy-dashboard-summary>strong{font-size:16px;color:#eef8fa}
.account-strategy-dashboard-summary>p{margin:0;color:#9ab4c0;font-size:11px;line-height:1.4}
.account-strategy-dashboard-summary>div{display:grid;gap:7px;padding-top:8px;border-top:1px solid rgba(56,95,105,.36)}
.account-strategy-dashboard-summary span{display:flex;justify-content:space-between;gap:10px;color:#8aa4b3;font-size:11px}
.account-strategy-dashboard-summary b{color:#dff7ec;white-space:nowrap}
.account-strategy-dashboard-summary>em{color:#89a6b1;font-size:10px;font-style:normal}
@media(max-width:760px){
  .account-strategy-dialog .strategy-draft-note{margin:0 14px}
  .account-strategy-dialog .strategy-choice{min-height:58px}
}
