/* PEBBLE-P5-AUTONOMY-GRADUATION — trend card styles, brand-tokens only.
 *
 * No hardcoded hex anywhere in this file (canon:
 * feedback-brand-tokens-only-no-hardcoded-hex.md). Every color is a
 * var(--gl-*) lookup so a venture restyle changes the whole card without
 * touching this CSS.
 *
 * The card lives inside a .right-context-rail-panel-body; sizing is fluid
 * with the panel. The headline (.pebble-report-card-headline) is the
 * largest visual element — the calendar-first lens is enforced visually
 * here as well as in the renderer's element ordering.
 */

.pebble-report-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius, 8px);
  font-family: var(--gl-font);
  color: var(--gl-text);
}

.pebble-report-card-empty {
  font-size: 12px;
  color: var(--gl-text-3);
  font-style: italic;
}

.pebble-report-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.pebble-report-card-wordmark {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gl-brand-strong);
}

.pebble-report-card-window {
  font-size: 11px;
  color: var(--gl-text-3);
}

/* HEADLINE — calendar-first. Largest line in the card by design; the
 * dispatch's acceptance gate requires this to be the visual lead. */
.pebble-report-card-headline {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--gl-text);
}

.pebble-report-card-headline[data-lens="calendar-first"] {
  border-left: 3px solid var(--gl-brand);
  padding: 2px 0 2px 10px;
}

.pebble-report-card-primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: var(--gl-brand-soft);
  border-radius: var(--gl-radius-sm, 6px);
  padding: 10px 12px;
}

.pebble-report-card-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pebble-report-card-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gl-brand-strong);
  font-feature-settings: "tnum" 1;
}

.pebble-report-card-metric-label {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--gl-brand-grey);
  text-transform: uppercase;
}

/* Secondary (email) line — explicitly subordinate to the calendar metrics.
 * Email triage is cognitively invisible; this line exists so Paul knows the
 * work happened, not so it competes for attention. */
.pebble-report-card-secondary {
  margin: 0;
  font-size: 12px;
  color: var(--gl-text-2);
}

.pebble-report-card-secondary[data-lens="email-secondary"] {
  border-left: 2px solid var(--gl-border-strong);
  padding-left: 8px;
}

.pebble-report-card-sparkline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pebble-report-card-sparkline-label {
  font-size: 10px;
  color: var(--gl-text-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pebble-report-card-sparkline-svg {
  flex: 0 0 auto;
  color: var(--gl-brand);
}

.pebble-report-card-abilities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--gl-border);
  padding-top: 10px;
}

.pebble-report-card-abilities-head {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gl-brand-grey);
  font-weight: 600;
}

.pebble-report-card-ability {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: var(--gl-surface-2);
  border-radius: var(--gl-radius-sm, 6px);
}

.pebble-report-card-ability-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gl-text);
}

.pebble-report-card-ability-toggle {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--gl-brand-strong);
  background: var(--gl-surface);
  border: 1px solid var(--gl-border-strong);
  border-radius: var(--gl-radius-sm, 6px);
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
}

.pebble-report-card-ability-toggle:hover:not(:disabled) {
  background: var(--gl-brand-soft);
  border-color: var(--gl-brand);
}

.pebble-report-card-ability-toggle:disabled {
  opacity: 0.6;
  cursor: progress;
}
