body {
  font-family: Arial, sans-serif;
  background: #f7f8fa;
  padding: 24px;
  color: #111827;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 360px;
}

.controls label {
  align-self: flex-start;
  font-size: 13px;
  font-weight: bold;
  color: #374151;
}

#symbolsInput {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

h1 {
  margin: 0 0 6px 0;
}

.meta {
  color: #4b5563;
  line-height: 1.45;
}

button {
  background: #1f2937;
  color: white;
  border: 0;
  padding: 11px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

button.secondary {
  background: #2563eb;
}

.controls button {
  width: 100%;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#status {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 8px;
  display: inline-block;
  min-height: 18px;
}

.info {
  background: #e0f2fe;
  color: #075985;
}

.success {
  background: #dcfce7;
  color: #166534;
}

.error-box {
  background: #fee2e2;
  color: #991b1b;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

th {
  background: #1f2937;
  color: white;
  position: sticky;
  top: 0;
  cursor: help;
}

tr:hover {
  background: #f1f5f9;
}

.buy,
.watch,
.error,
.no-trade,
.action-buy,
.action-sell,
.action-hold,
.regime-bull,
.regime-bear,
.regime-sideways {
  cursor: help;
}

.action-buy,
.buy {
  color: #15803d;
  font-weight: bold;
}

.action-sell {
  color: #b91c1c;
  font-weight: bold;
}

.action-hold,
.watch {
  color: #6b7280;
  font-weight: bold;
}

.error {
  color: #b91c1c;
  font-weight: bold;
}

.no-trade {
  color: #4b5563;
  font-weight: bold;
}

.regime-bull {
  color: #15803d;
  font-weight: 600;
}

.regime-bear {
  color: #b91c1c;
  font-weight: 600;
}

.regime-sideways {
  color: #b45309;
  font-weight: 600;
}

.strong-score {
  font-weight: bold;
}

.aligned,
.not-aligned {
  cursor: help;
}

.aligned {
  color: #15803d;
  font-weight: 600;
}

.not-aligned {
  color: #b91c1c;
  font-weight: 600;
}

td.prompt-cell {
  white-space: normal;
  min-width: 320px;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}
