.spot-panel{font-size:12px}.spot-panel summary{cursor:pointer;color:var(--lime);line-height:1.6;padding:10px 0}.spot-panel details{border-top:1px solid var(--line);margin-top:10px}.spot-controls{display:flex;flex-wrap:wrap;gap:6px}.spot-controls button{padding:7px 8px;font-size:11px}.spot-state{background:#26352e;padding:9px;border-radius:6px}.spot-numbers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0;font-size:10px;color:var(--muted)}.spot-numbers b{display:block;color:var(--text);font-size:12px;overflow-wrap:anywhere;margin-top:4px}.spot-error{color:#ffc58f!important;border-left:3px solid #ffc58f;padding-left:9px}.spot-plan{font-size:12px;line-height:1.6}.spot-plan table{font-size:11px}.spot-plan td,.spot-plan th{padding:6px 3px}.spot-plan b{color:#c1f58b}.spot-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}#spot-sales{width:100%;background:#101a23;color:var(--text);border:1px solid var(--line);border-radius:6px;padding:8px;font:inherit;resize:vertical}.spot-check{display:flex!important;align-items:center;gap:8px;margin:10px 0}.spot-check input{width:auto;accent-color:var(--lime)}.spot-panel label{display:block;font-size:11px;margin:10px 0 5px}.spot-event{border-bottom:1px solid var(--line);padding:8px 0}.spot-event small{color:var(--muted);font-size:10px}.spot-event p{overflow-wrap:anywhere}.spot-panel input{font-size:12px}.spot-panel button{margin-top:4px}#spot-preview{border-top:1px solid var(--line);margin-top:15px;padding-top:12px}@media(max-width:420px){.spot-form-grid{grid-template-columns:1fr}.spot-plan table{font-size:10px}}
#real-purchases{width:100%;table-layout:fixed;border-collapse:collapse}#real-purchases th,#real-purchases td{padding:5px 3px;vertical-align:top}#real-purchases th:first-child{width:19%}#real-purchases label{font-size:10px;line-height:1.3;margin:0}#real-purchases input{min-width:0;width:100%;padding:6px 4px;font-size:13px;box-sizing:border-box}#real-purchases caption{text-align:left;margin:8px 0}#real-pair-rules{padding:10px;border:1px solid #405663;border-radius:8px;margin:12px 0}#real-pair-rules h3{font-size:14px;margin:0}#real-spot-panel .tabs{display:flex;gap:5px;margin:10px 0}#real-spot-panel .tabs [aria-pressed=true]{background:var(--lime);color:#142019}#real-spot-panel output{display:block;white-space:normal;margin:10px 0}#real-spot-panel [hidden]{display:none!important}

/* Compact realized results, only currencies with executed activity. */
#spot-simple-results .spot-coin-list details { margin: 6px 0; padding: 8px 10px; }
.spot-coin-summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.spot-coin-summary::before { content: "▸"; }
.spot-coin-list details[open] > .spot-coin-summary::before { content: "▾"; }
.spot-coin-summary strong, .spot-coin-list .spot-result-row strong { margin-left: auto; white-space: nowrap; }
.spot-coin-list .spot-result-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #2a3944; }

#real-spot-panel .spot-oneshot-confirm{margin:8px 0;padding:12px;background:var(--surface,#13242e);border:1px solid var(--line,#374c58);border-left:3px solid var(--lime);border-radius:8px}
#real-spot-panel .spot-oneshot-confirm p{margin:6px 0 10px}
#real-spot-panel [data-oneshot-confirm]{background:var(--lime);color:#152019}
#real-spot-panel strong.positive{color:var(--lime,#b9ef80)}
#real-spot-panel strong.negative{color:var(--red,#ff647a)}

/* Purchase editors fit the sidebar in Demo and Real. */
#spot2-form,#real-plan{min-width:0}
#alternative #spot2-purchases,#alternative #real-purchases{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
#alternative #spot2-purchases th,#alternative #spot2-purchases td,#alternative #real-purchases th,#alternative #real-purchases td{min-width:0;padding:6px 4px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
#alternative #spot2-purchases th:first-child,#alternative #real-purchases th:first-child{width:52px;min-width:0}
#alternative #spot2-purchases label,#alternative #real-purchases label{display:block;font-size:11px;line-height:1.35;margin:0}
#alternative #spot2-purchases input,#alternative #real-purchases input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:7px 4px;font-size:13px}
#alternative #spot2-purchases caption,#alternative #real-purchases caption{text-align:left;white-space:normal;margin:8px 0}
#alternative #spot2-purchases .spot-error:empty{display:none}

#alternative #spot2-purchases th:not(:first-child),#alternative #real-purchases th:not(:first-child){width:auto}

dialog.spot-start-confirm{box-sizing:border-box;width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:26px;background:var(--panel,#14232d);color:var(--text,#eef5f8);border:1px solid var(--line,#405363);border-radius:18px;font:14px/1.5 system-ui,sans-serif;box-shadow:0 24px 90px #0008}
.spot-start-confirm::backdrop{background:#061019b8;backdrop-filter:blur(3px)}
.spot-start-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.spot-start-brand{font-weight:750;letter-spacing:.2em}.spot-start-real{padding:4px 10px;border:1px solid #4d8293;border-radius:20px;color:#93e7fb;font-size:12px;font-weight:650}
.spot-start-confirm h2{font-size:23px;line-height:1.25;margin:0 0 10px}.spot-start-confirm p{font-size:14px;line-height:1.55;margin:12px 0}.spot-start-confirm .spot-start-asset{font-size:19px;font-weight:700;margin-bottom:2px}.spot-start-asset span{font-size:14px;font-weight:500}.spot-start-confirm .spot-start-account{margin-top:0;color:var(--muted,#b4c5cf);overflow-wrap:anywhere}
.spot-start-confirm dl{margin:20px 0}.spot-start-confirm dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;border-bottom:1px solid var(--line,#405363)}.spot-start-confirm dt{color:var(--muted,#b4c5cf)}.spot-start-confirm dd{margin:0;text-align:right;font-weight:650;overflow-wrap:anywhere}.spot-start-confirm dl>div:last-child{font-weight:700}.spot-start-first{padding:15px;border:1px solid #427587;border-radius:12px;background:#123543}.spot-start-first span{display:block;color:#bce4ef;font-size:12px}.spot-start-first strong{display:block;color:#e5faff;font-size:26px;margin-top:3px;overflow-wrap:anywhere}.spot-start-confirm #spot-start-note,.spot-start-confirm .spot-start-repeat{color:var(--muted,#b4c5cf);font-size:13px}.spot-start-actions{display:flex;gap:10px;margin-top:22px}.spot-start-actions button{flex:1;font:650 14px/1.4 system-ui,sans-serif;padding:11px 12px;min-height:44px;border-radius:9px}.spot-start-actions [data-start-confirm]{background:#75d7ec;color:#0a2631;border-color:#75d7ec}.spot-start-actions button:focus-visible{outline:3px solid #93e7fb;outline-offset:3px}
[data-theme=light] dialog.spot-start-confirm{background:#fff;color:#152e3c;border-color:#bfd0d8}[data-theme=light] .spot-start-real{color:#126279;border-color:#8cb7c2}[data-theme=light] .spot-start-confirm dt,[data-theme=light] .spot-start-confirm .spot-start-account,[data-theme=light] .spot-start-confirm #spot-start-note,[data-theme=light] .spot-start-confirm .spot-start-repeat{color:#3b5562}[data-theme=light] .spot-start-confirm dl>div{border-color:#d4e0e6}[data-theme=light] .spot-start-actions [data-start-cancel]{background:#edf3f6;color:#153442;border-color:#bfd0d8}
@media(max-width:380px){dialog.spot-start-confirm{padding:19px}.spot-start-actions{flex-direction:column}.spot-start-confirm dl>div{gap:10px}.spot-start-confirm dt{max-width:60%}}
.spot-start-confirm .spot-start-asset{color:inherit}
