:root {
  --fcp-primary: #0b5ed7;
  --fcp-primary-dark: #073f91;
  --fcp-accent: #21a67a;
  --fcp-bg: #f5f8fc;
  --fcp-text: #172033;
  --fcp-muted: #65738a;
  --fcp-border: #dce5f2;
  --fcp-card: #ffffff;
  --fcp-radius: 22px;
  --fcp-shadow: 0 18px 45px rgba(23, 32, 51, 0.10);
}

.fcp-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto;
  color: var(--fcp-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fcp-wrap *, .fcp-wrap *::before, .fcp-wrap *::after {
  box-sizing: border-box;
}

.fcp-hero-mini {
  margin-bottom: 24px;
  padding: 34px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--fcp-primary-dark), var(--fcp-primary));
  box-shadow: var(--fcp-shadow);
}

.fcp-hero-mini h1,
.fcp-portal-head h1,
.fcp-card h2,
.fcp-card h3 {
  margin-top: 0;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.fcp-eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-weight: 800;
  font-size: .88rem;
}

.fcp-card {
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--fcp-border);
  border-radius: var(--fcp-radius);
  background: var(--fcp-card);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.fcp-grid-2,
.fcp-grid-3 {
  display: grid;
  gap: 18px;
}

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

.fcp-form label,
.fcp-inline-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 750;
}

.fcp-form input,
.fcp-form select,
.fcp-form textarea,
.fcp-inline-form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--fcp-border);
  border-radius: 13px;
  background: #fff;
  color: var(--fcp-text);
  font: inherit;
}

.fcp-form textarea { resize: vertical; }

.fcp-info-box {
  margin: 12px 0 18px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(33,166,122,.12), rgba(11,94,215,.08));
  border: 1px solid var(--fcp-border);
}

.fcp-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 650 !important;
}

.fcp-check input { width: auto !important; min-height: auto !important; margin-top: 5px; }

.fcp-button,
.login-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: var(--fcp-primary);
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(11, 94, 215, 0.22);
}

.fcp-button:hover,
.login-submit input[type="submit"]:hover { background: var(--fcp-primary-dark); }
.fcp-button-light { background: #fff; color: var(--fcp-primary) !important; border: 1px solid var(--fcp-border); box-shadow: none; }

.fcp-portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.fcp-portal-head .fcp-eyebrow { color: var(--fcp-primary-dark); background: rgba(11,94,215,.1); }
.fcp-link { color: var(--fcp-primary); font-weight: 800; text-decoration: none; }

.fcp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.fcp-tabs a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fcp-border);
  color: var(--fcp-muted);
  text-decoration: none;
  font-weight: 800;
}

.fcp-tabs a.is-active {
  color: #fff;
  background: var(--fcp-primary);
  border-color: var(--fcp-primary);
}

.fcp-kpis .fcp-card span {
  display: block;
  color: var(--fcp-muted);
  font-weight: 750;
}

.fcp-kpis .fcp-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -.06em;
}

.fcp-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.fcp-table-wrap { overflow-x: auto; }
.fcp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.fcp-table th,
.fcp-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--fcp-border);
  text-align: left;
}
.fcp-table th { color: var(--fcp-muted); font-size: .9rem; }

.fcp-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}
.fcp-success { color: #0f5b3f; background: rgba(33,166,122,.13); border: 1px solid rgba(33,166,122,.25); }
.fcp-error { color: #8a1f1f; background: rgba(220,53,69,.11); border: 1px solid rgba(220,53,69,.24); }
.fcp-muted { color: var(--fcp-muted); }
.fcp-inline-form { margin: 14px 0; }

.fcp-admin .fcp-card { max-width: 320px; }

@media (max-width: 760px) {
  .fcp-wrap { width: min(100% - 28px, 1180px); margin: 30px auto; }
  .fcp-grid-2,
  .fcp-grid-3 { grid-template-columns: 1fr; }
  .fcp-card,
  .fcp-hero-mini { padding: 20px; }
  .fcp-portal-head { align-items: flex-start; flex-direction: column; }
  .fcp-button { width: 100%; }
}
