[hidden] { display: none !important; }
.unlock-panel { width: min(100%, 480px); margin: 24px auto; }
.unlock-panel form { display: grid; gap: 12px; }
.trading-setup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#trading-create-form > * + * { margin-top: 10px; }
#trading-create-form label { display: block; }
#trading-buy-limit { max-width: 180px; }
.trading-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.execution-note { margin: 12px 0; padding: 10px; background: var(--accent-soft); border-radius: 5px; font-size: 13px; line-height: 1.6; }
#trading-detail h3 { margin: 20px 0 8px; }
#trading-events p { padding: 5px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 12px; }
#trading-events .trading-event { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
#trading-events .trading-event time { flex: 0 0 auto; color: var(--muted); }
#trading-events .trading-event strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#trading-events .trading-event span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#trading-confirm-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
#trading-confirm-dialog::backdrop { background: rgb(16 42 67 / 45%); }
#trading-confirm-text { white-space: pre-line; line-height: 1.7; }
.trading-empty { margin: 8px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .trading-setup-grid { grid-template-columns: minmax(0, 1fr); } .trading-controls .button { flex: 1 1 130px; } }

@media (min-width: 1001px) { #trading-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

#trading-cash-note { display: grid; gap: 8px; margin-top: 10px; }
#trading-cash-note .button { justify-self: start; }

.trading-state-badge.is-running { color: #166534; background: #dcfce7; }
.trading-state-badge.is-stopped { color: #991b1b; background: #fee2e2; }

.trading-heading-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
