/* Prediction-market dashboard (/predict) */

#predict-container {
  padding: 0 1rem 1.5rem;
}

/* Two-column grid; collapse to one column < 1100px */
.predict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 1100px) {
  .predict-grid {
    grid-template-columns: 1fr;
  }
}

.predict-section {
  display: flex;
  flex-direction: column;
  min-width: 0;  /* let grid item shrink */
}

.predict-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.25rem 0.25rem 0.5rem;
}

.predict-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Market-cell layout: question + optional subtitle + ext-link icon */
.tokens-table .token-name-cell .market-q {
  display: inline;
  font-weight: 500;
  color: var(--color-text);
  white-space: normal;
  word-break: break-word;
}

.tokens-table .token-name-cell .market-sub {
  display: block;
  margin-top: 2px;
}

.tokens-table .token-name-cell .market-ext-link {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85em;
  color: var(--color-text-muted);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 120ms ease, color 120ms ease;
}

.tokens-table .token-name-cell .market-ext-link:hover {
  opacity: 1;
  color: var(--color-positive);
}

/* Wider min-width on the market column so tables don't squish */
.predict-section .tokens-table th.left-aligned,
.predict-section .tokens-table td.token-name-cell {
  min-width: 240px;
  max-width: 360px;
}

.predict-footer {
  padding: 0.75rem 0.25rem 0;
  text-align: right;
}

.predict-footer code {
  background: var(--color-surface-2, rgba(255, 255, 255, 0.04));
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.95em;
}
