.robot-explanation-card{position:absolute;left:16px;top:16px;z-index:9;width:330px;max-width:calc(100% - 32px);max-height:calc(100% - 32px);overflow:auto;box-sizing:border-box;padding:16px;background:white;color:#192d49;border:1px solid #c9d8f2;border-radius:10px;box-shadow:0 8px 24px #192d491a;font:12px/1.65 Onest,sans-serif;font-variant-numeric:tabular-nums}.robot-explanation-card[hidden]{display:none}.robot-explanation-card>header{display:flex;justify-content:space-between;align-items:start;gap:12px;border-bottom:1px solid #e0e7f2;padding-bottom:10px;margin-bottom:12px}.robot-explanation-card>header span{font-size:10px;color:#526783}.robot-explanation-card button{background:none;border:0;color:#245bea;font:11px Onest,sans-serif;cursor:pointer;padding:0;min-height:24px}.robot-explanation-card h3,.robot-state-evidence h3{font-size:15px;line-height:1.4;margin:0 0 8px;font-weight:650}.robot-explanation-card p,.robot-state-evidence p{margin:8px 0;line-height:1.7}.robot-explanation-card footer,.robot-state-evidence footer{font-size:10px;color:#526783;border-top:1px solid #e0e7f2;margin-top:12px;padding-top:10px;line-height:1.7}.robot-explanation-card dl,.robot-state-evidence dl,.robot-explanation-operation dl{margin:12px 0 0;display:grid;gap:6px;font-size:11px}.robot-explanation-card dl>div,.robot-state-evidence dl>div,.robot-explanation-operation dl>div{display:flex;justify-content:space-between;gap:16px}.robot-explanation-card dt,.robot-state-evidence dt{color:#526783}.robot-explanation-card dd,.robot-state-evidence dd,.robot-explanation-operation dd{margin:0;font-weight:600}.robot-explanation-actions{list-style:none;padding:0;margin:0}.robot-explanation-actions>li+li{margin-top:14px;padding-top:12px;border-top:1px solid #e0e7f2}.robot-explanation-operation strong{font-size:12px;line-height:1.6}.robot-explanation-operation p{font-size:12px;line-height:1.7;color:#526783;margin:8px 0}.robot-rule-checks{padding:0;list-style:none;display:grid;gap:8px}.robot-rule-checks li{display:grid;grid-template-columns:85px 1fr;gap:10px;font-size:11px}.robot-rule-checks span{color:#526783}.robot-state-evidence{padding:18px 20px;background:#f4f7fc;border-radius:10px;color:#192d49;font:13px/1.7 Onest,sans-serif;max-width:760px}.robot-state-evidence details{padding-top:12px}.robot-state-evidence summary{cursor:pointer;color:#245bea}.portfolio-why-button{display:block;font:11px Onest,sans-serif;background:none;border:0;padding:5px 0;color:#245bea;cursor:pointer;text-align:left;max-width:220px;line-height:1.5}.portfolio-explanation-row>td{padding:0 16px 18px!important}.robot-bot-evidence{margin:16px 0}.robot-bot-evidence>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;font-size:13px;padding:14px 16px;border:1px solid #dce5f3;border-radius:8px;color:#245bea}.robot-bot-evidence .robot-state-evidence{margin-top:10px}.robot-trade-reasons{margin-top:12px;border-top:1px solid #dce4f0;padding-top:12px}.robot-trade-reasons summary{font-size:12px;cursor:pointer;color:#245bea}.robot-explanation-card :focus-visible,.robot-bot-evidence :focus-visible,.portfolio-why-button:focus-visible{outline:2px solid #245bea;outline-offset:3px}
@media(max-width:700px){.robot-explanation-card{left:10px;top:10px;max-width:calc(100% - 20px);max-height:240px;padding:12px;width:295px}.robot-state-evidence{padding:16px 12px}.portfolio-explanation-row>td{padding:0 10px 14px!important}.robot-rule-checks li{grid-template-columns:75px 1fr}}
.robot-bot-executions{margin:14px 0;font:13px/1.7 Onest,sans-serif}.robot-bot-executions>summary{cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #dce5f3;border-radius:8px;color:#245bea}.robot-bot-executions summary span{color:#526783;font-size:11px}.robot-bot-executions ol{list-style:none;padding:0;margin:12px 0}.robot-bot-executions li{padding:14px 16px;border-bottom:1px solid #e0e7f2}.robot-bot-executions time{font-size:11px;color:#526783;display:block;margin-bottom:8px}

.strategy-summary>.robot-bot-evidence{grid-column:1/-1;min-width:0;margin:0}.strategy-summary .robot-explanation-operation strong{font-size:12px;letter-spacing:normal;font-weight:600;margin:0}

/* Anchored trade bubble; the pointer shares the card surface. */
.robot-explanation-card{border-radius:18px;padding:16px 18px;overflow:visible;box-shadow:0 10px 28px #192d4924;width:310px;isolation:isolate}
.robot-explanation-card::after{content:"";position:absolute;left:var(--anchor-x,50%);width:12px;height:12px;background:white;transform:translateX(-50%) rotate(45deg);z-index:-1}
.robot-explanation-card[data-placement="above"]::after{bottom:-7px;border-right:1px solid #c9d8f2;border-bottom:1px solid #c9d8f2}
.robot-explanation-card[data-placement="below"]::after{top:-7px;border-left:1px solid #c9d8f2;border-top:1px solid #c9d8f2}
.robot-explanation-content{max-height:180px;overflow:auto;scrollbar-width:thin;scrollbar-color:#b9c9e9 transparent}.robot-explanation-card header{margin-bottom:10px;padding-bottom:9px}.robot-explanation-card header span{font-size:11px}.robot-explanation-operation p{line-height:1.6}
@media(max-width:700px){.robot-explanation-card{width:280px;padding:12px 14px;border-radius:16px}.robot-explanation-content{max-height:155px}}
