/* Dashboard styles. Brand tokens and primitives come from the shared
 * stylesheet at /shared/oddly-brand.css; this file holds dashboard-only
 * overrides (queue cards, plan-status indicators, layout for the
 * mobile-first owner UI). */

@import url("/shared/oddly-brand.css?v=52.9");

main { padding: 16px; max-width: 720px; margin: 0 auto; }
@media (min-width: 600px) { main { padding: 24px; } }

h2 { font-size: 18px; margin: 24px 0 10px; letter-spacing: -0.3px; font-weight: 700; }
h2:first-child { margin-top: 0; }

/* Override .card padding for the dense queue feed. */
.card {
  padding: 14px 16px;
  margin-bottom: 12px;
}
@media (min-width: 600px) { .card { padding: 18px 20px; } }

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 4px 0;
}
.row .label { color: var(--ink-mute); font-size: 14px; }
.row .value { font-weight: 600; color: var(--ink); }

/* Queue priority colours. These are data colours (red/violet), not brand. */
.priority-money_at_risk { color: var(--neg); font-weight: 700; }
.priority-opportunity   { color: var(--brand); font-weight: 700; }
.priority-maintenance   { color: var(--ink-soft); font-weight: 600; }

/* Queue tags reuse the .tag primitive from oddly-brand.css. Add the colour
 * mapping for the three priority states. */
.tag.money_at_risk { background: var(--neg-soft); color: var(--neg); }
.tag.opportunity   { background: var(--accent-soft); color: var(--brand); }
.tag.maintenance   { background: var(--pos-soft); color: var(--pos); }

.summary { font-size: 16px; color: var(--ink); margin: 6px 0 8px; line-height: 1.5; }
.subline { font-size: 12px; color: var(--ink-mute); }
.muted   { color: var(--ink-mute); font-size: 12px; }

/* Build 30: empty-state primitive. Centred icon + body + optional CTA.
 * Used across overview, queue, feedback, digests, errors, connections. */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  gap: 16px;
  color: var(--ink-mute);
}
.empty-state svg { width: 48px; height: 48px; opacity: 0.32; color: #2c7873; }
.empty-state .es-body { font-size: 16px; color: var(--ink-soft); line-height: 1.5; max-width: 36ch; }
.empty-state .es-cta {
  background: #2c7873; color: #fafaf7;
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: background 120ms ease;
}
.empty-state .es-cta:hover { background: #1f5f5b; color: #fafaf7; text-decoration: none; }

/* Buttons: alias the legacy .btn.primary / .btn.secondary names that the
 * dashboard JS still emits to the canonical brand classes. */
.btn { font-family: inherit; }
.btn.primary   { background: var(--brand); color: var(--ink-on-brand); border-color: var(--brand); padding: 8px 14px; }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); padding: 8px 14px; }
.btn.secondary:hover { border-color: var(--ink); }

.action-row { margin-top: 10px; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 8px; }
.kv .k { color: var(--ink-mute); font-size: 12px; }
.kv .v { font-weight: 600; font-size: 14px; text-align: right; }
