/* ============================================================
   Pi Kappa Phi — Co-op & Internship Dashboard
   Dark mode · Gold #CBA135 · Royal Blue #4F7CFF
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0b0e17;
  --bg-soft: #0f1420;
  --card: #111624;
  --card-hover: #171d2d;
  --card-glass: rgba(17, 22, 36, 0.88);
  --card-glass-hover: rgba(23, 29, 45, 0.94);
  --card-glass-border: rgba(255, 255, 255, 0.075);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.14);
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.12);

  --gold: #d8ad3f;
  --gold-bright: #e3b94f;
  --gold-dim: rgba(227, 185, 79, 0.13);
  --blue: #5f87f8;
  --blue-bright: #78a0ff;
  --blue-dim: rgba(120, 160, 255, 0.13);
  --green: #4ccb91;
  --green-dim: rgba(76, 203, 145, 0.13);
  --red: #f27673;
  --red-dim: rgba(242, 118, 115, 0.13);
  --purple: var(--blue-bright);
  --purple-dim: var(--blue-dim);
  --teal: var(--blue-bright);
  --teal-dim: var(--blue-dim);

  --text: #f2f4fa;
  --text-muted: #a7b0c4;
  --text-faint: #768099;

  --radius: 12px;
  --radius-sm: 10px;
  --sidebar-w: 268px;
  --sidebar-collapsed-w: 96px;
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  interpolate-size: allow-keywords;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-collapsed-w) 1fr;
  min-height: 100vh;
  max-width: 1680px;   /* keep the dash centered on ultra-wide / zoomed-out views */
  margin: 0 auto;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background:
    linear-gradient(180deg, rgba(27, 33, 56, 0.96), rgba(10, 13, 24, 0.98)),
    var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 18px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  width: 72px;
  margin: 14px 0 14px 14px;
  z-index: 60;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: width 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  width: 240px;
  padding: 2px 0 20px;
  transition: padding 180ms ease;
  cursor: pointer;
}

.brand-crest {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(203, 161, 53, 0.35));
}

.brand > div,
.nav-label,
.sidebar-account,
.sidebar-footer {
  transition: opacity 160ms ease;
}
.nav-item > :not(.nav-icon) {
  transition: opacity 160ms ease, transform 160ms ease;
}
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  padding: 14px 10px 6px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0;
  width: 240px;
  height: 46px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, transform 0.14s, box-shadow 0.15s;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item.refreshing .nav-icon {
  animation: refreshSpin 0.8s linear infinite;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}
.nav-item:active { transform: scale(0.97); }
.nav-item .nav-icon { transition: color 0.15s; }

.nav-item.active {
  background: var(--blue-dim);
  color: var(--blue-bright);
  font-weight: 600;
}

.nav-item.active .nav-icon { color: var(--blue-bright); }
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0 13px;
}

.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: #14110a;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
}

.sidebar-account { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 0 4px; }
.sidebar-account:empty { margin-top: auto; padding: 0; }
.acct-row { display: flex; align-items: center; gap: 0; width: 240px; height: 46px; margin-bottom: 6px; }
.acct-row.clickable { cursor: pointer; border-radius: 16px; padding: 0; }
.acct-row.clickable:hover { background: rgba(255, 255, 255, 0.045); }
.acct-avatar {
  width: 34px;
  height: 34px;
  margin: 0 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.acct-spinner {
  width: 20px;
  height: 20px;
  margin: 0 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
.acct-avatar { background: var(--blue-dim); color: var(--blue-bright); display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.22); }
.acct-spinner {
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--blue-bright);
  animation: refreshSpin 0.8s linear infinite;
}
.acct-id { min-width: 0; }
.acct-name { font-size: 13px; font-weight: 700; color: var(--text); text-transform: capitalize; display: flex; align-items: center; gap: 6px; }
.acct-email { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-btn { width: 46px; height: 46px; justify-content: center; overflow: hidden; white-space: nowrap; }
.acct-login {
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 16px;
  padding: 0;
  text-align: left;
}
.acct-login:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}
.acct-login .nav-icon { color: var(--blue-bright); }
.sidebar-footer {
  padding: 16px 12px 0;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

@media (min-width: 861px) {
  .sidebar:hover,
  .sidebar:focus-within {
    width: var(--sidebar-w);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 22px 0 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.065);
  }

  .sidebar:hover .acct-btn,
  .sidebar:focus-within .acct-btn {
    width: 240px;
  }

  .sidebar:not(:hover):not(:focus-within) .brand > div,
  .sidebar:not(:hover):not(:focus-within) .nav-item > :not(.nav-icon),
  .sidebar:not(:hover):not(:focus-within) .acct-id,
  .sidebar:not(:hover):not(:focus-within) .sidebar-footer {
    opacity: 0;
    pointer-events: none;
  }
  .sidebar:not(:hover):not(:focus-within) .nav-label {
    opacity: 0;
    pointer-events: none;
  }
  .sidebar:not(:hover):not(:focus-within) .nav-item > :not(.nav-icon) {
    transform: translateX(-6px);
  }

  .sidebar:not(:hover):not(:focus-within) .sidebar-account {
    align-items: flex-start;
  }

  .sidebar:not(:hover):not(:focus-within) .acct-row {
    margin-left: 0;
    margin-right: 0;
  }

  .sidebar:not(:hover):not(:focus-within) .acct-btn {
    display: none;
  }

  .sidebar:not(:hover):not(:focus-within) .nav-item {
    color: transparent;
  }

  .sidebar:not(:hover):not(:focus-within) .nav-icon {
    color: var(--text-muted);
  }

  .sidebar:not(:hover):not(:focus-within) .nav-item.active .nav-icon {
    color: var(--blue-bright);
  }

  .sidebar:not(:hover):not(:focus-within) .nav-indicator {
    width: 46px !important;
  }
}

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

/* ---------- Main ---------- */
.main {
  padding: 28px 36px 0;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page transition: content fades + lifts in when the view changes */
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.view-enter { animation: viewIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .view-enter { animation: none; } }

.route-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  pointer-events: none;
  color: var(--text);
}
.route-transition-panel {
  position: absolute;
  inset: 0;
  background: #070914;
  transform: translateY(100%);
  transition: transform 520ms cubic-bezier(0.76, 0, 0.24, 1);
}
.route-transition.is-active .route-transition-panel {
  transform: translateY(0);
}
.route-transition.is-leaving .route-transition-panel {
  transform: translateY(-100%);
}
.route-transition-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 20px));
  opacity: 0;
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
  transition-delay: 160ms;
}
.route-transition.is-active .route-transition-mark {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.route-transition.is-leaving .route-transition-mark {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 18px));
}
.route-transition-mark img {
  width: clamp(86px, 10vw, 132px);
  height: clamp(86px, 10vw, 132px);
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(203, 161, 53, 0.34));
}
.route-transition-line {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: min(260px, 58vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--blue-bright), transparent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.76, 0, 0.24, 1), opacity 160ms ease;
  transition-delay: 80ms;
}
.route-transition.is-active .route-transition-line {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
.route-transition.is-leaving .route-transition-line {
  opacity: 0;
}

.landing-intro {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  background: #070914;
  color: var(--text);
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  transition: clip-path 620ms cubic-bezier(0.76, 0, 0.24, 1);
}
.landing-intro.is-leaving {
  clip-path: inset(0 0 100% 0);
}
.landing-intro-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}
.landing-intro.is-active .landing-intro-inner {
  opacity: 1;
  transform: translateY(0);
}
.landing-intro.is-leaving .landing-intro-inner {
  opacity: 0;
  transform: translateY(-18px);
}
.landing-intro img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(203, 161, 53, 0.36));
}
.landing-intro span {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 28px;
}

.topbar-crest {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(203, 161, 53, 0.3));
}

.page-title h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.page-title p { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

.topbar-actions {
  justify-self: end;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.topbar-actions .btn-gold {
  flex: 0 0 auto;
  white-space: nowrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  min-width: 240px;
  width: clamp(240px, 28vw, 430px);
}

.search-box svg { color: var(--text-faint); flex-shrink: 0; }

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: filter 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #14110a;
  box-shadow: 0 4px 16px rgba(203, 161, 53, 0.3);
}
.btn-gold:hover { filter: brightness(1.08); }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { filter: brightness(1.12); }

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--card-hover); }

.btn-green { background: var(--green); color: #07130d; }
.btn-red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(242, 95, 92, 0.3); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--card-glass);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px);
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

.admin-panel {
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.admin-group-heading {
  margin: 28px 0 12px;
  padding: 0 2px;
}
.admin-group-heading .eyebrow {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.admin-group-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.admin-panel-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: -4px -4px 0;
  padding: 4px;
}
.admin-panel-summary::-webkit-details-marker { display: none; }
.admin-panel-summary::marker { content: ""; }
.admin-panel-summary .card-sub {
  margin-bottom: 0;
}
.admin-panel-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: var(--card-hover);
  line-height: 0;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 160ms ease, border-color 160ms ease, background 160ms ease;
  flex-shrink: 0;
}
.admin-panel-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-panel-summary:hover .admin-panel-toggle {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}
.admin-panel[open] .admin-panel-toggle {
  transform: rotate(180deg);
}
.admin-panel-body {
  margin-top: 16px;
}
@supports selector(::details-content) {
  .admin-panel::details-content {
    overflow: hidden;
  }
}
.access-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.db-loading-card {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: left;
}
.db-loading-card h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.db-loading-card p {
  max-width: 520px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.db-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.09);
  border-top-color: var(--gold-bright);
  animation: dbSpin 0.85s linear infinite;
  flex-shrink: 0;
}
@keyframes dbSpin { to { transform: rotate(360deg); } }

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card { display: flex; gap: 16px; align-items: center; position: relative; overflow: hidden; }

/* Section dividers break the dashboard into distinct zones */
.dash-section { display: flex; align-items: center; gap: 12px; margin: 24px 0 10px; }
.dash-section:first-of-type { margin-top: 2px; }
.dash-section .dash-bar { width: 4px; height: 34px; border-radius: 4px; flex-shrink: 0; }
.dash-section h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.dash-section p { font-size: 12.5px; color: var(--text-muted); margin-top: 0; }
.collapsible-section {
  margin: 20px 0;
  border-bottom: 1px solid var(--border);
}
.collapsible-section:first-of-type { margin-top: 2px; }
.collapsible-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 10px;
}
.collapsible-summary::-webkit-details-marker { display: none; }
.collapsible-summary::marker { content: ""; }
.collapsible-summary .dash-section {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.collapsible-toggle {
  margin-top: 0;
}
.collapsible-section[open] .collapsible-toggle {
  transform: rotate(180deg);
}
.collapsible-body {
  padding-bottom: 18px;
}
.collapsible-body > .grid-2,
.collapsible-body > .grid-2b,
.collapsible-body > .grid-stats {
  margin-bottom: 16px;
}
.collapsible-body > :last-child {
  margin-bottom: 0 !important;
}

/* Colored accents: a left bar + colored number, so the four stats read as
   four distinct things rather than one blue block */
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.accent-blue .dash-bar, .stat-card.accent-blue::before { background: var(--blue); }
.accent-gold .dash-bar, .stat-card.accent-gold::before { background: var(--gold); }
.accent-purple .dash-bar, .stat-card.accent-purple::before { background: var(--purple); }
.accent-green .dash-bar, .stat-card.accent-green::before { background: var(--green); }
.stat-card.accent-blue .stat-value { color: var(--blue-bright); }
.stat-card.accent-gold .stat-value { color: var(--gold-bright); }
.stat-card.accent-purple .stat-value { color: var(--purple); }
.stat-card.accent-green .stat-value { color: var(--green); }
.metric-loading {
  display: inline-block;
  width: 48px;
  height: 0.82em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.20), rgba(255,255,255,0.08));
  background-size: 220% 100%;
  animation: metricPulse 1.05s ease-in-out infinite;
  vertical-align: -0.02em;
}
@keyframes metricPulse {
  0% { background-position: 100% 0; opacity: 0.62; }
  50% { opacity: 1; }
  100% { background-position: -100% 0; opacity: 0.62; }
}

/* Intent-framed quick actions — the "what do you want to do?" row */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.quick-action:hover { border-color: var(--border-strong); background: var(--card-hover); }
.quick-action:active { transform: translateY(1px); }
.quick-action .stat-icon { width: 40px; height: 40px; border-radius: 11px; }
.quick-action .stat-icon svg { width: 19px; height: 19px; }
.quick-action-text { min-width: 0; flex: 1; }
.quick-action-title { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.quick-action-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.35; }
.quick-action-arrow { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; transition: transform 0.15s, color 0.15s; }
.quick-action:hover .quick-action-arrow { color: var(--text-muted); transform: translateX(2px); }
@media (max-width: 600px) {
  .quick-action-sub { display: none; }
}

/* Admin data-health panel */
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.health-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.health-num { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; }
.health-num.warn { color: var(--gold-bright); }
.health-num.muted-num { color: var(--text); }
.health-num.ok { color: var(--green); }
.health-label { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }
.health-detail { margin-top: 14px; }
.name-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.name-chip {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--text);
}
.name-chip.muted { color: var(--text-muted); background: transparent; }

/* ============ Landing page ============ */
.btn-lg { padding: 13px 24px; font-size: 14.5px; border-radius: 12px; }

/* Full-bleed mode: drop the sidebar grid column and let the landing own it */
.app.landing-mode { grid-template-columns: 1fr; max-width: none; }
.app.landing-mode .sidebar { display: none; }
.app.landing-mode .main { padding: 0; }

.landing {
  position: relative;
  /* NB: no overflow clipping here — it would turn .landing into a scroll
     container and break the sticky feature-carousel. Horizontal overflow is
     contained by the marquee/hero-bg themselves. */
  /* soft radial glows behind the photo for depth once it fades out */
  background:
    radial-gradient(900px 500px at 80% -8%, rgba(79, 124, 255, 0.16), transparent 60%),
    radial-gradient(800px 520px at 8% 4%, rgba(203, 161, 53, 0.13), transparent 55%);
}

/* Chapter photo hero: covers the top of the page. A top scrim keeps the
   headline readable; the bottom of the image fades into the dark page. */
.landing-hero-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 880px;
  z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(8, 10, 18, 0.78) 0%,
      rgba(8, 10, 18, 0.52) 34%,
      rgba(8, 10, 18, 0.42) 56%,
      rgba(12, 15, 26, 0.82) 84%,
      var(--bg) 100%),
    url("../assets/hero-formal.jpg");
  background-size: cover; background-position: center 70%;
}
.landing section { position: relative; z-index: 1; }
.landing section, .landing-footer { max-width: 1100px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Scroll-aware top bar (ainortheastern.com style): full-bleed, transparent over
   the hero, then a blurred solid bar with a border once you scroll. */
.landing-topnav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  padding: 20px 0;
}
.landing-topnav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.landing-topnav.scrolled {
  background: rgba(12, 15, 26, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 10px 0;
}
@media (prefers-reduced-motion: reduce) { .landing-topnav { transition: none; } }
.landing-topnav-actions { display: flex; align-items: center; gap: 10px; }
.landing-user { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; text-transform: capitalize; }
.btn-login { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.btn-login:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 560px) { .landing-topnav-actions .btn-gold { display: none; } }
.landing-brand { display: flex; align-items: center; gap: 12px; }
.landing-crest { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(203, 161, 53, 0.35)); }

/* Hero */
.landing-hero { text-align: center; padding-top: 64px; padding-bottom: 56px; }
.landing-hero > * { animation: landingUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.landing-hero > *:nth-child(2) { animation-delay: 0.06s; }
.landing-hero > *:nth-child(3) { animation-delay: 0.12s; }
.landing-hero > *:nth-child(4) { animation-delay: 0.18s; }
.landing-hero > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes landingUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Scroll-reveal: below-the-fold landing elements ease in as they enter view */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.landing-kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
  color: var(--gold-bright); background: var(--gold-dim);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.landing-headline {
  font-size: clamp(38px, 6vw, 66px); font-weight: 800; line-height: 1.04;
  letter-spacing: -1.5px; margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.7);
}
/* Two solid bright words instead of a gradient — a gold→blue gradient's middle
   is a muddy mix that reads dark. Each word carries a dark readability shadow
   plus a colored glow that gently pulses, setting this line apart from the
   plain white lines above. */
.hl-gold, .hl-blue { animation: hlPulse 3.6s ease-in-out infinite; }
.hl-gold { color: #f4cb5e; --glow: 244, 203, 94; }
.hl-blue { color: #9cbcff; --glow: 130, 165, 255; animation-delay: 0.5s; }
@keyframes hlPulse {
  0%, 100% { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 0 16px rgba(var(--glow), 0.28); }
  50% { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 0 34px rgba(var(--glow), 0.62); }
}
@media (prefers-reduced-motion: reduce) {
  .hl-gold, .hl-blue { animation: none; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 0 24px rgba(var(--glow), 0.45); }
}
.landing-lede {
  max-width: 620px; margin: 0 auto 30px; font-size: 16.5px; line-height: 1.6;
  color: #e7ebf5; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
.landing-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.landing-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px;
}
.ls-item {
  min-width: 130px; padding: 16px 22px; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; background: rgba(12, 15, 26, 0.42); backdrop-filter: blur(8px);
}
.ls-num { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.ls-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Logo marquee */
.landing-logos { padding-top: 52px; padding-bottom: 88px; }
.logos-label {
  text-align: center; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--text-faint); font-weight: 600; margin-bottom: 18px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 95s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Real brand logos, transparent background, white wordmark — straight on the
   dark page, no card. */
.logo-card {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
  height: 40px; background: transparent; white-space: nowrap;
}
.logo-card .logo-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.logo-card .logo-name { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: #fff; }

/* Pathways */
.landing-pathways { padding-top: 82px; padding-bottom: 58px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 42px; font-weight: 900; letter-spacing: -1.2px; line-height: 1.08; }
.section-head p { color: var(--text-muted); margin-top: 10px; font-size: 16.5px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.section-head-how h2 {
  display: inline-block;
  position: relative;
  padding: 0 0 12px;
}
.section-head-how h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(180px, 70%);
  transform: translateX(-50%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--blue-bright), transparent);
}
.section-head-latest {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  text-align: left;
  margin-bottom: 28px;
}
.section-head-latest h2 {
  max-width: 520px;
}
.section-head-latest p {
  max-width: 360px;
  margin-top: 0;
  padding-left: 18px;
  border-left: 2px solid rgba(203, 161, 53, 0.45);
}
.section-head-pathways {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.section-head-pathways .section-eyebrow {
  color: var(--blue-bright);
  border: 1px solid rgba(79, 124, 255, 0.28);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(79, 124, 255, 0.08);
}
@media (max-width: 600px) { .section-head h2 { font-size: 32px; } }
.pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pathway-card {
  --pathway-accent: var(--blue-bright);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  min-height: 245px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    rgba(12, 15, 26, 0.76);
  border: 1px solid color-mix(in srgb, var(--pathway-accent) 42%, var(--border));
  border-radius: 8px;
  padding: 22px 20px 20px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.18s, transform 0.18s, background 0.18s, box-shadow 0.18s;
}
.pathway-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: var(--pathway-accent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--pathway-accent) 60%, transparent);
}
.pathway-card::after {
  content: ""; position: absolute; right: -28px; bottom: -28px;
  width: 86px; height: 86px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--pathway-accent) 55%, transparent);
  opacity: 0.45;
}
.pathway-card:hover {
  border-color: color-mix(in srgb, var(--pathway-accent) 72%, white);
  background: rgba(18, 23, 40, 0.94);
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36), 0 0 0 1px color-mix(in srgb, var(--pathway-accent) 18%, transparent);
}
.pathway-1 { --pathway-accent: var(--blue-bright); }
.pathway-2 { --pathway-accent: var(--green); }
.pathway-3 { --pathway-accent: var(--gold-bright); }
.pathway-4 { --pathway-accent: #a78bfa; }
.pathway-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 16px; }
.pathway-card .stat-icon { box-shadow: none; background: color-mix(in srgb, var(--pathway-accent) 18%, transparent); color: var(--pathway-accent); }
.pathway-num {
  font-size: 36px; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--pathway-accent) 78%, white);
  opacity: 0.7; letter-spacing: -1px;
}
.pathway-card h3 { font-size: 18px; font-weight: 900; line-height: 1.2; margin-bottom: 10px; letter-spacing: -0.2px; }
.pathway-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.pathway-highlight { color: var(--pathway-accent); font-weight: 900; }
.pathway-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 900; color: var(--pathway-accent);
}

/* How it works */
.landing-howto { padding-top: 84px; padding-bottom: 72px; }
/* Steps flow into each other via animated connector arrows rather than a
   grid of separate cards. */
.howto-flow { display: flex; align-items: stretch; }
.howto-flow .howto-step { flex: 1 1 0; min-width: 0; }
.howto-step {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 22px 24px;
  opacity: 0.45; transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, box-shadow 0.45s;
}
/* scroll-sequence: each step lights up as it scrolls into the upper viewport */
.howto-step.hl-active { opacity: 1; transform: none; }
.howto-step.s-gold.hl-active { box-shadow: 0 14px 36px rgba(203, 161, 53, 0.18); }
.howto-step.s-blue.hl-active { box-shadow: 0 14px 36px rgba(79, 124, 255, 0.18); }
.howto-step.s-green.hl-active { box-shadow: 0 14px 36px rgba(62, 207, 142, 0.18); }
.howto-arrow { opacity: 0.22; transition: opacity 0.55s ease; }
.howto-arrow.hl-active { opacity: 1; }
/* Colored top bar + tinted wash give each step its own identity. */
.howto-step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.howto-step .stat-icon { margin-bottom: 2px; }
.howto-step h3 { font-size: 17px; font-weight: 700; }
.howto-step p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.howto-step:hover { border-color: var(--border-strong); }
.howto-step.s-gold::before { background: var(--gold); }
.howto-step.s-blue::before { background: var(--blue); }
.howto-step.s-green::before { background: var(--green); }
.howto-step.s-gold { background: linear-gradient(165deg, rgba(203, 161, 53, 0.14), var(--card) 56%); }
.howto-step.s-blue { background: linear-gradient(165deg, rgba(79, 124, 255, 0.14), var(--card) 56%); }
.howto-step.s-green { background: linear-gradient(165deg, rgba(62, 207, 142, 0.14), var(--card) 56%); }

.howto-arrow { flex: 0 0 58px; display: flex; align-items: center; justify-content: center; }
.howto-arrow svg { width: 54px; height: 26px; overflow: visible; }
.flow-dash { animation: flowDash 1.1s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -25.5; } }
@media (prefers-reduced-motion: reduce) { .flow-dash { animation: none; } }

/* Latest placements */
.landing-recent {
  position: relative;
  padding-top: 86px;
  padding-bottom: 78px;
}
.landing-recent::before {
  content: "";
  position: absolute;
  inset: 14px 0 8px;
  border-radius: 28px;
  background:
    radial-gradient(70% 110% at 10% 0%, rgba(203, 161, 53, 0.14), transparent 62%),
    radial-gradient(70% 110% at 95% 30%, rgba(79, 124, 255, 0.13), transparent 60%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  z-index: -1;
}
.recent-carousel-window {
  position: relative;
  overflow: hidden;
  margin: -20px auto -34px;
  padding: 20px 48px 34px;
  max-width: min(calc(100% + 96px), 1506px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.recent-cards {
  --recent-card-w: clamp(280px, 24vw, 360px);
  --recent-gap: 16px;
  --recent-duration: 42s;
  display: flex;
  align-items: stretch;
  gap: var(--recent-gap);
  width: max-content;
  will-change: transform;
}
.recent-cards.is-looping {
  animation: recentRoleMarquee var(--recent-duration) linear infinite;
}
.recent-cards.is-static {
  width: 100%;
  justify-content: center;
  transform: none;
}
.recent-cards.is-looping:has(.recent-card:hover),
.recent-cards.is-looping:has(.recent-card:focus-within) {
  animation-play-state: paused;
}
@keyframes recentRoleMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--recent-gap) / 2))); }
}
@media (prefers-reduced-motion: reduce) {
  .recent-cards.is-looping {
    animation: none;
  }
}
.recent-card {
  --recent-accent: var(--gold-bright);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
  flex: 0 0 var(--recent-card-w);
  min-height: 198px;
  padding: 18px 16px 16px;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--recent-accent) 35%, var(--border));
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--recent-accent) 14%, transparent), transparent 38%),
    rgba(22, 27, 46, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  transition: border-color 0.18s, transform 0.18s, background 0.18s, box-shadow 0.18s;
}
.recent-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--recent-accent), transparent 86%);
}
.recent-card::after {
  content: "NEW";
  position: absolute; right: 12px; top: 12px;
  font-size: 9px; font-weight: 900; letter-spacing: 0.9px;
  color: var(--recent-accent);
  background: color-mix(in srgb, var(--recent-accent) 12%, rgba(255, 255, 255, 0.06));
  border: 1px solid color-mix(in srgb, var(--recent-accent) 30%, transparent);
  border-radius: 999px; padding: 3px 7px;
}
.recent-card:hover {
  border-color: color-mix(in srgb, var(--recent-accent) 72%, white);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--recent-accent) 18%, transparent), transparent 42%),
    var(--card-hover);
  transform: translateY(-8px) rotate(-0.3deg);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.44), 0 0 34px color-mix(in srgb, var(--recent-accent) 12%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .recent-cards { animation: none; }
}
.recent-gold { --recent-accent: var(--gold-bright); }
.recent-blue { --recent-accent: var(--blue-bright); }
.recent-green { --recent-accent: var(--green); }
.recent-purple { --recent-accent: #a78bfa; }
.recent-card-top { display: flex; align-items: center; gap: 9px; min-height: 42px; padding-right: 42px; }
.recent-card-top .avatar { align-self: center; }
.recent-card-top .person-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-card-role { font-size: 15.5px; font-weight: 900; line-height: 1.22; letter-spacing: -0.15px; margin-top: 3px; }
.recent-card-co {
  display: inline-flex; align-self: flex-start;
  max-width: 100%;
  font-size: 12.5px; font-weight: 800; color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  margin-top: -1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-card-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* Dithered hero band (landing CTA + dashboard header) */
.dither-section { position: relative; overflow: hidden; border-radius: 22px; isolation: isolate; }
.dither-section canvas.dither { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.dither-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(8, 10, 18, 0.35), rgba(8, 10, 18, 0.82) 70%),
    linear-gradient(180deg, rgba(8, 10, 18, 0.45), rgba(8, 10, 18, 0.6));
}
.dither-content { position: relative; z-index: 1; }

.landing-footcta.dither-section { padding: 56px 32px 60px; margin-bottom: 40px; border: 1px solid var(--border-strong); }
.landing-footcta .dither-content { text-align: center; }

.dash-hero {
  margin-bottom: 26px; padding: 26px 28px;
  border: 1px solid var(--border-strong);
  overflow: visible;
  z-index: 1;
}
.dash-hero canvas.dither,
.dash-hero .dither-scrim {
  border-radius: inherit;
  clip-path: inset(0 round 22px);
}
.dash-hero-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-hero-inner .page-title { flex: 1; min-width: 0; }
.dash-hero-inner .page-title h1 { font-size: 23px; }
.dash-hero-inner .topbar-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 560px) { .dash-hero-inner .topbar-actions { width: 100%; } .dash-hero-inner .topbar-actions .btn { flex: 1; justify-content: center; } }

/* Button sheen on hover */
.btn { position: relative; overflow: hidden; }
.btn-gold::after, .btn-blue::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); transition: left 0.55s ease; pointer-events: none;
}
.btn-gold:hover::after, .btn-blue:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) { .btn-gold::after, .btn-blue::after { display: none; } }

/* Footer */
.site-footer {
  position: relative;
  margin-top: 28px;
  padding-top: 36px;
  padding-bottom: 32px;
  border-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 161, 53, 0.42) 18%, rgba(120, 160, 255, 0.38) 78%, transparent);
}
.app-footer { margin-top: auto; padding: 32px 0 24px; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: start;
  gap: clamp(30px, 7vw, 96px);
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; max-width: 470px; }
.footer-brand .landing-crest { width: 42px; height: 42px; flex: 0 0 auto; }
.footer-brand-copy { min-width: 0; }
.footer-brand .brand-name { margin-top: 1px; font-size: 14px; font-weight: 800; }
.footer-brand p {
  max-width: 430px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: clamp(24px, 4vw, 54px);
}
.footer-link-group { display: grid; align-content: start; gap: 8px; }
.footer-link-group > span {
  margin-bottom: 2px;
  color: var(--text-faint);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.footer-links a { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.footer-links a:hover { color: var(--blue-bright); text-decoration: none; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.footer-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.5;
}
.footer-trust strong { color: var(--text-muted); font-weight: 700; }
.footer-trust-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(203, 161, 53, 0.16);
  border-radius: 8px;
  background: rgba(203, 161, 53, 0.07);
  color: var(--gold-bright);
}
.footer-trust-icon svg { width: 14px; height: 14px; }
.footer-credit {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.footer-credit i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); opacity: 0.55; }

.privacy-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.privacy-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.privacy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--gold-bright), var(--blue-bright));
}
.privacy-kicker {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: var(--gold-bright);
  text-transform: uppercase;
}
.privacy-card h2 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.privacy-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.privacy-card p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .section-head-latest {
    display: block;
    text-align: left;
  }
  .section-head-latest p {
    margin-top: 12px;
  }
  .privacy-wrap {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-links {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .section-head-pathways {
    padding-top: 18px;
  }
  .howto-flow { flex-direction: column; align-items: stretch; gap: 16px; }
  .howto-arrow { display: none; }
  .recent-carousel-window {
    margin: -16px -18px -28px;
    padding: 16px 34px 28px;
    max-width: none;
  }
  .recent-cards { --recent-card-w: min(82vw, 310px); --recent-gap: 12px; }
}

/* Closing CTA */
.landing-footcta {
  text-align: center; padding-top: 40px; padding-bottom: 80px;
}
.landing-footcta h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.landing-footcta p { color: var(--text-muted); margin: 8px 0 24px; }

@media (max-width: 900px) {
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .landing section, .landing-topnav { padding-left: 18px; padding-right: 18px; }
  .landing-hero { padding-top: 40px; }
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.ic-gold { background: var(--gold-dim); color: var(--gold-bright); }
.ic-blue { background: var(--blue-dim); color: var(--blue-bright); }
.ic-green { background: var(--green-dim); color: var(--green); }
.ic-purple { background: var(--purple-dim); color: var(--purple); }
.ic-teal { background: var(--teal-dim); color: var(--teal); }
.ic-red { background: var(--red-dim); color: var(--red); }

.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--text-muted); }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* Grid items default to min-width:auto, which lets a wide table stretch its
   card past the viewport. Forcing min-width:0 makes every card shrink to the
   track width and the table scrolls inside it instead — all cards equal. */
.grid-2 > *, .grid-2b > *, .grid-stats > *, .alumni-grid > * { min-width: 0; }

@media (max-width: 1100px) {
  .grid-2, .grid-2b { grid-template-columns: 1fr; }
}
/* ---------- Mobile ---------- */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-toggle:active { background: rgba(255, 255, 255, 0.12); }
.menu-toggle svg { transition: transform 180ms ease; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }

  body::before, body::after { display: none; }

  /* Mobile uses the bottom tab bar as primary navigation. */
  .sidebar {
    display: none;
  }

  .main { padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); }

  .topbar { gap: 10px; margin-bottom: 18px; }
  .topbar-crest { width: 44px; height: 44px; }
  .page-title h1 { font-size: 19px; }
  .topbar-actions { width: 100%; margin-left: 0; gap: 8px; }
  .search-box { flex: 1; min-width: 0; }
  .topbar-actions .btn { flex: 1; justify-content: center; padding: 11px 10px; white-space: nowrap; }

  .card { padding: 16px; }
  .grid-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { gap: 10px; }
  .stat-icon { width: 40px; height: 40px; border-radius: 11px; }
  .stat-value { font-size: 19px; }
  .stat-label { font-size: 11px; }

  .bar-chart { height: 170px; gap: 8px; }
  .bar-label { font-size: 9px; transform: rotate(-34deg) translateX(-6px); max-width: 46px; }
  .donut-wrap { justify-content: center; }
  .class-year-metrics { grid-template-columns: 1fr; }
  .class-year-visual {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }
  .class-year-legend {
    width: 100%;
  }
  .class-year-insight-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar .select { flex: 1; min-width: 130px; }
  .dir-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-summary div:first-child { grid-column: 1 / -1; }
  .hbar-name { width: 96px; font-size: 11px; }
  .pay-stat { white-space: normal; }

  th, td { padding: 10px 8px; font-size: 12.5px; }

  .modal { padding: 18px; border-radius: 16px; }
  .modal-head h2 { font-size: 16px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1; justify-content: center; }

  .term-head h3 { font-size: 14.5px; }
  .alumni-grid { grid-template-columns: 1fr; }
  .company-stats { padding: 12px; gap: 8px; }
  .pending-actions { flex-wrap: wrap; }
  .detail-row { flex-direction: column; gap: 2px; }
  .detail-row .k { width: auto; }

}

/* ---------- Charts ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: 18px; height: 200px; padding-top: 10px; }

.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }

.bar-val { font-size: 12px; font-weight: 700; color: var(--text); }

.bar-fill {
  width: 100%;
  max-width: 52px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 4px;
}
.bar-fill.gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }
.bar-fill.current { box-shadow: 0 0 18px rgba(232, 194, 91, 0.4); }

.bar-label { font-size: 11px; color: var(--text-muted); text-align: center; white-space: nowrap; }
.bar-label-short { display: none; }
.bar-label-full { display: inline; }

.bar-col.clickable { cursor: pointer; border-radius: 8px; }
.bar-col.clickable:hover .bar-fill { filter: brightness(1.25); }
.bar-col.clickable:hover .bar-label { color: var(--text); }

.donut-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 160px; }

.legend-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-name { color: var(--text-muted); flex: 1; line-height: 1.3; }
.legend-val { font-weight: 600; white-space: nowrap; }

.hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hbar-name { width: 150px; font-size: 12.5px; color: var(--text-muted); line-height: 1.3; flex-shrink: 0; }
.hbar-track { flex: 1; height: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 99px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.hbar-fill.blue { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.hbar-count { width: 24px; text-align: right; font-size: 12.5px; font-weight: 600; }

.class-year-insight {
  margin-top: 14px;
  padding: 2px 0 0;
  cursor: pointer;
}
.class-year-insight:hover .class-year-insight-note {
  border-color: rgba(123, 160, 255, 0.2);
}
.class-year-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.class-year-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}
.class-year-metric span:not(.legend-dot) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}
.class-year-metric strong {
  color: var(--text);
  font-size: 14px;
}
.class-year-visual {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.class-year-ring {
  width: 154px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(17, 21, 35, 0.96) 0 52%, transparent 53%),
    conic-gradient(var(--segments));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.22);
}
.class-year-ring div {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  background: rgba(12, 15, 26, 0.78);
  border: 1px solid var(--border);
}
.class-year-ring strong {
  font-size: 24px;
  line-height: 1;
}
.class-year-ring span {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.class-year-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.class-year-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
}
.class-year-legend-row span:not(.legend-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.class-year-legend-row strong {
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.class-year-insight-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.09), rgba(203, 161, 53, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.35;
}
.class-year-sharebar {
  display: flex;
  gap: 3px;
  height: 12px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.class-year-sharebar span {
  flex: 0 0 var(--w);
  background: var(--c);
  min-width: 5px;
}
.class-year-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.class-year-mini {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}
.class-year-mini span {
  display: block;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.class-year-mini strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.class-year-mini em {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}
.class-year-footnote {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.35;
}

/* ---------- Leaderboard (top companies) ---------- */
.leaderboard { display: flex; flex-direction: column; gap: 4px; }
.lb-row { display: flex; align-items: center; gap: 13px; padding: 8px 6px; border-radius: 10px; }
.lb-row.clickable-row { margin: 0; }
.lb-row + .lb-row { border-top: 1px solid var(--border); }
.lb-rank {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.05); color: var(--text-muted);
  border: 1px solid var(--border);
}
.lb-rank-1 { background: var(--gold-dim); color: var(--gold-bright); border-color: rgba(203, 161, 53, 0.5); }
.lb-rank-2 { background: rgba(199, 205, 218, 0.14); color: #c7cdda; border-color: rgba(199, 205, 218, 0.4); }
.lb-rank-3 { background: rgba(205, 127, 68, 0.16); color: #d98a4f; border-color: rgba(205, 127, 68, 0.45); }
.lb-name { flex: 1; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count {
  flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--text);
  background: rgba(255, 255, 255, 0.06); padding: 3px 11px; border-radius: 99px;
}

/* ---------- Dumbbell range (pay by industry) ---------- */
.dumb-chart { display: flex; flex-direction: column; gap: 14px; }
.dumb-scale { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-faint); margin-bottom: 2px; }
.dumb-scale-track { flex: 1; display: flex; justify-content: space-between; }
.dumb-row { display: flex; align-items: center; gap: 12px; }
.dumb-name { width: 130px; flex-shrink: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }
.dumb-track { position: relative; flex: 1; height: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 99px; }
.dumb-range { position: absolute; top: 0; bottom: 0; min-width: 2px; border-radius: 99px; background: linear-gradient(90deg, rgba(203, 161, 53, 0.45), rgba(232, 194, 91, 0.7)); }
.dumb-dot {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-bright); border: 2px solid var(--bg);
  transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(203, 161, 53, 0.6);
}
.dumb-val { width: 78px; flex-shrink: 0; text-align: right; font-size: 12px; white-space: nowrap; }
.dumb-val strong { font-size: 12.5px; }

/* ---------- Pay trend line ---------- */
.trend-wrap { margin-top: 6px; }
.trend-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Clickable chart elements ---------- */
.donut-seg { pointer-events: visibleStroke; transition: opacity 0.15s, stroke-width 0.15s; }
.donut-seg.clickable { cursor: pointer; }
.donut-seg.is-hovered { stroke-width: 7; opacity: 1; }
.donut-wrap.is-hovering .donut-seg:not(.is-hovered) { opacity: 0.35; }
.donut-wrap text { pointer-events: none; }
.legend-row.clickable { cursor: pointer; border-radius: 7px; padding: 2px 6px; margin: 0 -6px; transition: background 0.12s; }
.legend-row.clickable:hover { background: rgba(255, 255, 255, 0.05); }
.legend-row.clickable:hover .legend-name { color: var(--text); }
.dumb-row.clickable-row { cursor: pointer; border-radius: 8px; padding: 5px 6px; margin: 0 -6px; transition: background 0.12s; }
.dumb-row.clickable-row:hover { background: rgba(255, 255, 255, 0.04); }
.detail-list { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Dashboard home widgets ---------- */
.recruiting-snapshot { display: flex; flex-direction: column; gap: 12px; }
.recruiting-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.recruiting-metric {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.recruiting-metric span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.recruiting-metric strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-stack {
  display: flex;
  gap: 4px;
  height: 14px;
  margin-bottom: 6px;
  padding: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.activity-segment {
  min-width: 0;
  border-radius: 99px;
}
.activity-segment.green, .activity-dot.green { background: linear-gradient(90deg, var(--green), #7ef0b8); }
.activity-segment.blue, .activity-dot.blue { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.activity-segment.gold, .activity-dot.gold { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.activity-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 7vw, 64px);
  flex-wrap: wrap;
  width: 100%;
}
.activity-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 0;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
}
.activity-legend-item span:not(.activity-dot) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-legend-item strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.snapshot-insight {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.snapshot-insight strong {
  min-width: 0;
  color: var(--text);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-list, .rank-list { display: flex; flex-direction: column; gap: 4px; }
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
}
.mentor-row, .recent-row, .rank-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.recent-row.clickable-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 14px;
  min-height: 0;
  padding: 13px 14px;
  margin: 0;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 1px solid var(--border);
}
.recent-row > * { align-self: center; }
.recent-row .person-name,
.recent-row .person-sub { line-height: 1.25; }
.recent-row .person-sub {
  margin-top: 3px;
}
.recent-row .pill { justify-self: end; }
.mentor-row + .mentor-row, .rank-row + .rank-row { border-top: 1px solid var(--border); }
.recent-row:last-child { border-bottom: 0; }
.mentor-row:hover, .rank-row:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
}
.recent-row.clickable-row:hover { background: rgba(255, 255, 255, 0.035); }
.mentor-row .pill, .recent-row .pill { flex-shrink: 0; }
.mentor-row-action {
  flex-shrink: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.mentor-sub span {
  color: var(--text);
  font-weight: 700;
}
.rank-val { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--green); }
.rank-row .lb-rank { flex-shrink: 0; }

/* ---------- Brother Directory (profile cards) ---------- */
.dir-year { margin-bottom: 26px; }
.dir-year-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.dir-year-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.dir-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 16px;
}
.dir-summary div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
}
.dir-summary strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
}
.dir-summary span {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card.dir-card {
  --dir-a: var(--blue-bright);
  --dir-bg: rgba(79, 124, 255, 0.045);
  position: relative; overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  height: 100%;
  padding: 16px;
  border-color: var(--border);
  background: var(--surface-1);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.dir-card::before {
  content: none;
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 3px;
  background: linear-gradient(90deg, var(--dir-a), color-mix(in srgb, var(--dir-a) 15%, transparent));
  opacity: 0.88;
}
.card.dir-card:hover {
  border-color: var(--blue-bright);
  background: var(--surface-2);
  transform: none;
  box-shadow: none;
}
.card.dir-class-newest { --dir-a: var(--gold-bright); --dir-bg: var(--gold-dim); }
.card.dir-class-young { --dir-a: var(--gold-bright); --dir-bg: var(--gold-dim); }
.card.dir-class-mid { --dir-a: var(--blue-bright); --dir-bg: var(--blue-dim); }
.card.dir-class-upper { --dir-a: var(--teal); --dir-bg: var(--teal-dim); }
.card.dir-class-senior { --dir-a: var(--green); --dir-bg: var(--green-dim); }
.card.dir-class-alumni { --dir-a: var(--purple); --dir-bg: var(--purple-dim); }
.card.dir-class-unknown { --dir-a: var(--text-faint); --dir-bg: rgba(255, 255, 255, 0.04); }
.card.dir-placement-current { --dir-a: var(--green); --dir-bg: rgba(62, 207, 142, 0.055); }
.card.dir-placement-upcoming { --dir-a: var(--blue-bright); --dir-bg: rgba(79, 124, 255, 0.055); }
.card.dir-placement-completed { --dir-a: var(--gold); --dir-bg: rgba(203, 161, 53, 0.035); }
.card.dir-placement-alumni { --dir-a: var(--gold-bright); --dir-bg: rgba(203, 161, 53, 0.05); }
.card.dir-placement-empty { --dir-a: var(--text-faint); --dir-bg: rgba(255, 255, 255, 0.02); }
.dir-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  min-height: 42px;
}
.dir-card-top .avatar { flex-shrink: 0; }
.dir-card .avatar {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dir-a) 16%, transparent), rgba(255, 255, 255, 0.05));
  color: color-mix(in srgb, var(--dir-a) 48%, white);
}
.dir-id { flex: 1; min-width: 0; }
.dir-id .person-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-id .person-sub {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dir-member-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 0;
}
.dir-member-tags .pill {
  flex-shrink: 0;
  align-self: flex-end;
  padding: 4px 8px;
  font-size: 10.5px;
  white-space: nowrap;
}
.dir-class-tag {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
}
.dir-alumni-status {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dir-recent {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.dir-placement-company {
  display: -webkit-box;
  min-height: 0;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dir-role {
  display: -webkit-box;
  min-height: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.28;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dir-placement-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  margin-top: 0;
  padding-top: 7px;
}
.dir-placement-meta span {
  min-width: 0;
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dir-empty {
  min-height: 0;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.dir-empty strong { color: var(--text-muted); font-size: 13px; }
.dir-empty span { color: var(--text-faint); font-size: 11.5px; line-height: 1.4; }
.dir-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  min-height: 30px;
}
.dir-foot-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}
.dir-tag {
  font-size: 11.5px; font-weight: 600; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05); padding: 3px 9px; border-radius: 99px;
}
.dir-tag-upcoming {
  color: var(--blue-bright);
  background: rgba(79, 124, 255, 0.10);
}
.dir-view {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-bright);
}

/* ---------- Tables ---------- */
.table-wrap { overflow: visible; max-width: 100%; min-width: 0; }
.table-wrap table { width: 100%; min-width: 0; table-layout: fixed; }
.table-wrap th,
.table-wrap td { overflow-wrap: anywhere; }

table { width: 100%; border-collapse: collapse; }

.placement-table.full {
  table-layout: fixed;
  min-width: 0;
}
.placement-table.compact {
  table-layout: fixed;
  min-width: 0;
}
.placement-table .col-brother { width: 17%; }
.placement-table .col-role { width: 27%; }
.placement-table .col-company { width: 18%; }
.placement-table .col-industry { width: 12%; }
.placement-table .col-term { width: 10%; }
.placement-table .col-pay { width: 7%; }
.placement-table .col-status { width: 9%; }
.placement-table.compact .col-brother { width: 28%; }
.placement-table.compact .col-role { width: 28%; }
.placement-table.compact .col-term { width: 23%; }
.placement-table.compact .col-status { width: 21%; }
.placement-table .person-name,
.placement-table .person-sub,
.placement-table .company-link {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}
.placement-table td,
.placement-table th {
  min-width: 0;
}
.placement-table .person-cell {
  min-width: 0;
}
.placement-table .person-cell > div,
.placement-table .td-role {
  min-width: 0;
}
.placement-table.compact th:first-child,
.placement-table.compact td.td-brother {
  padding-right: 22px;
}
.placement-table.compact th:nth-child(2),
.placement-table.compact td.td-role {
  padding-left: 16px;
}
.placement-table.compact td.td-term,
.placement-table.compact td.td-status {
  text-align: right;
}
.placement-table.compact th,
.placement-table.compact td {
  padding-left: 8px;
  padding-right: 8px;
}
.placement-table.compact td.td-term .pill,
.placement-table.compact td.td-status .pill {
  white-space: nowrap;
}

th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}

tbody tr { transition: background 0.12s; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: rgba(255, 255, 255, 0.03); }
tbody tr:last-child td { border-bottom: none; }

.person-cell { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.person-name { font-weight: 600; font-size: 13px; }
.person-sub { font-size: 11.5px; color: var(--text-muted); }

/* ---------- Pills & badges ---------- */
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.pill-gold { background: var(--gold-dim); color: var(--gold-bright); }
.pill-blue { background: var(--blue-dim); color: var(--blue-bright); }
.pill-green { background: var(--green-dim); color: var(--green); }
.pill-purple { background: rgba(167, 139, 250, 0.11); color: #c7b8ff; }
.pill-red { background: var(--red-dim); color: var(--red); }
.pill-muted { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.submit-type-note {
  margin: -2px 0 2px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 161, 53, 0.18);
  border-radius: 12px;
  background: rgba(203, 161, 53, 0.075);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.submit-type-note-top {
  margin: 0 0 16px;
}
.choice-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 800;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.choice-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.help-topic-field {
  margin-top: 0;
  display: grid;
  gap: 8px;
}
.help-topic-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.help-topic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.help-topic-chip {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 120ms ease;
}
.help-topic-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.help-topic-chip:active { transform: scale(0.97); }
.help-topic-chip.active {
  border-color: rgba(65, 209, 157, 0.32);
  background: var(--green-dim);
  color: var(--green);
}
.choice-pill.active {
  color: var(--blue-bright);
  background: var(--blue-dim);
  border-color: rgba(79, 124, 255, 0.34);
}
.choice-pill:active { transform: translateY(1px); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }

.select {
  box-sizing: border-box;
  width: auto;
  height: 44px;
  min-height: 44px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}
.select:focus { border-color: var(--blue); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 14, 0.75);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 24px;
  overflow-y: auto;
}

.modal {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  animation: modalIn 0.18s ease-out;
}

.modal.profile-detail-modal {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: min(860px, calc(100vw - 48px));
  max-width: min(860px, calc(100vw - 48px));
  max-height: none;
  overflow: visible;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal-head h2 { font-size: 18px; font-weight: 700; }
.modal-head p { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-self: stretch;
    width: 100%;
  }

  .topbar-actions .search-box {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .topbar-actions {
    flex-wrap: wrap;
  }

  .topbar-actions .search-box,
  .topbar-actions .btn-gold {
    width: 100%;
    justify-content: center;
  }
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field label .req { color: var(--gold-bright); }

.field input, .field select, .field textarea {
  box-sizing: border-box;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select {
  height: 44px;
  min-height: 44px;
  line-height: 1.2;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 70px; }
.field .anon-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.09), rgba(203, 161, 53, 0.055)), rgba(15, 19, 34, 0.76);
  cursor: pointer;
}
.field .anon-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--gold-bright);
}
.field .anon-toggle span {
  display: grid;
  gap: 2px;
}
.field .anon-toggle strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}
.field .anon-toggle em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.35;
}
.form-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { box-sizing: border-box; width: 100%; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); padding: 10px 12px; font-size: 13px; outline: none; transition: border-color 0.15s; }
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select { height: 44px; min-height: 44px; line-height: 1.2; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 82px; }
.locked-field input { color: var(--text-muted); background: rgba(255, 255, 255, 0.045); }
.field-note {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.35;
}
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }

.profile-settings-form .form-grid {
  column-gap: 16px;
  row-gap: 18px;
}
.profile-mentor-note-section {
  display: grid;
  gap: 14px;
}
.profile-mentor-note-section > .field,
.profile-mentor-note-section .help-topic-field {
  margin: 0;
}
.profile-delete-note {
  margin: 18px 0 0;
  line-height: 1.5;
}
.profile-settings-actions {
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.profile-settings-actions.has-profile-actions {
  justify-content: space-between;
}
.profile-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-action-group-primary {
  gap: 12px;
}

@media (max-width: 640px) {
  .profile-settings-form .form-grid {
    row-gap: 16px;
  }
  .profile-settings-actions,
  .profile-settings-actions.has-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }
  .profile-action-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .profile-action-group .btn {
    width: 100%;
  }
}

.form-error { color: var(--red); font-size: 12.5px; margin-top: 12px; display: none; }

/* roster match feedback in the submit form */
.match-note {
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.match-note.found { background: var(--green-dim); color: var(--green); }
.match-note.fresh { background: var(--gold-dim); color: var(--gold-bright); }
.edit-placement-profile-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(79, 124, 255, 0.1);
  border: 1px solid rgba(79, 124, 255, 0.22);
  color: var(--text-muted);
  line-height: 1.45;
}
.edit-placement-profile-note strong {
  color: var(--text);
}
.edit-placement-profile-note .btn {
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .edit-placement-profile-note {
    align-items: stretch;
    flex-direction: column;
  }
}

.new-brother-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-bright);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 12px;
}

/* ---------- Toast ---------- */
#toastRoot {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(640px, calc(100vw - 44px));
  pointer-events: none;
}
.toast {
  width: fit-content;
  max-width: 640px;
  min-height: 48px;
  background: rgba(13, 16, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  padding: 13px 17px 13px 14px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  gap: 11px;
  pointer-events: auto;
  cursor: pointer;
  animation: toastIn 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.toast.leaving {
  animation: toastOut 190ms ease both;
}
.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-bright);
  background: rgba(79, 124, 255, 0.12);
}
.toast-icon-svg {
  width: 18px;
  height: 18px;
}
.toast-message {
  min-width: 0;
  color: rgba(245, 247, 255, 0.94);
}
.toast-success .toast-icon {
  color: var(--green);
  background: rgba(62, 207, 142, 0.12);
}
.toast-warning .toast-icon {
  color: var(--gold-bright);
  background: rgba(203, 161, 53, 0.13);
}
.toast-error .toast-icon {
  color: var(--red);
  background: rgba(242, 95, 92, 0.13);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

/* ---------- Admin ---------- */
.admin-lock {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
}
.admin-lock .lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--gold-dim);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.pending-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-soft);
}

.pending-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pending-head .when { margin-left: auto; font-size: 11.5px; color: var(--text-faint); }

.pending-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 18px;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.pending-detail .k { color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; }
.pending-detail .v { color: var(--text); }

.pending-actions { display: flex; gap: 10px; }
.deleted-account-help {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 161, 53, 0.18);
  border-radius: 12px;
  background: rgba(203, 161, 53, 0.065);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.deleted-account-actions {
  text-align: right;
  white-space: nowrap;
}
.deleted-account-actions .btn + .btn {
  margin-left: 8px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-faint);
}
.empty-state .big { font-size: 32px; margin-bottom: 8px; }
.empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 161, 53, 0.25);
  border-radius: 14px;
  margin-bottom: 2px;
  background: rgba(203, 161, 53, 0.08);
  color: var(--gold-bright);
  box-shadow: inset 0 1px 0 rgba(255, 232, 160, 0.08);
}
.empty-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.actionable-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.actionable-empty p {
  margin: 0;
  max-width: 520px;
}
.admin-empty-state {
  padding: 28px 16px;
}

/* ---------- Alumni cards ---------- */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 18px;
}

.alumni-card {
  --alumni-accent: var(--gold-bright);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--alumni-accent) 24%, transparent);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--alumni-accent) 10%, transparent), transparent 40%),
    linear-gradient(155deg, rgba(227, 185, 79, 0.055), transparent 50%),
    rgba(17, 22, 36, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 232, 160, 0.05), 0 14px 34px rgba(0, 0, 0, 0.15);
  backdrop-filter: none;
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-standard) var(--motion-ease), box-shadow var(--motion-standard);
}
.alumni-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--alumni-accent), color-mix(in srgb, var(--alumni-accent) 30%, transparent));
  opacity: 0.9;
}
.alumni-card:hover {
  border-color: color-mix(in srgb, var(--alumni-accent) 38%, transparent);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--alumni-accent) 13%, transparent), transparent 42%),
    linear-gradient(155deg, rgba(227, 185, 79, 0.07), transparent 52%),
    rgba(23, 29, 45, 0.94);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 232, 160, 0.07), 0 18px 40px rgba(0, 0, 0, 0.2);
}
.alumni-card.alumni-status-searching { --alumni-accent: var(--blue-bright); }
.alumni-card.alumni-status-education { --alumni-accent: #a99bf7; }
.alumni-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
}
.alumni-identity { min-width: 0; }
.alumni-card .person-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}
.alumni-card .person-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.alumni-status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.alumni-card .avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}
.alumni-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}
.alumni-career-block {
  padding-left: 14px;
  border-left: 2px solid var(--alumni-accent);
}
.alumni-career-label {
  display: block;
  margin-bottom: 7px;
  color: color-mix(in srgb, var(--alumni-accent) 88%, white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.alumni-career-block h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.alumni-career-org {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.alumni-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.alumni-meta-chips span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  color: var(--text-muted);
  background: rgba(7, 10, 18, 0.22);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
.alumni-context {
  display: grid;
  gap: 6px;
}
.alumni-context p {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.45;
}
.alumni-meta { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
.alumni-meta a { word-break: break-all; }
.alumni-links { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.alumni-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.alumni-contact:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}
.alumni-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  min-height: 50px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}
.alumni-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.alumni-view span { transition: transform var(--motion-fast) ease; }
.alumni-view:hover span { transform: translateX(3px); }
.alumni-view:focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--blue-bright);
  outline-offset: 4px;
}
.alumni-intro { margin: -6px 0 18px; }
.alumni-profile-showcase {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.profile-showcase[data-profile-tabs] .alumni-profile-menu {
  grid-template-columns: minmax(0, 1fr) 44px;
}
.alumni-profile-showcase .profile-tab-indicator {
  width: calc(100% - 44px);
}
.alumni-profile-showcase .direction-tabs[data-active-tab="profile"] .profile-tab-indicator {
  transform: translateX(0);
}
.alumni-profile-card {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.alumni-detail-list {
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  column-gap: clamp(20px, 5vw, 48px);
}
.alumni-detail-list .coop-detail-row .v {
  justify-self: stretch;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ---------- Term sections ---------- */
.term-block { margin-bottom: 24px; scroll-margin-top: 20px; }

@keyframes termFlash {
  0% { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim), 0 0 24px rgba(203, 161, 53, 0.25); }
  100% { border-color: var(--border); box-shadow: none; }
}
.term-block.term-flash { animation: termFlash 1.6s ease-out; }
.term-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.term-head h3 { font-size: 16px; font-weight: 700; }

/* ---------- Detail modal ---------- */
.detail-rows { display: flex; flex-direction: column; gap: 2px; }
.detail-row {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .k { width: 130px; color: var(--text-faint); flex-shrink: 0; }
.detail-row .v { color: var(--text); word-break: break-word; }

.placement-mini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
}
.placement-mini .t { font-weight: 600; font-size: 13px; }
.placement-mini .s { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.profile-modal-head { margin-bottom: 18px; }
.profile-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.35fr);
  gap: 0;
  align-items: stretch;
}
.profile-card-main {
  background: linear-gradient(180deg, rgba(27, 33, 56, 0.98), rgba(15, 19, 33, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: 18px 0 0 18px;
  padding: 22px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.profile-card-side {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 18px 18px 0;
  padding: 22px;
  min-width: 0;
}
.profile-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.profile-card-head .profile-card-top {
  min-width: 0;
}
.profile-edit-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.profile-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.profile-card-top h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.profile-card-top p,
.profile-note {
  color: var(--text-muted);
  font-size: 13px;
}
.profile-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}
.profile-label {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}
.profile-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-coop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.job-info-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}
@media (max-width: 780px) {
  .profile-showcase { grid-template-columns: 1fr; gap: 12px; }
  .profile-card-main,
  .profile-card-side {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
}

.section-gap { margin-top: 20px; }

.muted { color: var(--text-muted); }
.small { font-size: 12px; }

body::before, body::after {
  content: "";
  position: fixed;
  z-index: -2;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.10;
  pointer-events: none;
}
body::before {
  background: var(--gold);
  top: -22vw;
  right: -14vw;
  animation: auroraA 26s ease-in-out infinite alternate;
}
body::after {
  background: var(--teal);
  bottom: -26vw;
  left: -14vw;
  animation: auroraB 34s ease-in-out infinite alternate;
}
@keyframes auroraA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-12vw, 14vh) scale(1.25); }
}
@keyframes auroraB {
  from { transform: translate(0, 0) scale(1.2); }
  to { transform: translate(14vw, -12vh) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

/* let the aurora show through */
body { background: var(--bg); }
.sidebar { backdrop-filter: blur(10px); }
.card { background: rgba(22, 27, 46, 0.88); backdrop-filter: blur(6px); }

/* ---------- Company links & notes ---------- */
.company-link {
  color: var(--blue-bright);
  cursor: pointer;
  font-weight: 600;
}
.company-link:hover { text-decoration: underline; }
.company-link.quiet { color: var(--text-muted); font-weight: 500; }
.company-link.quiet:hover { color: var(--blue-bright); }

.clickable-row { cursor: pointer; border-radius: 8px; padding: 2px 6px; margin: 0 -6px 12px; }
.clickable-row:hover { background: rgba(255, 255, 255, 0.04); }
.clickable-row:hover .hbar-name { color: var(--text); }

.note-quote {
margin-top: 8px;
padding: 8px 12px;
border-left: 3px solid var(--gold);
background: rgba(203, 161, 53, 0.06);
border-radius: 0 8px 8px 0;
font-size: 12.5px;
color: var(--text-muted);
font-style: italic;
}

.detail-section { margin-top: 16px; }
.detail-section > .card-title { margin-bottom: 10px; }
.detail-kicker {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.placement-featured {
  border-color: rgba(203, 161, 53, 0.42);
  background: rgba(203, 161, 53, 0.08);
  box-shadow: inset 3px 0 0 var(--gold);
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.placement-mini.clickable { cursor: pointer; transition: background 0.12s; }
.placement-mini.clickable:hover { background: var(--card-hover); }

/* ---------- Donut hover + breakdown toggle ---------- */
.donut-seg.clickable:hover { opacity: 1; }

.seg-toggle {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin-left: auto;
}
.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
}
.seg-btn.active { background: var(--blue-dim); color: var(--blue-bright); }
.seg-btn:hover:not(.active) { color: var(--text); }

/* ---------- Sortable headers ---------- */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }

/* ---------- Pay insights ---------- */
.pay-stat { font-size: 12px; white-space: nowrap; }
.pay-stat strong { font-size: 12.5px; }

#syncIndicator { font-weight: 600; color: var(--text-faint); }
#syncIndicator.sync-error { color: var(--gold-bright); }

code {
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ============================================================
   cult-ui inspired components — Pi Kappa Phi gold / royal blue / white
   ============================================================ */

/* ---- Feature carousel for How it works (scroll-driven steps) ---- */
.feature-carousel { position: relative; height: 300vh; padding: 0; }
.fc-sticky { position: sticky; top: 6vh; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 16px 0; }
.fc-sticky .section-head { margin-bottom: 30px; }
.fc-stage { display: grid; grid-template-columns: 250px 1fr; gap: 52px; align-items: stretch; min-height: 60vh; }
.fc-rail { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-left: 32px; padding-top: 6px; padding-bottom: 6px; }
.fc-rail-line { position: absolute; left: 8px; top: 4px; bottom: 4px; width: 3px; background: var(--border-strong); border-radius: 3px; overflow: hidden; }
.fc-rail-fill { width: 100%; height: 0; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--blue)); transition: height 0.12s linear; }
/* Inactive steps sit shifted to the side, off the progress line; the active
   step slides onto the line. */
.fc-dot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: none; text-align: left; color: var(--text-muted); opacity: 0.4; transition: opacity 0.35s, color 0.35s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); padding: 0; transform: translateX(22px) scale(0.95); }
.fc-dot-node { position: absolute; left: -32px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-soft); border: 3px solid var(--border-strong); transition: border-color 0.35s, box-shadow 0.35s, background 0.35s; }
.fc-dot.done .fc-dot-node, .fc-dot.active .fc-dot-node { background: currentColor; border-color: currentColor; }
.fc-dot.active { opacity: 1; transform: translateX(0) scale(1); }
.fc-dot.done { opacity: 0.7; transform: translateX(22px) scale(0.95); }
.fc-dot-num { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; }
.fc-dot-title { font-size: 16px; font-weight: 700; color: var(--text); }
.fc-gold { color: var(--gold-bright); }
.fc-blue { color: var(--blue-bright); }
.fc-white { color: #ffffff; }
.fc-dot.active .fc-dot-node { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 22%, transparent); }
.fc-panels { position: relative; }
.fc-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 46px 52px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 24px;
  background:
    radial-gradient(120% 90% at 88% 8%, color-mix(in srgb, currentColor 16%, transparent), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, currentColor 10%, transparent), var(--card) 58%);
  opacity: 0; transform: translateY(34px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none;
}
.fc-panel.active { opacity: 1; transform: none; pointer-events: auto; }
.fc-big-num { position: absolute; top: 8px; right: 30px; font-size: 200px; font-weight: 800; line-height: 0.8; letter-spacing: -6px; color: currentColor; opacity: 0.12; pointer-events: none; }
.fc-panel .stat-icon { width: 62px; height: 62px; position: relative; }
.fc-panel .stat-icon svg { width: 30px; height: 30px; }
.fc-step-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: currentColor; position: relative; }
.fc-panel h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: var(--text); position: relative; }
.fc-panel p { font-size: 16px; color: var(--text-muted); line-height: 1.65; max-width: 520px; position: relative; }
@media (max-width: 760px) {
  .fc-stage { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .fc-rail { flex-direction: row; justify-content: flex-start; gap: 22px; padding-left: 0; }
  .fc-rail-line { display: none; }
  .fc-dot-node { position: static; margin-bottom: 4px; }
  .fc-panels { min-height: 360px; }
  .fc-big-num { font-size: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-carousel { height: auto; }
  .fc-sticky { position: static; min-height: 0; }
  .fc-panels { position: static; display: flex; flex-direction: column; gap: 28px; }
  .fc-panel { position: static; opacity: 1; transform: none; }
}

/* ---- Member sign-in ---- */
.texture-card {
  position: relative; border-radius: 22px; padding: 2px;
  background:
    linear-gradient(135deg, rgba(203, 161, 53, 0.55), rgba(79, 124, 255, 0.5) 60%, rgba(255, 255, 255, 0.18));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.texture-card-inner {
  position: relative; border-radius: 20px; padding: 38px 34px;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(79, 124, 255, 0.14), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 6px),
    var(--bg-soft);
}
.login-card { max-width: 520px; margin: 0 auto; }
.login-badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-bright); background: var(--gold-dim); border: 1px solid rgba(203, 161, 53, 0.3); padding: 3px 10px; border-radius: 999px; margin-bottom: 16px; }
.login-crest { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(203, 161, 53, 0.35)); margin-bottom: 12px; }
.login-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.login-card > .texture-card-inner > p { color: var(--text-muted); font-size: 14px; margin: 8px auto 22px; max-width: 380px; }
.btn-google { background: #fff; color: #1f2329; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); }
.btn-google:hover { filter: brightness(0.97); }
.login-note { margin-top: 16px; font-size: 12px; color: var(--text-faint); }

.signin-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.signin-or::before,
.signin-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}
.signin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.signin-help-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.auth-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid rgba(203, 161, 53, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 12.5px;
}
.auth-helper-row span {
  color: var(--text-muted);
}
.auth-info-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(12, 15, 26, 0.34);
  color: var(--text-muted);
}
.auth-info-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(232, 194, 91, 0.22);
  border-radius: 50%;
  background: rgba(203, 161, 53, 0.10);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.auth-info-callout strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 900;
}
.auth-info-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.btn-textlink {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue-bright);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}
.btn-textlink:hover { color: var(--gold-bright); }
.inline-textlink {
  display: inline;
  padding: 0;
  white-space: normal;
}

.locked-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(203, 161, 53, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(203, 161, 53, 0.12), rgba(79, 124, 255, 0.07)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.lock-ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--gold-bright);
}
.locked-note-t {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}
.locked-note-s {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
@media (max-width: 560px) {
  .signin-foot { align-items: flex-start; flex-direction: column; }
  .auth-helper-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .btn-textlink { white-space: normal; }
}

/* ---- Member-access roster chips (admin) ---- */
.auth-notice {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.12), rgba(203, 161, 53, 0.08));
  border: 1px solid var(--border-strong); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 22px;
}
.auth-notice-ic { font-size: 20px; flex-shrink: 0; }
.auth-notice-ic .lock-ic { display: block; }
.auth-notice-text { font-size: 13px; color: var(--text); line-height: 1.5; flex: 1; min-width: 0; }
.auth-notice .btn { flex-shrink: 0; }
@media (max-width: 600px) { .auth-notice { flex-wrap: wrap; } }
.auth-error-body { display: flex; gap: 14px; align-items: flex-start; }
.auth-error-ic { font-size: 26px; flex-shrink: 0; }
.auth-error-body p { font-size: 14px; line-height: 1.6; }
.admin-search-results { margin-bottom: 20px; }
.lookup-results { display: flex; flex-direction: column; gap: 18px; }
.lookup-group-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-faint); margin-bottom: 8px; }
.lookup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.018);
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.lookup-row:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}
.lookup-main { flex: 1; min-width: 0; }
.lookup-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lookup-sub { font-size: 12px; color: var(--text-muted); }
.lookup-actions { display: flex; gap: 6px; flex-shrink: 0; }
.sb-counts { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-access-panel {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #101523;
  border-color: rgba(123, 160, 255, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.member-access-panel[open] {
  border-color: rgba(203, 161, 53, 0.34);
}
.member-access-panel .admin-panel-body {
  margin-top: 22px;
}
.member-access-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(320px, 1.1fr) minmax(320px, 1.05fr);
  gap: 20px;
  align-items: stretch;
}
.prepared-member-box {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(120, 160, 255, 0.055), transparent 46%),
    rgba(8, 11, 19, 0.48);
}
.prepared-member-head,
.prepared-member-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.prepared-member-head .card-sub {
  max-width: 820px;
  margin: 5px 0 0;
  line-height: 1.5;
}
.prepared-member-form { margin-top: 18px; }
.prepared-member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.prepared-member-grid .field { min-width: 0; }
.prepared-member-grid .field.full { grid-column: 1 / -1; }
.prepared-member-actions {
  align-items: center;
  margin-top: 16px;
}
.prepared-member-options {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.prepared-placements-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(120, 160, 255, 0.14);
}
.prepared-placements-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.prepared-placements-head .card-sub {
  max-width: 760px;
  margin-top: 4px;
}
.prepared-placement-entries {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.prepared-placement-entry {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(120, 160, 255, 0.16);
  border-radius: 10px;
  background: rgba(12, 17, 29, 0.62);
}
.prepared-placement-entry legend {
  padding: 0 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}
.prepared-placement-remove {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.prepared-placement-remove:hover { color: #ff8b8b; }
.prepared-placement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.prepared-placement-grid .field { min-width: 0; }
.prepared-placement-grid .field.full { grid-column: 1 / -1; }
.prepared-pay-private .mini-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: normal;
}
.prepared-pay-private .mini-check input[type="checkbox"] {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
}
.prepared-placement-empty {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.member-access-info,
.authorized-email-box,
.password-reset-box {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 22px;
  background: rgba(4, 7, 17, 0.44);
}
.member-access-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
  gap: 12px;
}
.member-access-note {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
}
.access-allow-form {
  margin-top: 18px;
  gap: 10px;
}
.access-allow-form input {
  min-height: 44px;
  min-width: 220px;
}
.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.mini-check input {
  accent-color: var(--gold-bright);
}
.allowed-emails-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  max-height: 238px;
  overflow: auto;
  padding-right: 4px;
}
.allowed-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.allowed-email-row strong {
  color: var(--text);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.member-access-check {
  min-height: 22px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}
.password-reset-box {
  background:
    linear-gradient(135deg, rgba(203, 161, 53, 0.12), rgba(79, 124, 255, 0.07)),
    rgba(4, 7, 17, 0.54);
}
.password-reset-box .card-title {
  font-size: 15px;
  margin-bottom: 6px;
}
.access-reset-form {
  margin-top: 18px;
  gap: 12px;
}
.access-reset-form input {
  min-height: 48px;
  font-size: 14px;
  min-width: 300px;
}
.access-reset-form .btn {
  min-height: 48px;
  padding-inline: 18px;
}
.allow-list { display: flex; flex-wrap: wrap; gap: 8px; }
.allow-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card-hover); border: 1px solid var(--border); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 12.5px; }
.allow-remove { border: none; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); width: 18px; height: 18px; border-radius: 50%; line-height: 1; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.allow-remove:hover { background: var(--red-dim); color: var(--red); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.inline-form input { flex: 1; min-width: 220px; }
.inline-form .btn { flex-shrink: 0; }

@media (max-width: 920px) {
  .member-access-layout { grid-template-columns: 1fr; }
  .prepared-member-grid,
  .prepared-placement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .prepared-member-box { padding: 16px; }
  .prepared-member-head,
  .prepared-member-actions,
  .prepared-placements-head { align-items: stretch; flex-direction: column; }
  .prepared-member-grid,
  .prepared-placement-grid { grid-template-columns: 1fr; }
  .prepared-member-grid .field.full,
  .prepared-placement-grid .field.full { grid-column: auto; }
  .prepared-member-actions .btn { width: 100%; justify-content: center; }
  .prepared-placements-head .btn { width: 100%; justify-content: center; }
  .prepared-placement-entry { padding: 16px 14px 14px; }
}

@media (max-width: 640px) {
  .landing-hero {
    min-height: auto;
    padding: 92px 18px 72px;
  }
  .landing-headline {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.8px;
  }
  .landing-sub {
    font-size: 15px;
    line-height: 1.7;
  }
  .hero-actions,
  .topbar-actions,
  .form-actions {
    align-items: stretch;
  }
  .hero-actions .btn,
  .topbar-actions .btn,
  .form-actions .btn {
    white-space: normal;
    line-height: 1.2;
    min-height: 44px;
  }
  .landing-howto {
    padding-top: 64px;
    padding-bottom: 54px;
  }
  .howto-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .howto-flow .howto-step {
    flex: none;
    min-height: 190px;
  }
  .howto-step {
    padding: 28px 20px 24px;
    opacity: 1;
    transform: none;
  }
  .howto-step h3 { line-height: 1.25; }
  .howto-step p {
    font-size: 13.5px;
    line-height: 1.65;
  }
  .howto-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-panel,
  .admin-panel-toggle,
  .admin-panel::details-content {
    transition: none !important;
  }
}

/* ---- Cutout cards (cult-ui style notched corner) ---- */
.cutout-card {
  position: relative; border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.cutout-card::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 28px; height: 28px;
  background: linear-gradient(225deg, currentColor 0 3px, transparent 3px);
  opacity: 0.7;
}
.cut-gold { color: var(--gold-bright); }
.cut-blue { color: var(--blue-bright); }
.cut-white { color: rgba(255, 255, 255, 0.7); }
.cutout-card:hover { transform: translateY(-5px); }

/* ---- Neumorphic buttons (soft raised, inset on press) ---- */
.btn { box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.42), -3px -3px 9px rgba(255, 255, 255, 0.04); }
.btn:active { transform: translateY(1px) scale(0.99); box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.5), inset -2px -2px 6px rgba(255, 255, 255, 0.05); }
.btn-gold { box-shadow: 4px 4px 14px rgba(203, 161, 53, 0.32), -3px -3px 9px rgba(255, 255, 255, 0.05); }
.btn-blue { box-shadow: 4px 4px 14px rgba(79, 124, 255, 0.32), -3px -3px 9px rgba(255, 255, 255, 0.05); }
.btn-gold:active, .btn-blue:active { box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.35), inset -2px -2px 6px rgba(255, 255, 255, 0.08); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* ---- Direction-aware nav indicator ---- */
.nav-indicator {
  position: absolute; z-index: 0; border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.22), rgba(79, 124, 255, 0.11));
  box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.30), 0 10px 26px rgba(79, 124, 255, 0.10);
  pointer-events: none; opacity: 0;
  transition: top 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), left 0.26s ease, width 0.26s ease, height 0.26s ease, opacity 0.2s ease;
}
.nav-indicator.squash { animation: navSquash 0.36s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes navSquash { 0% { transform: scaleY(0.72); } 60% { transform: scaleY(1.07); } 100% { transform: scaleY(1); } }
.nav-item { position: relative; z-index: 1; }
.nav-item.active { background: transparent; }
@media (prefers-reduced-motion: reduce) { .nav-indicator { transition: opacity 0.2s ease; } .nav-indicator.squash { animation: none; } }

/* Desktop sidebar rail: icons stay pinned; the panel only reveals labels. */
@media (min-width: 861px) {
  .sidebar > .brand,
  .sidebar > .nav-label,
  .sidebar > .nav-item,
  .sidebar > .sidebar-account,
  .sidebar > .sidebar-footer {
    position: absolute;
    left: 13px;
  }

  .sidebar > .brand { top: 18px; }

  .sidebar > .nav-label:nth-child(2) { top: 104px; }
  .sidebar > .nav-item:nth-child(3) { top: 138px; }
  .sidebar > .nav-item:nth-child(4) { top: 192px; }
  .sidebar > .nav-item:nth-child(5) { top: 246px; }
  .sidebar > .nav-item:nth-child(6) { top: 300px; }
  .sidebar > .nav-item:nth-child(7) { top: 354px; }

  .sidebar > .nav-label-manage { top: 492px; }
  .sidebar > .nav-refresh { top: 526px; }
  .sidebar > .nav-admin { top: 580px; }

  .sidebar > .sidebar-account {
    top: 650px;
    width: 240px;
    margin-top: 0;
  }

  .sidebar > .sidebar-footer {
    bottom: 34px;
    width: 240px;
  }

  @media (max-height: 900px) {
    .sidebar {
      --manage-rail-top: clamp(430px, calc(100vh - 310px), 590px);
    }

    .sidebar > .nav-label-manage { top: var(--manage-rail-top); }
    .sidebar > .nav-refresh { top: calc(var(--manage-rail-top) + 34px); }
    .sidebar > .nav-admin { top: calc(var(--manage-rail-top) + 88px); }

    .sidebar > .sidebar-account {
      top: auto;
      bottom: 34px;
    }

    .sidebar > .sidebar-footer {
      display: none;
    }
  }
}

/* ---- How it works — larger pop-out steps with connector arrows ---- */
.howto-lg { padding-top: 56px; padding-bottom: 56px; }
.howto-lg .section-head { margin-bottom: 44px; }
.howto-lg .howto-flow { gap: 4px; }
.howto-lg .howto-step { padding: 42px 34px 38px; gap: 14px; border-radius: 22px; }
.howto-lg .howto-step .stat-icon { width: 64px; height: 64px; border-radius: 18px; }
.howto-lg .howto-step .stat-icon svg { width: 30px; height: 30px; }
.howto-lg .howto-step h3 { font-size: 24px; }
.howto-lg .howto-step p { font-size: 16px; line-height: 1.65; }
.howto-lg .howto-arrow { flex: 0 0 74px; }
.howto-lg .howto-arrow svg { width: 70px; height: 32px; }
/* The large cards need more room, so stack them earlier than the base 760px. */
@media (max-width: 880px) {
  .howto-lg .howto-flow { flex-direction: column; align-items: stretch; gap: 16px; }
  .howto-lg .howto-arrow { flex: 0 0 auto; padding: 8px 0; transform: rotate(90deg); }
  .howto-lg .howto-step { padding: 30px 26px; }
}
@media (max-width: 600px) {
  .landing-howto { padding-top: 58px; padding-bottom: 58px; }
  .landing-recent { padding-top: 68px; padding-bottom: 64px; }
  .landing-pathways { padding-top: 66px; padding-bottom: 48px; }
  .section-eyebrow { margin-bottom: 10px; }
  .section-head-latest p {
    padding-left: 12px;
  }
  .howto-lg { padding-top: 58px; padding-bottom: 58px; }
  .howto-lg .section-head { margin-bottom: 28px; }
  .howto-lg .howto-flow { gap: 18px; }
  .howto-lg .howto-step {
    overflow: visible;
    min-height: 0;
    padding: 24px 22px;
    border-radius: 16px;
  }
  .howto-lg .howto-step .stat-icon { width: 52px; height: 52px; border-radius: 15px; }
  .howto-lg .howto-step .stat-icon svg { width: 25px; height: 25px; }
  .howto-lg .howto-step h3 { font-size: 20px; }
  .howto-lg .howto-step p { font-size: 14.5px; }
}

/* ============================================================
   Sidebar expands as overlay instead of pushing content
   ============================================================ */

@media (min-width: 861px) {
  .app {
    grid-template-columns: var(--sidebar-collapsed-w) 1fr;
  }

  .sidebar {
    z-index: 200;
  }

  .dash-hero,
  .topbar,
  .main {
    z-index: 1;
  }
}

/* Keep modals/toasts above sidebar */
.modal-overlay {
  z-index: 1000;
}

#toastRoot {
  z-index: 1200;
}

/* ---------- Final scoped UI refinements: directory menu, landing text, profile/job cards ---------- */
.directory-command { margin-bottom: 24px; padding: 0; }
.directory-command-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.directory-command-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.directory-search {
  flex: 0 1 360px;
  max-width: 380px;
  min-width: 260px;
  min-height: 0;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  background: var(--card);
  border-color: var(--border);
  box-shadow: none;
}
.directory-search input { font-size: 13px; }
.directory-submit {
  min-height: 0;
  padding: 10px 18px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.directory-command-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 21, 35, 0.7);
}
.directory-command .dir-summary {
  margin: 0 0 14px;
  gap: 10px;
}
.directory-command .dir-summary div {
  min-height: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border);
}
.directory-command .dir-summary strong { font-size: 20px; }
.directory-filter-row { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.directory-filter-row .select { min-width: 180px; }
.directory-filter-meta { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.directory-hero,
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background:
    radial-gradient(90% 120% at 8% 8%, rgba(203, 161, 53, 0.18), transparent 48%),
    radial-gradient(90% 120% at 92% 18%, rgba(79, 124, 255, 0.18), transparent 52%),
    linear-gradient(135deg, rgba(18, 22, 37, 0.92), rgba(11, 14, 25, 0.76));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.page-hero {
  min-height: 172px;
  align-items: center;
}
.directory-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 18% 20%, black, transparent 70%);
}
.directory-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 22px;
}
.directory-hero-copy .eyebrow {
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.directory-hero-copy h1 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.directory-hero-copy p {
  max-width: 680px;
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.page-hero-controls {
  display: grid;
  gap: 12px;
  align-self: center;
  min-width: 0;
}
.page-hero-controls .directory-filter-panel {
  padding: 14px;
}
.page-hero-submit-row {
  justify-content: flex-end;
}
.directory-hero .dir-summary {
  grid-template-columns: repeat(5, minmax(76px, 1fr));
  margin: 0;
  gap: 8px;
}
.directory-hero .dir-summary div {
  min-height: 0;
  padding: 12px 13px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(8, 11, 21, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.directory-hero .dir-summary strong {
  font-size: 22px;
}
.directory-hero .dir-summary span {
  font-size: 11px;
}
.directory-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}
.directory-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: rgba(7, 10, 19, 0.42);
  backdrop-filter: blur(12px);
}
.directory-submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: transparent;
  box-shadow: none;
}
.directory-filter-panel .directory-search {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
  background: rgba(13, 17, 31, 0.86);
}
.directory-control-panel .directory-submit {
  justify-content: center;
  min-width: max-content;
}
.directory-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.directory-filter-grid .select,
.directory-filter-grid .btn {
  width: 100%;
  min-width: 0;
}
.directory-filter-grid .select {
  height: 40px;
  background-color: rgba(14, 18, 32, 0.9);
}
.topbar .search-box {
  flex: 1 1 280px;
}
.topbar .btn-gold {
  flex: 0 0 auto;
  white-space: nowrap;
}

.landing-hero .landing-kicker,
.landing-hero .landing-headline,
.landing-hero .landing-lede { animation-name: landingTextReveal; animation-duration: 920ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
.landing-hero .landing-headline { animation-delay: 0.08s; }
.landing-hero .landing-lede { animation-delay: 0.18s; }
@keyframes landingTextReveal { from { opacity: 0; filter: blur(8px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
.animated-number { font-variant-numeric: tabular-nums; }

.profile-mini-menu { display: inline-flex; align-items: center; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; border: 1px solid var(--border); background: rgba(12, 15, 26, 0.46); }
.profile-mini-menu span { min-width: 96px; padding: 8px 13px; border-radius: 999px; color: var(--text-muted); font-size: 12px; font-weight: 700; text-align: center; }
.profile-mini-menu span.active { color: var(--text); background: linear-gradient(135deg, rgba(79, 124, 255, 0.24), rgba(203, 161, 53, 0.14)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.profile-fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-fact-box { padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: rgba(12, 15, 26, 0.38); }
.profile-fact-box span { display: block; color: var(--text-faint); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-fact-box strong { display: block; margin-top: 6px; color: var(--text); font-size: 13px; line-height: 1.25; }
.profile-mentor-topics {
  margin-top: 0;
}
.profile-actions { align-items: center; margin-top: 0; }
.profile-link, .profile-link-button { border: 0; background: transparent; color: var(--blue-bright); font: inherit; font-size: 13px; font-weight: 800; padding: 0; text-decoration: none; cursor: pointer; }
.profile-link:hover, .profile-link-button:hover { color: var(--gold-bright); text-decoration: none; }
.profile-coop-list { max-height: min(56vh, 520px); overflow-y: auto; padding-right: 4px; }
.profile-coop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.profile-coop-head .card-title {
  margin-bottom: 0;
}
.profile-placement-group + .profile-placement-group { margin-top: 18px; }
.profile-placement-group-head { margin: 2px 0 9px; color: var(--text-muted); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.profile-placement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 124, 255, 0.09), transparent 42%),
    rgba(12, 16, 28, 0.7);
}
.profile-placement-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(145, 155, 180, 0.45);
}
.profile-placement-card.placement-current::before { background: var(--green); }
.profile-placement-card.placement-upcoming::before { background: var(--blue-bright); }
.profile-placement-card.placement-completed::before { background: var(--gold); }
.profile-placement-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(232, 194, 91, 0.18);
  border-radius: 11px;
  background: rgba(203, 161, 53, 0.09);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
}
.profile-placement-company {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-bright);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.profile-placement-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.profile-placement-main { min-width: 0; }
.profile-placement-tags { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 240px; }
.profile-placement-facts {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}
.profile-placement-facts > span {
  min-width: 120px;
  flex: 1 1 140px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}
.profile-placement-facts small {
  display: block;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-placement-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}
.profile-placement-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}
.placement-edit-btn {
  white-space: nowrap;
}
.job-info-panel { background: linear-gradient(180deg, rgba(79, 124, 255, 0.07), rgba(203, 161, 53, 0.045)), rgba(12, 15, 26, 0.34); }

@media (max-width: 920px) {
  .directory-hero,
  .page-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .directory-control-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .directory-command-top { grid-template-columns: 1fr; }
  .directory-command-actions { justify-content: flex-start; flex-wrap: wrap; }
  .directory-search { max-width: none; }
  .directory-command .dir-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-filter-meta { width: 100%; margin-left: 0; justify-content: space-between; }
  .profile-card-head {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-edit-btn {
    align-self: flex-start;
  }
  .profile-placement-head { grid-template-columns: auto minmax(0, 1fr); }
  .profile-placement-tags { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}

@media (max-width: 620px) {
  .directory-hero,
  .page-hero {
    padding: 18px;
    border-radius: 20px;
  }
  .directory-hero .dir-summary,
  .directory-filter-grid,
  .directory-filter-panel,
  .directory-control-panel {
    grid-template-columns: 1fr;
  }
  .directory-control-panel .directory-submit {
    width: 100%;
  }
  .directory-submit-row {
    justify-content: stretch;
  }
  .directory-submit, .directory-search { width: 100%; flex-basis: 100%; }
  .directory-command .dir-summary, .profile-fact-grid { grid-template-columns: 1fr; }
  .directory-command-panel { padding: 12px; }
  .topbar .btn-gold {
    width: 100%;
    justify-content: center;
  }
}

/* Keep company link hitboxes tight to the visible company text. */
.company-link,
.company-link.quiet {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100%;
  flex: 0 1 auto !important;
  align-self: flex-start;
  vertical-align: baseline;
}

td .company-link,
.detail-row .company-link,
.recent-card .company-link,
.placement-mini .company-link,
.dir-card .company-link {
  justify-self: start;
}

/* Keep carousel card contents centered within the one-row track. */
.recent-card {
  align-items: center;
  text-align: center;
}

.recent-card-top,
.recent-card-foot {
  justify-content: center;
}

.recent-card-co,
.recent-card-role {
  align-self: center;
}

.profile-showcase[data-profile-tabs] {
  grid-template-columns: 1fr;
  gap: 24px;
  overflow: visible;
}

.profile-showcase[data-profile-tabs] .profile-mini-menu {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(12, 15, 26, 0.34);
}

.profile-tab {
  position: relative;
  z-index: 1;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: color 180ms ease;
}

.profile-tab-close {
  position: relative;
  z-index: 1;
  min-height: 36px;
  width: 44px;
  border: 0;
  border-left: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.profile-tab-close:hover,
.profile-tab-close:focus-visible {
  background: rgba(79, 124, 255, 0.12);
  color: var(--text);
  outline: none;
}

.profile-tab.active {
  color: var(--text);
}

.profile-tab-indicator {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  min-width: 0;
  padding: 0;
  width: calc((100% - 44px) / 2);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-bright), var(--gold-bright));
  box-shadow: 0 0 20px rgba(123, 160, 255, 0.25);
  transform: translateX(0);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.direction-tabs[data-active-tab="coop"] .profile-tab-indicator {
  transform: translateX(100%);
}

.profile-mini-menu .profile-tab-indicator {
  min-width: 0;
  padding: 0;
  height: 3px;
  font-size: 0;
}

.profile-tab-content {
  overflow: hidden;
  will-change: height;
}

.profile-showcase[data-profile-tabs] .profile-tab-panel {
  display: none;
  margin-top: 0;
  will-change: opacity, transform;
  animation: profilePanelIn 180ms ease both;
}

.profile-showcase[data-profile-tabs] .profile-tab-panel.active {
  display: flex;
}

.profile-showcase[data-profile-tabs] .profile-card-side.profile-tab-panel.active {
  display: block;
}

.profile-showcase[data-profile-tabs] .profile-card-main,
.profile-showcase[data-profile-tabs] .profile-card-side {
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.profile-showcase[data-profile-tabs] .profile-card-main,
.profile-showcase[data-profile-tabs] .profile-card-side {
  padding: 20px;
}

.profile-showcase[data-profile-tabs] .profile-card-top .avatar {
  width: 58px !important;
  height: 58px !important;
}

@keyframes profilePanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.profile-showcase[data-profile-tabs][data-tab-direction="left"] .profile-tab-panel.active {
  animation-name: profilePanelIn;
}

@media (prefers-reduced-motion: reduce) {
  .profile-showcase[data-profile-tabs] .profile-tab-panel,
  .profile-showcase[data-profile-tabs][data-tab-direction="left"] .profile-tab-panel.active {
    animation: none;
  }
}

@media (max-width: 620px) {
  .modal.profile-detail-modal {
    max-width: calc(100vw - 28px);
  }

  .profile-showcase[data-profile-tabs] {
    gap: 24px;
  }

  .profile-showcase[data-profile-tabs] .profile-mini-menu {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  }

  .profile-tab-close {
    width: 40px;
  }

  .profile-tab-indicator {
    width: calc((100% - 40px) / 2);
  }
}

/* Compact focused profile detail modal. */
.modal.profile-detail-modal {
  width: min(860px, calc(100vw - 48px));
  max-width: min(860px, calc(100vw - 48px));
}

.profile-showcase[data-profile-tabs] {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  gap: 18px;
}

.profile-showcase[data-profile-tabs] .profile-mini-menu {
  min-height: 38px;
}

.profile-showcase[data-profile-tabs] .profile-card-main,
.profile-showcase[data-profile-tabs] .profile-card-side {
  padding: 18px;
  border-radius: 16px;
}

.profile-showcase[data-profile-tabs] .profile-card-main {
  gap: 14px;
  min-height: 0;
}

.profile-showcase[data-profile-tabs] .profile-card-top {
  gap: 12px;
}

.profile-showcase[data-profile-tabs] .profile-card-top .avatar {
  width: 50px !important;
  height: 50px !important;
  font-size: 13px;
}

.profile-showcase[data-profile-tabs] .profile-card-top h3 {
  font-size: 20px;
  margin-bottom: 2px;
}

.profile-showcase[data-profile-tabs] .profile-card-top p,
.profile-showcase[data-profile-tabs] .profile-note {
  font-size: 12.5px;
}

.profile-showcase[data-profile-tabs] .profile-status-row {
  padding: 11px 12px;
  min-height: 58px;
}

.profile-showcase[data-profile-tabs] .profile-fact-grid {
  gap: 8px;
}

.profile-showcase[data-profile-tabs] .profile-fact-box {
  padding: 10px 11px;
  border-radius: 12px;
}

.profile-showcase[data-profile-tabs] .profile-fact-box strong {
  margin-top: 4px;
  font-size: 12.5px;
}

.profile-showcase[data-profile-tabs] .profile-actions {
  margin-top: 0;
}

.profile-showcase[data-profile-tabs] .card-title {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
}

.profile-coop-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-coop-title .pill {
  margin-left: auto;
  flex-shrink: 0;
}

.profile-title-count {
  color: var(--text);
}

.profile-showcase[data-profile-tabs] .profile-coop-list {
  display: block;
  max-height: min(54vh, 440px);
  margin-top: 0;
  padding-right: 0;
}

.coop-spotlight {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(203, 161, 53, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 4%, rgba(203, 161, 53, 0.12), transparent 34%),
    radial-gradient(circle at 5% 100%, rgba(79, 124, 255, 0.08), transparent 38%),
    rgba(10, 14, 25, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.coop-spotlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(203, 161, 53, 0.18));
}
.coop-spotlight-current::before { background: linear-gradient(90deg, var(--green), var(--blue-bright)); }
.coop-spotlight-upcoming::before { background: linear-gradient(90deg, var(--blue-bright), var(--gold)); }
.coop-spotlight-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.coop-company-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 194, 91, 0.2);
  border-radius: 13px;
  background: rgba(203, 161, 53, 0.11);
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.03em;
}
.coop-spotlight-heading { min-width: 0; }
.coop-spotlight-company {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.coop-spotlight-company .company-link {
  color: inherit;
  font-weight: inherit;
}
.coop-spotlight-company .company-link:hover { color: var(--gold-bright); }
.coop-spotlight-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.coop-spotlight-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.coop-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}
.coop-fact {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}
.coop-fact span,
.coop-notes span {
  display: block;
  color: var(--text-faint);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}
.coop-fact strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.coop-notes {
  margin-top: 12px;
  padding: 13px 14px;
  border-left: 2px solid rgba(123, 160, 255, 0.55);
  border-radius: 0 10px 10px 0;
  background: rgba(79, 124, 255, 0.055);
}
.coop-notes p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .coop-spotlight-head { grid-template-columns: 46px minmax(0, 1fr); }
  .coop-company-mark { width: 46px; height: 46px; border-radius: 11px; }
  .coop-spotlight-badges { grid-column: 1 / -1; justify-content: flex-start; }
  .coop-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .coop-fact-grid { grid-template-columns: 1fr; }
}

.placement-table .td-role .company-link.quiet {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

@media (max-width: 720px) {
  .modal.profile-detail-modal {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .profile-showcase[data-profile-tabs] {
    max-width: none;
    gap: 16px;
  }

  .profile-showcase[data-profile-tabs] .profile-card-top {
    align-items: flex-start;
  }

  .profile-showcase[data-profile-tabs] .profile-fact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .coop-details {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .coop-detail-row .k {
    padding: 10px 0 2px;
    border-bottom: 0;
  }

  .coop-detail-row .v {
    padding: 0 0 10px;
    text-align: left;
  }
}

/* Alumni profile uses the same shell as regular profile modals, but with one
   title cell plus a far-right close button instead of two tabs. */
.modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] .alumni-profile-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  width: 100%;
}

.modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] .alumni-profile-menu .profile-tab {
  grid-column: 1;
  justify-self: stretch;
}

.modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] .alumni-profile-menu .profile-tab-close {
  grid-column: 2;
  justify-self: stretch;
  width: 44px;
}

.modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] .alumni-profile-menu .profile-tab-indicator {
  width: calc(100% - 44px);
  transform: translateX(0);
}

.modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] .alumni-profile-card {
  width: 100%;
  max-width: 100%;
}

/* Mobile app shell and one-shot landing animation state. */
.mobile-bottom-nav {
  display: none;
}

.landing-hero > *,
.landing-hero .landing-kicker,
.landing-hero .landing-headline,
.landing-hero .landing-lede {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.landing-hero.is-animating > * {
  animation: landingUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.landing-hero.is-animating > *:nth-child(2) { animation-delay: 0.06s; }
.landing-hero.is-animating > *:nth-child(3) { animation-delay: 0.12s; }
.landing-hero.is-animating > *:nth-child(4) { animation-delay: 0.18s; }
.landing-hero.is-animating > *:nth-child(5) { animation-delay: 0.24s; }

.landing-hero.is-animating .landing-kicker,
.landing-hero.is-animating .landing-headline,
.landing-hero.is-animating .landing-lede {
  animation-name: landingTextReveal;
  animation-duration: 920ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

.landing-hero.is-animating .landing-headline { animation-delay: 0.08s; }
.landing-hero.is-animating .landing-lede { animation-delay: 0.18s; }

@media (max-width: 860px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .app,
  .app.landing-mode {
    display: block;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .sidebar,
  .app.landing-mode .sidebar {
    display: none;
  }

  .main,
  .app.landing-mode .main {
    width: 100%;
    max-width: 100%;
    padding: 14px 14px calc(88px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background: rgba(12, 15, 26, 0.92);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    min-width: 0;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--text-muted);
    display: grid;
    place-items: center;
    gap: 3px;
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, transform 120ms ease;
  }

  .mobile-nav-item:active {
    transform: scale(0.96);
  }

  .mobile-nav-item.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.24), rgba(203, 161, 53, 0.16));
  }

  .mobile-more-toggle[aria-expanded="true"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-more-sheet {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 910;
    display: grid;
    gap: 6px;
    max-height: min(360px, calc(100dvh - 116px - env(safe-area-inset-bottom)));
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: rgba(12, 15, 26, 0.94);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
  }

  .mobile-more-sheet[hidden] {
    display: none;
  }

  .mobile-more-item {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }

  .mobile-more-item:active {
    transform: scale(0.98);
  }

  .mobile-more-item:hover,
  .mobile-more-item:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    outline: none;
  }

  .mobile-more-icon {
    width: 20px;
    height: 20px;
    color: var(--blue-bright);
    flex-shrink: 0;
  }

  .mobile-more-item.danger .mobile-more-icon {
    color: var(--gold-bright);
  }

  .mobile-more-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-more-title,
  .mobile-more-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-more-sub {
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
  }

  .mobile-nav-icon {
    width: 20px;
    height: 20px;
  }

  .landing {
    overflow-x: hidden;
  }

  .landing-topnav {
    top: 10px;
    padding: 0 10px;
  }

  .landing-topnav-inner {
    padding: 10px;
    border-radius: 18px;
    gap: 10px;
  }

  .landing-brand .brand-sub {
    display: none;
  }

  .landing-topnav-actions {
    width: 100%;
    justify-content: stretch;
  }

  .landing-topnav-actions .btn {
    flex: 1;
    min-height: 42px;
    padding: 10px 11px;
    white-space: nowrap;
  }

  .landing-user {
    width: 100%;
    justify-content: center;
  }

  .landing-hero {
    padding: 126px 14px 38px;
  }

  .landing-headline {
    font-size: clamp(42px, 13vw, 64px);
    line-height: 0.94;
  }

  .landing-lede {
    max-width: 34rem;
    font-size: 15.5px;
  }

  .landing-cta,
  .landing-topnav-actions,
  .topbar,
  .topbar-actions,
  .section-head,
  .profile-coop-title {
    flex-wrap: wrap;
  }

  .landing-cta .btn,
  .topbar-actions .btn,
  .page-hero-submit-row .btn,
  .directory-control-panel .directory-submit,
  .submit-coop-button {
    width: 100%;
    justify-content: center;
  }

  .landing-stats,
  .hero-stats,
  .stats-grid,
  .snapshot-grid,
  .recruiting-metrics,
  .dir-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ls-item,
  .stat-card,
  .snapshot-card,
  .recruiting-metric {
    min-width: 0;
  }

  .landing-logo-wall,
  .landing-panel,
  .landing-pathways,
  .landing-use-cases,
  .landing-footer,
  .section,
  .dashboard-section,
  .card,
  .directory-hero,
  .page-hero {
    border-radius: 18px;
  }

  .card,
  .directory-hero,
  .page-hero,
  .landing-panel,
  .landing-footer {
    padding: 16px;
  }

  .section,
  .dashboard-section {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .section-head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .section-head h2,
  .page-title h1,
  .directory-hero-copy h1 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.05;
  }

  .topbar-actions,
  .search-box,
  .search-box input,
  .directory-search,
  .directory-filter,
  .page-hero-search,
  .page-hero-controls,
  .directory-control-panel,
  .directory-filter-panel {
    width: 100%;
    min-width: 0;
  }

  .directory-hero,
  .page-hero {
    min-height: 0;
    margin-bottom: 20px;
  }

  .directory-hero-main,
  .page-hero {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .directory-hero-copy,
  .page-hero-copy {
    max-width: none;
  }

  .directory-control-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 12px;
  }

  .directory-filter-panel,
  .page-hero-controls .directory-filter-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .directory-filter-grid,
  .directory-filter-row,
  .filter-row,
  .page-hero-controls {
    grid-template-columns: 1fr !important;
  }

  .grid-2,
  .grid-2b,
  .insights-grid,
  .dashboard-grid,
  .pipeline-grid,
  .alumni-grid,
  .dir-grid,
  .terms-grid,
  .class-year-visual,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .directory-card,
  .alumni-card,
  .term-card,
  .profile-card-main,
  .profile-card-side {
    min-width: 0;
  }

  .recent-carousel-window {
    margin: 0 -14px;
    padding: 10px 14px 18px;
    overflow: hidden;
    max-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .recent-cards,
  .recent-cards.is-looping,
  .recent-cards.is-static {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  .recent-cards.is-looping {
    animation: recentRoleMarquee var(--recent-duration) linear infinite;
  }

  .recent-card {
    --recent-card-w: min(82vw, 320px);
    min-height: 218px;
    padding: 18px;
  }

  .table-wrap {
    overflow: visible;
  }

  .placement-table,
  .placement-table.full,
  .placement-table.compact {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .placement-table colgroup,
  .placement-table thead {
    display: none;
  }

  .placement-table tbody {
    display: grid;
    gap: 12px;
  }

  .placement-table tr {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(22, 27, 44, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .placement-table td,
  .placement-table th {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    text-align: right;
  }

  .placement-table td::before {
    content: attr(data-label);
    color: var(--text-faint);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: 0 0 auto;
  }

  .placement-table .td-brother,
  .placement-table .td-role {
    display: block;
    text-align: left;
  }

  .placement-table .td-brother::before,
  .placement-table .td-role::before {
    display: none;
  }

  .placement-table .td-brother {
    padding-bottom: 2px !important;
  }

  .placement-table .person-cell {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .placement-table .person-cell .avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 12px;
  }

  .placement-table .td-role .person-name,
  .placement-table .td-role .person-sub {
    max-width: 100%;
  }

  .placement-table .td-role .company-link.quiet {
    max-width: 100%;
  }

  .modal-backdrop,
  .modal-overlay {
    padding: 12px;
    align-items: center;
  }

  .modal,
  .modal.profile-detail-modal {
    width: min(100%, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 14px;
    border-radius: 20px;
  }

  .profile-showcase[data-profile-tabs],
  .modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] {
    width: 100%;
    max-width: none;
    gap: 14px;
  }

  .profile-showcase[data-profile-tabs] .profile-mini-menu,
  .modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] .alumni-profile-menu {
    min-height: 44px;
    border-radius: 18px;
  }

  .profile-showcase[data-profile-tabs] .profile-mini-menu {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
  }

  .modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] .alumni-profile-menu {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .profile-showcase[data-profile-tabs] .profile-card-main,
  .profile-showcase[data-profile-tabs] .profile-card-side,
  .modal.profile-detail-modal .profile-showcase.alumni-profile-showcase[data-profile-tabs] .alumni-profile-card {
    padding: 16px;
    border-radius: 18px;
  }

  .profile-showcase[data-profile-tabs] .profile-card-top,
  .profile-card-head,
  .alumni-detail-head {
    align-items: flex-start;
    gap: 12px;
  }

  .profile-showcase[data-profile-tabs] .profile-card-top .avatar,
  .alumni-detail-head .avatar {
    width: 52px !important;
    height: 52px !important;
  }

  .profile-showcase[data-profile-tabs] .profile-fact-grid,
  .profile-info-grid,
  .alumni-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .profile-placement-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .profile-placement-tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .profile-placement-footer {
    justify-content: flex-start;
  }

  .coop-details {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .coop-detail-row .k {
    padding: 10px 0 2px;
    border-bottom: 0;
  }

  .coop-detail-row .v {
    padding: 0 0 10px;
    text-align: left;
  }

  input,
  select,
  textarea,
  button,
  .btn {
    min-height: 44px;
  }

  #toastRoot {
    bottom: calc(92px + env(safe-area-inset-bottom));
    right: 16px;
    left: 16px;
    align-items: center;
    max-width: none;
  }

  .toast {
    width: 100%;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 430px) {
  .main,
  .app.landing-mode .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-bottom-nav {
    left: 8px;
    right: 8px;
    padding: 6px;
    border-radius: 20px;
  }

  .mobile-more-sheet {
    left: 8px;
    right: 8px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .mobile-nav-item {
    min-height: 50px;
    font-size: 9px;
    border-radius: 14px;
  }

  .mobile-nav-icon {
    width: 18px;
    height: 18px;
  }

  .landing-stats,
  .hero-stats,
  .stats-grid,
  .snapshot-grid,
  .recruiting-metrics,
  .dir-summary {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }

  .card,
  .directory-hero,
  .page-hero,
  .landing-panel,
  .landing-footer {
    padding: 14px;
  }

  .recent-carousel-window {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  .directory-hero {
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px;
    border-radius: 18px;
  }

  .directory-hero-main {
    gap: 10px;
  }

  .directory-hero-copy .eyebrow {
    display: none;
  }

  .directory-hero-copy h1 {
    font-size: clamp(25px, 8vw, 32px);
    letter-spacing: -0.035em;
  }

  .directory-hero-copy p {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .directory-hero .dir-summary {
    gap: 7px;
  }

  .directory-hero .dir-summary div {
    padding: 8px 9px;
    border-radius: 11px;
  }

  .directory-hero .dir-summary strong {
    font-size: 18px;
  }

  .directory-hero .dir-summary span {
    font-size: 9.5px;
  }

  .directory-control-panel {
    gap: 8px;
  }

  .directory-submit-row {
    justify-content: stretch;
  }

  .directory-control-panel .directory-submit {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 13px;
    font-size: 12.5px;
  }

  .directory-filter-panel {
    gap: 8px;
    padding: 9px;
    border-radius: 15px;
  }

  .directory-filter-panel .directory-search {
    min-height: 40px;
    padding-block: 8px;
    border-radius: 12px;
  }

  .directory-filter-grid {
    gap: 8px;
  }

  .directory-filter-grid .select {
    height: 38px;
    min-height: 38px;
    border-radius: 11px;
    font-size: 12.5px;
  }
}

@media (max-width: 430px) {
  .directory-hero {
    padding: 11px;
  }

  .directory-hero-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .directory-control-panel .directory-submit {
    min-height: 38px;
  }
}

@media (max-width: 768px) {
  .landing-topnav {
    padding: 10px;
  }

  .landing-topnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 10px;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(10, 13, 24, 0.76);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(16px);
  }

  .landing-topnav.scrolled {
    padding: 8px 10px;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .landing-brand {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .landing-crest {
    width: 32px;
    height: 32px;
  }

  .landing-brand .brand-name {
    font-size: 13.5px;
    letter-spacing: -0.01em;
  }

  .landing-brand .brand-sub {
    display: none;
  }

  .landing-topnav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    flex: 0 0 auto;
    gap: 7px;
  }

  .landing-topnav-actions .btn {
    display: flex;
    width: auto;
    min-height: 38px;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .landing-topnav-actions .btn-gold {
    display: none;
  }

  .landing-topnav-actions .btn-login {
    min-height: 38px;
  }

  .landing-topnav-actions .landing-user {
    width: auto;
    max-width: 132px;
    min-width: 0;
    min-height: 32px;
    justify-content: flex-end;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
    line-height: 1.15;
    text-transform: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .landing-topnav-actions .landing-user .pill {
    flex-shrink: 0;
  }

  .landing-hero {
    padding-top: 132px;
  }
}

@media (max-width: 430px) {
  .landing-topnav {
    padding: 8px;
  }

  .landing-topnav-inner {
    gap: 8px;
    padding: 9px;
    border-radius: 16px;
  }

  .landing-topnav-actions .btn-login {
    min-height: 36px;
    padding: 8px 10px;
  }

  .landing-hero {
    padding-top: 124px;
  }

  .bar-chart {
    gap: 5px;
    padding-bottom: 16px;
  }

  .bar-label {
    max-width: 42px;
    font-size: 9.5px;
  }
}

@media (max-width: 860px) {
  .dash-hero,
  .dash-hero.dither-section,
  .dash-hero-inner,
  .dash-hero-inner .topbar-actions {
    overflow: visible;
  }

  .dash-hero {
    z-index: 30;
  }

  .dash-hero-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px 14px;
  }

  .dash-hero-inner .page-title {
    min-width: 0;
  }

  .dash-hero-inner .topbar-actions {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    position: relative;
    z-index: 40;
  }

  .dash-hero-inner .topbar-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .collapsible-section {
    margin-bottom: 16px;
  }

  .collapsible-body {
    padding-top: 10px;
  }

  .page-hero-controls {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .dash-hero,
  .dash-hero.dither-section,
  .dash-hero-inner,
  .dash-hero-inner .topbar-actions {
    overflow: visible;
  }

  .dash-hero {
    z-index: 30;
  }

  .dash-hero-inner .topbar-actions {
    position: relative;
    z-index: 40;
  }

  .bar-chart {
    height: 178px;
    gap: 7px;
    padding-top: 8px;
    padding-bottom: 18px;
  }

  .bar-col {
    gap: 6px;
  }

  .bar-label {
    max-width: 48px;
    font-size: 10px;
    line-height: 1.08;
    transform: none;
    white-space: normal;
  }

  .bar-label-full {
    display: none;
  }

  .bar-label-short {
    display: grid;
    gap: 1px;
  }
}
