/* ATLAS V6 — Generic w424-view shell augmentation (one sheet, ~15 views)
 *
 * V5→V6 lift 2026-06-23. The w424-view family is the shared page wrapper used
 * by ALL the matrix's remaining V5-only weekly-polish views: Integrations,
 * Reports, Documents, Marketing, Campaigns, Recruiting, Team, Market,
 * Analytics, Goals, Settings, SEO, Property Search, R&D / Intelligence,
 * Showings, and any future view that adopts the same wrapper.
 *
 * Strategy: target the SHARED w424-* classes with V6 vocabulary at
 * specificity (0,1,0), so per-view #view-X .w424-title overrides (0,1,1+)
 * still win for views that need bespoke treatment. This sheet lifts the
 * baseline executive surface to V6 vocab — boardroom-readable H1, cream
 * card chrome, semantic chip palette — without per-view edits.
 *
 * Loads BEFORE per-view v6-*-aug.css sheets in index.html head so per-view
 * augments still win on collisions. Dark-mode blocks omitted per
 * atlas-dashboard hard rule #4 (V6 single-theme).
 * ─────────────────────────────────────────────────────────────────────── */

/* ── Page shell (frame + body) ────────────────────────────────────────── */
.w424-view {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
}
.w424-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  flex: 1;
  min-height: 0;
}
.w424-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.w424-head > div:first-child { min-width: 0; }
.w424-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.w424-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  padding-right: 4px;
}

/* ── Headline treatment — V6 H1 + sub from .w424-title + .w424-sub ────── */
.w424-title {
  font: 850 28px/1.18 var(--font-display, "Aptos Display", Inter);
  color: var(--ink, #101722);
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  text-transform: none;
  max-width: 920px;
}
.w424-sub {
  font: 400 14px/1.45 var(--font-ui, Inter);
  color: var(--muted, #647184);
  margin: 0;
  max-width: 820px;
}

/* If the view uses .w424-eyebrow as a precursor, give it V6 treatment */
.w424-eyebrow {
  display: inline-block;
  font: 900 11px/1 var(--font-ui, Inter);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted, #647184);
  margin: 0 0 6px;
}

/* ── Card / panel chrome (cream surface + subtle border + soft shadow) ─ */
.w424-card,
.w424-panel,
.w424-section {
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 20px;
  box-shadow: var(--soft-shadow, 0 10px 24px rgba(29,24,14,.07));
}
.w424-card-head,
.w424-panel-head,
.w424-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border2, #ebe7de);
  margin-bottom: 12px;
}
.w424-card-title,
.w424-panel-title,
.w424-section-title {
  font: 800 13px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink, #101722);
}

/* ── Chip palette (semantic, used by many views) ──────────────────────── */
.w424-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 10px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 999px);
  background: var(--bg3, #ebe7de);
  color: var(--muted, #647184);
  white-space: nowrap;
}
.w424-chip-good   { background: var(--good-soft, #dff2e7); color: #17623a; }
.w424-chip-warn   { background: var(--warn-soft, #fbecd0); color: #7a4a0a; }
.w424-chip-bad    { background: var(--bad-soft,  #fde1ea); color: #9c1844; }
.w424-chip-blue   { background: var(--blue-soft, #e0e9fb); color: #17468e; }
.w424-chip-muted  { background: var(--bg3, #ebe7de);        color: var(--muted, #647184); }

/* ── Buttons (V6 vocabulary at the w424 generic layer) ────────────────── */
.w424-btn {
  appearance: none;
  padding: 8px 14px;
  border-radius: var(--radius, 8px);
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  color: var(--ink, #101722);
  font: 600 13px/1 var(--font-ui, Inter);
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, border-color .15s ease;
}
.w424-btn:hover {
  background: var(--bg2, #fbfaf7);
  border-color: var(--line-strong, #c4b9a8);
  transform: translateY(-1px);
}
.w424-btn-primary,
.w424-btn-gold {
  background: var(--gold, #c18a25);
  border-color: var(--gold, #c18a25);
  color: #fff;
}
.w424-btn-primary:hover,
.w424-btn-gold:hover { background: #a8761e; border-color: #a8761e; }
.w424-btn-ink {
  background: var(--ink, #101722);
  border-color: var(--ink, #101722);
  color: #fff;
}
.w424-btn-ink:hover { background: #1d2630; border-color: #1d2630; }

/* ── Empty state — generic for any w424-view ──────────────────────────── */
.w424-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  color: var(--muted, #647184);
  font: 500 13px var(--font-ui, Inter);
  text-align: center;
  background: var(--surface, #fffdf8);
  border: 1px dashed var(--line, #d7d0c3);
  border-radius: var(--radius-lg, 12px);
}

/* ── Summary strip primitive — repeating value+label cards ────────────── */
.w424-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.w424-strip-cell {
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  border-radius: var(--radius, 8px);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.w424-strip-label {
  font: 700 11px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted, #647184);
}
.w424-strip-value {
  font: 850 26px/1.1 var(--font-display, "Aptos Display", Inter);
  color: var(--ink, #101722);
  font-variant-numeric: tabular-nums;
}
.w424-strip-value.is-good  { color: var(--good, #2e8b57); }
.w424-strip-value.is-warn  { color: var(--gold, #c18a25); }
.w424-strip-value.is-error { color: var(--bad, #ca3f6b); }

/* ── Card grid primitive (auto-fill responsive) ───────────────────────── */
.w424-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* ── Table primitive ──────────────────────────────────────────────────── */
.w424-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.w424-table thead th {
  text-align: left;
  font: 800 11px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted, #647184);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line, #d7d0c3);
  background: transparent;
}
.w424-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border2, #ebe7de);
  font: 500 12px var(--font-ui, Inter);
  color: var(--ink, #101722);
}
.w424-table tbody tr:nth-child(even) { background: var(--bg2, #fbfaf7); }
.w424-table tbody tr:hover { background: var(--warn-soft, #fbecd0); }

/* ── Tab/segment primitive ────────────────────────────────────────────── */
.w424-tabs {
  display: flex;
  gap: 6px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line, #d7d0c3);
}
.w424-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #647184);
  font: 600 12px/1 var(--font-ui, Inter);
  padding: 8px 14px;
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.w424-tab:hover { color: var(--ink, #101722); background: var(--bg2, #fbfaf7); }
.w424-tab.is-active,
.w424-tab[aria-selected="true"] {
  background: var(--ink, #101722);
  color: #fff;
}
