/* USSOA member portal — modern professional surface */
:root {
  --p-navy: #002b5b;
  --p-royal: #0056d2;
  --p-sky: #2eb6ff;
  --p-gold: #f5c518;
  --p-ink: #121826;
  --p-muted: #5b6472;
  --p-line: #e4ebf3;
  --p-soft: #f4f7f9;
  --p-card: #ffffff;
  --p-ok: #166534;
  --p-ok-bg: #dcfce7;
  --p-warn: #92400e;
  --p-warn-bg: #fef3c7;
  --p-danger: #991b1b;
  --p-danger-bg: #fef2f2;
  --p-radius: 0.75rem;
  --p-shadow: 0 8px 24px rgba(0, 43, 91, 0.07);
}

.portal-page { max-width: 72rem; margin: 0 auto; }
.portal-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-end;
  margin-bottom: 1.5rem;
}
.portal-hero h1 {
  margin: 0; font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 800; color: var(--p-navy); letter-spacing: -0.02em;
}
.portal-hero p { margin: 0.4rem 0 0; color: var(--p-muted); line-height: 1.5; max-width: 40rem; }
.portal-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.55rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-royal);
}

.portal-grid { display: grid; gap: 1rem; }
.portal-grid-2 { grid-template-columns: 1fr; }
.portal-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .portal-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.portal-card {
  background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  box-shadow: var(--p-shadow); padding: 1.25rem;
}
.portal-card h2, .portal-card h3 { margin: 0 0 0.45rem; color: var(--p-navy); }
.portal-card p { margin: 0; color: var(--p-muted); line-height: 1.5; font-size: 0.95rem; }

.portal-stat {
  background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid var(--p-line);
  border-radius: var(--p-radius); padding: 1.1rem 1.2rem;
}
.portal-stat .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-muted); }
.portal-stat .value { margin-top: 0.45rem; font-size: 1.55rem; font-weight: 800; color: var(--p-navy); }

.portal-badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 0.28rem 0.7rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.portal-badge-ok { background: var(--p-ok-bg); color: var(--p-ok); }
.portal-badge-warn { background: var(--p-warn-bg); color: var(--p-warn); }
.portal-badge-danger { background: var(--p-danger-bg); color: var(--p-danger); }
.portal-badge-info { background: rgba(46,182,255,0.15); color: var(--p-royal); }
.portal-badge-muted { background: #eef2f7; color: var(--p-muted); }

.portal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 0.7rem; padding: 0.75rem 1.15rem; font: inherit; font-weight: 700;
  border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.portal-btn:hover { transform: translateY(-1px); }
.portal-btn-primary { background: var(--p-royal); color: #fff; box-shadow: 0 8px 18px rgba(0, 86, 210, 0.22); }
.portal-btn-sky { background: var(--p-sky); color: #fff; }
.portal-btn-ghost { background: #fff; color: var(--p-royal); border: 1px solid #c9d4e2; }
.portal-btn-danger { background: #b91c1c; color: #fff; }
.portal-btn-block { width: 100%; }

.portal-field { display: flex; flex-direction: column; gap: 0.35rem; }
.portal-label { font-size: 0.82rem; font-weight: 600; color: var(--p-ink); }
.portal-input, .portal-select, .portal-textarea {
  width: 100%; border: 1px solid var(--p-line); border-radius: 0.65rem; background: #fff;
  padding: 0.72rem 0.9rem; font: inherit; color: var(--p-ink);
}
.portal-input:focus, .portal-select:focus, .portal-textarea:focus {
  outline: 2px solid rgba(46,182,255,0.35); border-color: var(--p-sky);
}
.portal-textarea { min-height: 6.5rem; resize: vertical; }
.portal-help { font-size: 0.78rem; color: var(--p-muted); }
.portal-check { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--p-muted); font-size: 0.92rem; }

.portal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.portal-alert { border-radius: 0.85rem; padding: 0.9rem 1rem; margin-bottom: 1rem; font-size: 0.92rem; }
.portal-alert-ok { background: var(--p-ok-bg); color: var(--p-ok); border: 1px solid #bbf7d0; }
.portal-alert-err { background: var(--p-danger-bg); color: var(--p-danger); border: 1px solid #fecaca; }
.portal-alert-info { background: rgba(46,182,255,0.12); color: var(--p-navy); border: 1px solid #c7ebff; }

.portal-table-wrap { overflow-x: auto; border: 1px solid var(--p-line); border-radius: var(--p-radius); background: #fff; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.portal-table th, .portal-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--p-line); }
.portal-table th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-muted); background: #f8fbff; }
.portal-table tr:last-child td { border-bottom: 0; }

.portal-pass {
  max-width: 28rem; margin: 0 auto; background: linear-gradient(160deg, #0a1628, #0b3d91);
  color: #fff; border-radius: 1.25rem; padding: 1.75rem; box-shadow: 0 20px 50px rgba(10,22,40,0.28);
}
.portal-pass .meta { opacity: 0.8; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.portal-pass h2 { margin: 0.5rem 0 0; font-size: 1.55rem; }
.portal-pass .id { margin-top: 1rem; font-family: ui-monospace, monospace; font-size: 1.05rem; font-weight: 700; color: var(--p-gold); }
.portal-pass .qr {
  margin-top: 1.25rem; background: #fff; color: var(--p-navy); border-radius: 0.9rem; padding: 1rem;
  word-break: break-all; font-family: ui-monospace, monospace; font-size: 0.78rem;
}

.portal-empty {
  text-align: center; padding: 2.5rem 1.25rem; border: 1px dashed #c9d4e2; border-radius: var(--p-radius); background: #fff;
}
.portal-empty h3 { margin: 0 0 0.4rem; color: var(--p-navy); }
.portal-empty p { margin: 0 auto; max-width: 28rem; color: var(--p-muted); }

.portal-search {
  display: grid; gap: 0.75rem; margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .portal-search { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
}

.portal-member-card {
  display: flex; flex-direction: column; gap: 0.65rem; height: 100%;
  text-align: center; align-items: center; padding-top: 1.5rem;
}
.portal-avatar {
  width: 4.25rem; height: 4.25rem; border-radius: 999px; background: rgba(0,86,210,0.12); color: var(--p-royal);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem;
  position: relative;
}
.portal-avatar-wrap { position: relative; display: inline-flex; margin-bottom: 0.25rem; }
.portal-avatar-verified {
  position: absolute; right: 0; bottom: 0; width: 1.25rem; height: 1.25rem; border-radius: 999px;
  background: #16a34a; color: #fff; border: 2px solid #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.portal-avatar-verified svg { width: 0.7rem; height: 0.7rem; }
.portal-member-card h3 { margin: 0; font-size: 1.05rem; }
.portal-member-meta { margin: 0; font-size: 0.82rem; color: var(--p-muted); }
.portal-member-role { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--p-navy); }
.portal-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  font-size: 0.88rem; font-weight: 600; color: var(--p-ink);
}
.portal-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--p-royal); }

.portal-note {
  margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 0.85rem;
  background: rgba(245,197,24,0.12); border: 1px solid rgba(245,197,24,0.35); color: var(--p-navy); font-size: 0.9rem;
}

/* —— Pixel polish extensions —— */
.portal-page-wide { max-width: 80rem; margin: 0 auto; }

.portal-icon-circle {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(46,182,255,0.15); color: var(--p-royal); flex-shrink: 0;
}
.portal-icon-circle svg { width: 1.25rem; height: 1.25rem; }
.portal-icon-circle-lg {
  width: 3.25rem; height: 3.25rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(11,61,145,0.1); color: var(--p-royal); flex-shrink: 0;
}
.portal-icon-circle-lg svg { width: 1.45rem; height: 1.45rem; }

.portal-feature-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.portal-feature-list li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  color: var(--p-ink); font-size: 0.9rem; line-height: 1.45;
}
.portal-feature-list li::before {
  content: ""; width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; flex-shrink: 0;
  border-radius: 999px; background: var(--p-sky);
  box-shadow: inset 0 0 0 2px transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 0.7rem; background-repeat: no-repeat; background-position: center;
}

.portal-section-title {
  display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.35rem;
  font-size: 1.05rem; font-weight: 800; color: var(--p-navy);
}
.portal-section-sub { margin: 0 0 1rem; color: var(--p-muted); font-size: 0.88rem; }

.portal-band {
  border-radius: var(--p-radius); padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, #0b3d91, #0a1628); color: #fff;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.portal-band h1 { margin: 0; font-size: clamp(1.45rem, 2vw, 1.85rem); font-weight: 800; color: #fff; }
.portal-band p { margin: 0.35rem 0 0; color: rgba(255,255,255,0.78); }
.portal-band-search {
  display: flex; gap: 0.5rem; flex: 1 1 18rem; max-width: 36rem;
  background: #fff; border-radius: 0.75rem; padding: 0.35rem;
}
.portal-band-search input {
  flex: 1; border: 0; background: transparent; padding: 0.65rem 0.85rem; font: inherit; outline: none; color: var(--p-ink);
}

.portal-layout-filters { display: grid; gap: 1.25rem; }
@media (min-width: 960px) {
  .portal-layout-filters { grid-template-columns: 16rem minmax(0, 1fr); align-items: start; }
}
.portal-filters {
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); overflow: hidden;
}
.portal-filters-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1rem; background: var(--p-navy); color: #fff;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.portal-filters-head a {
  color: rgba(255,255,255,0.85); font-weight: 600; text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0; text-transform: none;
}
.portal-filters-body { padding: 1rem; display: grid; gap: 0.9rem; }

.portal-results-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  align-items: center; margin-bottom: 1rem; color: var(--p-muted); font-size: 0.9rem;
}

.portal-service-card {
  display: flex; flex-direction: column; gap: 0.75rem; height: 100%;
  background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  box-shadow: var(--p-shadow); padding: 1.25rem; position: relative; overflow: hidden;
}
.portal-service-card::after {
  content: ""; position: absolute; right: -1.5rem; bottom: -1.5rem;
  width: 7rem; height: 7rem; border-radius: 999px;
  background: radial-gradient(circle, rgba(46,182,255,0.16), transparent 70%);
  pointer-events: none;
}
.portal-service-card h3 { margin: 0; color: var(--p-navy); font-size: 1.05rem; }
.portal-service-card p { margin: 0; color: var(--p-muted); font-size: 0.92rem; line-height: 1.5; flex: 1; }
.portal-service-card .portal-btn { align-self: flex-start; margin-top: 0.25rem; }

.portal-catalogue-card {
  display: flex; flex-direction: column; gap: 0.85rem; height: 100%;
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  box-shadow: var(--p-shadow); padding: 1.35rem;
}
.portal-eligibility-box {
  border-radius: 0.75rem; padding: 0.85rem 1rem;
  background: rgba(46,182,255,0.1); color: var(--p-navy); font-size: 0.88rem; line-height: 1.45;
}
.portal-meta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  color: var(--p-muted); font-size: 0.85rem;
}

.portal-footer-cta {
  margin-top: 1.75rem; border-radius: var(--p-radius); padding: 1.15rem 1.35rem;
  background: rgba(46,182,255,0.1); border: 1px solid #c7ebff;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.portal-footer-cta p { margin: 0; color: var(--p-navy); font-size: 0.95rem; max-width: 40rem; line-height: 1.5; }

.portal-profile-hero {
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center;
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  box-shadow: var(--p-shadow); padding: 1.35rem; margin-bottom: 1.25rem;
}
.portal-avatar-lg {
  width: 4.5rem; height: 4.5rem; border-radius: 999px;
  background: linear-gradient(145deg, #2eb6ff, #0b3d91); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.35rem;
}
.portal-dl { display: grid; gap: 1rem; }
@media (min-width: 640px) { .portal-dl { grid-template-columns: 1fr 1fr; } }
.portal-dl dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-muted); }
.portal-dl dd { margin: 0.3rem 0 0; color: var(--p-ink); font-weight: 600; }

.otp-digits { width: 100%; }
.otp-digits-row { display: flex; gap: 0.55rem; justify-content: space-between; }
.otp-digit {
  width: 100%; max-width: 3.25rem; aspect-ratio: 1; text-align: center;
  border: 1.5px solid #d9e2ec; border-radius: 0.75rem; background: #fff;
  font: inherit; font-size: 1.25rem; font-weight: 800; color: var(--p-navy);
}
.otp-digit:focus {
  outline: 0; border-color: var(--p-sky);
  box-shadow: 0 0 0 3px rgba(46,182,255,0.22);
}

.auth-secure-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(165deg, #eef4fb 0%, #f8fbff 55%, #eef6fc 100%);
  position: relative; overflow: hidden;
}
.auth-secure-page::before {
  content: ""; position: absolute; inset: auto -10% -20% -10%; height: 45%;
  background: radial-gradient(ellipse at 20% 80%, rgba(46,182,255,0.18), transparent 55%),
              radial-gradient(ellipse at 80% 100%, rgba(11,61,145,0.1), transparent 50%);
  pointer-events: none;
}
.auth-secure-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.5rem;
}
.auth-secure-brand {
  display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--p-navy); font-weight: 800;
}
.auth-secure-brand img { width: 2.75rem; height: 2.75rem; }
.auth-secure-meta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 600; color: var(--p-muted);
}
.auth-secure-body {
  position: relative; z-index: 1;
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.25rem 2.5rem;
}
.auth-secure-card {
  width: 100%; max-width: 28rem; background: #fff;
  border: 1px solid #e4ebf3; border-radius: 1.15rem;
  box-shadow: 0 18px 50px rgba(10,22,40,0.08); padding: 1.75rem 1.5rem;
}
.auth-secure-card-head {
  display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1.35rem;
}
.auth-secure-card h1 { margin: 0; font-size: 1.45rem; color: var(--p-navy); font-weight: 800; }
.auth-secure-card .auth-secure-sub { margin: 0.4rem 0 0; color: var(--p-muted); font-size: 0.92rem; line-height: 1.5; }
.auth-secure-foot {
  margin-top: 1.1rem; display: flex; gap: 0.5rem; align-items: flex-start;
  color: var(--p-muted); font-size: 0.82rem; line-height: 1.45;
}
.auth-secure-staff-bar {
  background: var(--p-navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.5rem;
}
.auth-secure-staff-bar a {
  display: inline-flex; align-items: center; gap: 0.65rem; color: #fff; text-decoration: none; font-weight: 700;
}
.auth-secure-staff-bar img {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; background: #fff; padding: 0.15rem;
}
.auth-secure-staff-tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
}

.portal-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.portal-tab {
  border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.85rem; font-weight: 700;
  border: 1px solid var(--p-line); background: #fff; color: var(--p-ink); text-decoration: none;
}
.portal-tab-active { background: var(--p-navy); border-color: var(--p-navy); color: #fff; }

.portal-member-card .portal-btn { margin-top: auto; }
.portal-stat-icon {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.portal-stat-icon .portal-icon-circle { background: rgba(46,182,255,0.12); }

/* ===== Figma portal shell + verified dashboard ===== */
.portal-app { display: flex; min-height: 100vh; }
.portal-sidebar-nav {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  display: flex; width: min(17.5rem, 86vw); flex-direction: column;
  background: #002b5b; color: #fff;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  box-shadow: 8px 0 28px rgba(0, 43, 91, 0.18);
}
.portal-app.is-nav-open .portal-sidebar-nav { transform: translateX(0); }
@media (min-width: 1024px) {
  .portal-sidebar-nav {
    width: 17.5rem;
    transform: none;
    box-shadow: none;
  }
}
.portal-sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 35;
  background: rgba(10, 22, 40, 0.45);
  border: 0; cursor: pointer; padding: 0;
}
.portal-app.is-nav-open .portal-sidebar-backdrop { display: block; }
@media (min-width: 1024px) {
  .portal-sidebar-backdrop,
  .portal-app.is-nav-open .portal-sidebar-backdrop { display: none; }
}
.portal-sidebar-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1.35rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.portal-sidebar-brand-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; min-width: 0; }
.portal-sidebar-crest { width: 2.85rem; height: 2.85rem; border-radius: 999px; background: #fff; padding: 0.15rem; flex-shrink: 0; }
.portal-sidebar-brand-text { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.3; }
.portal-sidebar-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 0.65rem;
  background: rgba(255,255,255,0.08); color: #fff; cursor: pointer;
}
.portal-sidebar-close svg { width: 1.1rem; height: 1.1rem; }
@media (min-width: 1024px) { .portal-sidebar-close { display: none; } }
.portal-sidebar-links { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 0.85rem; overflow-y: auto; }
.portal-nav-link {
  display: flex; align-items: center; gap: 0.7rem; border-radius: 0.75rem;
  padding: 0.7rem 0.85rem; color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 0.9rem; font-weight: 600; transition: background .15s ease, color .15s ease;
}
.portal-nav-link svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; opacity: 0.9; }
.portal-nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.portal-nav-link.is-active { background: rgba(0,86,210,0.45); color: #f5c518; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.portal-nav-note {
  margin: 0.35rem 0.85rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
}
.portal-sidebar-foot { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem; flex-shrink: 0; }
.portal-sidebar-user { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.portal-sidebar-avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; background: rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.portal-sidebar-user-name { font-size: 0.88rem; font-weight: 700; }
.portal-sidebar-user-meta { font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-top: 0.15rem; }
.portal-sidebar-profile-link { display: inline-block; margin-top: 0.35rem; font-size: 0.75rem; font-weight: 700; color: #2eb6ff; text-decoration: none; }
.portal-sidebar-logout {
  width: 100%; border: 0; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85);
  border-radius: 0.65rem; padding: 0.65rem 0.85rem; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-align: left;
}
.portal-sidebar-logout:hover { background: rgba(255,255,255,0.14); }

.portal-main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 1024px) {
  .portal-main-col { margin-left: 17.5rem; }
}
.portal-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--p-line);
}
@media (min-width: 1024px) { .portal-topbar { padding: 1.2rem 2rem; } }
.portal-topbar-mobile { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
@media (min-width: 1024px) { .portal-topbar-mobile { display: none; } }
.portal-hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: 0.7rem; border: 1px solid var(--p-line);
  background: #fff; color: var(--p-navy); cursor: pointer;
}
.portal-hamburger svg { width: 1.2rem; height: 1.2rem; }
.portal-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.7rem;
  border: 1px solid var(--p-line); background: #fff; color: var(--p-navy); cursor: pointer;
}
.portal-menu-btn svg { width: 1.2rem; height: 1.2rem; }
.portal-menu-btn .icon-close { display: none; }
.portal-app.is-nav-open .portal-menu-btn .icon-open { display: none; }
.portal-app.is-nav-open .portal-menu-btn .icon-close { display: block; }
.portal-topbar-search {
  display: none; flex: 1; max-width: 28rem; align-items: center; gap: 0.55rem;
  background: #f4f7f9; border: 1px solid var(--p-line); border-radius: 999px; padding: 0.55rem 1rem;
}
@media (min-width: 768px) { .portal-topbar-search { display: flex; } }
.portal-topbar-search svg { width: 1.05rem; height: 1.05rem; color: var(--p-muted); flex-shrink: 0; }
.portal-topbar-search input { flex: 1; border: 0; background: transparent; font: inherit; outline: none; color: var(--p-ink); }
.portal-topbar-search.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
}
.portal-topbar-search.is-locked input {
  color: var(--p-muted);
  cursor: not-allowed;
}
.portal-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.portal-topbar-bell {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--p-line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--p-navy); background: #fff;
  position: relative;
}
.portal-topbar-bell svg { width: 1.1rem; height: 1.1rem; }
.portal-topbar-bell-count {
  position: absolute; top: -0.2rem; right: -0.2rem; min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem;
  border-radius: 999px; background: #b91c1c; color: #fff; font-size: 0.65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.portal-topbar-public { font-size: 0.85rem; font-weight: 700; color: var(--p-royal); text-decoration: none; }
.portal-main-body { flex: 1; padding: 1.5rem 1.25rem 2.5rem; }
@media (min-width: 1024px) { .portal-main-body { padding: 1.75rem 2rem 3rem; } }
body.portal-nav-locked { overflow: hidden; }
@media (min-width: 1024px) { body.portal-nav-locked { overflow: auto; } }

.dash-home { max-width: 72rem; margin: 0 auto; }
.dash-home__intro h1 { margin: 0; font-size: clamp(1.55rem, 2.4vw, 1.95rem); font-weight: 800; color: var(--p-navy); }
.dash-home__intro p { margin: 0.4rem 0 0; color: var(--p-muted); }
.dash-summary { display: grid; gap: 1rem; margin-top: 1.35rem; }
@media (min-width: 768px) { .dash-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dash-summary__card {
  display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--p-line);
  border-radius: 0.9rem; padding: 1.15rem 1.2rem; box-shadow: var(--p-shadow);
}
.dash-summary__icon {
  width: 2.6rem; height: 2.6rem; border-radius: 999px; background: rgba(0,86,210,0.1); color: var(--p-royal);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-summary__icon svg { width: 1.2rem; height: 1.2rem; }
.dash-summary__icon--ok { background: #dcfce7; color: #166534; }
.dash-summary__label { font-size: 0.75rem; font-weight: 700; color: var(--p-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dash-summary__value { margin-top: 0.25rem; font-size: 1.15rem; font-weight: 800; color: var(--p-navy); }
.dash-summary__value--ok { color: #166534; }

.dash-completion {
  margin-top: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.15rem;
  background: #fff; border: 1px solid #cfe0ff; border-radius: 0.9rem; padding: 1.15rem 1.25rem;
}
.dash-completion__ring { position: relative; width: 4.5rem; height: 4.5rem; flex-shrink: 0; }
.dash-completion__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dash-completion__track { fill: none; stroke: #e8eef7; stroke-width: 8; }
.dash-completion__progress { fill: none; stroke: #0056d2; stroke-width: 8; stroke-linecap: round; }
.dash-completion__ring strong {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800; color: var(--p-navy);
}
.dash-completion__copy { flex: 1; min-width: 12rem; }
.dash-completion__copy h2 { margin: 0; font-size: 1.05rem; color: var(--p-navy); }
.dash-completion__copy p { margin: 0.35rem 0 0; color: var(--p-muted); font-size: 0.9rem; line-height: 1.5; }

.dash-anniv {
  margin-top: 1.25rem; display: grid; gap: 0; border-radius: 1rem; overflow: hidden;
  background: linear-gradient(120deg, #002b5b, #0056d2); color: #fff;
  box-shadow: 0 14px 36px rgba(0,43,91,0.18);
}
@media (min-width: 900px) { .dash-anniv { grid-template-columns: 1.2fr 0.8fr; } }
.dash-anniv__copy { padding: 1.5rem 1.4rem; }
.dash-anniv__kicker { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.05rem; }
.dash-anniv__kicker svg { width: 1.2rem; height: 1.2rem; }
.dash-anniv__copy p { margin: 0.65rem 0 0; max-width: 34rem; color: rgba(255,255,255,0.85); line-height: 1.55; font-size: 0.92rem; }
.dash-anniv__btn {
  display: inline-flex; margin-top: 1.15rem; background: #fff; color: #002b5b; font-weight: 800;
  text-decoration: none; border-radius: 0.65rem; padding: 0.75rem 1.2rem; font-size: 0.9rem;
}
.dash-anniv__visual { position: relative; min-height: 10rem; display: none; }
@media (min-width: 900px) { .dash-anniv__visual { display: block; } }
.dash-anniv__visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.dash-anniv__badge {
  position: absolute; right: 1.1rem; bottom: 1.1rem; background: #f5c518; color: #002b5b;
  font-weight: 800; border-radius: 999px; padding: 0.55rem 0.85rem; font-size: 0.85rem;
}

.dash-home__split { display: grid; gap: 1.15rem; margin-top: 1.25rem; }
@media (min-width: 960px) { .dash-home__split { grid-template-columns: 1.15fr 0.85fr; } }
.dash-panel {
  background: #fff; border: 1px solid var(--p-line); border-radius: 0.9rem; padding: 1.25rem;
  box-shadow: var(--p-shadow);
}
.dash-panel h2 { margin: 0 0 1rem; font-size: 1.05rem; color: var(--p-navy); }
.dash-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.35rem; }
.dash-panel__head h2 { margin: 0; }
.dash-panel__head a { font-size: 0.82rem; font-weight: 700; color: var(--p-royal); text-decoration: none; }
.dash-actions { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .dash-actions { grid-template-columns: 1fr 1fr; } }
.dash-action {
  display: flex; flex-direction: column; gap: 0.35rem; border: 1px solid var(--p-line); border-radius: 0.8rem;
  padding: 1rem; text-decoration: none; background: #f8fbff; transition: border-color .15s ease, box-shadow .15s ease;
}
.dash-action:hover { border-color: #9fc0ff; box-shadow: 0 8px 20px rgba(0,86,210,0.08); }
.dash-action__icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; background: rgba(0,86,210,0.1); color: var(--p-royal);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.2rem;
}
.dash-action__icon svg { width: 1.1rem; height: 1.1rem; }
.dash-action strong { color: var(--p-navy); font-size: 0.95rem; }
.dash-action span { color: var(--p-muted); font-size: 0.8rem; line-height: 1.4; }
.dash-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.dash-activity li { display: flex; gap: 0.75rem; align-items: flex-start; }
.dash-activity__dot {
  width: 0.65rem; height: 0.65rem; border-radius: 999px; background: #94a3b8; margin-top: 0.4rem; flex-shrink: 0;
}
.dash-activity__dot--ok { background: #16a34a; }
.dash-activity strong { display: block; color: var(--p-navy); font-size: 0.9rem; }
.dash-activity p { margin: 0.2rem 0 0; color: var(--p-muted); font-size: 0.8rem; line-height: 1.4; }

/* ===== Alumni Directory (Figma) ===== */
.dir-page {
  display: grid; gap: 1.5rem; align-items: start;
  max-width: 78rem; margin: 0 auto;
}
@media (min-width: 960px) {
  .dir-page { grid-template-columns: 17.5rem minmax(0, 1fr); gap: 1.75rem; }
}

.dir-find {
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  padding: 1.25rem 1.15rem 1.35rem; box-shadow: var(--p-shadow);
  position: sticky; top: 5.5rem;
}
.dir-find__title {
  margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; color: var(--p-navy);
}
.dir-find__form { display: grid; gap: 0.95rem; }
.dir-search {
  display: flex; align-items: center; gap: 0.55rem;
  border: 1px solid #d7e0ea; border-radius: 0.7rem; background: #fff;
  padding: 0.65rem 0.85rem;
}
.dir-search svg { width: 1.05rem; height: 1.05rem; color: #8b97a8; flex-shrink: 0; }
.dir-search input {
  flex: 1; border: 0; background: transparent; font: inherit; outline: none; color: var(--p-ink); min-width: 0;
}
.dir-search input::placeholder { color: #9aa6b5; }
.dir-field { display: grid; gap: 0.35rem; }
.dir-field label {
  font-size: 0.82rem; font-weight: 700; color: var(--p-navy);
}
.dir-field select {
  width: 100%; border: 1px solid #d7e0ea; border-radius: 0.7rem; background: #fff;
  padding: 0.7rem 0.85rem; font: inherit; color: var(--p-ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b97a8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem;
  padding-right: 2.25rem;
}
.dir-field select:focus, .dir-search:focus-within {
  outline: 2px solid rgba(46,182,255,0.28); border-color: #9fc7ff;
}
.dir-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  font-size: 0.88rem; font-weight: 600; color: var(--p-ink); cursor: default;
}
.dir-switch__control { position: relative; display: inline-flex; width: 2.65rem; height: 1.45rem; flex-shrink: 0; }
.dir-switch__control input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: default;
}
.dir-switch__track {
  display: block; width: 100%; height: 100%; border-radius: 999px; background: #cbd5e1;
  transition: background .15s ease; position: relative;
}
.dir-switch__track::after {
  content: ""; position: absolute; top: 0.15rem; left: 0.15rem;
  width: 1.15rem; height: 1.15rem; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2); transition: transform .15s ease;
}
.dir-switch__control input:checked + .dir-switch__track { background: #0056d2; }
.dir-switch__control input:checked + .dir-switch__track::after { transform: translateX(1.2rem); }
.dir-find__submit {
  width: 100%; border: 0; border-radius: 0.7rem; padding: 0.85rem 1rem;
  background: #0056d2; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 86, 210, 0.2);
}
.dir-find__submit:hover { background: #0047b0; }

.dir-results__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}
.dir-results__head h1 {
  margin: 0; font-size: clamp(1.55rem, 2.4vw, 1.95rem); font-weight: 800; color: var(--p-navy);
}
.dir-results__head p { margin: 0.4rem 0 0; color: var(--p-muted); max-width: 34rem; line-height: 1.5; }
.dir-results__total {
  margin: 0.35rem 0 0; color: var(--p-navy); font-size: 0.95rem; font-weight: 600; white-space: nowrap;
}
.dir-results__total strong { font-weight: 800; }

.dir-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dir-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.7rem; background: #fff; border: 1px solid #d9e6f5; border-radius: 1rem;
  padding: 1.35rem 1.15rem 1.2rem; box-shadow: 0 6px 18px rgba(0, 43, 91, 0.05);
  min-height: 100%;
}
.dir-card__badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  display: inline-flex; align-items: center; gap: 0.28rem;
  background: #dcfce7; color: #166534; border-radius: 999px;
  padding: 0.22rem 0.55rem; font-size: 0.68rem; font-weight: 700;
}
.dir-card__badge svg { width: 0.75rem; height: 0.75rem; }
.dir-card__avatar {
  width: 5.25rem; height: 5.25rem; border-radius: 999px; overflow: hidden;
  background: rgba(0, 86, 210, 0.1); color: var(--p-royal);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 800; margin-top: 0.35rem;
}
.dir-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir-card h3 {
  margin: 0.15rem 0 0; font-size: 1.08rem; font-weight: 800; color: var(--p-navy);
}
.dir-card__meta {
  list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 0.45rem; text-align: left;
}
.dir-card__meta li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  color: var(--p-muted); font-size: 0.86rem; line-height: 1.35;
}
.dir-card__meta svg {
  width: 1.05rem; height: 1.05rem; flex-shrink: 0; margin-top: 0.1rem; color: #7eb6ff;
}
.dir-card__cta {
  margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #0056d2; border-radius: 0.7rem; padding: 0.7rem 1rem;
  color: #0056d2; font-weight: 700; text-decoration: none; background: #fff;
  transition: background .15s ease, color .15s ease;
}
.dir-card__cta:hover { background: #0056d2; color: #fff; }
.dir-pagination { margin-top: 1.5rem; }
.dir-load {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  margin-top: 1.5rem; color: var(--p-muted); font-size: 0.9rem; font-weight: 600;
}
.dir-load__spinner {
  width: 1.15rem; height: 1.15rem; border-radius: 999px;
  border: 2px solid #c9d7ea; border-top-color: #0056d2;
  animation: dir-spin 0.7s linear infinite;
}
@keyframes dir-spin { to { transform: rotate(360deg); } }
.dir-load-end {
  margin: 1.25rem 0 0; text-align: center; color: var(--p-muted); font-size: 0.88rem;
}
#dir-sentinel { height: 1px; width: 100%; }

/* ===== Directory profile (Figma) ===== */
.prof-page { max-width: 72rem; margin: 0 auto; }
.prof-back {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 1rem;
  color: var(--p-royal); font-weight: 700; text-decoration: none; font-size: 0.92rem;
}
.prof-back svg { width: 1.1rem; height: 1.1rem; }
.prof-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem;
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  padding: 1.35rem 1.4rem; box-shadow: var(--p-shadow); margin-bottom: 1rem;
}
.prof-hero__main { display: flex; gap: 1.15rem; align-items: flex-start; min-width: 0; flex: 1; }
.prof-hero__avatar {
  width: 6.5rem; height: 6.5rem; border-radius: 999px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(145deg, #0056d2, #2eb6ff); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 800;
}
.prof-hero__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-hero__name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.prof-hero__name-row h1 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.85rem); color: var(--p-navy); font-weight: 800; }
.prof-verified {
  display: inline-flex; align-items: center; gap: 0.25rem; background: #dcfce7; color: #166534;
  border-radius: 999px; padding: 0.22rem 0.55rem; font-size: 0.72rem; font-weight: 700;
}
.prof-verified svg { width: 0.75rem; height: 0.75rem; }
.prof-hero__meta { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.prof-hero__meta li {
  display: flex; align-items: flex-start; gap: 0.45rem; color: var(--p-muted); font-size: 0.9rem;
}
.prof-hero__meta svg { width: 1rem; height: 1rem; color: #7eb6ff; flex-shrink: 0; margin-top: 0.12rem; }
.prof-social { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.85rem; }
.prof-social a { color: var(--p-royal); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.prof-hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-start; }
.prof-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 0.7rem; padding: 0.7rem 1rem; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.prof-btn svg { width: 1.05rem; height: 1.05rem; }
.prof-btn-ghost { background: #fff; color: #0056d2; border-color: #0056d2; }
.prof-btn-primary { background: #0056d2; color: #fff; }
.prof-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.prof-tabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem;
  border-bottom: 1px solid var(--p-line); margin-bottom: 1.15rem;
}
.prof-tab {
  border: 0; background: transparent; padding: 0.75rem 0.1rem; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--p-muted); border-bottom: 2px solid transparent;
}
.prof-tab.is-active { color: #0056d2; border-bottom-color: #0056d2; }
.prof-panel { display: none; }
.prof-panel.is-active { display: block; }
.prof-overview {
  display: grid; gap: 1.1rem;
}
@media (min-width: 900px) {
  .prof-overview { grid-template-columns: 1.35fr 0.9fr; align-items: start; }
}
.prof-card {
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  padding: 1.25rem 1.3rem; box-shadow: var(--p-shadow);
}
.prof-card h2 { margin: 0 0 0.75rem; color: var(--p-navy); font-size: 1.05rem; }
.prof-card h3 { margin: 1.25rem 0 0.65rem; color: var(--p-navy); font-size: 0.95rem; }
.prof-card p { margin: 0; color: var(--p-muted); line-height: 1.6; }
.prof-muted { color: var(--p-muted) !important; }
.prof-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.prof-contact li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--p-ink); font-size: 0.92rem; }
.prof-contact svg { width: 1.05rem; height: 1.05rem; color: #7eb6ff; flex-shrink: 0; margin-top: 0.12rem; }
.prof-contact a { color: var(--p-royal); text-decoration: none; word-break: break-all; }
.prof-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.prof-tags span {
  display: inline-flex; border-radius: 999px; padding: 0.35rem 0.75rem;
  background: rgba(0, 86, 210, 0.08); color: #0056d2; font-size: 0.82rem; font-weight: 700;
}
.prof-dl { display: grid; gap: 0.9rem; margin: 0; }
@media (min-width: 700px) { .prof-dl { grid-template-columns: 1fr 1fr; } }
.prof-dl dt {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-muted); font-weight: 700;
}
.prof-dl dd { margin: 0.25rem 0 0; color: var(--p-navy); font-weight: 700; }

/* ===== Interventions catalogue (Figma) ===== */
.intv-page { max-width: 72rem; margin: 0 auto; }
.intv-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.15rem;
}
.intv-head h1 {
  margin: 0; font-size: clamp(1.45rem, 2.3vw, 1.9rem); font-weight: 800; color: var(--p-navy);
}
.intv-head p { margin: 0.4rem 0 0; color: var(--p-muted); max-width: 40rem; line-height: 1.5; }
.intv-new {
  display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 0.7rem;
  background: #0056d2; color: #fff; text-decoration: none; font-weight: 700;
  padding: 0.75rem 1.1rem; box-shadow: 0 8px 18px rgba(0, 86, 210, 0.2);
}
.intv-tabs { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.25rem; }
.intv-tab {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 0.5rem 1rem;
  background: #eef3f8; color: var(--p-navy); text-decoration: none; font-weight: 700; font-size: 0.88rem;
}
.intv-tab.is-active { background: #0056d2; color: #fff; }
.intv-grid {
  display: grid; gap: 1.1rem; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .intv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .intv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.intv-card {
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  padding: 1.3rem 1.25rem; box-shadow: var(--p-shadow);
  display: flex; flex-direction: column; gap: 0.65rem; min-height: 100%;
}
.intv-card--wide { max-width: 48rem; }
.intv-card__icon {
  width: 2.8rem; height: 2.8rem; border-radius: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 86, 210, 0.1); color: #0056d2;
}
.intv-card__icon svg { width: 1.25rem; height: 1.25rem; }
.intv-card h2, .intv-card h3 { margin: 0; color: var(--p-navy); font-size: 1.05rem; }
.intv-card__amount { margin: 0; color: #0056d2; font-weight: 800; font-size: 0.95rem; }
.intv-card__copy { margin: 0; color: var(--p-muted); line-height: 1.55; font-size: 0.92rem; flex: 1; }
.intv-card__cta {
  margin-top: 0.35rem; display: inline-flex; align-items: center; justify-content: center;
  width: 100%; border-radius: 0.7rem; padding: 0.75rem 1rem;
  background: #0056d2; color: #fff; font-weight: 700; text-decoration: none;
}
.intv-guidelines ul { margin: 0.75rem 0 0; padding-left: 1.15rem; color: var(--p-muted); line-height: 1.7; }
.intv-guidelines a { color: var(--p-royal); font-weight: 700; }

/* ===== Admin / staff console ===== */
.admin-page { max-width: 76rem; margin: 0 auto; }
.admin-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.15rem;
}
.admin-head__kicker {
  margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--p-royal);
}
.admin-head h1 {
  margin: 0; font-size: clamp(1.45rem, 2.3vw, 1.9rem); font-weight: 800; color: var(--p-navy);
}
.admin-head p { margin: 0.4rem 0 0; color: var(--p-muted); max-width: 42rem; line-height: 1.5; }
.admin-head__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }

.admin-nav {
  display: none;
  flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.35rem;
  padding: 0.55rem; background: #fff; border: 1px solid var(--p-line); border-radius: 999px;
  box-shadow: var(--p-shadow);
}
@media (min-width: 1024px) {
  .admin-nav { display: flex; }
}
.admin-nav a {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 0.45rem 0.9rem;
  color: var(--p-navy); text-decoration: none; font-size: 0.82rem; font-weight: 700;
  white-space: nowrap;
}
.admin-nav a:hover { background: #f0f5fb; }
.admin-nav a.is-active { background: #0056d2; color: #fff; }

.admin-stats {
  display: grid; gap: 1rem; margin-bottom: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.admin-stat {
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  padding: 1.15rem 1.2rem; box-shadow: var(--p-shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.admin-stat__label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-muted);
}
.admin-stat__value { margin-top: 0.4rem; font-size: 1.55rem; font-weight: 800; color: var(--p-navy); }
.admin-stat__icon {
  width: 2.6rem; height: 2.6rem; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 86, 210, 0.1); color: #0056d2;
}
.admin-stat__icon svg { width: 1.2rem; height: 1.2rem; }
.admin-stat__icon--ok { background: #dcfce7; color: #166534; }
.admin-stat__icon--warn { background: #fef3c7; color: #92400e; }

.admin-tiles {
  display: grid; gap: 1rem; margin-bottom: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .admin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .admin-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.admin-tile {
  display: flex; flex-direction: column; gap: 0.65rem; min-height: 100%;
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  padding: 1.25rem; text-decoration: none; box-shadow: var(--p-shadow);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.admin-tile:hover {
  border-color: #9fc0ff; box-shadow: 0 10px 24px rgba(0, 86, 210, 0.08); transform: translateY(-1px);
}
.admin-tile__icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 86, 210, 0.1); color: #0056d2;
}
.admin-tile__icon svg { width: 1.15rem; height: 1.15rem; }
.admin-tile h3 { margin: 0; color: var(--p-navy); font-size: 1.02rem; }
.admin-tile p { margin: 0; color: var(--p-muted); font-size: 0.88rem; line-height: 1.5; flex: 1; }
.admin-tile__cta { color: #0056d2; font-size: 0.85rem; font-weight: 800; }

.admin-panel {
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  box-shadow: var(--p-shadow); padding: 1.25rem 1.3rem; margin-bottom: 1.15rem;
}
.admin-panel__title {
  margin: 0 0 1rem; font-size: 1.05rem; font-weight: 800; color: var(--p-navy);
}
.admin-panel__title-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; align-items: center;
  margin-bottom: 1rem;
}
.admin-panel__title-row .admin-panel__title { margin: 0; }
.admin-form-grid {
  display: grid; gap: 0.95rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-form-grid .is-full { grid-column: 1 / -1; }
.admin-inline-form {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center;
}
.admin-inline-form .portal-input,
.admin-inline-form .portal-select {
  max-width: 14rem;
}
.admin-table-wrap {
  overflow-x: auto; border: 1px solid var(--p-line); border-radius: 0.9rem; background: #fff;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td {
  padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--p-line); vertical-align: top;
}
.admin-table--dense th, .admin-table--dense td {
  padding: 0.55rem 0.75rem; vertical-align: middle; white-space: nowrap;
}
.admin-table--dense td strong { display: block; font-size: 0.92rem; line-height: 1.25; }
.admin-table--dense .meta { margin-top: 0.1rem; font-size: 0.75rem; }
.admin-row-actions {
  display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap;
}
.admin-icon-action-form { display: inline-flex; margin: 0; }
.admin-icon-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.55rem;
  border: 1px solid var(--p-line); background: #fff; color: #0b3d91;
  text-decoration: none; cursor: pointer; padding: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.admin-icon-action svg { width: 1rem; height: 1rem; }
.admin-icon-action:hover { background: #eef5ff; border-color: #c5d8f5; }
.admin-icon-action--edit { color: #0056d2; }
.admin-icon-action--delete,
.admin-icon-action--delete:hover { color: #b42318; border-color: #f3c4c0; background: #fff5f4; }
.admin-icon-action--open { color: #0a1628; }
.admin-pagination {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: space-between;
  margin-top: 1rem;
}
.admin-pagination__summary { margin: 0; color: var(--p-muted); font-size: 0.86rem; }
.admin-pagination__list {
  display: inline-flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0;
}
.admin-pagination__list a,
.admin-pagination__list span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 2rem; padding: 0 0.55rem; border-radius: 0.5rem;
  border: 1px solid var(--p-line); background: #fff; color: #0a1628;
  font-size: 0.84rem; font-weight: 700; text-decoration: none;
}
.admin-pagination__list a:hover { background: #eef5ff; border-color: #c5d8f5; color: #0b3d91; }
.admin-pagination__list .is-current {
  background: #0b3d91; border-color: #0b3d91; color: #fff;
}
.admin-pagination__list .is-disabled,
.admin-pagination__list .is-gap {
  opacity: 0.45; cursor: default;
}
.admin-table th {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--p-muted); background: #f8fbff; font-weight: 800;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .meta { display: block; margin-top: 0.2rem; color: var(--p-muted); font-size: 0.82rem; }
.admin-badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 0.22rem 0.6rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
}
.admin-badge--ok { background: #dcfce7; color: #166534; }
.admin-badge--warn { background: #fef3c7; color: #92400e; }
.admin-badge--muted { background: #eef2f7; color: var(--p-muted); }
.admin-badge--info { background: rgba(46,182,255,0.15); color: var(--p-royal); }
.admin-empty {
  text-align: center; padding: 2rem 1rem; color: var(--p-muted);
}
.admin-empty h3 { margin: 0 0 0.35rem; color: var(--p-navy); }
.admin-pager { margin-top: 1rem; }
.admin-review-card {
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  box-shadow: var(--p-shadow); padding: 1.25rem; margin-bottom: 1rem;
}
.admin-review-card__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.85rem; align-items: flex-start;
}
.admin-review-card__person { display: flex; gap: 0.85rem; align-items: flex-start; min-width: 0; }
.admin-review-card h2 { margin: 0; font-size: 1.08rem; color: var(--p-navy); }
.admin-review-card .sub { margin: 0.35rem 0 0; color: var(--p-muted); font-size: 0.9rem; }
.admin-details { margin-top: 1rem; }
.admin-details summary {
  cursor: pointer; font-weight: 800; color: #0056d2; list-style: none;
}
.admin-details summary::-webkit-details-marker { display: none; }
.admin-filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end;
  background: #fff; border: 1px solid var(--p-line); border-radius: 1rem;
  padding: 1rem 1.15rem; margin-bottom: 1.15rem; box-shadow: var(--p-shadow);
}
.admin-filter-bar .portal-field { flex: 1; min-width: 12rem; }
.admin-role-form {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-start;
}
.admin-role-checks {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem; flex: 1; min-width: 14rem;
}
.admin-role-checks .portal-check { font-size: 0.82rem; }

