/* Calls (Standalone) — Daily Call Activity v2. Same dark palette + portrait
   band as PSR-v2, but a wider 3-card grid (Talk Time / Number of Calls /
   Meaningful Conversations) and color-accented values per metric matching
   the existing Superset chart's look. Most classes are reused verbatim from
   psr.css to keep parity; calls-specific overrides live at the bottom. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: rgb(20, 20, 20);
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
/* Altair wordmark watermark — fixed behind everything, very subtle so the
   glass-card backdrop-filter has something to read against without the
   logo competing with content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/altair-wordmark.png") center / min(92%, 1900px) no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

#root { min-height: 100vh; position: relative; z-index: 1; }

/* ---- Nav (server-injected) ---- */
.psr-nav {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.psr-nav-link {
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}
.psr-nav-link:hover { background: rgba(255, 253, 208, 0.08); color: #FFFDD0; }
.psr-nav-link.active { background: #1985a1; color: #fff; }

/* ---- Content shell ---- */
.psr-content {
  padding: 20px 20px 60px;
  max-width: 1900px;
  margin: 0 auto;
}

/* ---- Filter bar ---- */
.psr-filters {
  background: linear-gradient(135deg, rgba(50,65,88,0.50) 0%, rgba(28,32,44,0.50) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.psr-filters-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}
.psr-filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.psr-filters-sep { color: #94a3b8; }
.psr-date-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #f1f5f9;
  font-family: inherit;
  color-scheme: dark;
}
.psr-date-input:focus {
  outline: none;
  border-color: rgba(255, 253, 208, 0.4);
  background: rgba(255, 253, 208, 0.04);
}
.psr-apply-btn {
  background: #FFFDD0;
  color: #1C202C;
  border: 0;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}
.psr-apply-btn:hover:not(:disabled) { transform: translateY(-1px); }
.psr-apply-btn:disabled { opacity: 0.6; cursor: wait; }

.psr-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.psr-preset-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #cbd5e1;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.psr-preset-btn:hover:not(:disabled) {
  background: rgba(255, 253, 208, 0.06);
  border-color: rgba(255, 253, 208, 0.25);
  color: #FFFDD0;
}

/* ---- Error / empty states ---- */
.psr-error {
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.30);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}
.psr-empty-page {
  text-align: center;
  color: #94a3b8;
  padding: 60px 20px;
  font-size: 14px;
}
.psr-empty {
  text-align: center;
  color: #94a3b8;
  padding: 30px 10px;
  font-size: 13px;
}

/* ---- LO list ---- */
.psr-lo-list { display: flex; flex-direction: column; gap: 18px; }
.psr-lo-list--loading { opacity: 0.4; pointer-events: none; transition: opacity 0.2s; }

.psr-lo {
  /* Translucent so the wordmark behind shows through. backdrop-filter blurs
     and saturates whatever is underneath so the row reads as a frosted glass
     panel floating over the brand mark. */
  background: linear-gradient(135deg, rgba(50, 65, 88, 0.55) 0%, rgba(28, 32, 44, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.psr-lo-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 253, 208, 0.10);
}
.psr-lo-bar {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FFFDD0, rgba(255, 253, 208, 0.3));
}
.psr-lo-name {
  font-size: 18px;
  font-weight: 700;
  color: #FFFDD0;
  letter-spacing: 0.5px;
  margin-right: auto;
}
.psr-lo-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.3px;
}
.psr-lo-meta strong { color: #f1f5f9; font-weight: 600; }

/* ---- Portrait ---- */
.psr-portrait {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #FFFDD0 0%, #b6a268 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 253, 208, 0.30);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.psr-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The team's marketing headshots are full-body portraits with the face
     in the top ~25% of the frame, so default center-cropping cuts off
     above the chin. Favoring the top of the image keeps the face in the
     48px circle for every LO. */
  object-position: center 18%;
  display: block;
}
.psr-portrait-initials {
  position: absolute;
  font-size: 16px;
  font-weight: 800;
  color: #1C202C;
  letter-spacing: 0.5px;
  z-index: 1;
}
.psr-portrait:has(img:not([style*="display: none"])) .psr-portrait-initials,
.psr-portrait img:not([style*="display: none"]) ~ .psr-portrait-initials {
  display: none;
}
/* Fallback when img errors out (we add psr-portrait--fallback via JS). */
.psr-portrait--fallback .psr-portrait-initials { display: inline; }

/* ---- KPI grid ---- */
.psr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .psr-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .psr-grid { grid-template-columns: repeat(2, 1fr); } }

.psr-kpi {
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
  padding: 16px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
  font: inherit;
}
.psr-kpi:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(255, 253, 208, 0.12), 0 0 0 1px rgba(255, 253, 208, 0.15);
  border-color: rgba(255, 253, 208, 0.2);
  background: rgba(255, 255, 255, 0.07);
}
.psr-kpi--accent {
  background: linear-gradient(135deg, rgba(255, 253, 208, 0.10) 0%, rgba(255, 253, 208, 0.03) 100%);
  border: 1px solid rgba(255, 253, 208, 0.20);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 253, 208, 0.08);
  cursor: default;
}
.psr-kpi--accent:hover { transform: none; }
.psr-kpi--accent .psr-kpi-value { color: #FFFDD0; font-size: 24px; font-weight: 800; }

.psr-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.5px;
}
.psr-kpi-label {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ---- Rating pill ---- */
.psr-rating-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---- Modal ---- */
.psr-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.psr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.psr-modal {
  position: relative;
  background: linear-gradient(135deg, #324158 0%, #1C202C 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 253, 208, 0.15);
  border-radius: 16px;
  width: 95vw;
  max-width: 1300px;
  max-height: 85vh;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  color: #e2e8f0;
}
.psr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.psr-modal-header > span {
  font-size: 15px;
  font-weight: 700;
  color: #FFFDD0;
  letter-spacing: 0.3px;
}
.psr-modal-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.psr-csv-btn {
  background: #FFFDD0;
  color: #1C202C;
  border: 0;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.psr-csv-btn:hover { opacity: 0.85; }
.psr-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 22px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
  font-family: inherit;
}
.psr-close:hover { background: rgba(255, 255, 255, 0.08); color: #f1f5f9; }
.psr-modal-body {
  padding: 14px 22px 22px;
  overflow-y: auto;
  flex: 1;
}

/* ---- Rating filter pill bar ---- */
.psr-rt-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.psr-rt-btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}
.psr-rt-btn:hover { background: rgba(255, 253, 208, 0.05); }

.psr-row-meta {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

/* ---- Table ---- */
.psr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.psr-table thead tr { background: rgba(255, 253, 208, 0.06); }
.psr-table th {
  padding: 11px 10px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #FFFDD0;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid rgba(255, 253, 208, 0.12);
}
.psr-table td {
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  white-space: nowrap;
}
.psr-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.psr-table a { color: #FFFDD0; text-decoration: none; }
.psr-table a:hover { opacity: 0.8; }
.psr-mono { font-family: monospace; font-size: 12px; }
.psr-bold { font-weight: 600; }
.psr-dim { color: #666; }
.psr-dim-sm { color: #94a3b8; font-size: 11px; }
.psr-adj { color: #f59e0b; font-size: 11px; }
.psr-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.psr-tag-out { background: rgba(255, 253, 208, 0.12); color: #FFFDD0; }
.psr-tag-in  { background: rgba(34, 197, 94, 0.20);  color: #34d399; }
.psr-tag-other { background: rgba(153, 153, 153, 0.20); color: #999; }

/* ---- Pagination ---- */
.psr-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  justify-content: center;
  align-items: center;
}
.psr-pg-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  min-width: 34px;
  font-family: inherit;
  transition: all 0.15s;
}
.psr-pg-btn:hover:not(:disabled) {
  background: rgba(255, 253, 208, 0.08);
  color: #FFFDD0;
}
.psr-pg-btn.active {
  background: #FFFDD0;
  color: #1C202C;
  border-color: #FFFDD0;
}
.psr-pg-btn:disabled { opacity: 0.4; cursor: default; }
.psr-pg-ellipsis { color: #94a3b8; padding: 0 4px; font-size: 11px; }

/* =============================================================================
   Calls-specific overrides — 3-card grid + per-metric accent colors.
   ========================================================================== */
.calls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .calls-grid { grid-template-columns: 1fr; } }

/* Value colors match the existing DCA Superset chart's palette. */
.psr-kpi-value.calls-blue  { color: #38bdf8; font-size: 26px; }
.psr-kpi-value.calls-amber { color: #fbbf24; font-size: 26px; }
.psr-kpi-value.calls-green { color: #34d399; font-size: 26px; }

/* Meaningful Convos popup: subject column gets a soft max-width and
   ellipsis so long subjects don't blow out the row height. */
.psr-table td.calls-subject {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
  font-size: 11px;
}

/* Live-refresh badge in the filter bar header. */
.psr-filters-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.calls-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #94a3b8;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.20);
  border-radius: 12px;
  padding: 3px 10px;
}
.calls-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
  animation: calls-live-pulse 1.6s ease-in-out infinite;
}
.calls-live--busy .calls-live-dot { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,0.6); }
@keyframes calls-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* =============================================================================
   LO Dashboard-specific layout — many small KPI tiles per LO row, organized
   into labelled sections. Filter bar grows to fit the 3-column controls.
   ========================================================================== */

.lo-section { margin-bottom: 16px; }
.lo-section-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 8px;
}

.lo-grid {
  display: grid;
  grid-template-columns: repeat(var(--lo-cards, 5), minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1200px) { .lo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .lo-grid { grid-template-columns: repeat(2, 1fr); } }

.lo-kpi {
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
  font: inherit;
}
.lo-kpi:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 8px 24px rgba(255, 253, 208, 0.10), 0 0 0 1px rgba(255, 253, 208, 0.15);
  border-color: rgba(255, 253, 208, 0.20);
  background: rgba(255, 255, 255, 0.07);
}
.lo-kpi--green {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
}
.lo-kpi--green:hover:not(:disabled) {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.40);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.16), 0 0 0 1px rgba(52, 211, 153, 0.30);
}
.lo-kpi--na { cursor: default; opacity: 0.5; }
.lo-kpi--na:hover { transform: none; box-shadow: 0 4px 14px rgba(0,0,0,0.20); border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }

.lo-kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lo-kpi--green .lo-kpi-value { color: #34d399; }
.lo-kpi-label {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}
.lo-kpi-subline {
  font-size: 9px;
  color: #cbd5e1;
  margin-top: 4px;
  opacity: 0.75;
}

/* Disbursed-mode banner */
.lo-mode-banner {
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.30);
  color: #fde68a;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 12px;
}
.lo-mode-banner strong { color: #fcd34d; font-weight: 700; }

/* Filter bar grid — 3 columns + an Apply column on wide screens. */
.lo-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr auto;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1100px) { .lo-filter-grid { grid-template-columns: 1fr 1fr; } .lo-filter-col--apply { grid-column: 1 / -1; } }
@media (max-width: 700px)  { .lo-filter-grid { grid-template-columns: 1fr; } }

.lo-filter-col { min-width: 0; }
.lo-filter-col--lo { min-width: 0; }
.lo-filter-col--apply { display: flex; align-items: center; padding-top: 22px; }
.lo-filter-sublabel {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.lo-clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #cbd5e1;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}
.lo-clear-btn:hover { background: rgba(255, 253, 208, 0.06); color: #FFFDD0; }
.lo-filter-help {
  font-size: 10px;
  color: #64748b;
  margin-top: 6px;
}

/* LO multi-select chip row */
.lo-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  min-height: 38px;
}
.lo-multi-chip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #94a3b8;
  border-radius: 14px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.lo-multi-chip.active {
  background: rgba(255, 253, 208, 0.10);
  border-color: rgba(255, 253, 208, 0.40);
  color: #FFFDD0;
}
.lo-multi-chip:hover { background: rgba(255, 253, 208, 0.06); color: #FFFDD0; }

/* Tighter card padding for the LO row (lots of sections to fit). */
.psr-lo { padding: 18px 22px; }
.psr-lo-header { margin-bottom: 14px; padding-bottom: 12px; }
   Skeleton state — shown while the React app awaits its /api/X/data fetch.
   Same classes are reused in calls-app and lo-app (CSS files are seeded
   from this one). Animation is a quiet shimmer, not a flashy spinner.
   ========================================================================== */

.psr-skeleton-row { opacity: 0.85; }
.psr-skel {
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: psr-skel-shimmer 1.4s ease-in-out infinite;
}
@keyframes psr-skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.psr-skel--portrait { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.psr-skel--name     { width: 180px; height: 18px; }
.psr-skel--section-label { width: 110px; height: 10px; margin-bottom: 8px; }
.psr-skel--value    { width: 60%; height: 22px; margin: 0 auto; }
.psr-skel--value-sm { width: 50%; height: 18px; margin: 0 auto; }
.psr-skel--label    { width: 70%; height: 9px; margin: 6px auto 0; }
.psr-skel--pill     { width: 50%; height: 16px; margin: 8px auto 0; border-radius: 20px; }

.psr-kpi--skel,
.lo-kpi--skel {
  cursor: default;
  pointer-events: none;
}
.psr-kpi--skel:hover,
.lo-kpi--skel:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
}
