@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%}
body{background:#e8f6f4;color:#1a2826;-webkit-font-smoothing:antialiased}
button,input{font:inherit}

.fd-app {
  --fd-teal: #0f766e;
  --fd-teal-strong: #0d9488;
  --fd-ink: #1a2826;
  --fd-muted: #5b6b68;
  --fd-line: #e2e8f0;
  --fd-divider: #9ddcdc;
  --fd-pipeline-title: #738a85;
  --fd-sidebar: #ffffff;
  --fd-radius: 16px;
  --fd-shadow: 0 12px 32px rgba(15, 40, 36, 0.08);
  --fd-font: "Outfit", "Aeonik", system-ui, -apple-system, sans-serif;
  --portal-topbar-height: 72px;
  --questionnaire-summary-height: 176px;

  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  color: var(--fd-ink);
  font-family: var(--fd-font);
  background: #e8f6f4;
}

.fd-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 14px 16px;
  background: var(--fd-sidebar);
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  z-index: 30;
  overflow: hidden;
  box-sizing: border-box;
}

.fd-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 8px 8px;
}

.fd-logo {
  display: block;
  width: 150px;
  height: auto;
}

.fd-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fd-nav-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fd-nav-block + .fd-nav-block {
  margin-top: 8px;
}

.fd-nav-label {
  margin: 8px 10px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.fd-nav-item {
  display: grid;
  grid-template-columns: 22px 1fr 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.fd-nav-item:hover { background: rgba(15, 118, 110, 0.06); }
.fd-nav-item.is-active { background: var(--fd-teal-strong); color: #fff; }
.fd-nav-chevron { opacity: 0.45; justify-self: end; }
.fd-nav-item.is-active .fd-nav-chevron { opacity: 0.9; }

.fd-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--fd-line);
  flex-shrink: 0;
}

.fd-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(13, 148, 136, 0.12);
  color: var(--fd-teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.fd-user-name { font-size: 0.86rem; font-weight: 650; }
.fd-user-role { font-size: 0.72rem; color: var(--fd-muted); }

.fd-main {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #edf9f8;
}

/* Coded portal background — gradients + SVG contours (not raster) */
.fd-portal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fd-portal-bg-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 0% 100%,
      rgba(20, 181, 181, 0.82) 0%,
      rgba(64, 202, 201, 0.58) 18%,
      rgba(139, 224, 221, 0.26) 38%,
      rgba(235, 249, 248, 0.1) 62%,
      rgba(247, 252, 251, 0) 76%
    ),
    radial-gradient(
      circle at 18% 72%,
      rgba(76, 205, 202, 0.24) 0%,
      rgba(216, 246, 244, 0.12) 45%,
      rgba(255, 255, 255, 0) 72%
    ),
    linear-gradient(135deg, #edf9f8 0%, #f7fcfb 42%, #f4fbfa 70%, #eef9f8 100%);
}

.fd-portal-bg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.fd-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--portal-topbar-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px 4px;
  background: linear-gradient(
    180deg,
    rgba(237, 249, 248, 0.94) 0%,
    rgba(237, 249, 248, 0.72) 70%,
    transparent 100%
  );
}

.fd-content {
  position: relative;
  z-index: 1;
  padding: 28px 28px 36px;
}

.fd-help-card {
  margin: 8px 4px 0;
  padding: 14px 12px;
  border-radius: 14px;
  background: #f4f7f7;
  border: 1px solid #e5eceb;
}

.fd-help-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fd-ink);
}

.fd-help-copy {
  margin: 6px 0 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--fd-muted);
}

.fd-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  background: #e8eef0;
  color: var(--fd-ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.fd-page-title {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: #1a2826;
}

.fd-page-sub {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: #1a2826;
  max-width: 52rem;
}


.fd-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fd-muted);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.fd-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fd-ink);
  font: inherit;
  font-size: 0.92rem;
}

.fd-top-actions { display: flex; gap: 8px; }

.fd-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--fd-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #475569;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.fd-notif-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fff;
}

.fd-greeting { margin-top: 8px; }

.fd-greeting h1 {
  margin: 0;
  color: #1a2826;
  font-family: var(--fd-font);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.fd-greeting p {
  margin: 12px 0 0;
  color: var(--fd-muted);
  font-family: var(--fd-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.fd-grid {
  display: grid;
  grid-template-columns: 707px minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
  align-items: stretch;
}

.fd-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  padding: 18px;
}

.fd-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fd-ink);
}

.fd-section-title {
  font-family: var(--fd-font) !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
  color: var(--fd-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fd-section-title-caps {
  font-family: var(--fd-font) !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fd-pipeline-title) !important;
}

.fd-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  flex-shrink: 0;
}

.fd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* Score module */
.fd-score-module {
  width: 707px;
  max-width: 100%;
  height: auto;
  min-height: 330px;
  padding: 20px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.fd-score-card-title {
  margin: 0 0 8px !important;
  font-family: var(--fd-font) !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  color: var(--fd-ink) !important;
  text-align: left;
}

.fd-score-body {
  display: grid;
  grid-template-columns: 1.15fr auto 0.85fr;
  gap: 14px;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.fd-score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding-top: 18px;
  min-width: 0;
}

.fd-score-hint {
  margin: 2px 0 0;
  max-width: 340px;
  color: var(--fd-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  font-weight: 400;
}

.fd-score-divider {
  width: 1px;
  align-self: stretch;
  margin: 12px 0;
  background: #9ddcdc;
  opacity: 1;
  flex-shrink: 0;
}

.fd-score-stats {
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-family: var(--fd-font);
  justify-content: center;
  padding-left: 14px;
}

.fd-stat {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fd-stat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fd-stat-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fd-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fd-ink);
}

.fd-stat-label {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--fd-ink);
}

.fd-stat p {
  margin: 0;
  color: var(--fd-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.fd-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 8px;
}
.fd-dot-ok { background: #10b981; }
.fd-dot-danger { background: #ef4444; }

/* Vault — explicit top-down rhythm (no justify-content distribute) */
.fd-vault-card {
  background: linear-gradient(160deg, #14b8a6 0%, #0f766e 100%);
  color: #fff;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 24px 18px 60px;
  box-sizing: border-box;
}
.fd-vault-card h2 {
  margin: 0;
  color: #fff;
  font-size: 24px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
}
.fd-vault-card > p {
  margin: 24px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.78;
  font-weight: 400;
}
.fd-vault-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 0;
  margin-top: 28px;
  text-align: left;
  justify-items: start;
}
.fd-vault-metric-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 400;
}
.fd-vault-metric-value {
  margin-top: 4px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fd-vault-metric-note {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.7;
  font-weight: 400;
}
.fd-btn-light {
  margin-top: 82px;
  margin-bottom: 0;
  align-self: stretch;
  width: 100%;
  min-height: 45px;
  padding: 5px 15px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--fd-teal);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* Mid row: pipeline + activity side by side with tight gap */
.fd-mid-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

/* Pipeline */
.fd-pipeline-card,
.fd-activity-card {
  width: 100%;
  height: 230px;
  min-height: 230px;
  max-height: 230px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.fd-pipeline-card {
  padding: 14px 16px 16px;
  border-radius: 16px;
}
.fd-pipeline-card .fd-card-head { margin-bottom: 18px; flex-shrink: 0; }
.fd-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 0 0 auto;
  align-content: start;
}
.fd-pipeline-step {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  height: 76px;
  padding: 12px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
  color: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.fd-pipeline-step.is-outline {
  background: transparent;
  border: 1.5px solid var(--fd-teal-strong);
  color: var(--fd-teal);
}
.fd-pipeline-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.fd-pipeline-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.92;
  font-weight: 400;
  text-align: center;
}
.fd-pipeline-status {
  margin: 24px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef2f1;
  color: var(--fd-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 400;
  flex-shrink: 0;
}

/* Activity */
.fd-activity-card { padding: 10px 16px 16px; border-radius: 16px; }
.fd-activity-card .fd-card-head { margin-bottom: 12px; flex-shrink: 0; }
.fd-activity-card .fd-section-title {
  font-size: 20px !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.fd-activity-card .fd-title-dot {
  width: 8px;
  height: 8px;
  margin-right: 0;
  flex-shrink: 0;
  align-self: center;
}
.fd-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}
.fd-activity {
  padding: 5px 8px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fcfefe;
  border-left: 3px solid #ef4444;
  flex-shrink: 0;
}
.fd-activity.is-urgent { border-left-color: #ef4444; }
.fd-activity.is-urgent .fd-activity-kind { color: #b91c1c; }
.fd-activity.is-warn { border-left-color: #f59e0b; }
.fd-activity.is-warn .fd-activity-kind { color: #b45309; }
.fd-activity.is-calm { border-left-color: #10b981; }
.fd-activity.is-calm .fd-activity-kind { color: #047857; }
.fd-activity-kind { font-size: 0.78rem; font-weight: 500; }
.fd-activity-detail { margin-top: 2px; font-size: 0.84rem; line-height: 1.25; color: var(--fd-ink); font-weight: 400; }
.fd-activity-when { margin-top: 2px; font-size: 0.72rem; color: var(--fd-muted); }
.fd-link-cta {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--fd-teal-strong);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  flex-shrink: 0;
  text-decoration: none;
}

/* Deadlines */
.fd-deadlines-card, .fd-regulatory-card { grid-column: 1 / -1; }
.fd-table-wrap { overflow-x: auto; }
.fd-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.fd-table th {
  text-align: left;
  padding: 0 10px 10px 0;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fd-table td {
  padding: 12px 10px 12px 0;
  border-top: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.fd-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.fd-pill-ok { background: rgba(16, 185, 129, 0.12); color: #047857; }
.fd-pill-danger { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.fd-pill-warn { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.fd-risk { font-size: 0.78rem; font-weight: 650; }
.fd-risk-low { color: #047857; }
.fd-risk-mid { color: #b45309; }
.fd-risk-high { color: #b91c1c; }

/* Regulatory updates */
.fd-reg-groups {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.fd-reg-heading {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fd-muted);
}
.fd-reg-item {
  padding: 12px 14px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fcfefe;
  margin-bottom: 8px;
}
.fd-reg-item time {
  float: right;
  color: var(--fd-muted);
  font-size: 0.75rem;
}
.fd-reg-item h4 {
  margin: 8px 0 6px;
  clear: both;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.fd-reg-item p {
  margin: 0;
  color: var(--fd-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.fd-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.fd-tag-cqc { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; }
.fd-tag-ico { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.fd-tag-mhra { background: rgba(13, 148, 136, 0.12); color: #0f766e; }

/* Score ring */
.cp-ring{position:relative;display:inline-flex;flex-direction:column;align-items:center;max-width:100%}
.cp-ring-center{pointer-events:none;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:6%}
.cp-ring-delta{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-bottom:10px;
  padding:3px 10px;
  border-radius:999px;
  background:#5fa052;
  color:#fff;
  font-size:.75rem;
  font-weight:500;
  border:0;
  box-shadow:none;
  opacity:0;
  transform:translateY(5px);
  transition:opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
  will-change:opacity, transform;
}
.cp-ring-delta.is-visible{
  opacity:1;
  transform:translateY(0);
}
.cp-ring-score{font-size:4.5rem;font-weight:500;letter-spacing:0;line-height:1;color:#0f172a}

@media (prefers-reduced-motion: reduce) {
  .cp-ring-delta{
    opacity:1;
    transform:none;
    transition:none;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.fd-mobile-only { display: none !important; }
.fd-overlay { display: none; }

.fd-mobile-brand {
  display: none;
  align-items: center;
}

.fd-mobile-logo {
  display: block;
  height: 24px;
  width: auto;
}

.fd-deadline-cards {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 12px;
}

.fd-deadline-card {
  padding: 14px;
  border: 1px solid #e8eef0;
  border-radius: 12px;
  background: #fbfefe;
}

.fd-deadline-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fd-ink);
}

.fd-deadline-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.fd-deadline-card dt {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.fd-deadline-card dd {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--fd-ink);
}

@media (max-width: 1200px) {
  .fd-grid { grid-template-columns: 1fr 1fr; }
  .fd-score-module { width: 100%; height: auto; min-height: 289px; }
}

@media (max-width: 1100px) {
  .fd-grid { grid-template-columns: 1fr; }
  .fd-score-body { grid-template-columns: 1fr; }
  .fd-score-divider { width: 100%; height: 1px; margin: 8px 0; }
  .fd-mid-row { grid-template-columns: 1fr; }
  .fd-pipeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-pipeline-step { height: auto; min-height: 76px; }
  .fd-pipeline-card,
  .fd-activity-card { min-height: 0; height: auto; max-height: none; }
  .fd-reg-groups { grid-template-columns: 1fr; }
}

/* Mobile shell + dashboard — desktop rules above this line stay untouched */
@media (max-width: 860px) {
  .fd-app { grid-template-columns: 1fr; }
  .fd-mobile-only { display: grid !important; }
  .fd-desktop-only { display: none !important; }
  .fd-mobile-brand { display: flex !important; }

  .fd-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
    z-index: 50;
  }
  .fd-app.nav-open .fd-sidebar { transform: translateX(0); }
  .fd-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 45;
  }
  .fd-app.nav-open .fd-overlay {
    display: block;
  }

  .fd-main {
    background: #edf9f8;
  }

  .fd-portal-bg-grad {
    background:
      radial-gradient(
        circle at 8% 88%,
        rgba(20, 181, 181, 0.78) 0%,
        rgba(64, 202, 201, 0.48) 22%,
        rgba(139, 224, 221, 0.2) 44%,
        rgba(247, 252, 251, 0) 72%
      ),
      radial-gradient(
        circle at 40% 70%,
        rgba(76, 205, 202, 0.16) 0%,
        rgba(255, 255, 255, 0) 65%
      ),
      linear-gradient(165deg, #f4fbfa 0%, #edf9f8 55%, #e8f6f4 100%);
  }
  .fd-portal-bg-lines {
    transform: scale(1.12) translate(-6%, 3%);
    transform-origin: left bottom;
    opacity: 0.85;
  }

  .fd-topbar {
    min-height: 76px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 12px 10px;
    align-items: center;
    padding: 14px 20px 10px;
    background: rgba(237, 249, 248, 0.96);
  }
  .fd-mobile-brand { grid-area: brand; }
  .fd-top-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .fd-search {
    grid-area: search;
    width: 100%;
    max-width: none;
    flex: none;
    min-height: 46px;
  }

  .fd-content {
    padding: 12px 20px 32px;
  }

  .fd-greeting {
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .fd-greeting h1 {
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .fd-greeting p {
    font-size: 15px;
    line-height: 1.4;
    margin-top: 8px;
  }

  .fd-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .fd-score-module,
  .fd-vault-card,
  .fd-pipeline-card,
  .fd-activity-card,
  .fd-deadlines-card,
  .fd-regulatory-card {
    width: 100%;
    margin-inline: 0;
  }

  .fd-card {
    padding: 20px;
  }

  .fd-score-module {
    height: auto;
    min-height: 0;
  }

  .fd-score-card-title {
    font-size: 22px !important;
  }

  .fd-score-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fd-score-divider {
    display: none;
  }

  .fd-score-ring-wrap {
    padding-top: 8px;
  }

  .fd-score-hint {
    margin-top: 8px;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.4;
  }

  .fd-score-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-left: 0;
  }

  .fd-stat-num {
    font-size: 1.75rem;
  }

  .fd-vault-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .fd-btn-light {
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
  }

  .fd-mid-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fd-pipeline-card,
  .fd-activity-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .fd-pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fd-pipeline-step {
    min-height: 78px;
    height: auto;
    border-radius: 12px;
  }

  .fd-pipeline-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .fd-activity-card {
    height: auto;
  }

  .fd-activity-list {
    gap: 10px;
  }

  .fd-activity {
    padding: 12px 14px;
  }

  .fd-link-cta {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 500;
  }

  .fd-deadline-cards {
    display: flex;
  }

  .fd-section-title {
    font-size: 20px !important;
  }

  .fd-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .fd-greeting h1 {
    font-size: 34px;
  }
  .fd-score-stats {
    gap: 10px;
  }
  .fd-stat-copy p {
    display: none;
  }
}
.fp-head {
  margin: 8px 0 24px;
}

.fv-last-updated {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #738a85;
  font-weight: 400;
}

.fp-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 40, 36, 0.06);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.fp-card-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 500;
  color: #1a2826;
}

.fp-plain {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5b6b68;
}

.fp-plain a {
  color: #0d9488;
  font-weight: 600;
}

/* Vault */
.fv-metrics {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  align-items: stretch;
}

.fv-metric {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 40, 36, 0.05);
  min-height: 156px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.fv-metric-teal {
  background: linear-gradient(160deg, #14b8a6 0%, #0f766e 100%);
  color: #fff;
  border: 0;
}

.fv-metric-teal .fv-metric-label {
  color: rgba(255, 255, 255, 0.88);
}

.fv-metric-score {
  align-items: stretch;
}

.fv-score-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: #1a2826;
}

.fv-score-ring {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  padding-bottom: 18px;
}

.fv-metric-num {
  margin-top: 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fv-metric-label {
  margin-top: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b68;
  font-weight: 600;
}

.fv-metric-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
  font-weight: 400;
}

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

.fv-search {
  min-width: 220px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d5dee3;
  border-radius: 10px;
  font: inherit;
}

.fv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.fv-filter {
  border: 1px solid #d5dee3;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  color: #5b6b68;
}

.fv-filter.is-active {
  background: #149b9b;
  border-color: #149b9b;
  color: #fff;
}

.fv-table-wrap {
  overflow-x: auto;
}

.fv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fv-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #738a85;
  padding: 8px 10px;
  border-bottom: 1px solid #e8eef0;
}

.fv-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #eef2f1;
  vertical-align: top;
}

.fv-doc-name {
  font-weight: 600;
  color: #1a2826;
}

.fv-basis {
  display: inline-block;
  font-size: 0.78rem;
  color: #5b6b68;
  line-height: 1.3;
}

.fv-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f6f4;
  color: #0f766e;
}

.fv-status.is-under-review,
.fv-status.is-due-soon {
  background: #fff7ed;
  color: #c2410c;
}

.fv-status.is-action-required {
  background: #fef2f2;
  color: #b91c1c;
}

.fv-status.is-current {
  background: #e8f6f4;
  color: #0f766e;
}

.fv-trigger {
  font-size: 0.82rem;
  color: #5b6b68;
}

.fv-download {
  border: 0;
  border-radius: 10px;
  background: #149b9b;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

.fv-security p {
  margin: 0;
  color: #5b6b68;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Updates */
.fu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fu-card {
  width: 100%;
  max-width: 505px;
  min-height: 320px;
  box-sizing: border-box;
  padding: 24px 23px 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 40, 36, 0.06);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.fu-card:hover,
.fu-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 40, 36, 0.1);
  outline: none;
}

.fu-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(20, 155, 155, 0.28), 0 16px 36px rgba(15, 40, 36, 0.1);
}

.fu-card:hover .fu-card-img,
.fu-card:focus-visible .fu-card-img {
  transform: scale(1.012);
}

.fu-card-media {
  overflow: hidden;
  border-radius: 10px;
}

.fu-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1377 / 420;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  display: block;
  transition: transform 180ms ease;
}

.fu-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 12px;
  min-height: 0;
}

.fu-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.fu-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.72rem;
  font-weight: 600;
}

.fu-date {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #738a85;
  font-weight: 600;
}

.fu-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a2826;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fu-card-teaser {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #5b6b68;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.fu-read {
  margin-top: 12px;
  align-self: flex-start;
  color: #149b9b;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.fu-back {
  display: inline-block;
  margin: 4px 0 16px;
  color: #149b9b;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.fu-article-frame {
  max-width: 920px;
  margin-inline: auto;
}

.fu-article {
  max-width: 920px;
}

.fu-article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 12px;
}

.fu-article-title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  color: #1a2826;
}

.fu-standfirst {
  margin: 14px 0 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #334155;
}

.fu-reviewed {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #738a85;
}

.fu-article-hero {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin: 0;
}

.fu-article-body {
  max-width: 700px;
  margin-inline: auto;
  margin-top: 28px;
}

.fu-in-short {
  background: #eef8f7;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.fu-in-short-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 6px;
}

.fu-in-short p {
  margin: 0;
  line-height: 1.5;
  color: #1a2826;
}

.fu-section {
  margin-bottom: 28px;
}

.fu-section h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
}

.fu-section p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #334155;
  font-size: 1rem;
}

.fu-muted {
  color: #5b6b68 !important;
}

.fu-key-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
  line-height: 1.55;
}

.fu-key-list li {
  margin-bottom: 8px;
}

.fu-account-block {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d7ecec;
  border-radius: 14px;
  padding: 18px 20px;
}

.fu-cta {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Renewals */
.fr-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.fr-summary-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 18px 20px;
}

.fr-summary-num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #0f766e;
}

.fr-summary-card.is-warn .fr-summary-num {
  color: #c2410c;
}

.fr-summary-card.is-danger .fr-summary-num {
  color: #b91c1c;
}

.fr-summary-label {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.fr-summary-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #5b6b68;
  line-height: 1.35;
}

.fr-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fr-timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbfb;
  border: 1px solid #e8eef0;
}

.fr-timeline-when {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5b6b68;
}

.fr-timeline-label {
  font-weight: 500;
  color: #1a2826;
}

.fr-timeline-kind {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
}

.fr-timeline-item.is-due-soon .fr-timeline-kind {
  color: #c2410c;
}

.fr-timeline-item.is-action-required .fr-timeline-kind {
  color: #b91c1c;
}

@media (max-width: 980px) {
  .fv-metrics {
    grid-template-columns: 1.55fr 1fr;
  }

  .fv-metrics .fv-metric:last-child {
    grid-column: 1 / -1;
  }

  .fr-summary,
  .fu-grid {
    grid-template-columns: 1fr;
  }

  .fr-timeline-item {
    grid-template-columns: 1fr;
  }

  .fu-card {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .fv-metrics {
    grid-template-columns: 1fr;
  }

  .fv-metrics .fv-metric:last-child {
    grid-column: auto;
  }
}

/* Account & Billing */
.fa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fa-plan-name {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.fa-plan-price {
  margin: 10px 0 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.fa-plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: #5b6b68;
}

.fa-dl {
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.fa-dl div {
  display: grid;
  gap: 4px;
}

.fa-dl dt {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #738a85;
  font-weight: 600;
}

.fa-dl dd {
  margin: 0;
  font-size: 0.95rem;
  color: #1a2826;
}

.fa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #d5dee3;
  background: #fff;
  color: #0f766e;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.fa-link {
  border: 0;
  background: transparent;
  color: #149b9b;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.fa-link-danger {
  display: inline-flex;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: #9f1239;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fa-warning {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #9a3412;
  background: #fff7ed;
  border-radius: 10px;
  padding: 10px 12px;
}

.fa-cancelled-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: #5b6b68;
}

.fa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 20px;
}

.fa-modal {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.fa-modal h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.fa-modal-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fa-modal-actions .fa-btn {
  margin-top: 0;
}

/* Help */
.fh-topics-block,
.fh-faq-block {
  margin-top: 20px;
}

.fh-topics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.fh-topic {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 40, 36, 0.04);
  color: #1a2826;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.fh-topic:hover,
.fh-topic:focus-visible {
  border-color: #99d5d0;
  outline: none;
}

.fh-faq-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fh-faq {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  overflow: hidden;
}

.fh-faq-q {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: #1a2826;
}

.fh-faq-a {
  padding: 0 18px 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5b6b68;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

@media (max-width: 980px) {
  .fa-grid {
    grid-template-columns: 1fr;
  }
  .fh-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fh-topics {
    grid-template-columns: 1fr;
  }
}


