/* Dashboard-specific visual system. Kept separate from the legacy shared
   stylesheet so dashboard polish can evolve without page-wide overrides. */
:root {
  --surface-0: #0b0e17;
  --surface-1: #111624;
  --surface-2: #171d2d;
  --surface-3: #1c2334;
  --dash-surface: rgba(17, 22, 36, 0.9);
  --dash-surface-strong: rgba(23, 29, 45, 0.96);
  --dash-border: rgba(255, 255, 255, 0.075);
  --dash-border-strong: rgba(255, 255, 255, 0.12);
  --dash-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;
  --radius: 12px;
  --radius-sm: 9px;
  --motion-fast: 140ms;
  --motion-standard: 260ms;
  --motion-slow: 360ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

/* Working views: quiet surfaces, compact headers, content-sized rows. */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.dashboard-header .page-title { flex: 1; min-width: 0; }
.dashboard-header h1 { font-size: 28px; line-height: 1.2; }
.dashboard-header .page-title p { margin-top: 4px; }
.dashboard-header .topbar-crest { width: 44px; height: 44px; }
.dashboard-header .topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.dashboard-header .btn-gold { box-shadow: none; }
.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  align-items: start;
  gap: var(--space-lg);
  margin-block: var(--space-lg);
}
.dashboard-placements { display: grid; gap: var(--space-lg); min-width: 0; }
.dashboard-overview .card,
.dashboard-recent.card {
  min-width: 0;
  padding: var(--space-md);
  background: var(--surface-1);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius);
  box-shadow: none;
}
.dashboard-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.dashboard-overview .card-title,
.dashboard-recent .card-title { margin: 0; font-size: 16px; line-height: 1.5; }
.dashboard-overview .card-sub { margin: 4px 0 var(--space-sm); }
.placement-preview-list { display: grid; }
.placement-preview,
button.mentor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--dash-border);
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.placement-preview:last-child,
button.mentor-row:last-child { border-bottom: 0; }
.placement-preview:hover,
button.mentor-row:hover { background: rgba(255,255,255,.025); }
.placement-preview-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.placement-preview .person-sub { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.placement-preview .avatar { flex-shrink: 0; }
.placement-preview-term { font-size: 12px; color: var(--text-muted); }
.animated-number { display: inline-flex; white-space: nowrap; font-variant-numeric: tabular-nums; }
.metric-number { min-width: 2ch; text-align: right; }
.dashboard-overview .table-pagination { flex-wrap: wrap; gap: var(--space-sm); }
.dashboard-overview .table-pagination-controls { flex-wrap: wrap; }
.placement-preview:focus-visible,
button.mentor-row:focus-visible,
.company-link:focus-visible,
.card.dir-card:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.directory-clean.directory-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.directory-clean .directory-hero-copy h1 { font-size: 28px; line-height: 1.2; }
.directory-clean .directory-filter-panel { padding: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
.directory-clean .directory-search { min-height: 48px; }
.directory-clean .directory-search input { font-size: 16px; }
.directory-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); color: var(--text-muted); font-size: 13px; }
.directory-toolbar .directory-submit { margin-left: auto; min-width: 0; min-height: 44px; box-shadow: none; }
.directory-toolbar [hidden] { display: none; }
.directory-toolbar .btn-textlink { min-height: 44px; }
.app-footer-compact { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; padding-block: var(--space-lg); margin-top: var(--space-xl); border-top: 1px solid var(--dash-border); color: var(--text-muted); font-size: 12px; }
.app-footer-compact a { color: var(--text-muted); padding: 8px 0; }
@media (max-width: 1000px) {
  .dashboard-overview { grid-template-columns: minmax(0, 1fr); }
}

html { scroll-behavior: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border: 1px solid var(--gold-bright);
  border-radius: 8px;
  background: #111624;
  color: var(--text);
  font-weight: 800;
  transform: translateY(calc(-100% - 20px));
  transition: transform var(--motion-fast) ease;
}
.skip-link:focus { transform: translateY(0); }
.main:focus { outline: none; }
body.modal-open { overflow: hidden; }

.view-enter { animation-duration: var(--motion-standard); }

/* Compact branded handoff between the public home and working dashboard. */
.route-transition { background: transparent; }
.route-transition-panel {
  background: #090c16;
  transform: translateY(100%);
  transition: transform 320ms 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 {
  width: min(330px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 14px;
  transform: translate(-50%, calc(-50% + 12px));
  opacity: 0;
  transition: transform 220ms var(--motion-ease), opacity 160ms ease;
  transition-delay: 70ms;
}
.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% - 10px));
  transition-delay: 0ms;
}
.route-transition-mark img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 14px rgba(203, 161, 53, 0.26));
}
.route-transition-copy { min-width: 0; }
.route-transition-copy span,
.route-transition-copy strong { display: block; }
.route-transition-copy span {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.route-transition-copy strong {
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
}
.route-transition-line,
.route-transition.is-active .route-transition-line,
.route-transition.is-leaving .route-transition-line {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  width: 100%;
  height: 2px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
  transform: none;
  transition: none;
}
.route-transition-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-bright), var(--blue-bright));
  transition: width 260ms var(--motion-ease) 70ms;
}
.route-transition.is-active .route-transition-line span { width: 100%; }

.dash-hero {
  min-height: 120px;
  padding: 22px 24px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}
.dash-hero canvas.dither,
.dash-hero .dither-scrim { clip-path: inset(0 round 16px); }
.dash-hero-inner .page-title h1 { font-size: clamp(22px, 2.1vw, 29px); }
.dash-hero-inner .page-title p { max-width: 48rem; }
.dash-hero .btn { min-height: 44px; }
.btn-gold::after,
.btn-blue::after { display: none; }
.landing-cta .btn-gold::after,
.landing-footcta .btn-gold::after { display: block; }

.collapsible-section {
  margin: 18px 0;
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.collapsible-summary {
  min-height: 54px;
  padding: 3px 2px 11px;
  border-radius: 10px;
}
.collapsible-summary:focus-visible {
  outline: 2px solid rgba(123, 160, 255, 0.72);
  outline-offset: 4px;
}
.dash-section .dash-bar { display: none; }
.dash-section h2 { font-size: 18px; letter-spacing: 0; }
.dash-section p { margin-top: 2px; line-height: 1.35; }
.collapsible-toggle { transition-duration: var(--motion-standard); }

@supports selector(::details-content) {
  .collapsible-section::details-content {
    block-size: 0;
    opacity: 0;
    overflow: hidden;
    transition: none;
  }
  .collapsible-section[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

.collapsible-body > .grid-2,
.collapsible-body > .grid-2b {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}

.collapsible-body .card {
  border-radius: 12px;
  background: var(--dash-surface);
  border-color: var(--dash-border);
  box-shadow: var(--dash-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.dashboard-card--primary,
[data-collapsible-key="dashboard-happening"] .card {
  background: linear-gradient(180deg, rgba(24, 30, 50, 0.92), rgba(17, 22, 37, 0.84));
  border-color: rgba(203, 161, 53, 0.16);
}
[data-collapsible-key="dashboard-trends"] .card {
  background: rgba(18, 23, 39, 0.58);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
[data-collapsible-key="dashboard-trends"] .leaderboard,
[data-collapsible-key="dashboard-trends"] .hbar-row {
  background: transparent;
}

.dashboard-metric-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  background: rgba(18, 23, 39, 0.6);
  box-shadow: none;
}
.dashboard-metric-band .stat-card {
  min-height: 96px;
  padding: 17px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.dashboard-metric-band .stat-card + .stat-card {
  border-left: 1px solid var(--dash-border);
}
.dashboard-metric-band .stat-card::before { display: none; }
.dashboard-metric-band .stat-icon { width: 42px; height: 42px; border-radius: 10px; }
.dashboard-metric-band .stat-value {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.dashboard-metric-band .stat-label { margin-top: 2px; color: var(--text-muted); }

.stat-value,
.bar-val,
.legend-val,
.hbar-count,
.lb-count,
.dumb-val,
.trend-svg text { font-variant-numeric: tabular-nums; }

.card-title { font-size: 15px; font-weight: 750; letter-spacing: 0; }
.card-sub { color: rgba(154, 163, 186, 0.86); line-height: 1.4; }

.bar-col,
.legend-row,
.hbar-row,
.lb-row {
  border: 0;
  font: inherit;
  color: inherit;
  background: transparent;
}
.bar-col { padding: 0; }
.bar-fill { transition: height 300ms var(--motion-ease), filter var(--motion-fast) ease; }
.bar-fill { transform-origin: bottom; animation: dashBarIn 360ms var(--motion-ease) both; }
.bar-fill:not(.gold) { background: linear-gradient(180deg, var(--blue-bright), var(--blue)); }
.hbar-fill { transform-origin: left; animation: dashHbarIn 360ms var(--motion-ease) both; }
.trend-svg { animation: dashChartIn 260ms ease both; }
.hbar-row,
.lb-row { width: 100%; text-align: left; }
.legend-row { width: 100%; text-align: left; padding: 3px 6px; }
.bar-col:focus-visible,
.legend-row:focus-visible,
.hbar-row:focus-visible,
.lb-row:focus-visible,
.donut-seg:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}
.donut-seg { transition: opacity var(--motion-fast), stroke-width var(--motion-fast); }

@keyframes dashBarIn {
  from { transform: scaleY(0.08); opacity: 0.35; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes dashHbarIn {
  from { transform: scaleX(0.05); opacity: 0.35; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes dashChartIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.pill-green { color: var(--green); }
.pill-blue { color: var(--blue-bright); }

/* Shared working-view polish. These views carry a lot of information, so the
   framing stays quiet and lets the data establish the hierarchy. */
.main {
  --view-max-width: 1440px;
}

.app:not(.landing-mode) .main > :not(.route-transition) {
  width: 100%;
  max-width: var(--view-max-width);
  margin-inline: auto;
}

.auth-notice {
  min-height: 54px;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-left-width: 2px;
  background: rgba(16, 21, 36, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.auth-notice-ic {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--gold-bright);
  background: rgba(203, 161, 53, 0.1);
}
.auth-notice-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--text-muted);
  line-height: 1.35;
}
.auth-notice-text strong { color: var(--text); white-space: nowrap; }
.auth-notice-text small { color: var(--text-faint); font-size: 11px; }
.auth-notice .btn { min-height: 34px; }

.directory-hero,
.page-hero {
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--surface-1);
  box-shadow: none;
}
.page-hero { min-height: 154px; }
.directory-hero-copy h1 { letter-spacing: -0.025em; }
.directory-hero-copy p { max-width: 56rem; }
.directory-filter-panel { border-radius: 14px; background: transparent; border: 0; backdrop-filter: none; }
.directory-filter-panel .directory-search,
.directory-filter-grid .select { transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast); }
.directory-filter-panel .directory-search:focus-within,
.directory-filter-grid .select:focus {
  border-color: rgba(123, 160, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.1);
}

.dir-year { margin-bottom: 32px; }
.dir-year-head {
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}
.dir-grid,
.alumni-grid { gap: 16px; }
.dir-card,
.alumni-card,
.term-card {
  transition: transform var(--motion-standard) var(--motion-ease),
    border-color var(--motion-fast), box-shadow var(--motion-standard);
}
.dir-card:hover,
.alumni-card:hover,
.term-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 160, 255, 0.24);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}
.dir-card:focus-within,
.alumni-card:focus-within,
.term-card:focus-within {
  border-color: rgba(123, 160, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.09);
}

.collapsible-section {
  padding: 0 2px 18px;
}
.collapsible-section + .collapsible-section { margin-top: 22px; }
.collapsible-summary:hover { background: rgba(255, 255, 255, 0.022); }
.collapsible-body { padding-top: 4px; }

/* Unified typography and interaction foundation. */
body {
  font-family: var(--font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
h1, h2, h3,
.page-title h1,
.brand-name,
.card-title,
.stat-value,
.landing-headline {
  font-family: var(--font-display);
}
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font-family: var(--font); }

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

/* Keep navigation stable while the working view changes. */
.main { view-transition-name: app-main; }
.sidebar { view-transition-name: app-sidebar; }
.mobile-bottom-nav { view-transition-name: app-mobile-nav; }

::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(app-sidebar),
::view-transition-new(app-sidebar),
::view-transition-old(app-mobile-nav),
::view-transition-new(app-mobile-nav) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-group(app-main) {
  animation-duration: var(--motion-slow);
  animation-timing-function: var(--motion-ease);
}
::view-transition-old(app-main),
::view-transition-new(app-main) {
  mix-blend-mode: normal;
  transform-origin: center top;
}
html[data-transition-direction="forward"]::view-transition-old(app-main) {
  animation: appViewOutForward 220ms ease both;
}
html[data-transition-direction="forward"]::view-transition-new(app-main) {
  animation: appViewInForward var(--motion-slow) var(--motion-ease) both;
}
html[data-transition-direction="backward"]::view-transition-old(app-main) {
  animation: appViewOutBackward 220ms ease both;
}
html[data-transition-direction="backward"]::view-transition-new(app-main) {
  animation: appViewInBackward var(--motion-slow) var(--motion-ease) both;
}
@keyframes appViewOutForward {
  to { opacity: 0; transform: translateX(-10px) scale(0.995); }
}
@keyframes appViewInForward {
  from { opacity: 0; transform: translateX(14px) scale(0.995); }
}
@keyframes appViewOutBackward {
  to { opacity: 0; transform: translateX(10px) scale(0.995); }
}
@keyframes appViewInBackward {
  from { opacity: 0; transform: translateX(-14px) scale(0.995); }
}

/* The fallback reveal is staggered by page region instead of moving the
   entire interface as one large slab. */
.view-enter { animation: none; }
.view-enter > * {
  animation: regionEnter 340ms var(--motion-ease) both;
  will-change: transform, opacity;
}
.view-enter > :nth-child(2) { animation-delay: 34ms; }
.view-enter > :nth-child(3) { animation-delay: 68ms; }
.view-enter > :nth-child(4) { animation-delay: 102ms; }
.view-enter > :nth-child(n + 5) { animation-delay: 136ms; }
@keyframes regionEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Sidebar: a stable icon rail that reveals a fully laid-out navigation panel.
   Icons never move; the surface opens first, then labels settle into place. */
.sidebar {
  --sidebar-expanded-w: 248px;
  width: 70px;
  padding: 12px 0;
  gap: 5px;
  border-radius: 20px;
  background: rgba(12, 16, 28, 0.94);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: none;
  transition: width 300ms var(--motion-ease), border-color 180ms ease,
    background 180ms ease, box-shadow 220ms ease;
}
.brand {
  width: 226px;
  min-height: 52px;
  gap: 12px;
  padding: 2px 4px 9px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.brand-crest { width: 40px; height: 40px; }
.brand-copy { min-width: 150px; }
.brand-name { font-weight: 800; letter-spacing: -0.025em; }
.brand-sub { margin-top: 1px; }
.nav-label {
  width: 226px;
  padding: 12px 10px 4px 58px;
  color: rgba(167, 176, 196, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.nav-item {
  position: relative;
  flex: 0 0 auto;
  width: 226px;
  height: 40px;
  gap: 10px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  transition: width 300ms var(--motion-ease), color var(--motion-fast),
    background var(--motion-fast), box-shadow var(--motion-fast);
}
.nav-icon {
  width: 19px;
  height: 19px;
  margin: 0 15px;
  transition: color var(--motion-fast), transform var(--motion-standard) var(--motion-ease);
}
.nav-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item:hover .nav-icon { transform: scale(1.06); }
.nav-item:active { transform: none; }
.nav-item.active {
  color: #a9c0ff;
  background: rgba(79, 124, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(123, 160, 255, 0.1);
}
.sidebar-primary-cluster,
.sidebar-manage-cluster,
.sidebar-bottom-cluster {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 226px;
  margin: auto 0 0 10px;
  gap: 3px;
}
.sidebar-middle {
  width: 226px;
  min-height: 0;
  margin: 6px 0 0 10px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar-middle::-webkit-scrollbar { display: none; }
.sidebar-middle .sidebar-primary-cluster,
.sidebar-middle .sidebar-manage-cluster {
  width: 100%;
  margin: 0;
}
.sidebar-primary-cluster {
  margin-top: 6px;
  margin-bottom: 0;
}
.sidebar-primary-cluster .nav-label {
  padding-top: 4px;
}
.sidebar-middle .sidebar-manage-cluster {
  margin-top: 8px;
}
.sidebar-manage-cluster .nav-label {
  padding-top: 5px;
}
.sidebar-bottom-cluster .sidebar-account {
  width: 226px;
  margin-top: 5px;
}
.sidebar-bottom-cluster {
  margin: auto 0 0 10px;
}
.sidebar-utility {
  width: 206px;
  margin: 10px 10px 4px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  transition: opacity 130ms ease, transform 170ms var(--motion-ease);
}
.sidebar-utility-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: rgba(196, 204, 222, 0.78);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sidebar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45cf91;
  box-shadow: 0 0 9px rgba(69, 207, 145, 0.48);
}
.sidebar-pulse {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.sidebar-pulse span {
  min-width: 0;
  flex: 1 1 0;
}
.sidebar-pulse strong {
  color: #d7e0ff;
  font-size: 12px;
  font-weight: 800;
}
.sidebar-pulse i {
  width: 1px;
  height: 17px;
  margin: 0 9px;
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-submit-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(203, 161, 53, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(203, 161, 53, 0.13), rgba(120, 160, 255, 0.06));
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast);
}
.sidebar-submit-card:hover,
.sidebar-submit-card:focus-visible {
  border-color: rgba(203, 161, 53, 0.35);
  background: linear-gradient(135deg, rgba(203, 161, 53, 0.19), rgba(120, 160, 255, 0.09));
  outline: none;
}
.sidebar-submit-plus {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #18130a;
  font-size: 18px;
  font-weight: 800;
}
.sidebar-submit-card strong,
.sidebar-submit-card small { display: block; }
.sidebar-submit-card strong { font-size: 11px; line-height: 1.25; }
.sidebar-submit-card small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 8.5px;
  line-height: 1.25;
}
.sidebar-account {
  width: 226px;
  margin-top: 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}
.acct-row { width: 226px; height: 44px; margin: 0; border-radius: 11px; }
.acct-row.clickable,
.acct-login { border-radius: 11px; }
.acct-avatar { margin-inline: 7px 13px; }
.acct-login .nav-icon { margin-inline: 15px; }
.sidebar-footer {
  width: 226px;
  padding: 10px 10px 2px 58px;
  border-top: 0;
  font-size: 10.5px;
  line-height: 1.45;
}
.brand-copy,
.nav-label,
.nav-text,
.acct-id,
.sidebar-footer {
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity 130ms ease, transform 170ms var(--motion-ease);
}

@media (min-width: 861px) {
  .sidebar > .brand,
  .sidebar > .nav-label,
  .sidebar > .nav-item,
  .sidebar > .sidebar-primary-cluster,
  .sidebar > .sidebar-middle,
  .sidebar > .sidebar-bottom-cluster,
  .sidebar > .sidebar-account,
  .sidebar > .sidebar-footer {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
    bottom: auto;
  }
  .sidebar > .brand,
  .sidebar > .nav-label,
  .sidebar > .nav-item,
  .sidebar > .sidebar-primary-cluster,
  .sidebar > .sidebar-middle,
  .sidebar > .sidebar-bottom-cluster,
  .sidebar > .sidebar-account,
  .sidebar > .sidebar-footer {
    align-self: flex-start;
    margin-left: 10px;
  }
  .sidebar > .sidebar-middle {
    flex: 0 1 auto;
    min-height: 0;
  }
  .sidebar > .sidebar-bottom-cluster { margin-top: auto; }

  .sidebar:hover,
  .sidebar:focus-within {
    width: var(--sidebar-expanded-w);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(13, 17, 30, 0.98);
    box-shadow: 18px 0 56px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .sidebar:hover .nav-item,
  .sidebar:focus-within .nav-item { width: 226px; }

  .sidebar:not(:hover):not(:focus-within) {
    width: 70px;
  }

  .sidebar:hover .brand-copy,
  .sidebar:hover .nav-label,
  .sidebar:hover .nav-text,
  .sidebar:hover .acct-id,
  .sidebar:hover .sidebar-footer,
  .sidebar:hover .sidebar-utility,
  .sidebar:focus-within .brand-copy,
  .sidebar:focus-within .nav-label,
  .sidebar:focus-within .nav-text,
  .sidebar:focus-within .acct-id,
  .sidebar:focus-within .sidebar-footer,
  .sidebar:focus-within .sidebar-utility {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 105ms;
  }

  .sidebar:not(:hover):not(:focus-within) .nav-item {
    width: 48px;
    color: var(--text-muted);
  }
  .sidebar:not(:hover):not(:focus-within) .nav-item.active {
    color: #a9c0ff;
  }
  .sidebar:not(:hover):not(:focus-within) .sidebar-utility {
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none;
  }
  .sidebar:not(:hover):not(:focus-within) .acct-btn { display: none; }
}

@media (min-width: 861px) and (max-height: 720px) {
  .sidebar-footer { display: none; }
  .nav-label { padding-top: 8px; }
  .nav-item { height: 41px; }
}

.main { padding-top: 24px; }
.topbar:not(.dash-hero-inner) {
  align-items: center;
  min-height: 72px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.page-title h1 {
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.page-title p { max-width: 52rem; margin-top: 4px; line-height: 1.45; }

.dash-hero {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(21, 27, 46, 0.94), rgba(11, 15, 27, 0.9));
}
.dash-hero-inner .page-title h1 { letter-spacing: -0.035em; }

.card {
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(18, 23, 39, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(10px);
}
.card-title { font-weight: 700; letter-spacing: -0.015em; }
.card-sub { font-size: 12.5px; }

.btn {
  min-height: 40px;
  border-radius: 9px;
  font-weight: 700;
  box-shadow: none;
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast),
    background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); box-shadow: none; }
.btn-gold { box-shadow: 0 8px 22px rgba(203, 161, 53, 0.18); }
.btn-blue { box-shadow: 0 8px 22px rgba(79, 124, 255, 0.16); }
.btn-ghost,
.btn-login { background: rgba(255, 255, 255, 0.04); }
.btn:focus-visible,
.nav-item:focus-visible,
.mobile-nav-item:focus-visible,
.seg-btn:focus-visible,
.modal-close:focus-visible,
.search-box:focus-within {
  outline: 2px solid rgba(123, 160, 255, 0.82);
  outline-offset: 3px;
}

.search-box,
.select,
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  border-color: rgba(255, 255, 255, 0.09);
  background-color: rgba(8, 12, 22, 0.58);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}
.search-box:focus-within,
.select:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
  border-color: rgba(123, 160, 255, 0.56);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.09);
  outline: none;
}

.directory-hero,
.page-hero {
  border-radius: 16px;
  background:
    linear-gradient(110deg, rgba(203, 161, 53, 0.095), transparent 38%),
    linear-gradient(290deg, rgba(79, 124, 255, 0.11), transparent 42%),
    rgba(15, 20, 34, 0.88);
}
.directory-hero-bg { opacity: 0.34; background-size: 48px 48px; }
.directory-hero-copy h1 { font-family: var(--font-display); font-weight: 800; }
.directory-hero-copy .eyebrow { letter-spacing: 0.12em; }
.directory-hero .dir-summary div {
  border-radius: 9px;
  background: rgba(5, 8, 16, 0.32);
}

.table-wrap {
  scrollbar-gutter: stable;
  border-radius: 10px;
}
.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(14, 18, 31, 0.97);
  backdrop-filter: none;
}
.placement-table tbody tr { transition: background var(--motion-fast); }
.placement-table tbody tr:hover { background: rgba(123, 160, 255, 0.035); }

.admin-panel {
  border-radius: 12px;
  box-shadow: none;
}
.admin-panel-summary { padding: 7px 5px; }
.admin-panel-toggle { border-radius: 9px; background: rgba(255, 255, 255, 0.035); }

.modal-overlay {
  animation: modalVeilIn 180ms ease both;
  backdrop-filter: blur(8px) saturate(0.9);
  overscroll-behavior: contain;
}
.modal {
  border-radius: 14px;
  animation: modalSurfaceIn 300ms var(--motion-ease) both;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overscroll-behavior: contain;
}
.modal-head h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; }
.modal-close { border-radius: 9px; }
@keyframes modalVeilIn { from { opacity: 0; } }
@keyframes modalSurfaceIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}

.empty-state { padding-block: 42px; }
.empty-icon { border-radius: 11px; }

.app-footer { opacity: 0.82; }

@media (max-width: 1080px) {
  .auth-notice-text { flex-wrap: wrap; }
  .auth-notice-text small { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
  .route-transition,
  .view-enter { animation: none !important; }
  .view-enter > *,
  .modal-overlay,
  .modal { animation: none !important; }
  .collapsible-section::details-content,
  .dir-card,
  .alumni-card,
  .term-card,
  .bar-fill,
  .hbar-fill,
  .trend-svg,
  .donut-seg { animation: none !important; transition: none !important; }
}

/* Unified app surfaces -----------------------------------------------------
   The working UI uses a neutral navy hierarchy. Gold marks primary actions
   and compensation; blue marks navigation, selection, and data interaction. */
body {
  background:
    radial-gradient(900px 560px at 100% -10%, rgba(120, 160, 255, 0.045), transparent 62%),
    var(--surface-0);
}

.main { color: var(--text); }
.main::before { opacity: 0.5; }

.sidebar {
  border-color: var(--dash-border);
  background: rgba(11, 15, 25, 0.97);
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: none;
}
@media (min-width: 861px) {
  .sidebar:hover,
  .sidebar:focus-within {
    border-color: var(--dash-border-strong);
    background: rgba(13, 17, 28, 0.99);
    box-shadow: 16px 0 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}
.nav-item.active {
  color: #b9caff;
  background: rgba(120, 160, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(120, 160, 255, 0.13);
}
.nav-item:hover:not(.active) { background: rgba(255, 255, 255, 0.035); }

.card,
.admin-panel,
.term-card,
.dir-card,
.profile-section,
.profile-card-main,
.profile-card-side,
.pending-card {
  border-color: var(--dash-border);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow);
  backdrop-filter: none;
}
.card.clickable:hover,
.term-card:hover,
.dir-card:hover {
  border-color: var(--dash-border-strong);
  background: var(--dash-surface-strong);
}
.card-title,
.page-title h1,
.directory-hero-copy h1,
.modal-head h2 { color: var(--text); }
.card-sub,
.page-title p,
.person-sub,
.stat-label { color: var(--text-muted); }

.dash-hero,
.directory-hero,
.page-hero {
  border-color: var(--dash-border);
  background:
    linear-gradient(110deg, rgba(227, 185, 79, 0.06), transparent 36%),
    linear-gradient(290deg, rgba(120, 160, 255, 0.075), transparent 40%),
    var(--surface-1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}
.directory-hero .dir-summary div {
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(7, 10, 18, 0.34);
}

.dashboard-metric-band,
.stat-card {
  border-color: var(--dash-border);
  background: rgba(17, 22, 36, 0.78);
}
.stat-card .stat-value { color: var(--text); }
.stat-card.accent-gold .stat-value,
.dashboard-metric-band .stat-card:last-child .stat-value { color: var(--gold-bright); }
.accent-purple .dash-bar,
.stat-card.accent-purple::before,
.accent-green .dash-bar,
.stat-card.accent-green::before { background: var(--blue); }
.stat-card.accent-purple .stat-value,
.stat-card.accent-green .stat-value { color: var(--text); }
.ic-purple,
.ic-teal { color: var(--blue-bright); background: var(--blue-dim); }

.btn { border-radius: 9px; }
.btn-gold {
  border-color: transparent;
  background: var(--gold-bright);
  color: #111521;
  box-shadow: 0 7px 18px rgba(227, 185, 79, 0.16);
}
.btn-gold:hover { filter: brightness(1.045); }
.btn-blue {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 7px 18px rgba(95, 135, 248, 0.14);
}
.btn-ghost,
.btn-login {
  border-color: var(--dash-border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}
.btn-ghost:hover,
.btn-login:hover { background: rgba(255, 255, 255, 0.065); }

.search-box,
.select,
.field input,
.field select,
.field textarea,
.form-field input,
.form-field select,
.form-field textarea,
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(8, 11, 19, 0.68);
  color: var(--text);
}
.search-box:hover,
.select:hover,
input:not([type="checkbox"]):not([type="radio"]):hover,
textarea:hover { border-color: var(--dash-border-strong); }
.search-box:focus-within,
.select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
  border-color: rgba(120, 160, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(120, 160, 255, 0.1);
}
input::placeholder,
textarea::placeholder { color: var(--text-faint); }

.pill-purple { color: var(--blue-bright); background: var(--blue-dim); }
.pill-muted { color: var(--text-muted); background: rgba(255, 255, 255, 0.045); }
.pill-green { color: var(--green); background: var(--green-dim); }
.pill-red { color: var(--red); background: var(--red-dim); }
.pill-gold { color: var(--gold-bright); background: var(--gold-dim); }
.pill-blue { color: var(--blue-bright); background: var(--blue-dim); }

.card.dir-class-upper,
.card.dir-class-senior,
.card.dir-class-alumni {
  --dir-a: var(--blue-bright);
  --dir-bg: var(--blue-dim);
}
.card.dir-card {
  border-color: var(--dash-border);
  background: rgba(17, 22, 36, 0.9);
  box-shadow: var(--dash-shadow);
}
.card.dir-card:hover {
  border-color: var(--dash-border-strong);
  background: rgba(23, 29, 45, 0.94);
}
.card.dir-card.dir-placement-current { --dir-a: var(--green); --dir-bg: rgba(62, 207, 142, 0.055); }
.card.dir-card.dir-placement-upcoming { --dir-a: var(--blue-bright); --dir-bg: rgba(79, 124, 255, 0.055); }
.card.dir-card.dir-placement-completed { --dir-a: var(--gold); --dir-bg: rgba(203, 161, 53, 0.035); }
.card.dir-card.dir-placement-alumni { --dir-a: var(--gold-bright); --dir-bg: rgba(203, 161, 53, 0.05); }
.card.dir-card.dir-placement-empty { --dir-a: var(--text-faint); --dir-bg: rgba(255, 255, 255, 0.02); }
.card.dir-card[class*="dir-placement-"] {
  background:
    radial-gradient(circle at 100% 0%, var(--dir-bg), transparent 42%),
    rgba(17, 22, 36, 0.9);
}
.card.dir-card[class*="dir-placement-"]:hover {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--dir-a) 9%, transparent), transparent 44%),
    rgba(23, 29, 45, 0.94);
}
.alumni-card {
  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(135deg, rgba(227, 185, 79, 0.055), transparent 48%),
    rgba(17, 22, 36, 0.88);
}
.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(135deg, rgba(227, 185, 79, 0.07), transparent 50%),
    rgba(23, 29, 45, 0.94);
}

@media (max-width: 620px) {
  .alumni-grid { grid-template-columns: 1fr; }
  .alumni-card {
    min-height: 0;
    padding: 18px;
  }
  .alumni-card-header {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding-bottom: 15px;
  }
  .alumni-status-row {
    grid-column: 2;
    justify-content: flex-start;
  }
  .alumni-card-body { padding-block: 16px; }
  .alumni-career-block h3 { font-size: 18px; }
  .alumni-card-footer { align-items: flex-end; }
}

.table-wrap { border: 1px solid rgba(255, 255, 255, 0.055); }
.table-wrap thead th { background: rgba(12, 16, 27, 0.98); }
.placement-table tbody tr { border-color: rgba(255, 255, 255, 0.055); }
.placement-table tbody tr:hover { background: rgba(120, 160, 255, 0.045); }

.modal-overlay { background: rgba(4, 6, 11, 0.76); }
.modal {
  border-color: var(--dash-border-strong);
  background: #101522;
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.modal-close { background: rgba(255, 255, 255, 0.045); }
.modal-close:hover { background: rgba(255, 255, 255, 0.08); }

.toast {
  border-color: var(--dash-border-strong);
  background: rgba(15, 20, 32, 0.97);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}
.auth-helper-row--signin {
  border-color: rgba(227, 185, 79, 0.14);
  background: rgba(255, 255, 255, 0.022);
}
.auth-info-callout {
  border-color: var(--dash-border);
  background: rgba(8, 11, 19, 0.38);
}

/* Shared workspace polish --------------------------------------------------
   Keep every working view on the same rhythm while leaving the full-bleed
   public home page under landing.css control. */
.app:not(.landing-mode) .main {
  width: 100%;
  padding-inline: clamp(26px, 3vw, 48px);
}
.app:not(.landing-mode) .main > * { width: 100%; }
.app:not(.landing-mode) h1,
.app:not(.landing-mode) h2,
.app:not(.landing-mode) h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}
.app:not(.landing-mode) p { text-wrap: pretty; }

.dash-hero,
.directory-hero,
.page-hero {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.dash-hero::after,
.directory-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(227, 185, 79, 0.42), rgba(120, 160, 255, 0.42), transparent);
  opacity: 0.65;
}
.directory-hero-copy p,
.page-title p { max-width: 62ch; }

/* Static analytics cards stay steady as the pointer crosses a dense
   dashboard. Interactive cards retain their lift and stronger hover state. */
.dashboard-card,
.collapsible-body > .card,
.collapsible-body > [class^="grid-"] > .card {
  min-height: 0;
}
.card-title {
  line-height: 1.3;
  text-wrap: balance;
}
.card-sub { max-width: 72ch; }

.collapsible-section {
  scroll-margin-top: 24px;
}
.collapsible-summary {
  transition: background var(--motion-fast), color var(--motion-fast);
}
.collapsible-summary:active { background: rgba(120, 160, 255, 0.035); }
.collapsible-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.table-wrap {
  overflow: visible;
}
.placement-table td,
.placement-table th { vertical-align: middle; }
.placement-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.009); }

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.table-pagination-summary {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.table-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.table-page-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
}
.table-page-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(123, 160, 255, 0.34);
  background: rgba(79, 124, 255, 0.09);
}
.table-page-btn.active {
  color: #0a0d15;
  border-color: rgba(232, 194, 91, 0.72);
  background: var(--gold);
}
.table-page-btn:disabled {
  opacity: 0.34;
  cursor: default;
}
.dashboard-current-list.table-page-updated .table-wrap,
.dashboard-current-list.table-page-updated .table-pagination {
  animation: tablePageIn 180ms var(--motion-ease) both;
}
@keyframes tablePageIn {
  from { opacity: 0.55; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .table-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-pagination-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

.admin-panel-body,
.lookup-main,
.directory-hero-copy,
.page-title { min-width: 0; }
.lookup-row { transition: background var(--motion-fast), border-color var(--motion-fast); }
.lookup-actions { flex: 0 0 auto; }

@media (min-width: 861px) {
  .auth-notice {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
  }
  .auth-notice-text {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 8px;
    align-items: baseline;
  }
  .auth-notice-text small { grid-column: 1 / -1; }
}

.dir-card:focus-visible,
.alumni-card:focus-visible,
.term-card:focus-visible {
  outline: 2px solid rgba(120, 160, 255, 0.78);
  outline-offset: 3px;
}

@media (max-width: 1100px) and (min-width: 861px) {
  .app:not(.landing-mode) .main { padding-inline: 28px; }
  .directory-hero,
  .page-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 38%); }
  .directory-hero .dir-summary {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }
}

@media (max-width: 860px) {
  .app:not(.landing-mode) .main {
    padding-inline: 12px;
  }
  .dash-hero::after,
  .directory-hero::after,
  .page-hero::after { inset-inline: 12px; }
  .card-sub { line-height: 1.45; }
  .lookup-row {
    align-items: flex-start;
    gap: 10px;
  }
  .lookup-actions {
    width: 100%;
    padding-left: 46px;
  }
  .lookup-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (hover: none) {
  .btn:hover,
  .dir-card:hover,
  .alumni-card:hover,
  .term-card:hover { transform: none; }
}

/* Workspace page headers --------------------------------------------------
   One visual hierarchy for Dashboard, Directory, By Term, Admin, and
   Privacy. The page-specific content stays distinct while its framing and
   spacing remain predictable as people move through the app. */
.workspace-header {
  --workspace-header-gold: rgba(227, 185, 79, 0.82);
  --workspace-header-blue: rgba(120, 160, 255, 0.82);
}

.topbar.workspace-header {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 148px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  background:
    radial-gradient(78% 150% at 0% 0%, rgba(227, 185, 79, 0.09), transparent 56%),
    radial-gradient(72% 140% at 100% 20%, rgba(79, 124, 255, 0.1), transparent 58%),
    rgba(13, 17, 29, 0.8);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.topbar.workspace-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}
.topbar.workspace-header::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--workspace-header-gold), var(--workspace-header-blue), transparent);
  opacity: 0.62;
}

.workspace-header-identity {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}
.workspace-header-crest {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(227, 185, 79, 0.15);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(227, 185, 79, 0.1), rgba(79, 124, 255, 0.065));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.workspace-header-crest .topbar-crest {
  width: 48px;
  height: 48px;
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}
.page-kicker > span {
  width: 24px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-bright), var(--blue-bright));
}

.topbar.workspace-header .page-title h1,
.dash-hero-inner .page-title h1,
.page-hero .directory-hero-copy h1,
.directory-hero .directory-hero-copy h1 {
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.topbar.workspace-header .page-title p,
.dash-hero-inner .page-title p,
.page-hero .directory-hero-copy p,
.directory-hero .directory-hero-copy p {
  max-width: 64ch;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.topbar.workspace-header .topbar-actions {
  max-width: min(48vw, 650px);
  padding-left: 20px;
}
.topbar.workspace-header .search-box {
  border-color: rgba(255, 255, 255, 0.095);
  background: rgba(7, 10, 18, 0.48);
}

.dash-hero-inner {
  gap: 17px;
}
.dash-hero-inner .page-title {
  align-self: center;
}
.dash-hero-inner .page-kicker {
  margin-bottom: 7px;
}

.page-hero.workspace-header,
.directory-hero.workspace-header {
  border-radius: 18px;
}
.page-hero.workspace-header {
  min-height: 168px;
  padding: 26px;
}
.page-hero .directory-hero-copy,
.directory-hero .directory-hero-copy {
  position: relative;
  z-index: 1;
}
.directory-hero.workspace-header {
  padding: 26px;
}
.directory-hero.workspace-header .directory-hero-main {
  gap: 24px;
}
.directory-hero.workspace-header .dir-summary div {
  backdrop-filter: blur(8px);
}

@media (max-width: 860px) {
  .topbar.workspace-header {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding: 20px;
  }
  .topbar.workspace-header .topbar-actions {
    width: 100%;
    max-width: none;
    padding-left: 0;
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .topbar.workspace-header .search-box {
    width: min(100%, 520px);
    flex: 1 1 280px;
  }
  .page-hero.workspace-header,
  .directory-hero.workspace-header {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .topbar.workspace-header,
  .page-hero.workspace-header,
  .directory-hero.workspace-header {
    padding: 17px;
    border-radius: 15px;
  }
  .workspace-header-identity { gap: 12px; }
  .workspace-header-crest {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
  .workspace-header-crest .topbar-crest {
    width: 39px;
    height: 39px;
  }
  .page-kicker {
    margin-bottom: 7px;
    font-size: 9px;
  }
  .page-kicker > span { width: 18px; }
  .topbar.workspace-header .page-title h1,
  .dash-hero-inner .page-title h1,
  .page-hero .directory-hero-copy h1,
  .directory-hero .directory-hero-copy h1 {
    font-size: 25px;
  }
  .topbar.workspace-header .page-title p,
  .dash-hero-inner .page-title p,
  .page-hero .directory-hero-copy p,
  .directory-hero .directory-hero-copy p {
    font-size: 12.5px;
  }
  .topbar.workspace-header .topbar-actions .btn,
  .page-hero-submit-row .btn,
  .directory-submit-row .btn {
    min-height: 42px;
  }
}
.donut-track { stroke: var(--border); }
#donutCenterTop { fill: var(--text); }
#donutCenterBottom,
.trend-svg .trend-label { fill: var(--text-muted); }
.trend-svg .trend-value { fill: var(--gold-bright); }
.trend-svg .trend-line { stroke: var(--gold); }
.trend-svg .trend-dot { fill: var(--gold); stroke: var(--card); }
