/* =====================================================================
   VYVE Command Centre — Components
   Page heroes, cards, stats (with size hierarchy), badges, lists,
   kanban, forms, buttons, tabs, empty states, pillar accents.
   ===================================================================== */

/* =====================================================================
   Page frame & hero
   ===================================================================== */
.page { display: none; }
.page.active { display: block; }

/* Page hero — the proper intro block every page can use */
.page-hero {
  margin-bottom: 28px;
  padding-bottom: 4px;
}
.page-hero .eyebrow {
  font-size: var(--fs-xxs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.page-hero .page-title {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
  margin: 0;
}
.page-hero .page-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 560px;
  line-height: 1.55;
}
.page-hero .hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Legacy page-header (kept for unmigrated pages) */
.page-header { margin-bottom: 24px; }
.page-header h1 {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
  margin: 0 0 6px 0;
}
.page-header p {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
  line-height: 1.5;
}
.page-header .hdr-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Standalone title classes */
.page-title {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
}
.page-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 560px;
  line-height: 1.55;
}

/* =====================================================================
   Cards
   ===================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-fast);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card-flat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: none;
}
.card-elevated {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.card-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.card-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: var(--fw-normal);
}
.card-body {
  padding: 0;
  margin-top: 12px;
}

/* =====================================================================
   Grids
   ===================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

/* =====================================================================
   Stats — with typographic hierarchy (hero / medium / micro)
   The trick: not every stat is equally important. The hub previously
   treated them all the same size (28px). Authentic enterprise design
   uses size to signal importance.
   ===================================================================== */

/* Hero stat — for the single most important number on a page */
.stat-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.stat-hero .stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: 16px;
}
.stat-hero .stat-num {
  font-family: var(--font-head);
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 0.95;
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.stat-hero .stat-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.4;
}

/* Default stat (most pages) — medium */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.stat:hover { box-shadow: var(--shadow-sm); }
.stat[data-route] { cursor: pointer; }
.stat[data-route]:hover { transform: translateY(-1px); }

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: 10px;
}
.stat-value,
.stat-num {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.stat-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.45;
}
.stat-sub.ok   { color: var(--success); }
.stat-sub.warn { color: var(--warning); }
.stat-sub.bad  { color: var(--danger); }

/* Mini stat — for inline metric chips */
.stat-mini {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semi);
  color: var(--text);
  letter-spacing: var(--ls-tight);
}

/* Pillar-tinted stat variants — Physical/Mental/Social */
.stat.pillar-physical { border-top: 3px solid var(--pillar-physical); }
.stat.pillar-mental   { border-top: 3px solid var(--pillar-mental); }
.stat.pillar-social   { border-top: 3px solid var(--pillar-social); }

/* =====================================================================
   Pillar accents — the three-pillar visual system from the marketing site
   ===================================================================== */
.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xxs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.pillar-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.pillar-tag.physical { background: var(--pillar-physical-pale); color: #8a6512; }
.pillar-tag.physical::before { background: var(--pillar-physical); }
.pillar-tag.mental   { background: var(--pillar-mental-pale);   color: #246464; }
.pillar-tag.mental::before { background: var(--pillar-mental); }
.pillar-tag.social   { background: var(--pillar-social-pale);   color: #8c4a3a; }
.pillar-tag.social::before { background: var(--pillar-social); }

/* Pillar section heading — used as section dividers on Dashboard etc */
.pillar-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
}
.pillar-heading .pillar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pillar-heading.physical .pillar-dot { background: var(--pillar-physical); }
.pillar-heading.mental   .pillar-dot { background: var(--pillar-mental); }
.pillar-heading.social   .pillar-dot { background: var(--pillar-social); }
.pillar-heading h2 {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.pillar-heading .pillar-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-left: auto;
}

/* =====================================================================
   Badges & pills
   ===================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-snug);
}
.badge-green { background: var(--success-pale); color: #246B33; }
.badge-amber { background: var(--warning-pale); color: #8A5E1F; }
.badge-red   { background: var(--danger-pale);  color: #843830; }
.badge-blue  { background: var(--info-pale);    color: #2A5DA0; }
.badge-teal  { background: var(--vyve-teal-pale); color: #195454; }
.badge-gold  { background: var(--vyve-gold-pale); color: #75591A; }
.badge-grey  { background: var(--surface-2);    color: var(--text-muted); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-snug);
}

/* =====================================================================
   Tables
   ===================================================================== */
.tbl-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
}
table.tbl th {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
table.tbl td {
  font-size: var(--fs-base);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: var(--bg-alt); }

.tbl-filters {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
}
.tbl-filters .search { flex: 1; min-width: 220px; position: relative; }
.tbl-filters .search input {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-base);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.tbl-filters .search input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
  background: var(--surface);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.pager .info { font-size: var(--fs-sm); color: var(--text-muted); }
.pager .btns { display: flex; gap: 8px; }
.pager button {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.pager button:hover:not(:disabled) { background: var(--surface-2); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* =====================================================================
   Kanban
   ===================================================================== */
.kanban {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.kanban-col {
  min-width: 280px;
  max-width: 300px;
  flex-shrink: 0;
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md) var(--r-md) 0 0;
  border-bottom: none;
}
.kanban-col-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}
.kanban-count {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  background: var(--border);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.kanban-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 10px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.kanban-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.kanban-card .kc-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.kanban-card .kc-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* =====================================================================
   Forms
   ===================================================================== */
.form-row {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 700px) {
  .form-row.cols-2,
  .form-row.cols-3 { grid-template-columns: 1fr; }
}
.form-group label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-snug);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-instant), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { box-shadow: var(--shadow-focus); }

.btn-primary {
  background: var(--vyve-teal);
  color: var(--on-accent);
  border-color: var(--vyve-teal);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-gold {
  background: var(--vyve-gold);
  color: var(--vyve-dark);
  border-color: var(--vyve-gold);
}
.btn-gold:hover { filter: brightness(.95); }

.btn-ghost {
  border-color: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--fs-sm);
}
.btn-lg {
  padding: 12px 22px;
  font-size: var(--fs-md);
}

/* =====================================================================
   Tabs
   ===================================================================== */
.tab-bar {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 3px;
  margin-bottom: 22px;
  width: fit-content;
}
.tab-btn {
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: var(--fw-semi);
  box-shadow: var(--shadow-xs);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =====================================================================
   List rows (used by Brief, Dashboard, Intel, Competitors)
   ===================================================================== */
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-base);
}
.list-row:last-child { border-bottom: 0; }
.list-row[data-route],
.list-row[data-id] {
  cursor: pointer;
  margin: 0 -6px;
  padding: 12px 6px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.list-row[data-route]:hover,
.list-row[data-id]:hover { background: var(--bg-alt); }
.list-row-main { flex: 1; min-width: 0; }
.list-row-title {
  font-weight: var(--fw-medium);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 3px;
}

/* =====================================================================
   Empty state
   ===================================================================== */
.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty .icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: .4;
  display: block;
}
.empty h3 {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  color: var(--text);
  margin-bottom: 6px;
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-tight);
}
.empty p {
  font-size: var(--fs-sm);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.55;
}

/* =====================================================================
   Spinner & skeleton
   ===================================================================== */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(27,120,120,.2);
  border-top-color: var(--vyve-teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skel {
  display: inline-block;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: skel 1.4s infinite;
  border-radius: var(--r-sm);
  height: 14px;
  min-width: 80px;
}
@keyframes skel { to { background-position: -200% 0; } }

/* =====================================================================
   Error banner
   ===================================================================== */
.error-banner {
  background: var(--danger-pale);
  border: 1px solid rgba(201,83,74,.3);
  color: #843830;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  margin-bottom: 18px;
}

/* =====================================================================
   Drop zone
   ===================================================================== */
.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 44px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--vyve-teal-pale);
}
.drop-zone strong { color: var(--vyve-teal); }
.drop-zone p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-top: 8px;
}

/* =====================================================================
   Chart wrap
   ===================================================================== */
.chart-wrap    { position: relative; height: 280px; }
.chart-wrap-sm { position: relative; height: 180px; }

/* =====================================================================
   Search box
   ===================================================================== */
.search {
  position: relative;
}
.search input {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-base);
  font-family: inherit;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.search input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
  background: var(--surface);
}
.search input::placeholder { color: var(--text-dim); }

/* =====================================================================
   Stats row (used by Brief/Dashboard for KPI strips)
   ===================================================================== */
.stats-row {
  display: grid;
  gap: 14px;
}

/* =====================================================================
   Section divider — subtle horizontal break with optional label
   ===================================================================== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 16px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =====================================================================
   Action Plans page (specific component refinements)
   ===================================================================== */
.ap-member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.ap-member-card:hover { box-shadow: var(--shadow-sm); }
.ap-member-card.open { border-color: var(--accent); }

.ap-member-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast);
}
.ap-member-head:hover { background: var(--bg-alt); }

.ap-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--vyve-teal), var(--vyve-teal-light));
}

/* Pillar-tinted avatars — used for member cards based on department */
.ap-avatar.physical { background: linear-gradient(135deg, var(--pillar-physical), #E5B454); }
.ap-avatar.mental   { background: linear-gradient(135deg, var(--pillar-mental), #6BC2C2); }
.ap-avatar.social   { background: linear-gradient(135deg, var(--pillar-social), #E59A89); }

.ap-progress-track {
  width: 120px;
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.ap-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vyve-teal), var(--vyve-teal-light));
  border-radius: var(--r-pill);
  transition: width var(--t-base);
}

.ap-action-row {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.ap-action-row:hover { background: var(--bg-alt); }

.ap-status-pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xxs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  min-width: 90px;
  text-align: center;
}

.ap-filter {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}
.ap-filter:hover { color: var(--text); }
.ap-filter.active {
  background: var(--vyve-teal-pale);
  color: var(--vyve-teal);
  border-color: var(--vyve-teal-pale);
  font-weight: var(--fw-semi);
}

/* =====================================================================
   Responsive — breakpoint stack
   ===================================================================== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-hero .page-title,
  .page-header h1,
  .page-title { font-size: var(--fs-2xl); }
  .stat-hero { padding: 24px; }
  .stat-hero .stat-num { font-size: var(--fs-4xl); }
}

@media (max-width: 720px) {
  .ap-member-head {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 16px !important;
    min-height: 56px;
  }
  .ap-member-head > div:last-child {
    width: 100%;
    justify-content: space-between !important;
  }
  .ap-progress-track { display: none; }
  .ap-action-row {
    flex-wrap: wrap !important;
    padding: 14px 16px !important;
  }
  .ap-status-pill {
    min-width: auto !important;
    padding: 5px 11px !important;
    font-size: var(--fs-xs) !important;
  }
  .ap-avatar { width: 40px !important; height: 40px !important; }
  .ap-filter { padding: 7px 13px !important; }
  .list-row { flex-wrap: wrap; gap: 10px; }
  .list-row-title { white-space: normal; }
  .ap-edit-form .form-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 720px) {
  #page-settings .tab-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: 100%;
  }
  #page-settings .tab-btn { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .stats-row { grid-template-columns: 1fr !important; }
  .stat { padding: 16px; }
  .stat-hero .stat-num { font-size: var(--fs-3xl); }
  .page-hero .page-title,
  .page-title { font-size: var(--fs-xl); }
  .page-hero .page-sub { font-size: var(--fs-base); }
}
