* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  text-decoration: none;

  --radius: 5px;
  --padding: 0;
  --margin: 0;
  --width: 100%;
  --height: 100%;
  --border: 1px solid transparent;
  --line-height: 1.2em;

  &::-webkit-scrollbar {
    width: 5px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);;
    border-radius: 20px;

    &:hover {
      background-color: rgba(0, 0, 0, 0.5);
    }
  }

  scrollbar-width: thin;
  scrollbar-color: #A1A1A1 transparent;
}


h1:focus {
  outline: none;
}

html {
  font-size: 16px;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

ul, ol{
  list-style: none;
}

/* ==> initial load <== */
.app-loading {
  background-image: url("/media/images/login-background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-body);
  font-size: 18px;

  & > .app-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px 40px;
    gap: 12px;
    width: 450px;
    height: auto;
    border-radius: 5px;
    background: var(--color-white-primary);
    font-weight: 600;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);

    & > .loading-bar {
      width: 100%;
      height: 12px;
      background: var(--color-blue-light);
      overflow: hidden;
      position: relative;

      & > .loading-bar-progress {
        height: 100%;
        width: 40%;
        background: var(--color-blue-primary);
        animation: loadingBarAnim 1.5s ease-in-out infinite;
      }
    }
  }
}

@keyframes loadingBarAnim {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(20%); }
  100% { transform: translateX(100%); }
}


/* ── Material Symbols sizing ────────────────────────── */
.material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* ── Modal overlay ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modal-fadeIn 0.15s ease;
}

@keyframes modal-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Spinner (replaces MudProgressCircular) ─────────── */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--blueLight);
  border-top-color: var(--bluePrimary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-white {
  border-color: rgba(255,255,255,0.3);
  border-top-color: #fff;
}

.spinner-violet {
  border-color: rgba(240,80,64,0.2);
  border-top-color: var(--violetPrimary);
}

.spinner-primary {
  border-color: var(--blueLight);
  border-top-color: var(--bluePrimary);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border-radius: var(--radiusFull);
  font-family: var(--fontInstrumentSans);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-filled {
  background: var(--violetPrimary);
  color: var(--whitePrimary);
  border-color: var(--violetPrimary);
}
.btn-filled:hover:not(:disabled) { background: var(--violetHover); border-color: var(--violetHover); }

.btn-filled-red {
  background: var(--violetPrimary);
  color: var(--whitePrimary);
  border-color: var(--violetPrimary);
}
.btn-filled-red:hover:not(:disabled) { background: var(--violetHover); border-color: var(--violetHover); }

.btn-filled-green {
  background: var(--greenPrimary);
  color: var(--whitePrimary);
  border-color: var(--greenPrimary);
}

.btn-outlined {
  background: transparent;
  color: var(--textSecondary);
  border-color: #C7C7C7;
  font-weight: 600;
}
.btn-outlined:hover:not(:disabled) { border-color: var(--borderColorHover); background: var(--whiteSecondary); }

.btn-outlined-red {
  background: transparent;
  color: var(--violetPrimary);
  border-color: var(--violetPrimary);
  font-weight: 600;
}
.btn-outlined-red:hover:not(:disabled) { background: var(--violetLight); }

.btn-filled-blue {
  background: var(--bluePrimary);
  color: var(--whitePrimary);
  border-color: var(--bluePrimary);
}
.btn-filled-blue:hover:not(:disabled) { background: var(--blueHover); border-color: var(--blueHover); }

.btn-text {
  background: transparent;
  color: var(--greyPrimary);
  border-color: transparent;
  padding-left: 6px;
  padding-right: 6px;
}
.btn-text:hover:not(:disabled) { background: var(--whiteSecondary); }

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.btn .material-symbols-outlined {
  font-size: 17px;
}

/* ── Icon Button ─────────────────────────────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--greyPrimary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.icon-btn:hover { background: var(--whiteSecondary); color: var(--blackPrimary); }

.icon-btn .material-symbols-outlined {
  font-size: 20px;
}

/* ── Chip (replaces MudChip) ─────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radiusMd);
  font-family: var(--fontInstrumentSans);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Form Fields ─────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0em;
}

.form-input,
.form-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #f8f8f8;
  border: 1px solid var(--color-border-divider);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.form-input:hover,
.form-select:hover { border-color: #9a9a9a; }

.form-input:focus,
.form-select:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(71, 127, 236, 0.12); }

.form-input::placeholder { color: var(--greyUltraLight); }

.form-input-error { border-color: var(--redPrimary) !important; }
.form-input-error:focus { box-shadow: 0 0 0 3px rgba(232,53,53,0.12) !important; }

.form-error {
  font-family: var(--fontInstrumentSans);
  font-size: 12px;
  color: var(--redPrimary);
}

.form-input-wrap {
  position: relative;
}

.form-input-addon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--greyLight);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.form-input-addon:hover { color: var(--greyPrimary); }
.form-input-wrap .form-input { padding-right: 38px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A9890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

/* ── Overlay (replaces MudOverlay) ───────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1200;
}

/* ── Data Table (replaces MudTable) ─────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fontSora);
}

.data-table thead th {
  background: var(--whiteSecondary);
  border-bottom: 1px solid var(--borderColor);
  padding: 10px 18px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--greyLight);
  font-family: var(--fontInstrumentSans);
  text-align: left;
  white-space: nowrap;
  user-select: none;
}

.data-table thead th.sortable {
  cursor: pointer;
  transition: color 0.12s ease;
}
.data-table thead th.sortable:hover { color: var(--greyPrimary); }

.data-table thead th .sort-icon {
  font-size: 14px;
  vertical-align: middle;
  opacity: 0.5;
}
.data-table thead th.sort-active .sort-icon { opacity: 1; color: var(--bluePrimary); }
.data-table thead th.sort-active { color: var(--bluePrimary); }

.data-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--borderColor);
  font-size: 13.5px;
  font-family: var(--fontInstrumentSans);
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr.row-clickable td { cursor: pointer; transition: all ease 0.2s; }
.data-table tbody tr.row-clickable:hover td { background: var(--color-white-secondary); }


/* ── Page headers ────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}

.page-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Stat cards ──────────────────────────────────────── */
.stat-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.stat-card:hover {
  box-shadow: var(--shadowMd) !important;
  transform: translateY(-2px);
}

.stat-icon-wrap {
  width: 42px; height: 42px;
  border-radius: var(--radiusMd);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Section headers ─────────────────────────────────── */
.card-section-title {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.1px;
}

/* ── Note cards ──────────────────────────────────────── */
.note-card {
  padding: 14px 16px;
  background: var(--whitePrimary);
  border-radius: var(--radiusSm);
  border: 1px solid var(--borderColor);
  border-left: 3px solid var(--bluePrimary);
}

.note-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* ── Detail cards ────────────────────────────────────── */
.detail-card {
  padding: 22px 24px;
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusSm);
  background: var(--whitePrimary);
  box-shadow: var(--shadowXs);
}

/* ── Brain: animations ───────────────────────────────── */
@keyframes brainFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes personaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 168, 74, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(22, 168, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 168, 74, 0); }
}

/* ── Brain: header ───────────────────────────────────── */
.brain-page-header {
  position: relative;
  padding: 24px 28px;
  background: var(--whitePrimary);
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusSm);
  overflow: hidden;
  animation: brainFadeUp 0.3s ease both;
  box-shadow: var(--shadowXs);
}
.brain-page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--borderColor) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.45;
  pointer-events: none;
}
.brain-page-header::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--violetPrimary) 0%, var(--violetDark) 100%);
}
.brain-page-header-content { position: relative; z-index: 1; }

/* ── Brain: active pulse dot ─────────────────────────── */
.persona-active-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--greenSuccess);
  flex-shrink: 0;
  animation: personaPulse 2.4s ease infinite;
}

/* ── Lead async activity indicators ───────────────────── */
.lead-async-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--borderColor);
  min-width: 0;
}
.lead-async-indicator + .lead-async-indicator {
  margin-top: 5px;
  padding-top: 0;
  border-top: 0;
}
.lead-async-indicator__spinner {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid currentcolor;
  border-top-color: transparent;
  color: var(--greyLight);
  flex-shrink: 0;
  animation: lead-async-spin 0.9s linear infinite;
}
.lead-async-indicator__icon {
  font-size: 11px;
  color: var(--greyLight);
  flex-shrink: 0;
}
.lead-async-indicator__label {
  font-family: var(--fontInstrumentSans);
  font-size: 11px;
  color: var(--greyLight);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lead-async-banner {
  --lead-async-accent: var(--violetPrimary);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--lead-async-accent) 6%, transparent), rgba(255,255,255,0.92));
  border: 1px solid color-mix(in srgb, var(--lead-async-accent) 22%, transparent);
  border-radius: var(--radiusSm);
  animation: lead-async-border 1.8s ease-in-out infinite;
}
.lead-async-banner--matching {
  --lead-async-accent: var(--matchingPrimary);
}
.lead-async-banner__spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--greyPrimary);
  border-top-color: transparent;
  flex-shrink: 0;
  animation: lead-async-spin 0.8s linear infinite;
}
.lead-async-banner__icon {
  font-size: 15px;
  color: var(--greyPrimary);
  flex-shrink: 0;
}
.lead-async-banner__label {
  font-family: var(--fontNotoSans);
  font-size: 13px;
  color: var(--greyDark);
}
.lead-async-banner__count {
  font-family: var(--fontNotoSans);
  font-size: 11px;
  color: var(--greyLight);
  margin-left: auto;
  white-space: nowrap;
}
@keyframes lead-async-border {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%       { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lead-async-accent) 8%, transparent); }
}
@keyframes lead-async-spin {
  to { transform: rotate(360deg); }
}

/* ── Persona card ────────────────────────────────────── */
.persona-card {
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusSm);
  background: var(--whitePrimary);
  overflow: hidden;
  animation: brainFadeUp 0.38s ease both;
  box-shadow: var(--shadowXs);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.persona-card:hover {
  box-shadow: var(--shadowMd);
  transform: translateY(-1px);
}
.persona-card-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--borderColor);
  display: flex;
  align-items: center;
  gap: 16px;
}
.persona-avatar {
  width: 50px; height: 50px;
  border-radius: var(--radiusMd);
  background: linear-gradient(135deg, var(--violetPrimary) 0%, #D83A2C 55%, var(--violetDark) 100%);
  box-shadow: 0 4px 14px rgba(240, 80, 64, 0.28);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--fontFunnelDisplay);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}
.persona-card-body { padding: 18px 22px; }
.persona-signals-grid { display: flex; flex-direction: column; gap: 6px; }

/* ── Signal buttons ──────────────────────────────────── */
.signal-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--whitePrimary);
  border: 1px solid var(--borderColor);
  border-left: 3px solid transparent;
  border-radius: var(--radiusSm);
  cursor: pointer;
  color: var(--greyDark);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  text-align: left;
}
.signal-btn:hover {
  border-left-color: var(--bluePrimary);
  background: #FAFBFF;
  box-shadow: var(--shadowSm);
}
.signal-btn-icon {
  width: 34px; height: 34px;
  border-radius: var(--radiusSm);
  background: var(--blueLight);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.signal-btn:hover .signal-btn-icon { background: rgba(59, 122, 232, 0.16); }
.signal-btn-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.signal-btn-name {
  font-size: 13px; font-weight: 600;
  color: var(--blackPrimary); font-family: var(--fontInstrumentSans);
  letter-spacing: -0.1px;
}
.signal-btn-desc { font-size: 11.5px; color: var(--greyPrimary); font-family: var(--fontInstrumentSans); }
.signal-btn-chevron { color: var(--greyUltraLight); font-size: 17px !important; flex-shrink: 0; transition: color 0.15s ease; }
.signal-btn:hover .signal-btn-chevron { color: var(--bluePrimary); }
.signal-default-badge {
  font-family: var(--fontInstrumentSans); font-size: 10.5px; font-weight: 600;
  color: var(--greenPrimary); background: var(--greenLight);
  padding: 2px 8px; border-radius: var(--radiusFull); flex-shrink: 0; letter-spacing: 0.02em;
}

/* ── Instruction blocks ──────────────────────────────── */
.instruction-block { border: 1px solid var(--borderColor); border-radius: var(--radiusSm); overflow: hidden; animation: brainFadeUp 0.3s ease both; }
.instruction-block-header { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--whiteSecondary); border-bottom: 1px solid var(--borderColor); }
.role-badge { font-family: 'Courier New', Courier, monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 4px; }
.role-badge-system    { background: var(--blueLight);  color: var(--bluePrimary); }
.role-badge-user      { background: var(--greenLight); color: var(--greenPrimary); }
.role-badge-assistant { background: var(--pinkLight);  color: var(--brownLight); }
.role-badge-default   { background: var(--whiteTertiary); color: var(--greyMedium); }
.instruction-textarea {
  width: 100%; min-height: 80px; padding: 14px 16px;
  background: var(--whitePrimary); font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px; line-height: 1.75; color: var(--greyDark);
  border: none; outline: none; resize: none; overflow: hidden;
  box-sizing: border-box; display: block;
}
.instruction-textarea:disabled { background: var(--whiteSecondary); color: var(--greyPrimary); cursor: default; }
.instruction-textarea:focus { background: #FDFEFF; }

/* ── Memo textarea ───────────────────────────────────── */
.memo-label {
  display: block; font-family: var(--fontInstrumentSans); font-size: 11.5px; font-weight: 600;
  color: var(--greyPrimary); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px;
}
.memo-textarea {
  width: 100%; min-height: 80px; padding: 12px 14px;
  background: var(--whitePrimary); font-family: var(--fontInstrumentSans);
  font-size: 13.5px; line-height: 1.6; color: var(--greyDark);
  border: 1px solid var(--borderColor); border-radius: var(--radiusSm);
  outline: none; resize: none; overflow-y: auto;
  max-height: clamp(120px, 80vh, 1200px); box-sizing: border-box; display: block;
  transition: border-color 0.15s ease;
}
.memo-textarea:focus { border-color: var(--bluePrimary); }
.memo-textarea::placeholder { color: var(--greyUltraLight); }

/* ── Timeline ────────────────────────────────────────── */
.timeline-stem { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 10px; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
  border: 2px solid; box-shadow: 0 0 0 2px var(--whitePrimary);
}
.timeline-dot-note                  { background: var(--violetPrimary); border-color: var(--violetPrimary); }
.timeline-dot-checkpoint-first      { background: var(--bluePrimary);   border-color: var(--bluePrimary); }
.timeline-dot-checkpoint            { background: var(--whitePrimary);  border-color: var(--bluePrimary); }
.timeline-dot-journey-ended         { background: var(--greyUltraLight); border-color: var(--greyUltraLight); }
.timeline-dot-assignment            { background: var(--whitePrimary);  border-color: var(--borderColorHover); }
.timeline-line { width: 1px; flex: 1; min-height: 12px; background: var(--borderColor); margin-top: 4px; }
.timeline-card { padding: 11px 14px; border-radius: var(--radiusSm); border: 1px solid var(--borderColor); border-left: 3px solid; background: var(--whitePrimary); transition: box-shadow 0.15s ease; }
.timeline-card:hover { box-shadow: var(--shadowSm); }
.timeline-card-note                  { border-left-color: var(--violetPrimary); }
.timeline-card-checkpoint-first      { border-left-color: var(--bluePrimary); }
.timeline-card-checkpoint            { border-left-color: var(--blueLight); }
.timeline-card-journey-won           { border-left-color: var(--greenPrimary); }
.timeline-card-journey-lost          { border-left-color: var(--brownLight); }
.timeline-card-assignment            { border-left-color: var(--borderColor); background: var(--whiteSecondary); }
.timeline-event-label { font-family: var(--fontInstrumentSans); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.timeline-label-note                  { color: var(--violetPrimary); }
.timeline-label-checkpoint-first      { color: var(--bluePrimary); }
.timeline-label-checkpoint            { color: var(--bluePrimary); opacity: 0.65; }
.timeline-label-journey-ended         { color: var(--greyLight); }
.timeline-label-assignment            { color: var(--greyLight); }
.timeline-dot-activity                { background: var(--whitePrimary);  border-color: var(--orangePrimary, #e67e22); }
.timeline-dot-activity-completed      { background: var(--greenPrimary);  border-color: var(--greenPrimary); }
.timeline-dot-activity-canceled       { background: var(--whitePrimary);  border-color: var(--borderColorHover); }
.timeline-card-activity               { border-left-color: var(--orangePrimary, #e67e22); }
.timeline-card-activity-completed     { border-left-color: var(--greenPrimary); }
.timeline-card-activity-canceled      { border-left-color: var(--borderColor); background: var(--whiteSecondary); }
.timeline-label-activity              { color: var(--orangePrimary, #e67e22); }
.timeline-label-activity-completed    { color: var(--greenPrimary); }
.timeline-label-activity-canceled     { color: var(--greyLight); }
.lead-detail-timeline__activity-note  { font-size: 12px; color: var(--greyPrimary); font-style: italic; margin-top: 4px; }
.timeline-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.timeline-time { font-family: var(--fontInstrumentSans); font-size: 11px; color: var(--greyLight); }
.timeline-author { font-family: var(--fontInstrumentSans); font-size: 11px; color: var(--greyPrimary); font-weight: 500; }
.timeline-body { font-family: var(--fontInstrumentSans); font-size: 13.5px; color: var(--greyDark); line-height: 1.55; }
.timeline-body p { margin: 0 0 6px 0; }
.timeline-body p:last-child { margin-bottom: 0; }
.timeline-body h1, .timeline-body h2, .timeline-body h3,
.timeline-body h4, .timeline-body h5, .timeline-body h6 { font-size: 13.5px; font-weight: 600; margin: 8px 0 2px 0; color: var(--greyDark); }
.timeline-body h1:first-child, .timeline-body h2:first-child, .timeline-body h3:first-child { margin-top: 0; }
.timeline-body ul, .timeline-body ol { margin: 4px 0 6px 0; padding-left: 18px; }
.timeline-body li { margin-bottom: 2px; }
.timeline-body a { color: var(--bluePrimary); text-decoration: none; }
.timeline-body a:hover { text-decoration: underline; }
.timeline-body strong { font-weight: 600; }
.timeline-body code { font-family: monospace; font-size: 12px; background: var(--greyUltraLight); padding: 1px 4px; border-radius: 3px; }
.timeline-title { font-family: var(--fontInstrumentSans); font-size: 13.5px; font-weight: 600; color: var(--greyDark); }
.timeline-sub { font-family: var(--fontInstrumentSans); font-size: 12px; color: var(--greyPrimary); }

/* ── Notifications ───────────────────────────────────── */
@keyframes notif-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-item {
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--borderColor);
  background: transparent;
  transition: background 0.12s ease;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--whiteSecondary); }
.notif-item--unread { background: rgba(240, 80, 64, 0.08); border-left: 3px solid var(--violetPrimary); }
.notif-item--unread:hover { background: rgba(240, 80, 64, 0.13); }

/* ── Toast notifications ─────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radiusSm);
  background: var(--whitePrimary);
  border: 1px solid var(--borderColor);
  box-shadow: var(--shadowLg);
  font-family: var(--fontInstrumentSans);
  font-size: 13.5px;
  color: var(--blackPrimary);
  pointer-events: all;
  animation: toast-in 0.2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-text { flex: 1; }

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--greyLight);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.toast-close:hover { color: var(--greyPrimary); }

.toast-icon { font-size: 18px !important; flex-shrink: 0; }

.toast-success { border-left: 3px solid var(--greenPrimary); }
.toast-success .toast-icon { color: var(--greenPrimary); }

.toast-error { border-left: 3px solid var(--redPrimary); }
.toast-error .toast-icon { color: var(--redPrimary); }

.toast-warning { border-left: 3px solid var(--brownLight); }
.toast-warning .toast-icon { color: var(--brownLight); }

.toast-info { border-left: 3px solid var(--bluePrimary); }
.toast-info .toast-icon { color: var(--bluePrimary); }

/* ── User avatar ─────────────────────────────────────── */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bluePrimary) 0%, var(--blueSecondary) 100%);
  color: #fff;
  font-family: var(--fontNotoSans);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Board card persona-analyzing pulse ──────────────── */
.zm-card-analyzing {
  animation: zm-card-pulse 1.4s ease-in-out infinite;
}

@keyframes zm-card-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--violetPrimary) 28%, transparent), var(--shadowXs);
  }
  50% {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--violetPrimary) 68%, transparent),
                0 0 0 4px color-mix(in srgb, var(--violetPrimary) 10%, transparent),
                var(--shadowXs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zm-card-analyzing { animation: none; }
}

/* ========== Report Pages ========== */

.report-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  max-width: 1200px;
}

.report-page__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-page__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--textPrimary);
}

.report-page__subtitle {
  font-size: 13px;
  color: var(--textSecondary);
}

.report-page__filters {
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.report-filter-row--sources {
  gap: 24px;
}

.report-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.report-filter-field--sources {
  flex: 1;
  min-width: 240px;
}

.report-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--textSecondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-filter-input {
  height: 38px;
  border: 1px solid #D0D0D0;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--textPrimary);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
}

.report-filter-input:focus {
  border-color: var(--bluePrimary);
}

.report-sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.report-source-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--textPrimary);
  cursor: pointer;
}

.report-source-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--bluePrimary);
}

.report-filter-actions {
  display: flex;
  gap: 10px;
}

.report-btn {
  height: 38px;
  border-radius: 6px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.report-btn--primary {
  background-color: var(--bluePrimary);
  color: var(--white);
}

.report-btn--primary:hover:not(:disabled) {
  background-color: var(--blueSecondary);
}

.report-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.report-btn--secondary {
  background-color: transparent;
  color: var(--textSecondary);
  border: 1px solid #C7C7C7;
}

.report-btn--secondary:hover {
  background-color: #F5F5F5;
}

.report-page__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-state {
  padding: 40px;
  text-align: center;
  color: var(--textSecondary);
  font-size: 14px;
}

.report-state--loading {
  color: var(--bluePrimary);
}

.report-state--error {
  color: #E53935;
}

.report-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.report-summary__item {
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.report-summary__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--textPrimary);
  line-height: 1;
}

.report-summary__label {
  font-size: 12px;
  color: var(--textSecondary);
}

.report-chart-card {
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-chart-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--textPrimary);
}

/* Report table (consultants) */

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report-table__th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--textSecondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #E8E8E8;
}

.report-table__th--rank,
.report-table__th--number {
  text-align: center;
}

.report-table__row {
  transition: background-color 0.15s ease;
}

.report-table__row:hover {
  background-color: #F9F9F9;
}

.report-table__row--alt {
  background-color: #FAFAFA;
}

.report-table__td {
  padding: 12px 14px;
  color: var(--textPrimary);
  border-bottom: 1px solid #F0F0F0;
}

.report-table__td--rank {
  text-align: center;
  font-weight: 700;
  color: var(--textSecondary);
  font-size: 13px;
  width: 48px;
}

.report-table__td--name {
  font-weight: 600;
}

.report-table__td--number {
  text-align: center;
}

.report-table__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.report-table__badge--green {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.report-table__row--total {
  background-color: #F0F4FA;
  border-top: 2px solid #D0D8E8;
}

.report-table__row--total:hover {
  background-color: #E8EFF8;
}

.report-table__td--total {
  font-weight: 700;
  color: var(--textPrimary);
}

/* Report leads table */

.report-leads-table-wrap {
  overflow-x: auto;
}

.report-leads-table {
  min-width: 800px;
}

.report-leads-table__title {
  max-width: 260px;
}

.report-leads-table__link {
  color: #006bb7;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 260px;
}

.report-leads-table__link:hover {
  text-decoration: underline;
}

.report-leads-table__date {
  white-space: nowrap;
  color: var(--textSecondary);
  font-size: 13px;
}

.report-leads-table__none {
  color: #C0C0C0;
}

.report-leads-table__journeys {
  min-width: 180px;
}

.report-leads-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.report-leads-badge--yes {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.report-leads-badge--no {
  background-color: #F5F5F5;
  color: #9E9E9E;
}

.report-leads-journey {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 2px;
}

.report-leads-journey__type {
  color: var(--textPrimary);
  font-weight: 500;
}

.report-leads-journey__sep {
  color: #C0C0C0;
}

.report-leads-journey__stage {
  color: var(--textSecondary);
}

.report-leads-status {
  font-size: 12px;
  color: var(--textSecondary);
}

/* ── Unified Report Page (rp) ───────────────────────────────────────── */

.rp {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Filters */
.rp__filters {
  background: var(--white);
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rp__filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rp__filter-row--pills {
  align-items: flex-start;
  gap: 10px;
}

.rp__filter-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--textSecondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-width: 56px;
}

.rp__filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rp__filter-input {
  height: 34px;
  border: 1px solid #D4D4D4;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--textPrimary);
  background: var(--whiteSecondary);
  outline: none;
  transition: border-color 0.2s ease;
}

.rp__filter-input:focus {
  border-color: var(--bluePrimary);
}

.rp__filter-select {
  padding-right: 28px;
  cursor: pointer;
}

.rp__filter-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Buttons */
.rp__btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.rp__btn--primary {
  background-color: var(--bluePrimary);
  color: #fff;
}

.rp__btn--primary:hover:not(:disabled) {
  background-color: var(--blueSecondary);
}

.rp__btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rp__btn--ghost {
  background-color: transparent;
  color: var(--textSecondary);
  border: 1px solid #D4D4D4;
}

.rp__btn--ghost:hover {
  background-color: var(--whiteSecondary);
}

/* Pills */
.rp__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rp__pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #D4D4D4;
  background: transparent;
  color: var(--textSecondary);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.rp__pill:hover {
  border-color: var(--bluePrimary);
  color: var(--bluePrimary);
}

.rp__pill--on {
  background-color: var(--bluePrimary);
  border-color: var(--bluePrimary);
  color: #fff;
  font-weight: 600;
}

.rp__pill--on:hover {
  background-color: var(--blueSecondary);
  border-color: var(--blueSecondary);
  color: #fff;
}

/* State messages */
.rp__state {
  padding: 32px;
  text-align: center;
  color: var(--textSecondary);
  font-family: var(--font-body);
  font-size: 14px;
}

.rp__state--error {
  color: #C62828;
}

/* KPI strip */
.rp__kpi-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rp__kpi {
  flex: 1;
  min-width: 120px;
  background: var(--white);
  border: 1px solid #EBEBEB;
  border-top: 3px solid transparent;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: inherit;
  text-align: left;
  cursor: default;
}

.rp__kpi-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--rp-kpi-accent, var(--textPrimary));
  line-height: 1;
}

.rp__kpi--won           { --rp-kpi-accent: var(--reportWon); }
.rp__kpi--journey       { --rp-kpi-accent: var(--reportJourney); }
.rp__kpi--pending       { --rp-kpi-accent: var(--reportPending); }
.rp__kpi--disqualified  { --rp-kpi-accent: var(--reportDisqualified); }
.rp__kpi--lost          { --rp-kpi-accent: var(--reportLost); }

.rp__kpi--won,
.rp__kpi--journey,
.rp__kpi--pending,
.rp__kpi--disqualified,
.rp__kpi--lost {
  border-top-color: var(--rp-kpi-accent);
}

.rp__kpi-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--textSecondary);
}

.rp__kpi--clickable {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rp__kpi--clickable:hover {
  border-color: var(--bluePrimary);
  box-shadow: 0 2px 8px rgba(0, 119, 209, 0.12);
}

.rp__kpi--active {
  border-color: var(--bluePrimary);
  box-shadow: 0 2px 8px rgba(0, 119, 209, 0.15);
}

/* Cards */
.rp__card {
  background: var(--white);
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
}

.rp__card--table {
  padding: 0;
}

.rp__card-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--textPrimary);
  margin: 0 0 16px;
}

/* Tabs */
.rp__tabs {
  display: flex;
  border-bottom: 1px solid #EBEBEB;
  padding: 0 20px;
}

.rp__tab {
  height: 44px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--textSecondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: all 0.15s ease;
}

.rp__tab:hover {
  color: var(--textPrimary);
}

.rp__tab--active {
  color: var(--bluePrimary);
  border-bottom-color: var(--bluePrimary);
  font-weight: 600;
}

/* Table */
.rp__table-wrap {
  overflow-x: auto;
}

.rp__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-family: var(--font-body);
  font-size: 13px;
}

.rp__th {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--textSecondary);
  background: var(--whiteTertiary);
  border-bottom: 1px solid #EBEBEB;
  white-space: nowrap;
}

.rp__tr {
  transition: background-color 0.12s ease;
}

.rp__tr:hover {
  background-color: #F5F8FF;
}

.rp__tr--alt {
  background-color: #FAFAFA;
}

.rp__td {
  padding: 11px 16px;
  color: var(--textPrimary);
  border-bottom: 1px solid #F0F0F0;
  vertical-align: middle;
}

.rp__td--title {
  max-width: 280px;
}

.rp__td--secondary {
  color: var(--textSecondary);
  font-size: 12px;
}

.rp__td--nowrap {
  white-space: nowrap;
}

.rp__td--journeys {
  min-width: 200px;
}

.rp__td--clickable {
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.rp__td--clickable:hover {
  color: var(--bluePrimary);
  background-color: #EFF6FF;
}

.rp__td--filtered {
  color: var(--bluePrimary) !important;
  font-weight: 600;
}

.rp__lead-link {
  color: #006bb7;
  text-decoration: none;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.rp__lead-link:hover {
  text-decoration: underline;
}

.rp__lead-name {
  display: block;
  font-size: 11px;
  color: var(--textSecondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

/* Status badges */
.rp__status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.rp__status--pending      { background: var(--reportPendingLight); color: var(--reportPending); }
.rp__status--qualified    { background: #E8F5E9; color: #2E7D32; }
.rp__status--disqualified { background: var(--reportDisqualifiedLight); color: var(--reportDisqualified); }
.rp__status--lost         { background: var(--reportLostLight); color: var(--reportLost); }

/* Journey chips */
.rp__journey {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
  background: #F0F4FA;
  border-radius: 4px;
  padding: 2px 8px;
}

.rp__journey--won  { background: #E8F5E9; }
.rp__journey--lost { background: #F3E5F5; }

.rp__journey-type {
  font-weight: 600;
  color: var(--textPrimary);
}

.rp__journey-type--clickable {
  cursor: pointer;
  transition: color 0.12s ease;
}

.rp__journey-type--clickable:hover {
  color: var(--bluePrimary);
}

.rp__journey-sep {
  color: #C0C0C0;
  font-size: 10px;
}

.rp__journey-stage {
  color: var(--textSecondary);
}

.rp__none {
  color: #D0D0D0;
}

/* Content area */
@keyframes rp-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rp__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rp__data-anim {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rp__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rp__toolbar-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp__toolbar-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--textPrimary);
}

.rp__toolbar-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--textSecondary);
}

.rp__export-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--bluePrimary);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--bluePrimary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.rp__export-btn:hover:not(:disabled) {
  background: var(--blueSecondary);
  border-color: var(--blueSecondary);
}

.rp__export-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.rp__export-btn .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.rp__data-anim .rp__kpi:nth-child(1) { animation: rp-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.00s both; }
.rp__data-anim .rp__kpi:nth-child(2) { animation: rp-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both; }
.rp__data-anim .rp__kpi:nth-child(3) { animation: rp-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
.rp__data-anim .rp__kpi:nth-child(4) { animation: rp-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
.rp__data-anim .rp__kpi:nth-child(5) { animation: rp-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }
.rp__data-anim .rp__kpi:nth-child(6) { animation: rp-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both; }

.rp__data-anim > .rp__card:not(.rp__card--table) {
  animation: rp-rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.rp__data-anim > .rp__card--table {
  animation: rp-rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

@media (max-width: 640px) {
  .rp {
    padding: 12px;
  }

  .rp__filter-actions {
    margin-left: 0;
    width: 100%;
  }

  .rp__kpi {
    min-width: 100px;
  }

  .rp__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rp__export-btn {
    justify-content: center;
    width: 100%;
  }
}
