/* Reference strategy ledger cards, isolated from the surrounding 3D dashboard. */
.strategy-ledger{--ledger-green:var(--green,#72dfb5);--ledger-amber:var(--amber,var(--warn,#f0be70));--ledger-muted:var(--muted,#9aa8b9);--ledger-line:var(--line,#27303b);--ledger-card-bg:#0d11162b;font-variant-numeric:tabular-nums;min-width:0}
.strategy-ledger .robot-ledger-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;padding:20px 24px;min-width:0}
.strategy-ledger .robot-ledger-grid>section{min-width:0}
.strategy-ledger .robot-section-title{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:12px}
.strategy-ledger .robot-section-title h3{margin:0;font-size:14px;font-weight:550;color:var(--ink,#cbd7e6)}
.strategy-ledger .robot-section-title>span{font-family:var(--mono);font-size:10px;color:var(--ledger-muted);text-align:right;line-height:1.6}
.strategy-ledger .robot-position-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:240px;overflow:auto;scrollbar-width:thin;scrollbar-color:#394759 #141a21}
.strategy-ledger .robot-position{display:flex;align-items:flex-start;flex-direction:column;justify-content:space-between;gap:10px;border:1px solid var(--ledger-line);border-radius:5px;padding:9px 10px;background:var(--ledger-card-bg);font-size:11px;min-width:0}
.strategy-ledger .robot-position strong{font-family:var(--mono);font-size:12px;font-weight:550;overflow-wrap:anywhere}
.strategy-ledger .robot-position span{font-family:var(--mono);color:var(--ledger-green);font-size:12px;overflow-wrap:anywhere}
.strategy-ledger .robot-position-amounts{display:grid;gap:3px;min-width:0}
.strategy-ledger .robot-position-amounts>span{font-size:11px}
.strategy-ledger .robot-position-amounts>small{font-size:10px;color:var(--ledger-muted);overflow-wrap:anywhere}
.strategy-ledger .robot-position[data-tone="unknown"] span,.strategy-ledger .robot-position[data-tone="unknown"] strong{color:var(--ledger-muted)}
.strategy-ledger .robot-empty{grid-column:1/-1;color:var(--ledger-muted);font-size:11px;line-height:1.8;margin:3px 0;padding:8px 0}
.strategy-ledger .robot-batch-list{max-height:330px;overflow:auto;scrollbar-width:thin;scrollbar-color:#394759 #141a21}
.strategy-ledger .robot-batch{border:1px solid var(--ledger-line);border-radius:5px;background:var(--ledger-card-bg);margin-bottom:7px;overflow:hidden;min-width:0}
.strategy-ledger .robot-batch:last-child{margin-bottom:0}
.strategy-ledger .robot-batch>summary{display:grid;grid-template-columns:minmax(80px,1fr) auto auto 12px;align-items:center;gap:10px;padding:10px 11px;font-size:11px;list-style:none;cursor:pointer;touch-action:manipulation;min-height:44px;-webkit-tap-highlight-color:transparent}
.strategy-ledger .robot-batch>summary::-webkit-details-marker{display:none}
.strategy-ledger .robot-batch>summary:focus-visible{outline:2px solid var(--accent,#a5bfff);outline-offset:-3px;border-radius:4px}
.strategy-ledger .robot-batch-pair{font-family:var(--mono);font-weight:550;overflow-wrap:anywhere;min-width:0}
.strategy-ledger .robot-batch-pair small{font-family:var(--sans);font-size:9px;color:var(--ledger-muted);margin-left:8px;font-weight:400}
.strategy-ledger .robot-batch-status{font-size:10px;color:#adbed3;overflow-wrap:anywhere}
.strategy-ledger .robot-batch[data-tone="live"] .robot-batch-status{color:var(--ledger-green)}
.strategy-ledger .robot-batch[data-tone="waiting"] .robot-batch-status{color:var(--ledger-amber)}
.strategy-ledger .robot-batch[data-tone="error"] .robot-batch-status{color:var(--red,#f397a7)}
.strategy-ledger .robot-batch[data-tone="unknown"] .robot-batch-status{color:var(--ledger-muted)}
.strategy-ledger .robot-batch time{font-family:var(--mono);font-size:9px;color:var(--ledger-muted);white-space:nowrap}
.strategy-ledger .robot-batch-arrow{font-size:12px;color:var(--ledger-muted);text-align:right}
.strategy-ledger .robot-batch[open] .robot-batch-arrow{transform:rotate(180deg)}
.strategy-ledger .robot-batch-detail{border-top:1px solid var(--ledger-line);padding:10px 12px;color:#a9b9cd;font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.strategy-ledger .robot-batch-detail>p{margin:0 0 7px}
.strategy-ledger .robot-order{display:flex;gap:5px 12px;flex-wrap:wrap;padding:5px 0;border-top:1px solid #27303b66}
.strategy-ledger .robot-order>span:first-child{color:#d2deed}
.strategy-ledger .robot-ledger-note{font-size:10px;line-height:1.7;color:var(--ledger-muted);margin:10px 0 0}
@media(max-width:1100px){.strategy-ledger .robot-position-list{grid-template-columns:1fr}}
@media(max-width:760px){
  .strategy-ledger .robot-ledger-grid{gap:22px;padding:19px 15px}
  .strategy-ledger .robot-section-title{margin-bottom:11px}
  .strategy-ledger .robot-section-title h3{font-size:13px}
  .strategy-ledger .robot-position-list{grid-template-columns:1fr;max-height:280px}
  .strategy-ledger .robot-position{flex-direction:row;gap:12px;padding:9px;font-size:10px}
  .strategy-ledger .robot-position strong{font-size:12px}
  .strategy-ledger .robot-position-amounts>span{font-size:11px}
  .strategy-ledger .robot-batch>summary{gap:7px;padding:11px 9px;grid-template-columns:minmax(75px,1fr) auto auto 9px}
  .strategy-ledger .robot-batch-pair{font-size:12px}
  .strategy-ledger .robot-batch-pair small{font-size:8px;margin-left:5px}
  .strategy-ledger .robot-batch-status,.strategy-ledger .robot-batch time{font-size:10px}
  .strategy-ledger .robot-batch-detail{font-size:11px}
}
@media(max-width:370px){.strategy-ledger .robot-batch>summary{grid-template-columns:minmax(60px,1fr) auto 10px}.strategy-ledger .robot-batch time{display:none}}
