/* Assessment prioritizes holdings and history; deeper telemetry stays available. */
.bot-holding{padding:14px 16px;background:var(--surface);border-bottom:1px solid var(--border)}
.bot-holding[hidden],.bot-history [hidden]{display:none!important}
.holding-heading,.holding-main{display:flex;align-items:center;justify-content:space-between;gap:12px}
.holding-heading h2{margin:0;font-family:inherit;font-size:.85rem;line-height:1.3;font-weight:700;color:var(--text)}
.holding-heading [data-holding-mode]{font-size:.66rem;color:var(--text-dim)}
.holding-main{margin-top:12px}
.holding-main>div{min-width:0;flex:1}
.holding-sell{flex-shrink:0}
.holding-size{font-size:1.05rem;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
.holding-side{font-size:.72rem;padding:3px 7px;border-radius:4px;background:var(--green-bg);color:var(--green);margin-right:6px}
.holding-side[data-side=no]{background:#F4EDDA;color:#7A5A10}
.holding-ticker{font-size:.67rem;color:var(--text-dim);margin-top:5px;overflow-wrap:anywhere}
.holding-sell{display:inline-flex;justify-content:center;align-items:center;min-height:36px;padding:6px 15px;border:1px solid #B3261E;border-radius:6px;background:#fff;color:#A12822;font-family:inherit;font-size:.76rem;line-height:1.3;font-weight:650;text-decoration:none;cursor:pointer;white-space:nowrap}
.holding-sell:hover{background:#FAE8E4}
.holding-sell:disabled{opacity:.5;cursor:default}
.holding-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 0}
.holding-metrics dt{font-size:.65rem;color:var(--text-dim);margin-bottom:4px}
.holding-metrics dd{font-size:.88rem;font-weight:650;margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.holding-metrics [data-tone=gain]{color:var(--green)}
.holding-metrics [data-tone=loss]{color:var(--red)}
.holding-exit,.holding-empty{font-size:.72rem;line-height:1.5;color:var(--text-dim);margin:12px 0 0}
.holding-exit{padding-top:9px;border-top:1px solid var(--border)}
.holding-exit strong{color:var(--text);font-weight:600}
body .bmp-head{gap:6px}
body .bmp-series{max-width:100%;overflow-wrap:anywhere}
.bot-market-details>summary,.dw-evidence>summary{font-size:.73rem;font-weight:600;color:var(--text-secondary);cursor:pointer;line-height:1.5;padding:7px 0}
.dw-evidence>summary span{font-size:.67rem;font-weight:400;color:var(--text-dim);margin-left:6px}
.bot-market-details[open]>summary{margin-bottom:7px}
.bot-market-details .bmp-quant{margin:9px 0}
/* Holdings are now independent of the active market and of a resting exit. */
body:has(#botHolding:not([hidden])) #botLiveStrip [data-live-order],
body:has(#botHolding:not([hidden])) #botLiveRightPill{display:none!important}
.bot-history{min-width:0;background:var(--surface)}
.bot-history button:focus-visible,.bot-market-details summary:focus-visible,.holding-sell:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.bot-history .decision-workspace{padding:12px 16px;border-top:1px solid var(--border);border-bottom:0}
.bot-history .dw-section-title{margin:0 0 10px;font-family:inherit;font-size:.85rem;line-height:1.3;font-weight:700}
.bot-history .dw-mode{font-size:.62rem;padding:2px 6px}
.bot-history .dw-toolbar{padding-bottom:8px}
.bot-history .dw-history{max-height:260px}
.bot-history .dw-run{padding:9px 8px;grid-template-columns:82px minmax(0,1fr) auto}
.bot-history .dw-run-reason{font-size:.72rem}
.bot-history .dw-inspector{padding-top:12px}
.bot-history .dw-outcome h3{font-family:inherit;font-size:.8rem}
.bot-history .dw-reason{font-size:.74rem;margin:6px 0;line-height:1.5}
.bot-history .dw-evidence{border-top:1px solid var(--border);margin-top:9px}
.bot-history .dw-evidence[open]>summary{margin-bottom:8px}
.bot-history .dw-footnote{margin-top:8px;font-size:.62rem}
.bot-history .bot-fires-header{flex-wrap:wrap;padding:11px 16px}
.bot-history .bfh-meta{white-space:normal;text-align:left;margin:0;flex-basis:100%;padding-left:14px;font-size:.68rem;line-height:1.5}
.bot-history .bot-fires-list{max-height:190px;overflow:auto}
@media(min-width:1180px){
  .builder-grid.builder-stage-assess:not(.builder-chat-open) #botHistory .bot-fires-list{max-height:190px;overflow:auto}
}
@media(max-width:700px){
  .bot-holding{padding:12px}
  .holding-metrics{gap:8px}
  .holding-metrics dd{font-size:.82rem}
  .bot-history .decision-workspace{padding:10px 12px}
  .bot-history .dw-history{max-height:235px}
  .bot-history .dw-run{grid-template-columns:72px minmax(0,1fr)}
  .dw-evidence>summary span{display:none}
  .holding-sell{min-height:40px}
}

.bot-history .dw-toolbar>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}

body .bot-market-panel{display:block;margin:0;padding:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:var(--surface)}
body .bot-market-panel>summary.bmp-head{display:flex;align-items:center;padding:10px 16px;margin:0;gap:8px}
.bot-market-panel>summary::before{content:'▸';color:var(--text-dim);font-size:.7rem}
.bot-market-panel[open]>summary::before{content:'▾'}
.bot-market-panel>summary::-webkit-details-marker{display:none}
body .bot-market-panel .bmp-disclosure{margin-left:auto;font-size:.65rem;font-weight:400;color:var(--text-dim)}
.bmp-detail-content{display:flex;flex-direction:column;gap:8px;padding:0 16px 12px}
body .bot-market-panel .bmp-close{margin-left:0}
@media(max-width:700px){body .bot-market-panel{display:none}}
