/**
 * FortCyber User Profile v2 — premium dashboard layout.
 * Brand: #954489
 */

/* ── Scope & reset Opigno wrappers ── */
html.fc-user-profile-page,
body.fc-user-profile-page {
  background: var(--fc-bg, #f7f7fa) !important;
}

body.fc-user-profile-page {
  --fc-gap: 20px;
  --fc-navy: #2f3758;
}

body.fc-user-profile-page .dialog-off-canvas-main-canvas,
body.fc-user-profile-page .page-main,
body.fc-user-profile-page .page-main > .container,
body.fc-user-profile-page .page-main > .container > .row,
body.fc-user-profile-page .page-main > .container > .row > [class*="col-"],
body.fc-user-profile-page .page-main .content-box,
body.fc-user-profile-page .page-footer {
  background: transparent !important;
}

body.fc-user-profile-page .dialog-off-canvas-main-canvas .page-main > .container,
html.fc-user-profile-page body.fc-user-profile-page .page-main > .container {
  max-width: var(--fc-layout-width) !important;
  width: 100% !important;
}

html.fc-user-profile-page body.fc-user-profile-page .page-main > .container > .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100% !important;
  overflow: visible;
  width: 100%;
}

body.fc-user-profile-page .page-main,
body.fc-user-profile-page .page-main > .container,
body.fc-user-profile-page .page-main > .container > .row {
  overflow: visible;
}

body.fc-user-profile-page .region-top,
body.fc-user-profile-page .region-top .block-page-title-block {
  max-width: none;
  width: 100%;
}

body.fc-user-profile-page .block-page-title-block,
body.fc-user-profile-page #block-fortcyber-page-title {
  margin-bottom: var(--fc-gap, 20px);
  max-width: none;
  width: 100%;
}

body.fc-user-profile-page .block-page-title-block h1,
body.fc-user-profile-page #block-fortcyber-page-title h1 {
  color: var(--fc-navy, #2f3758);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
}

body.fc-user-profile-page .content-box__title,
body.fc-user-profile-page .content-box__top-section .content-box__title,
body.fc-user-profile-page .page-title {
  display: none !important;
}

body.fc-user-profile-page .page-main .content-box {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0;
  overflow: visible;
  padding: 0;
}

/* ── Design tokens ── */
.fc-profile-page {
  --fc-primary: #954489;
  --fc-primary-hover: #7d3673;
  --fc-primary-soft: rgba(149, 68, 137, 0.12);
  --fc-primary-softer: rgba(149, 68, 137, 0.06);
  --fc-navy: #2f3758;
  --fc-text: #575756;
  --fc-muted: #8a8a8a;
  --fc-border: #e4e6ec;
  --fc-bg: #f7f7fa;
  --fc-white: #fff;
  --fc-radius-lg: 12px;
  --fc-radius-md: 10px;
  --fc-radius-sm: 6px;
  --fc-shadow: 0 4px 24px rgba(47, 55, 88, 0.06);
  --fc-shadow-hover: 0 8px 28px rgba(149, 68, 137, 0.1);
  --fc-success: #2a9d6f;
  --fc-success-bg: rgba(42, 157, 111, 0.12);
  --fc-danger: #d64545;
  --fc-danger-bg: rgba(214, 69, 69, 0.1);
  --fc-neutral-badge: #eef0f4;
  --fc-neutral-text: #6b7280;
  --fc-gap: 20px;

  box-sizing: border-box;
  color: var(--fc-text);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: none;
  padding: 0 0 28px;
  width: 100%;
}

.fc-profile-page,
.fc-profile-page * {
  box-sizing: border-box;
}

/* ── Page title (Drupal block — jeden nagłówek h1) ── */
/* ── Card base ── */
.fc-card {
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow);
  margin-bottom: var(--fc-gap);
  padding: 24px 28px;
}

.fc-card__title {
  color: var(--fc-navy);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 18px;
}

.fc-empty {
  color: var(--fc-muted);
  font-size: 14px;
  margin: 0;
}

/* ── Buttons ── */
.fc-profile-page .fc-btn,
.fc-profile-page a.fc-btn {
  align-items: center;
  border-radius: var(--fc-radius-sm);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 40px;
  min-width: 120px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.fc-profile-page .fc-btn--primary,
.fc-profile-page a.fc-btn--primary {
  background: var(--fc-primary);
  border: 1px solid var(--fc-primary);
  color: #fff;
}

.fc-profile-page .fc-btn--primary:hover,
.fc-profile-page a.fc-btn--primary:hover,
.fc-profile-page .fc-btn--primary:focus,
.fc-profile-page a.fc-btn--primary:focus {
  background: var(--fc-primary-hover);
  border-color: var(--fc-primary-hover);
  box-shadow: var(--fc-shadow-hover);
  color: #fff;
  text-decoration: none;
}

.fc-profile-page .fc-btn--outline,
.fc-profile-page a.fc-btn--outline {
  background: var(--fc-white);
  border: 1px solid var(--fc-primary);
  color: var(--fc-primary);
}

.fc-profile-page .fc-btn--outline:hover,
.fc-profile-page a.fc-btn--outline:hover,
.fc-profile-page .fc-btn--outline:focus,
.fc-profile-page a.fc-btn--outline:focus {
  background: var(--fc-primary-soft);
  box-shadow: var(--fc-shadow-hover);
  color: var(--fc-primary);
  text-decoration: none;
}

/* ── Profile hero ── */
.fc-profile-hero {
  display: grid;
  gap: 28px;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 320px);
  margin-bottom: var(--fc-gap);
}

.fc-profile-hero__avatar-wrap {
  position: relative;
}

.fc-profile-hero__avatar-decor {
  background:
    radial-gradient(circle at 30% 40%, rgba(149, 68, 137, 0.08) 0 28px, transparent 29px),
    radial-gradient(circle at 70% 60%, rgba(149, 68, 137, 0.05) 0 40px, transparent 41px),
    radial-gradient(circle at 50% 50%, rgba(149, 68, 137, 0.04) 0 60px, transparent 61px);
  border-radius: 50%;
  height: 160px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  z-index: 0;
}

.fc-profile-hero__avatar {
  position: relative;
  z-index: 1;
}

.fc-profile-hero__avatar .profile-info__pic,
.fc-profile-hero__avatar img {
  border: 3px solid var(--fc-white);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(47, 55, 88, 0.1);
  display: block;
  height: 128px;
  margin: 0;
  object-fit: cover;
  width: 128px;
}

.fc-profile-hero__edit-btn {
  align-items: center;
  background: var(--fc-primary);
  border: 2px solid var(--fc-white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(149, 68, 137, 0.35);
  color: #fff;
  display: flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 0;
  text-decoration: none;
  top: 4px;
  width: 34px;
  z-index: 2;
}

.fc-profile-hero__edit-btn:hover {
  background: var(--fc-primary-hover);
  color: #fff;
}

.fc-profile-hero__name {
  color: var(--fc-navy);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.fc-profile-hero__status-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
  max-width: 100%;
  padding: 5px 12px;
  text-transform: uppercase;
}

.fc-profile-hero__status-badge--progress {
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
}

.fc-profile-hero__status-badge--success {
  background: var(--fc-success-bg);
  color: var(--fc-success);
}

.fc-profile-hero__status-badge--warning {
  background: rgba(201, 135, 43, 0.12);
  color: #a66b12;
}

.fc-profile-hero__status-badge--danger {
  background: var(--fc-danger-bg);
  color: var(--fc-danger);
}

.fc-profile-hero__affiliation {
  border-top: 1px solid var(--fc-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
}

.fc-profile-hero__affiliation-item {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.fc-profile-hero__affiliation-item > .fi {
  color: var(--fc-primary);
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 2px;
}

.fc-profile-hero__affiliation-item strong {
  color: var(--fc-navy);
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.fc-profile-hero__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-profile-hero__contact-item {
  align-items: center;
  color: var(--fc-text);
  display: grid;
  font-size: 14px;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
}

.fc-profile-hero__contact-item .fi {
  color: var(--fc-primary);
  flex-shrink: 0;
  font-size: 16px;
  justify-self: center;
  line-height: 1;
  width: 16px;
}

.fc-profile-hero__contact-item a {
  color: var(--fc-text);
  text-decoration: none;
}

.fc-profile-hero__contact-item a:hover {
  color: var(--fc-primary);
}

.fc-profile-hero__meta {
  border-left: 1px solid var(--fc-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 28px;
}

.fc-profile-hero__meta-item {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.fc-profile-hero__meta-item > .fi {
  color: var(--fc-primary);
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 2px;
}

.fc-profile-hero__meta-label {
  color: var(--fc-muted);
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.fc-profile-hero__meta-item strong {
  color: var(--fc-navy);
  font-size: 14px;
  font-weight: 700;
}

.fc-profile-hero__meta-item--mfa .fc-profile-hero__mfa-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.fc-profile-hero__meta-item--mfa .fc-profile-hero__mfa-link:hover {
  color: var(--fc-primary);
  text-decoration: none;
}

.fc-profile-hero__meta-item--mfa-configured > .fi { color: var(--fc-success); }
.fc-profile-hero__meta-item--mfa-not_configured > .fi { color: #c9872b; }

/* ── KPI stats ── */
.fc-stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: var(--fc-gap);
}

@media (min-width: 1180px) {
  .fc-stats-grid--with-risk {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.fc-stat-card {
  align-items: center;
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-md);
  box-shadow: var(--fc-shadow);
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.fc-stat-card--link {
  color: inherit;
  text-decoration: none;
}

.fc-stat-card--link:hover,
.fc-stat-card--link:focus {
  box-shadow: var(--fc-shadow-hover);
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.fc-stat-card:hover {
  box-shadow: var(--fc-shadow-hover);
  transform: translateY(-1px);
}

.fc-stat-card__icon {
  align-items: center;
  background: var(--fc-primary-soft);
  border-radius: var(--fc-radius-sm);
  color: var(--fc-primary);
  display: flex;
  flex-shrink: 0;
  font-size: 22px;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.fc-stat-card__content strong {
  color: var(--fc-navy);
  display: block;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1;
}

.fc-stat-card__content span {
  color: var(--fc-text);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.fc-stat-card--risk .fc-stat-card__content span {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.fc-stat-card__risk-band {
  color: var(--fc-navy);
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
}

.fc-stat-card__risk-meta {
  color: var(--fc-navy);
  opacity: 0.72;
}

.fc-stat-card--risk-low {
  background: var(--fc-success-bg);
  border-color: rgba(42, 157, 111, 0.28);
  box-shadow: var(--fc-shadow), inset 4px 0 0 var(--fc-success);
}

.fc-stat-card--risk-low .fc-stat-card__icon {
  background: #fff;
  color: var(--fc-success);
}

.fc-stat-card--risk-medium {
  background: #fff5e6;
  border-color: rgba(201, 135, 43, 0.3);
  box-shadow: var(--fc-shadow), inset 4px 0 0 #d4a017;
}

.fc-stat-card--risk-medium .fc-stat-card__icon {
  background: #fff;
  color: #c9872b;
}

.fc-stat-card--risk-high {
  background: var(--fc-danger-bg);
  border-color: rgba(214, 69, 69, 0.3);
  box-shadow: var(--fc-shadow), inset 4px 0 0 var(--fc-danger);
}

.fc-stat-card--risk-high .fc-stat-card__icon {
  background: #fff;
  color: var(--fc-danger);
}

.fc-stat-card--link.fc-stat-card--risk-low:hover,
.fc-stat-card--link.fc-stat-card--risk-low:focus {
  background: #dff5eb;
  color: inherit;
}

.fc-stat-card--link.fc-stat-card--risk-medium:hover,
.fc-stat-card--link.fc-stat-card--risk-medium:focus {
  background: #ffeed1;
  color: inherit;
}

.fc-stat-card--link.fc-stat-card--risk-high:hover,
.fc-stat-card--link.fc-stat-card--risk-high:focus {
  background: #fbdde1;
  color: inherit;
}

/* ── Dashboard 3-col ── */
.fc-dashboard-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 1.35fr) minmax(260px, 1fr) minmax(260px, 1fr);
  margin-bottom: var(--fc-gap);
}

.fc-dashboard-grid .fc-progress-card {
  min-width: 0;
}

.fc-dashboard-grid .fc-card {
  margin-bottom: 0;
  min-height: 300px;
  height: 100%;
}

.fc-dashboard-grid .fc-activity-card {
  display: flex;
  flex-direction: column;
}

.fc-dashboard-grid .fc-activity-card > .fc-timeline {
  flex: 1 1 auto;
}

.fc-dashboard-grid .fc-activity-card > .fc-activity-link {
  margin-top: auto;
  padding-top: 16px;
}

.fc-dashboard-grid .fc-activity-card > .fc-empty {
  flex: 1 1 auto;
}

/* Donut chart */
.fc-progress-card__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fc-progress-card__row {
  padding: 16px 0;
}

.fc-progress-card__row:first-child {
  padding-top: 0;
}

.fc-progress-card__row + .fc-progress-card__row {
  border-top: 1px solid var(--fc-border);
}

.fc-progress-card__row-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fc-progress-card__subtitle {
  color: var(--fc-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.fc-progress-card__summary {
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 600;
}

.fc-progress-card__body {
  align-items: center;
  display: flex;
  gap: 16px;
}

.fc-progress-card__row .fc-donut {
  --fc-donut-size: 112px;
}

.fc-progress-card__row .fc-donut::before {
  inset: 13px;
}

.fc-progress-card__row .fc-donut__inner strong {
  font-size: 1.65rem;
}

.fc-donut {
  --fc-donut-size: 148px;
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(
    var(--fc-primary) calc(var(--fc-donut-value, 0) * 1%),
    #eceef2 0
  );
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: var(--fc-donut-size);
  justify-content: center;
  position: relative;
  width: var(--fc-donut-size);
}

.fc-donut::before {
  background: var(--fc-white);
  border-radius: 50%;
  content: "";
  inset: 16px;
  position: absolute;
}

.fc-donut__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  z-index: 1;
}

.fc-donut__inner strong {
  color: var(--fc-navy);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.fc-donut__inner span {
  color: var(--fc-muted);
  font-size: 13px;
  margin-top: 4px;
}

.fc-progress-card__legend {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-progress-card__legend li {
  align-items: center;
  color: var(--fc-text);
  display: grid;
  font-size: 13px;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 8px;
}

.fc-progress-card__legend li:last-child {
  margin-bottom: 0;
}

.fc-progress-card__legend li span.fc-progress-card__metric,
.fc-progress-card__legend li span {
  color: var(--fc-navy);
  font-weight: 700;
  margin-left: 0;
  text-align: right;
  white-space: nowrap;
}

.fc-progress-card__count {
  color: var(--fc-text-muted, #6b7280);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.fc-progress-card__aside {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
}

.fc-progress-card__footer {
  border-top: 1px solid var(--fc-border);
  margin-top: 18px;
  padding-top: 16px;
}

.fc-progress-stats {
  display: grid;
  gap: 14px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.fc-progress-stats__item span {
  color: var(--fc-muted);
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 4px;
}

.fc-progress-stats__item strong {
  color: var(--fc-navy);
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.1;
}

.fc-progress-stats__item strong.fc-progress-stats__warn {
  color: var(--fc-danger);
}

.fc-progress-stats__trend {
  color: var(--fc-muted);
  display: block;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  margin-top: 4px;
}

.fc-progress-stats__trend--up {
  color: var(--fc-success);
}

.fc-progress-stats__trend--down {
  color: var(--fc-danger);
}

.fc-progress-stats__item--sparkline {
  align-self: end;
}

.fc-progress-sparkline {
  align-items: flex-end;
  display: flex;
  gap: 4px;
  height: 44px;
  margin-top: 2px;
}

.fc-progress-sparkline i {
  background: var(--fc-primary-soft);
  border-radius: 3px 3px 0 0;
  display: block;
  min-height: 4px;
  transition: background 0.15s ease;
  width: 12px;
}

.fc-progress-sparkline i:last-child {
  background: var(--fc-primary);
}

.fc-dot {
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  height: 10px;
  width: 10px;
}

.fc-dot--success { background: var(--fc-success); }
.fc-dot--primary { background: var(--fc-primary); }
.fc-dot--neutral { background: #c5cad3; }

/* Actions list */
.fc-actions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-actions-list__item {
  align-items: center;
  border-bottom: 1px solid var(--fc-border);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px 0;
}

.fc-actions-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fc-actions-list__icon {
  align-items: center;
  background: var(--fc-primary-soft);
  border-radius: var(--fc-radius-sm);
  color: var(--fc-primary);
  display: flex;
  font-size: 16px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.fc-actions-list__text strong {
  color: var(--fc-navy);
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.fc-actions-list__text span {
  color: var(--fc-muted);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

/* Timeline */
.fc-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-timeline__item {
  align-items: flex-start;
  border-bottom: 1px solid var(--fc-border);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px 0;
}

.fc-timeline__item:last-child {
  border-bottom: 0;
}

.fc-timeline__icon {
  align-items: center;
  background: var(--fc-primary-soft);
  border-radius: 50%;
  color: var(--fc-primary);
  display: flex;
  flex-shrink: 0;
  font-size: 13px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.fc-timeline__body strong {
  color: var(--fc-navy);
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.fc-timeline__body span {
  color: var(--fc-muted);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.fc-timeline__date {
  color: var(--fc-muted);
  font-size: 12px;
  white-space: nowrap;
}

.fc-activity-link {
  align-items: center;
  color: var(--fc-primary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 4px;
  margin-top: 12px;
  text-decoration: none;
}

.fc-activity-link:hover {
  text-decoration: underline;
}

.fc-profile-activity-page {
  max-width: var(--container, 1480px);
}

.fc-profile-activity-nav {
  margin-bottom: 18px;
}

.fc-profile-activity-nav__back {
  align-items: center;
  color: var(--fc-primary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  text-decoration: none;
}

.fc-profile-activity-nav__back:hover {
  text-decoration: underline;
}

.fc-activity-card--full {
  padding: 24px 28px;
}

.fc-activity-card__header {
  margin-bottom: 20px;
}

.fc-activity-card__title {
  color: var(--fc-navy);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.fc-activity-card__subtitle {
  color: var(--fc-muted);
  font-size: 14px;
  margin: 0;
}

.fc-activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.fc-activity-filters__btn {
  align-items: center;
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: 999px;
  color: var(--fc-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  line-height: 1.2;
  padding: 7px 14px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fc-activity-filters__btn:hover {
  border-color: rgba(149, 68, 137, 0.35);
  color: var(--fc-primary);
}

.fc-activity-filters__btn.is-active {
  background: var(--fc-primary-soft);
  border-color: rgba(149, 68, 137, 0.45);
  color: var(--fc-primary);
}

.fc-activity-filters__count {
  background: rgba(47, 55, 88, 0.08);
  border-radius: 999px;
  color: var(--fc-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  min-width: 1.5em;
  padding: 3px 7px;
  text-align: center;
}

.fc-activity-filters__btn.is-active .fc-activity-filters__count {
  background: rgba(149, 68, 137, 0.16);
  color: var(--fc-primary);
}

.fc-activity-filter-empty {
  margin-top: 0;
}

.fc-activity-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--fc-border);
  padding-bottom: 12px;
}

.fc-activity-tabs__link {
  border-radius: 999px;
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.fc-activity-tabs__link:hover {
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
}

.fc-activity-tabs__link.is-active {
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
}

.fc-timeline__meta {
  color: var(--fc-muted);
  display: block;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.fc-timeline__item--warning .fc-timeline__icon {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.fc-timeline__item--error .fc-timeline__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.fc-activity-pager {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 8px;
}

.fc-activity-pager__link {
  background: none;
  border: none;
  color: var(--fc-primary);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.fc-activity-pager__link:hover {
  text-decoration: underline;
}

.fc-activity-pager__status {
  color: var(--fc-muted);
  font-size: 13px;
}

/* ── Courses table ── */
.fc-courses-card__title {
  color: var(--fc-navy);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.fc-courses-card__header {
  margin-bottom: 16px;
}

.fc-courses-table-wrap {
  overflow-x: auto;
}

.fc-courses-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  width: 100%;
}

.fc-courses-table thead th {
  border-bottom: 1px solid var(--fc-border);
  color: var(--fc-navy);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.fc-courses-table tbody td {
  border-bottom: 1px solid var(--fc-border);
  padding: 16px 14px;
  vertical-align: middle;
}

.fc-courses-table tbody tr:last-child td {
  border-bottom: 0;
}

.fc-courses-table tbody tr:hover td {
  background: var(--fc-primary-softer);
}

.fc-courses-table__idx {
  color: var(--fc-primary);
  font-weight: 700;
  width: 48px;
}

.fc-courses-table__name {
  color: var(--fc-navy);
  font-weight: 600;
  min-width: 240px;
}

.fc-progress-inline {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 160px;
}

.fc-progress-inline > span {
  color: var(--fc-navy);
  font-size: 14px;
  font-weight: 600;
  min-width: 40px;
}

.fc-progress-inline__track {
  background: #eceef2;
  border-radius: 999px;
  flex: 1;
  height: 6px;
  max-width: 120px;
  overflow: hidden;
}

.fc-progress-inline__track i {
  background: var(--fc-primary);
  display: block;
  height: 100%;
}

/* Badges */
.fc-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  padding: 5px 10px;
  white-space: nowrap;
}

.fc-badge .fi {
  font-size: 11px;
}

.fc-badge--success {
  background: var(--fc-success-bg);
  color: var(--fc-success);
}

.fc-badge--progress {
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
}

.fc-badge--failed {
  background: var(--fc-danger-bg);
  color: var(--fc-danger);
}

.fc-badge--warning {
  background: var(--fc-warning-bg, #fff4df);
  color: var(--fc-warning, #8a5a00);
}

.fc-badge--pending {
  background: var(--fc-neutral-badge);
  color: var(--fc-neutral-text);
}

.fc-badge--mandatory {
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
}

.fc-badge--additional {
  background: var(--fc-neutral-badge);
  color: var(--fc-neutral-text);
}

.fc-courses-table__type {
  white-space: nowrap;
}

.fc-courses-table__action {
  text-align: right;
}

.fc-profile-page .fc-courses-table__menu-col,
.fc-profile-page .fc-courses-table__menu,
.fc-profile-page .fc-kebab {
  display: none !important;
}

.fc-courses-footer {
  border-top: 1px solid var(--fc-border);
  color: var(--fc-muted);
  font-size: 13px;
  margin-top: 8px;
  padding-top: 14px;
}

/* ── Responsive ── */
@media (max-width: 1320px) {
  .fc-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .fc-dashboard-grid .fc-progress-card {
    grid-column: 1 / -1;
  }

  .fc-dashboard-grid .fc-progress-card .fc-progress-card__stack {
    display: grid;
    gap: 0 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-dashboard-grid .fc-progress-card .fc-progress-card__row + .fc-progress-card__row {
    border-left: 1px solid var(--fc-border);
    border-top: 0;
    padding-left: 28px;
    padding-top: 0;
  }

  .fc-dashboard-grid .fc-progress-card .fc-progress-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (min-width: 1321px) and (max-width: 1480px) {
  .fc-dashboard-grid .fc-progress-card .fc-progress-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fc-profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fc-profile-hero__meta {
    border-left: 0;
    border-top: 1px solid var(--fc-border);
    display: grid;
    gap: 14px 20px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    padding-top: 20px;
  }

  .fc-profile-hero__meta-item--mfa,
  .fc-profile-hero__meta-item--roles {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .fc-profile-page {
    padding-bottom: 24px;
  }

  .fc-card {
    padding: 20px 18px;
  }

  .fc-profile-hero {
    gap: 20px;
  }

  .fc-courses-table__name {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .fc-profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fc-profile-hero__avatar-panel {
    display: flex;
    justify-content: center;
  }

  .fc-profile-hero__contact-item {
    justify-content: center;
  }

  .fc-profile-hero__meta {
    text-align: left;
  }

  .fc-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .fc-progress-card__row-head {
    width: 100%;
  }

  .fc-progress-stats {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .fc-progress-stats__item--sparkline {
    align-self: start;
    grid-column: 1 / -1;
  }

  .fc-actions-list__item {
    grid-template-columns: auto 1fr;
  }

  .fc-actions-list__cta {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .fc-stats-grid {
    grid-template-columns: 1fr;
  }

  .fc-dashboard-grid .fc-progress-card .fc-progress-card__stack {
    grid-template-columns: 1fr;
  }

  .fc-dashboard-grid .fc-progress-card .fc-progress-card__row + .fc-progress-card__row {
    border-left: 0;
    border-top: 1px solid var(--fc-border);
    padding-left: 0;
    padding-top: 16px;
  }

  .fc-card {
    padding: 18px 16px;
  }

  .fc-profile-hero__name {
    font-size: 1.25rem;
  }

  .fc-courses-card__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .fc-progress-stats {
    grid-template-columns: 1fr;
  }
}
