.trading-schedule { padding: 16px; }
.trading-schedule .card-header { margin: -16px -16px 12px; }
.trading-schedule fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.trading-schedule .form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.trading-schedule .form-group { min-width: 0; }
.trading-schedule .form-hint { margin-top: 5px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.trading-schedule .flex { display: flex; gap: 8px; align-items: center; }
.trading-schedule .flex select { flex: 1; min-width: 0; }
.trading-schedule button:disabled { opacity: .45; cursor: not-allowed; }
.trading-schedule [data-schedule-current] { font-size: .85rem; margin: 12px 0; line-height: 1.5; }
.trading-schedule .schedule-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.trading-schedule .schedule-check input { width: auto; }
.schedule-rows { display: grid; gap: 8px; margin: 8px 0; }
.schedule-row { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.schedule-row label { display: grid; gap: 4px; flex: 1 1 130px; min-width: 0; font-size: .8rem; }
.schedule-row input, .schedule-row select { width: 100%; min-width: 0; box-sizing: border-box; }
.schedule-row .schedule-remove { flex: 0 0 auto; margin-bottom: 2px; }
.trading-schedule textarea { width: 100%; box-sizing: border-box; }
.schedule-preview { padding: 12px; border: 1px solid var(--border, #454b57); border-radius: 6px; font-size: .85rem; white-space: pre-line; }
.schedule-status-card { max-width: 1400px; margin-inline: auto; padding: 12px 16px; }
.schedule-status-card [data-schedule-summary] { margin-top: 6px; }
.schedule-status-card [data-schedule-next], .schedule-status-card [data-schedule-worker] { margin-top: 4px; }
.schedule-error { color: var(--danger, #ef6977); }
@media (max-width: 550px) {
  .trading-schedule .form-row { grid-template-columns: minmax(0, 1fr); }
  .schedule-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .schedule-row label:first-child, .schedule-row[data-schedule-blackout] label { grid-column: 1 / -1; }
  .schedule-row .schedule-remove { grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }
}
