.cycle-card {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 10px;
  background: var(--card, #fff);
  color: var(--text, #1a1f2b);
}
.cycle-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cycle-card h2 { font-size: 16px; font-weight: 650; }
.cycle-updated, .cycle-card p, .cycle-card small { color: var(--muted, #697083); font-size: 12px; }
.cycle-card p { margin: 8px 0 12px; }
.cycle-card small { display: block; margin-top: 4px; }
.cycle-table { overflow-x: auto; }
.cycle-table table { width: 100%; border-collapse: collapse; min-width: 600px; }
.cycle-table table + table { margin-top: 12px; }
.cycle-table caption { margin: 0 0 6px; text-align: left; font-weight: 650; }
.cycle-table thead { background: #f7f8fb; }
.cycle-table td, .cycle-table th { padding: 9px 10px; text-align: left; white-space: nowrap; }
.cycle-table tbody tr + tr > * { border-top: 1px solid var(--border, #e4e7ec); }
.cycle-table tbody th { font-weight: 550; }
.cycle-state { display: block; font-size: 12px; }
.cycle-state + .cycle-state { margin-top: 4px; }
.cycle-pending, .cycle-quiet, .cycle-closed { color: var(--muted, #697083); }
.cycle-unavailable { color: #946019; }
.cycle-top, .cycle-bottom_withdrawn { color: #a53c2b; }
.cycle-bottom, .cycle-top_withdrawn { color: #16745a; }
.cycle-position-changed { color: #a53c2b; font-weight: 650; }

/* The three markets share a column grid while keeping their own trading dates. */
#cycle-signals .cycle-table :is(.cycle-desktop, .cycle-mobile),
#cycle-history .cycle-table :is(.cycle-turn-history, .cycle-tier-guide) { table-layout: fixed; }
#cycle-signals .cycle-desktop thead th:first-child,
#cycle-history :is(.cycle-turn-history, .cycle-tier-guide) thead th:first-child { width: 23%; }
#cycle-signals .cycle-mobile thead th:first-child { width: 56px; }
#cycle-signals .cycle-table :is(th, td):not(:first-child) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#cycle-signals .cycle-table th,
#cycle-history .cycle-tier-guide :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
#cycle-history .cycle-tier-guide thead th:nth-child(2) { width: 27%; }
#cycle-history .cycle-target-guide { margin-top: 15px; }
.cycle-tier-targets { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  #cycle-signals .cycle-table .cycle-mobile td { width: auto; }
  #cycle-history .cycle-tier-guide tbody td { grid-column: 1 / -1; }
}
