




:root {

  --font-display: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-fast);
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  background-image: none !important;
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


.font-mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.font-display {
  font-family: var(--font-display);
}

.font-serif {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: currentColor;
  color: var(--text-primary);
  display: inline-block;
}


.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--masthead-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 32px;
}

.masthead-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.institutional-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-crest-box {
  width: 38px;
  height: 38px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  box-shadow: none;
  border: 1px solid var(--border-medium);
  object-fit: contain;
  padding: 2px;
  flex: 0 0 auto;
}

.brand-nav-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 38px;
  aspect-ratio: 927 / 1152;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-inst-name {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
}

.brand-platform-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-platform-title em {
  font-style: normal;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: currentColor;
  color: var(--text-primary);
  font-weight: 800;
}


.masthead-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
}

.nav-item {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-platform-link {
  text-decoration: none;
}

.admin-platform-link[hidden] {
  display: none !important;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.nav-item.active {
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  box-shadow: none;
  border: 1px solid var(--btn-primary-border);
  font-weight: 700;
}

.masthead-user-slot {
  display: flex;
  align-items: center;
  gap: 12px;
}


.theme-toggle-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-pill:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.ttp-icon {
  font-size: 14px;
  line-height: 1;
}

.session-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 5px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.session-user-badge:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.sub-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--story-avatar-bg);
  box-shadow: 0 0 0 1.5px var(--accent-primary);
}

.sub-meta {
  display: flex;
  flex-direction: column;
}

.sub-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.sub-tag {
  font-size: 10px;
  color: var(--accent-blue);
  font-weight: 500;
}

.btn-signout {
  background: transparent;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.btn-signout:hover {
  color: var(--accent-rose);
  border-color: var(--accent-rose);
  background: var(--color-danger-subtle);
}


.ticker-rule {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  font-size: 12px;
  font-family: var(--font-mono);
  overflow: hidden;
}

.tr-label {
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.tr-marquee {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.tr-content {
  display: block;
  width: max-content;
  color: var(--text-secondary);
}

.tr-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  animation: tickerAnim var(--ticker-duration, 38s) linear infinite;
  will-change: transform;
}

.tr-track > span {
  display: block;
  flex: 0 0 auto;
  padding-right: clamp(28px, 5vw, 72px);
}

.pcc-status-pill[data-state="offline"] {
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 5px 10px;
  letter-spacing: .04em;
}

.pcc-status-pill[data-state="available"] {
  background: color-mix(in srgb, var(--accent-emerald) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 35%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
}

.pcc-status-pill[data-state="loading"] {
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 10px;
}

@keyframes tickerAnim {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tr-track { animation: none; }
}


.campus-stories-bar {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 32px;
}

.csb-inner {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
}

.csb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.csb-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.csb-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: radarPulse 1.8s infinite;
}

.csb-count {
  font-size: 11px;
  color: var(--text-muted);
}

.csb-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.csb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
  box-shadow: var(--card-shadow);
  user-select: none;
}

.csb-arrow:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
}

.csb-arrow.left {
  left: -8px;
}

.csb-arrow.right {
  right: -8px;
}

.csb-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 10px;
  width: 100%;
}

.csb-track::-webkit-scrollbar {
  display: none !important;
}


.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-fast);
}

.story-item:hover {
  transform: translateY(-2px);
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--story-ring-unseen);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(109, 109, 109, 0.25);
}

.story-ring.story-ring-self {
  background: var(--border-strong);
}

.story-avatar-box {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--story-avatar-bg);
  border: 2px solid var(--story-avatar-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2px solid var(--story-avatar-bg);
  box-shadow: 0 0 6px var(--accent-emerald);
}


.memoji-avatar-badge {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast);
}

.memoji-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.16));
}

.story-avatar-box .memoji-avatar-badge,
.sub-avatar .memoji-avatar-badge,
.snapmap-avatar-frame .memoji-avatar-badge,
.buddy-avatar-ring .memoji-avatar-badge {
  border-radius: 50%;
  width: 100%;
  height: 100%;
}


.memoji-palette-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}

.memoji-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.memoji-color-swatch:hover {
  transform: scale(1.18);
}

.memoji-color-swatch.active {
  border-color: var(--accent-primary);
  transform: scale(1.22);
  box-shadow: 0 0 0 2px var(--bg-card);
}

.memoji-choice-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 8px 4px 14px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.memoji-choice-grid::-webkit-scrollbar {
  display: none !important;
}

.memoji-choice-item {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.memoji-choice-item:hover {
  transform: scale(1.1);
  border-color: var(--border-medium);
}

.memoji-choice-item.active {
  border-color: var(--accent-primary);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(109, 109, 109, 0.4);
}

.story-plus-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: var(--accent-blue-contrast);
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--story-avatar-bg);
}

.story-username {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 6px;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.story-checkpoint {
  font-size: 9.5px;
  color: var(--text-muted);
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}


.editorial-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

.editorial-section {
  margin-bottom: 56px;
}

.section-index-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.sih-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sih-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
}

.sih-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

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


.asym-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 24px;
  margin-bottom: 48px;
}

.hero-editorial-left {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.hero-editorial-left::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-primary) 20%, transparent) 0%, color-mix(in srgb, var(--accent-secondary) 10%, transparent) 50%, transparent 70%); filter: blur(20px);
  pointer-events: none;
}

.hero-index-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-body-prose {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-presence-strip {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hps-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.presence-pill {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary) !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.presence-pill:hover {
  background: var(--bg-surface-hover) !important;
  color: var(--text-primary) !important;
  transform: translateY(-1px);
}

.presence-pill.active {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border) !important;
  box-shadow: none !important;
}



.hero-dispatch-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}


.hdr-pulse-box {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.hdr-pulse-box:hover {
  border-color: var(--border-medium);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--card-shadow-hover);
  transform: translateY(-2px);
}

.hdr-coordinates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.hdr-coord-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

.hdr-pin-icon {
  color: var(--accent-primary);
  opacity: 0.85;
}

.hdr-coord-right {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10.5px;
}

.hpb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hpb-density-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hpb-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  display: inline-block;
  animation: pulseBeacon 2s infinite ease-in-out;
}

.hpb-metric-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 6px 0 10px 0;
}

.hpb-metric {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}


.hpb-metric-sub {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.hpb-active-badge {
  background: var(--accent-emerald-soft) !important;
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 32%, transparent) !important;
  box-shadow: none !important;
  color: var(--accent-emerald) !important;
  animation: none !important;
}

.hpb-active-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  display: inline-block;
}

.hpb-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 4px;
}


.peer-connect-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.peer-connect-card:hover {
  border-color: var(--border-medium);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--card-shadow-hover);
  transform: translateY(-2px);
}

.pcc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pcc-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
}

.pcc-icon {
  font-size: 15px;
  color: var(--accent-amber);
}

.pcc-status-pill {
  background: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-medium) !important;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
}

.pcc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}



.free-dur-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 11px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary) !important;
  padding: 8px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.free-dur-btn:hover {
  background: var(--bg-surface-hover) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
  transform: translateY(-1px);
}

.free-dur-btn.active {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border) !important;
  box-shadow: none !important;
  font-weight: 700;
}

.free-dur-btn:focus-visible {
  outline: 2px solid var(--border-focus) !important;
  outline-offset: 2px !important;
}


#freeStatusMsgInput,
.free-status-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  margin-bottom: 10px;
  transition: all var(--transition-fast, 0.18s cubic-bezier(0.4, 0, 0.2, 1));
}

#freeStatusMsgInput::placeholder,
.free-status-input::placeholder {
  color: var(--text-muted);
}

#freeStatusMsgInput:hover,
.free-status-input:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
}

#freeStatusMsgInput:focus,
#freeStatusMsgInput:focus-visible,
.free-status-input:focus,
.free-status-input:focus-visible {
  outline: 2px solid var(--border-focus) !important;
  outline-offset: 2px !important;
  border-color: var(--border-focus) !important;
  background: var(--bg-surface-elevated) !important;
  box-shadow: none !important;
}


.btn-action-ghost,
.btn-refresh-radar {
  background: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-text) !important;
  border: 1px solid var(--btn-secondary-border) !important;
  border-radius: var(--radius-full);
  box-shadow: none !important;
}
.btn-action-ghost:hover,
.btn-refresh-radar:hover {
  background: var(--btn-secondary-hover) !important;
  border-color: var(--border-strong) !important;
  color: var(--btn-secondary-text) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}
.btn-action-ghost.active,
.free-dur-btn.active {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border) !important;
  box-shadow: none !important;
  font-weight: 700;
}

.btn-action-ghost:hover,
.btn-refresh-radar:hover {
  background: var(--btn-secondary-hover) !important;
  border-color: var(--border-strong) !important;
  color: var(--btn-secondary-text) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.btn-action-ghost:focus-visible,
.btn-refresh-radar:focus-visible {
  outline: 2px solid var(--border-focus) !important;
  outline-offset: 2px !important;
}

.btn-action-ghost.danger {
  color: var(--color-danger-text);
  border-color: color-mix(in srgb, var(--color-danger) 36%, transparent);
  background: var(--color-danger-subtle);
}

.btn-action-ghost.danger:hover {
  background: color-mix(in srgb, var(--color-danger) 18%, var(--bg-card));
  border-color: var(--color-danger);
  color: var(--color-danger-text);
  box-shadow: none;
}


.apple-input-field {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 6px 12px;
  outline: none;
  transition: all var(--transition-fast, 0.18s ease);
  cursor: pointer;
  box-sizing: border-box;
}

.apple-input-field:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

.apple-input-field:focus,
.apple-input-field:focus-visible {
  outline: 2px solid var(--border-focus) !important;
  outline-offset: 2px !important;
  border-color: var(--border-focus) !important;
  box-shadow: none !important;
}


select.form-input-impeccable option,
.form-input-impeccable option,
.apple-input-field option,
select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}


.upcoming-events-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--card-shadow);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.upcoming-events-card:hover {
  border-color: var(--border-medium);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--card-shadow-hover);
  transform: translateY(-2px);
}

.uec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.uec-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.uec-cal-icon {
  font-size: 15px;
}

.uec-view-all {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.uec-view-all:hover {
  color: var(--accent-blue);
}

.uec-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.uec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.uec-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateX(2px);
}

.uec-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-primary-soft);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 18%, var(--border-subtle));
  box-shadow: 0 2px 8px rgba(47, 39, 54, 0.06);
  line-height: 1.1;
  flex-shrink: 0;
}

.uec-date-month {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--accent-rose);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.uec-date-day {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.uec-meta {
  flex: 1;
  min-width: 0;
}

.uec-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uec-spot {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.uec-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.uec-tag.hackathon {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 30%, transparent);
}

.uec-tag.gathering {
  background: var(--accent-primary-soft);
  color: var(--accent-secondary);
  border: 1px solid color-mix(in srgb, var(--accent-secondary) 30%, transparent);
}

.uec-tag.event {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  border: 1px solid color-mix(in srgb, var(--accent-blue) 30%, transparent);
}

.uec-arrow {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  margin-left: 2px;
  flex-shrink: 0;
}

.match-trigger-button {
  width: 100%;
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border) !important;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow: none !important;
}
.match-trigger-button:hover {
  background: var(--btn-primary-hover) !important;
  color: var(--btn-primary-text) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.match-trigger-button:hover {
  background: var(--btn-primary-hover) !important;
  color: var(--btn-primary-text) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}



.ledger-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 130px 180px 1fr 140px 120px;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
  content-visibility: auto;
  contain-intrinsic-size: 0 68px;
}

.ledger-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.lr-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-primary);
}

.lr-venue {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.lr-subject {
  font-size: 14px;
  color: var(--text-secondary);
}

.lr-subject strong {
  color: var(--text-primary);
  font-weight: 600;
}

.lr-capacity {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.btn-ledger-action {
  background: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-text) !important;
  border: 1px solid var(--btn-secondary-border) !important;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: none !important;
}
.btn-ledger-action:hover {
  background: var(--btn-secondary-hover) !important;
  color: var(--btn-secondary-text) !important;
  border-color: var(--border-strong) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.btn-ledger-action:hover {
  background: var(--btn-secondary-hover) !important;
  color: var(--btn-secondary-text) !important;
  border-color: var(--border-strong) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}


.split-academic-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}

.tutor-folio-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-smooth);
  content-visibility: auto;
  contain-intrinsic-size: 0 140px;
}

.tutor-folio-card:hover {
  border-color: var(--border-medium);
}

.tfc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.tfc-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.tfc-rating {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-amber);
}

.tfc-meta {
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.tfc-bio {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}


.architectural-viewport {
  position: relative;
  width: 100%;
  height: 580px;
  background: var(--bg-canvas);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#campusMapContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewport-overlay-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vo-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vo-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: scale(1.05);
}

.vo-btn.active {
  background: var(--ig-gradient);
  color: var(--ig-gradient-text);
  border-color: transparent;
}

.viewport-perspectives {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  padding: 5px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vp-chip {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vp-chip:hover {
  color: var(--text-primary);
}

.vp-chip.active {
  background: var(--ig-gradient);
  color: var(--ig-gradient-text);
  box-shadow: 0 4px 12px rgba(109, 109, 109, 0.35);
}


.snapmap-user-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

.snapmap-nametag {
  background: var(--ig-gradient);
  color: var(--ig-gradient-text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(109, 109, 109, 0.45);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.snapmap-you-badge {
  background: rgba(0, 0, 0, 0.25);
  font-size: 9px;
  padding: 1px 4px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.snapmap-status-bubble {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  margin-bottom: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.snapmap-avatar-frame {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary-soft);
  background: var(--bg-surface-elevated);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(109, 109, 109, 0.5);
}

.snapmap-avatar-shadow {
  width: 28px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(2px);
  margin-top: 2px;
}

.snapmap-sonar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  background: rgba(154, 154, 154, 0.15);
  animation: snapmapSonar 2.2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes snapmapSonar {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}


.snapmap-locate-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 15;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.snapmap-locate-btn:hover {
  background: var(--ig-gradient);
  color: var(--ig-gradient-text);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(109, 109, 109, 0.4);
}

.snapmap-gps-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}


.rec-buddy-marker {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-fast);
}

.rec-buddy-marker:hover {
  transform: scale(1.1);
}

.buddy-speech-bubble {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  margin-bottom: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.buddy-avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  background: var(--bg-surface-elevated);
  overflow: hidden;
  position: relative;
}

.buddy-live-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 1px solid var(--bg-card);
}


.building-detail-drawer {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  width: 320px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateX(-120%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.building-detail-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.drawer-cat-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.drawer-info {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

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


.auth-portal-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.auth-portal-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.auth-bg-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-bg-grid {
  position: absolute;
  inset: -100px;
  background-image:
    radial-gradient(color-mix(in srgb, var(--accent-primary) 22%, transparent) 1.2px, transparent 1.2px),
    radial-gradient(color-mix(in srgb, var(--accent-secondary) 16%, transparent) 1.5px, transparent 1.5px);
  background-size: 38px 38px, 76px 76px;
  background-position: 0 0, 19px 19px;
  mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 85%);
  opacity: 0.65;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(85px);
  will-change: transform;
}

.auth-orb-1 { display: none !important; }

.auth-orb-2 { display: none !important; }

.auth-orb-3 { display: none !important; }

.auth-orb-4 { display: none !important; }

@keyframes floatOrb1 {
  0% { transform: translate(-30px, -20px) scale(0.95); }
  50% { transform: translate(60px, 45px) scale(1.12); }
  100% { transform: translate(15px, -40px) scale(1.02); }
}

@keyframes floatOrb2 {
  0% { transform: translate(30px, 20px) scale(1); }
  50% { transform: translate(-50px, -55px) scale(1.18); }
  100% { transform: translate(-10px, 30px) scale(0.92); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(1.1); }
  100% { transform: translate(35px, -25px) scale(0.95); }
}

@keyframes floatOrb4 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-25px, 25px) scale(1); }
}

.auth-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--accent-primary) 34%, transparent) 1.5px, transparent 55%),
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--accent-secondary) 30%, transparent) 2px, transparent 55%),
    radial-gradient(circle at 82% 68%, color-mix(in srgb, var(--accent-blue) 30%, transparent) 2px, transparent 55%),
    radial-gradient(circle at 28% 78%, color-mix(in srgb, var(--accent-rose) 24%, transparent) 1.2px, transparent 55%),
    radial-gradient(circle at 52% 82%, color-mix(in srgb, var(--accent-amber) 26%, transparent) 1.8px, transparent 55%),
    radial-gradient(circle at 12% 55%, color-mix(in srgb, var(--accent-primary) 24%, transparent) 1.5px, transparent 55%),
    radial-gradient(circle at 88% 38%, color-mix(in srgb, var(--accent-emerald) 26%, transparent) 2px, transparent 55%);
  animation: particleFloat 12s ease-in-out infinite alternate;
}

@keyframes particleFloat {
  0% { transform: translateY(0px) scale(1); opacity: 0.65; }
  100% { transform: translateY(-20px) scale(1.04); opacity: 0.95; }
}

.auth-glass-card, .auth-monolith {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 32px;
  padding: 40px 32px 32px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.auth-glass-card::before, .auth-monolith::before { display: none !important; }


.auth-glass-sheen {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 20%) var(--mouse-y, 20%), color-mix(in srgb, var(--accent-primary) 10%, transparent) 0%, transparent 45%);
  opacity: 0.8;
  transition: opacity 0.3s;
}


.ag-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: var(--accent-primary-soft);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 20%, transparent);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.ag-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}


.auth-glass-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-glass-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 0;
}

.auth-glass-title .ag-title-dim {
  color: var(--text-muted);
  font-weight: 600;
}

.auth-glass-subtitle {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}


.glass-input-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 22px;
  padding: 8px 10px 8px 18px;
  transition: all 0.2s ease;
  box-shadow: none;
}

.glass-input-capsule:focus-within {
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: 0 0 0 2px var(--border-focus);
}

.gic-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.gic-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.gic-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  width: 100%;
  padding: 0;
}

.gic-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.gic-submit-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ig-gradient);
  color: var(--ig-gradient-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 10px;
}

.gic-submit-btn:hover {
  transform: scale(1.06);
  box-shadow: none;
  background: var(--btn-primary-hover);
}

.gic-submit-btn:active {
  transform: scale(0.95);
}


.glass-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 18px;
}

.glass-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.glass-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}


.glass-sso-btn {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: var(--btn-primary-bg);
  border: 1px solid var(--btn-primary-border);
  border-radius: 16px;
  padding: 12px 14px 12px 18px;
  color: var(--btn-primary-text);
  cursor: pointer;
  transition: all 0.22s ease;
  margin-bottom: 12px;
  box-shadow: none;
  box-sizing: border-box;
}

.glass-sso-btn:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: none;
}

.gsb-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.gsb-text {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--btn-primary-text);
  letter-spacing: -0.01em;
}

.gsb-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--btn-primary-text) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--btn-primary-text) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-primary-text);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.glass-sso-btn:hover .gsb-arrow {
  background: color-mix(in srgb, var(--btn-primary-text) 16%, transparent);
  border-color: color-mix(in srgb, var(--btn-primary-text) 30%, transparent);
  color: var(--btn-primary-text);
  transform: translateX(2px);
}

.rec-crest-mini {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ig-gradient);
  color: var(--ig-gradient-text);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}


.auth-glass-footer {
  text-align: center;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-contact-admin-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-contact-admin-link:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-shadow: none;
}

.auth-step-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.auth-step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.auth-step-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.auth-first-time-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.aft-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  flex-shrink: 0;
}

.verified-email-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--accent-emerald-soft);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 30%, transparent);
  border-radius: var(--radius-sm);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}

.veb-check {
  font-weight: 800;
}

.form-group-impeccable {
  margin-bottom: 16px;
}

.form-group-impeccable label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input-impeccable {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input-impeccable:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--border-focus) 22%, transparent);
}

.pseudo-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.pseudo-cell {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pseudo-cell:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.pseudo-cell.active {
  background: var(--ig-gradient);
  border-color: transparent;
  color: var(--ig-gradient-text);
  box-shadow: none;
}

.auth-submit-btn {
  width: 100%;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-top: 10px;
  transition: all var(--transition-fast);
  box-shadow: none;
}

.auth-submit-btn:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: none;
}

.auth-inst-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.aiw-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-input-wrapper input {
  padding-left: 40px !important;
}

.auth-security-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.asn-shield {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-evaluation-strip {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

.aes-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.aes-quick-select-wrap {
  width: 100%;
}

.aes-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.aes-select:hover, .aes-select:focus {
  border-color: var(--border-medium);
  color: var(--text-primary);
}


.google-sso-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-google-workspace {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-fast);
}

.btn-google-workspace:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  background: var(--bg-surface-hover);
}

.google-logo-svg {
  flex-shrink: 0;
}

.google-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.gdb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.auth-divider-line {
  position: relative;
  text-align: center;
  margin: 20px 0 14px;
}

.auth-divider-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.auth-divider-line span {
  position: relative;
  background: var(--bg-surface);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}


.google-account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.google-account-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
  transform: translateX(3px);
}

.gai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.gai-info {
  flex: 1;
  min-width: 0;
}

.gai-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.gai-email {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.onboarding-avatar-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.oab-avatar-frame {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.oab-info {
  flex: 1;
}

.oab-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.oab-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}


#authProfileSetupStep {
  max-height: min(82dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 8px 0;
  scrollbar-gutter: stable;
}

#authProfileSetupStep .onboarding-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#authProfileSetupStep .onboarding-gender-options {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

#authProfileSetupStep .pseudo-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#authProfileSetupStep .pseudo-tag {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
}

#authProfileSetupStep button,
#authProfileSetupStep select,
#authProfileSetupStep input {
  min-height: 42px;
}

@media (max-width: 480px) {
  #authProfileSetupStep {
    max-height: min(78dvh, 680px);
  }

  #authProfileSetupStep .onboarding-fields-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #authProfileSetupStep .onboarding-avatar-box {
    gap: 9px;
    padding: 10px;
  }

  #authProfileSetupStep .onboarding-gender-options {
    flex-direction: column;
  }

  #authProfileSetupStep .pseudo-prefix-row {
    gap: 8px;
  }

  #authProfileSetupStep .pseudo-prefix-row > div:last-child {
    flex-basis: 112px !important;
  }
}

.aes-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.aes-link {
  color: var(--accent-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.aes-link:hover {
  color: var(--text-primary);
}


.editorial-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.editorial-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2500;
}

.editorial-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-modal);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.editorial-modal-backdrop.active .editorial-modal-card {
  transform: scale(1);
}


.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-pill {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


.hero-slideshow-container {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 36px 36px 28px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: all var(--transition-smooth);
}

.hero-slideshow-container:hover {
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-hover);
}

.slideshow-progress-track {
  display: none !important;
}

.slideshow-progress-bar {
  display: none !important;
}

.slides-viewport {
  position: relative;
  min-height: 220px;
}

.feature-slide {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.fs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--ig-gradient-soft);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 28%, transparent);
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.fs-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

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

.slideshow-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 18px;
}

.slide-nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slide-nav-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: scale(1.08);
}

.slide-dots-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-medium);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.slide-dot:hover {
  background: var(--text-secondary);
}

.slide-dot.active {
  width: 24px;
  background: var(--ig-gradient);
}


#profilePageView {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  background-image: none !important;
  background-attachment: fixed;
  animation: fadeInProfilePage 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.profile-page-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--masthead-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-medium);
  padding: 14px 28px;
}

.ppt-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-back-campus {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  user-select: none;
}

.btn-back-campus:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
  text-decoration: none !important;
  transform: translateX(-4px);
  box-shadow: 0 4px 18px rgba(109, 109, 109, 0.22);
}

.btn-back-campus:active {
  transform: scale(0.96) translateX(-2px) !important;
}

.ppt-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ppt-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.12em;
}

.ppt-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0 0;
  letter-spacing: -0.3px;
}

.ppt-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-page-container {
  max-width: 1200px;
  margin: 32px auto 60px;
  padding: 0 24px;
}

.profile-page-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 28px;
  align-items: start;
}

.pp-col-visual,
.pp-col-settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gender-lock-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-primary-soft);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 24%, transparent);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-top: 14px;
  text-align: center;
}


.memoji-paginated-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  margin: 12px 0 8px;
}

.mpt-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  user-select: none;
}

.mpt-nav-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.08);
}

.mpt-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  justify-items: center;
  align-items: center;
}

.mpt-grid .memoji-choice-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
  padding: 2px;
}

.mpt-grid .memoji-choice-item:hover {
  transform: scale(1.12);
  border-color: var(--border-strong);
}

.mpt-grid .memoji-choice-item.active {
  border-color: var(--accent-primary);
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(109, 109, 109, 0.45);
}

.mpt-page-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.mpt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-medium);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.mpt-dot:hover {
  background: var(--text-secondary);
}

.mpt-dot.active {
  width: 20px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(109, 109, 109, 0.35);
}


.pseudo-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pseudo-tags-cloud::-webkit-scrollbar {
  display: none !important;
}

.pseudo-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.pseudo-tag:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.pseudo-tag.active {
  background: var(--ig-gradient-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(109, 109, 109, 0.25);
  transform: translateY(-1px);
}

.psc-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.psc-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.psc-avatar-stage {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.psc-avatar-info {
  flex: 1;
}

.psc-pseudo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.psc-pseudo-row h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.psc-badge-verified {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 30%, transparent);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.psc-dept-year {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.psc-realname-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  background: var(--bg-surface-elevated);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  width: fit-content;
}

.psc-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.psc-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.psc-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.psc-toggles-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.psc-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 8px 0;
}

.psc-toggle-row:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
}

.psc-toggle-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.psc-toggle-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 3px 0 0 0;
  line-height: 1.4;
}

.psc-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  margin-top: 2px;
}

.psc-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 6px;
}

.psc-signout-btn {
  background: var(--color-danger-subtle);
  border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent);
  color: var(--accent-rose);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.psc-signout-btn:hover {
  background: var(--accent-rose);
  color: var(--accent-rose-contrast);
  box-shadow: none;
}


.institutional-footer {
  margin-top: 60px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-medium);
  padding: 60px 24px 30px;
}

.if-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.if-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.if-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.if-inst-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.if-inst-subtitle {
  font-size: 11px;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
}

.if-inst-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.if-address {
  font-size: 11.5px;
  color: var(--text-muted);
}

.if-col-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.if-links li a {
  color: var(--text-secondary);
  font-size: 12.5px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.if-links li a:hover {
  color: var(--accent-primary);
}

.if-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-emerald-soft);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 30%, transparent);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 14px;
}

.if-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.if-security-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.if-bottom-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.if-meta-links {
  display: flex;
  gap: 8px;
  align-items: center;
}


@media (max-width: 960px) {
  .if-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
  }
  .asym-hero {
    grid-template-columns: 1fr;
  }
  .split-academic-layout {
    grid-template-columns: 1fr;
  }
  .masthead-nav {
    display: none;
  }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .editorial-container {
    padding: 20px 16px 60px;
  }
  .campus-stories-bar {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .masthead {
    padding: 0 12px;
  }

  .masthead-inner {
    height: 58px;
    gap: 8px;
  }

  .brand-inst-name {
    display: none;
  }

  .brand-platform-title {
    font-size: 16px;
  }

  .masthead-nav {
    display: none;
  }

  .theme-toggle-pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  .ttp-text {
    display: none;
  }

  .session-user-badge {
    padding: 4px 10px 4px 6px;
  }

  .sub-tag {
    display: none;
  }

  .sub-name {
    font-size: 13px;
  }

  .campus-stories-bar {
    padding: 0 12px;
    margin: 8px 0 16px;
  }

  .editorial-container {
    padding: 12px 12px 48px;
  }

  .asym-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-slideshow-container {
    padding: 24px 18px 20px;
    min-height: auto;
  }

  .hero-headline {
    font-size: 26px !important;
    line-height: 1.25;
  }

  .hero-body-prose {
    font-size: 13.5px;
  }

  .fs-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fs-actions button {
    width: 100%;
    text-align: center;
  }

  .hdr-pulse-box {
    padding: 16px;
  }

  .campus-map-box {
    height: 380px !important;
  }

  .profile-page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-page-container {
    padding: 0 14px;
    margin: 18px auto 40px;
  }

  .profile-page-topbar {
    padding: 12px 16px;
  }

  .ppt-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ppt-title-wrap {
    order: 3;
    width: 100%;
    text-align: left;
    align-items: flex-start;
  }

  .ppt-title {
    font-size: 17px;
  }

  .mpt-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .csb-arrow {
    display: none;
  }

  .psc-avatar-wrap {
    flex-direction: column;
    text-align: center;
  }

  .psc-pseudo-row {
    justify-content: center;
  }

  .psc-realname-lock {
    margin: 8px auto 0;
  }

  .psc-actions-row {
    flex-direction: column;
  }

  .psc-actions-row button {
    width: 100%;
  }

  .if-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .if-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-glass-card, .auth-monolith {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 32px;
  padding: 40px 32px 32px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

  .auth-glass-title {
    font-size: 27px;
  }
}


@media (max-width: 480px) {
  .hero-headline {
    font-size: 22px !important;
  }

  .auth-heading-serif {
    font-size: 20px;
  }
}


.geofence-banner {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.geofence-banner.inside {
  background: var(--accent-emerald-soft);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 40%, transparent);
  color: var(--accent-emerald);
}

.geofence-banner.outside {
  background: var(--accent-rose-soft);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 40%, transparent);
  color: var(--accent-rose);
}

.gfb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.gfb-dot.active {
  background: var(--accent-emerald);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent-emerald) 42%, transparent);
  animation: radarPulse 1.6s infinite;
}

.gfb-dot.warning {
  background: var(--accent-amber);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent-amber) 50%, transparent);
}


.pseudo-prefix-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-input-prefix {
  width: 130px;
  flex-shrink: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pseudo-avail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  transition: all var(--transition-fast);
}

.pseudo-avail-tag.available {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 30%, transparent);
}

.pseudo-avail-tag.taken {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 30%, transparent);
}

.pseudo-combined-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.pcp-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-primary);
}


.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
}

.admin-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0 0;
}

.admin-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
}

.asc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.asc-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.admin-nav-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.ant-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ant-tab-btn:hover {
  color: var(--text-primary);
}

.ant-tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.admin-panel-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: var(--bg-surface-hover);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.btn-admin-action {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-admin-action:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-admin-danger {
  background: var(--color-danger-subtle);
  border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent);
  color: var(--accent-rose);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-admin-danger:hover {
  background: var(--accent-rose);
  color: var(--accent-rose-contrast);
}


html.session-authenticated .auth-portal-gate,
html.session-authenticated #authGateOverlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


button,
.match-trigger-button,
.btn-ledger-action,
.btn-signout,
.glass-sso-btn,
.gic-submit-btn,
.auth-submit-btn,
.vo-btn,
.vp-chip,
.theme-toggle-pill,
.btn-back-campus,
.psc-signout-btn,
.pseudo-tag,
.mpt-nav-btn {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.18s ease,
              border-color 0.18s ease,
              filter 0.15s ease;
  will-change: transform;
}

button:hover,
.match-trigger-button:hover,
.btn-ledger-action:hover,
.glass-sso-btn:hover {
  filter: brightness(1.04);
}

button:active,
.match-trigger-button:active,
.btn-ledger-action:active,
.btn-signout:active,
.glass-sso-btn:active,
.gic-submit-btn:active,
.auth-submit-btn:active,
.vo-btn:active,
.vp-chip:active,
.theme-toggle-pill:active,
.btn-back-campus:active,
.psc-signout-btn:active,
.pseudo-tag:active,
.mpt-nav-btn:active {
  transform: scale(0.965) translateY(1px) !important;
  filter: brightness(0.92) contrast(1.05);
}


.architectural-viewport.viewport-fullscreen,
.architectural-viewport:fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.architectural-viewport.viewport-fullscreen #campusMapContainer,
.architectural-viewport:fullscreen #campusMapContainer {
  height: 100% !important;
}


.auth-interactive-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.auth-cursor-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    color-mix(in srgb, var(--accent-primary) 14%, transparent) 0%,
    color-mix(in srgb, var(--accent-primary) 7%, transparent) 35%,
    transparent 70%
  );
  z-index: 1;
  transition: opacity 0.3s ease;
}


.google-chooser-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.google-chooser-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.google-chooser-card {
  background: var(--bg-modal);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: 28px;
  width: 100%;
  max-width: 440px;
  padding: 32px 32px 28px;
  box-shadow: var(--card-shadow);
  font-family: var(--font-sans);
  color: var(--text-primary);
  animation: googleModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes googleModalIn {
  0% { transform: scale(0.95) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.gac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gac-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gac-brand span { font-size: 14.5px; font-weight: 500; color: var(--text-primary); }

.gac-close { background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); color: var(--text-secondary); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all 0.15s ease; }

.gac-close:hover {
  background: var(--btn-secondary-hover);
  color: var(--text-primary);
}

.gac-title-wrap {
  margin: 24px 0 18px;
}

.gac-title { font-size: 24px; font-weight: 500; color: var(--text-primary); margin: 0; line-height: 1.25; }

.gac-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

.gac-subtitle strong { color: var(--text-primary); }

.gac-list { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); margin-bottom: 20px; }

.gac-account-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.gac-account-item:hover { background: var(--bg-card-hover); }

.gac-account-item:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.1);
}

.gac-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--ig-gradient-text);
  flex-shrink: 0;
}

.gac-account-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gac-account-name { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }

.gac-account-email { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gac-another-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gac-another-item:hover { background: var(--bg-card-hover); }

.gac-another-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.gac-footer-note {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 14px;
}


.admin-access-gate-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.admin-lock-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.alc-badge-forbidden {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--color-danger-subtle);
  border: 1px solid color-mix(in srgb, var(--color-danger) 40%, transparent);
  color: var(--color-danger-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.alc-badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--color-success-subtle);
  border: 1px solid color-mix(in srgb, var(--color-success) 40%, transparent);
  color: var(--accent-emerald);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.alc-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.alc-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
}

.alc-user-pill {
  display: inline-block;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent-rose);
  font-weight: 600;
}

.alc-target-email {
  display: inline-block;
  background: var(--color-success-subtle);
  border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--accent-emerald);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.alc-alert-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.alc-alert-box strong {
  color: var(--text-primary);
}

.alc-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-action {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  border: 1px solid var(--btn-primary-border);
  cursor: pointer;
}

.btn-primary-action:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-secondary-action {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.admin-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--accent-emerald-soft);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 32%, transparent);
  color: var(--accent-emerald);
  font-size: 11px;
  font-weight: 700;
}

.admin-email-tag {
  font-size: 11.5px;
  color: var(--text-muted);
}


.settings-id-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.settings-id-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-primary) 16%, transparent) 0%, color-mix(in srgb, var(--accent-primary) 8%, transparent) 60%, transparent 70%); filter: blur(15px);
  pointer-events: none;
}

.settings-id-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.settings-id-card-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.settings-avatar-glow {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 0 3px var(--accent-primary-soft), var(--card-shadow);
  transition: transform 0.2s ease;
}

.settings-avatar-glow:hover {
  transform: scale(1.04);
}


.apple-toggle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.apple-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}

.apple-toggle-row:last-child {
  border-bottom: none;
}

.apple-toggle-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.apple-toggle-info {
  flex: 1;
  padding-right: 20px;
}

.apple-toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 3px;
}

.apple-toggle-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.apple-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.apple-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.apple-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-medium);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
  border: 1px solid var(--border-subtle);
}

.apple-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: var(--bg-card);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.apple-switch input:checked + .apple-slider {
  background-color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.apple-switch input:checked + .apple-slider::before {
  transform: translateX(22px);
}


.dm-hub-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 580px;
  box-shadow: var(--card-shadow);
}

@media (max-width: 860px) {
  .dm-hub-container {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.dm-sidebar {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}

.dm-sidebar-header {
  padding: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.dm-conversations-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.dm-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dm-conv-item:hover {
  background: var(--bg-surface-elevated);
}

.dm-conv-item.active {
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--accent-primary);
}

.dm-conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dm-conv-body {
  flex: 1;
  min-width: 0;
}

.dm-conv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.dm-conv-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-conv-time {
  font-size: 10px;
  color: var(--text-muted);
}

.dm-conv-snippet {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-unread-badge {
  background: var(--accent-primary);
  color: var(--accent-primary-contrast);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}

.dm-chat-window {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  position: relative;
}

.dm-chat-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dm-action-btn {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dm-action-btn:hover {
  transform: translateY(-1px);
}

.dm-action-btn.report:hover {
  background: var(--accent-rose-soft);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

.dm-action-btn.block:hover {
  background: var(--accent-rose-soft);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

.dm-chat-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.dm-chat-input-bar {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  gap: 10px;
}

.dm-search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-dropdown);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.dm-search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.dm-search-result-row:hover {
  background: var(--bg-surface-elevated);
}



:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 2px !important;
}

button:active, .nav-item:active, .presence-pill:active, .match-trigger-button:active, .btn-ledger-action:active, .vo-btn:active, .free-dur-btn:active, .btn-action-ghost:active, .btn-refresh-radar:active {
  transform: scale(0.98);
}








.glass-ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  opacity: 0.90;
}

.glass-ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.glass-orb-purple { display: none !important; }

.glass-orb-blue { display: none !important; }

.glass-orb-cyan { display: none !important; }

.glass-orb-lilac { display: none !important; }

@keyframes floatGlassOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, 70px) scale(1.1); }
  100% { transform: translate(-50px, 100px) scale(0.95); }
}

@keyframes floatGlassOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -70px) scale(1.14); }
  100% { transform: translate(60px, -50px) scale(0.92); }
}

@keyframes floatGlassOrb3 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(-60px, 80px) scale(1.12); }
  100% { transform: translate(70px, -40px) scale(1.02); }
}

@keyframes floatGlassOrb4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -60px) scale(1.15); }
  100% { transform: translate(-40px, 50px) scale(0.96); }
}


.hero-editorial-left,
.hdr-pulse-box,
.upcoming-events-card,
.peer-connect-card,
.csb-inner,
.ledger-row,
.tutor-folio-card,
.settings-id-card,
.psc-section,
.apple-toggle-card,
.settings-save-bar {
  background: var(--bg-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--card-shadow) !important;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast) !important;
}


.hero-editorial-left::after,
.hdr-pulse-box::after,
.upcoming-events-card::after,
.peer-connect-card::after,
.csb-inner::after,
.ledger-row::after,
.tutor-folio-card::after,
.settings-id-card::after {
  display: none;
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.50) 50%,
    transparent 58%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

.hero-editorial-left:hover::after,
.hdr-pulse-box:hover::after,
.upcoming-events-card:hover::after,
.peer-connect-card:hover::after,
.csb-inner:hover::after,
.ledger-row:hover::after,
.tutor-folio-card:hover::after,
.settings-id-card:hover::after {
  transform: rotate(25deg) translateY(100%);
}


.hero-editorial-left:hover,
.hdr-pulse-box:hover,
.upcoming-events-card:hover,
.peer-connect-card:hover,
.csb-inner:hover,
.ledger-row:hover,
.tutor-folio-card:hover,
.settings-id-card:hover {
  transform: translateY(-4px) scale(1.006) !important;
  border-color: var(--border-medium) !important;
  box-shadow:
    var(--card-shadow-hover) !important;
}


.match-trigger-button {
  width: 100%;
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border) !important;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow: none !important;
}
.match-trigger-button:hover {
  background: var(--btn-primary-hover) !important;
  color: var(--btn-primary-text) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.match-trigger-button::after {
  display: none !important;
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: rotate(25deg) translateY(-100%);
  animation: btnShimmerSweep 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes btnShimmerSweep {
  0%, 75% { transform: rotate(25deg) translateY(-100%); }
  85%, 100% { transform: rotate(25deg) translateY(100%); }
}


.hpb-active-badge {
  background: var(--accent-emerald-soft) !important;
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 32%, transparent) !important;
  box-shadow: none !important;
  color: var(--accent-emerald) !important;
  animation: none !important;
}

.pcc-status-pill {
  background: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-medium) !important;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
}



html.dark .hero-editorial-left,
html.dark .hdr-pulse-box,
html.dark .upcoming-events-card,
html.dark .peer-connect-card,
html.dark .csb-inner,
html.dark .ledger-row,
html.dark .tutor-folio-card,
html.dark .settings-id-card,
html.dark .psc-section,
html.dark .apple-toggle-card,
html.dark .settings-save-bar,
[data-theme="dark"] .hero-editorial-left,
[data-theme="dark"] .hdr-pulse-box,
[data-theme="dark"] .upcoming-events-card,
[data-theme="dark"] .peer-connect-card,
[data-theme="dark"] .csb-inner,
[data-theme="dark"] .ledger-row,
[data-theme="dark"] .tutor-folio-card,
[data-theme="dark"] .settings-id-card,
[data-theme="dark"] .psc-section,
[data-theme="dark"] .apple-toggle-card,
[data-theme="dark"] .settings-save-bar {
  background: var(--bg-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--card-shadow) !important;
}

[data-theme="dark"] .hero-editorial-left::before,
html.dark .hero-editorial-left::before,
[data-theme="dark"] .settings-id-card::before,
html.dark .settings-id-card::before {
  background: none;
}

[data-theme="dark"] .auth-bg-grid,
html.dark .auth-bg-grid {
  opacity: 0.12;
}

[data-theme="dark"] .auth-bg-particles,
html.dark .auth-bg-particles {
  display: none;
}

[data-theme="dark"] .hero-editorial-left:hover,
[data-theme="dark"] .hdr-pulse-box:hover,
[data-theme="dark"] .upcoming-events-card:hover,
[data-theme="dark"] .peer-connect-card:hover,
[data-theme="dark"] .csb-inner:hover,
[data-theme="dark"] .ledger-row:hover,
[data-theme="dark"] .tutor-folio-card:hover,
[data-theme="dark"] .settings-id-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--border-medium) !important;
  box-shadow: var(--card-shadow-hover) !important;
}

[data-theme="dark"] .hero-headline,
[data-theme="dark"] .sih-title,
[data-theme="dark"] .uec-title,
[data-theme="dark"] .pcc-title,
[data-theme="dark"] .tfc-name,
[data-theme="dark"] .lr-author,
[data-theme="dark"] .fs-badge,
[data-theme="dark"] .psc-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-body-prose,
[data-theme="dark"] .uec-desc,
[data-theme="dark"] .pcc-desc,
[data-theme="dark"] .tfc-bio,
[data-theme="dark"] .lr-snippet,
[data-theme="dark"] .psc-desc {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .glass-orb-purple { display: none !important; }
[data-theme="dark"] .glass-orb-blue { display: none !important; }
[data-theme="dark"] .glass-orb-cyan { display: none !important; }
[data-theme="dark"] .glass-orb-lilac { display: none !important; }








*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
*:focus:not(:focus-visible) {
  outline: none;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .glass-ambient-orb {
    animation: none !important;
  }
  .tr-content {
    animation: none !important;
  }
  .csb-pulse-dot {
    animation: none !important;
  }
}


button:active:not(:disabled),
.nav-item:active,
.btn-ledger-action:active,
.match-trigger-button:active,
.presence-pill:active {
  transform: scale(0.97) !important;
  transition: transform 0.08s ease !important;
}


.skip-to-main {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--accent-primary);
  color: var(--accent-primary-contrast);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-main:focus {
  top: 16px;
}


@keyframes pageReveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.editorial-container,
.profile-page-container {
  animation: pageReveal 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}


@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.editorial-section {
  animation: cardSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.editorial-section:nth-child(1) { animation-delay: 0.05s; }
.editorial-section:nth-child(2) { animation-delay: 0.10s; }
.editorial-section:nth-child(3) { animation-delay: 0.15s; }
.editorial-section:nth-child(4) { animation-delay: 0.20s; }
.editorial-section:nth-child(5) { animation-delay: 0.25s; }


@keyframes skeletonShimmer {
  0%   { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}
.skeleton {
  border-radius: var(--radius-sm, 12px);
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-surface-hover) 50%, var(--bg-surface) 75%);
  background-size: 936px 100%;
  animation: skeletonShimmer 1.4s linear infinite;
}
.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}
.skeleton-line.wide  { width: 80%; }
.skeleton-line.mid   { width: 55%; }
.skeleton-line.short { width: 35%; }
.skeleton-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
}


.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .pipeline-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.free-students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
@media (max-width: 480px) {
  .free-students-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.chat-input-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}
@media (max-width: 480px) {
  .chat-input-row {
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .chat-input-row .match-trigger-button {
  width: 100%;
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border) !important;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow: none !important;
}
.match-trigger-button:hover {
  background: var(--btn-primary-hover) !important;
  color: var(--btn-primary-text) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}
}


.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  background: var(--masthead-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-subtle);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: var(--card-shadow);
  transform: translateZ(0);
  will-change: transform;
}
.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  padding: 0 8px;
}
.mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm, 12px);
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}
.mbn-item:hover,
.mbn-item.active {
  color: var(--text-primary) !important;
  background: var(--bg-surface-elevated) !important;
}
.mbn-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.mbn-label {
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}
.mbn-item.active svg {
  stroke: var(--text-primary) !important;
}
.mbn-item.active .mbn-label {
  color: var(--text-primary) !important;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block !important;
  }
  body {
    padding-bottom: 68px !important;
  }

  .masthead-nav {
    display: none !important;
  }

  .masthead {
    padding: 0 16px !important;
  }
  .masthead-inner {
    height: 56px !important;
  }
  .editorial-container {
    padding: 0 16px !important;
  }
  .campus-stories-bar {
    padding: 0 16px !important;
  }
  .ticker-rule {
    padding: 0 16px !important;
  }

  .asym-hero {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .hero-editorial-left,
  .hero-dispatch-right {
    width: 100% !important;
    min-width: unset !important;
  }

  #section-pipeline > div[style*="grid-template-columns"],
  .pipeline-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-page-layout {
    flex-direction: column !important;
  }
  .pp-col-visual,
  .pp-col-settings {
    width: 100% !important;
    min-width: unset !important;
  }
}

@media (max-width: 480px) {
  .brand-titles {
    display: none !important;
  }
  .session-user-badge .sub-meta {
    display: none !important;
  }
  .btn-signout-icon span:last-child,
  .btn-signout span:last-child {
    display: none !important;
  }
}




.nav-item {
  position: relative;
}


.notif-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}
.notif-bell-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.notif-bell-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notif-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-rose);
  border: 2px solid var(--bg-canvas);
  animation: notifPop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes notifPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}


.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}
.empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.empty-state-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
}
.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 260px;
}


.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-svg svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.btn-signout-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-signout-icon:hover {
  color: var(--accent-rose);
  border-color: var(--accent-rose);
  background: var(--color-danger-subtle);
}
.btn-signout-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.settings-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.settings-tab-item {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.settings-tab-item.active {
  color: var(--ig-gradient-text);
  background: var(--ig-gradient);
  box-shadow: none;
}
.settings-tab-item:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}


[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-canvas);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 1000;
  font-family: var(--font-sans);
}
[data-tooltip]:hover::after {
  opacity: 1;
}


@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid color-mix(in srgb, var(--text-muted) 28%, transparent);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}


.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 18px;
  transition: border-color var(--transition-fast);
}
.chat-input-bar:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(140, 140, 140, 0.10);
}
.chat-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
}
.chat-input-bar input::placeholder {
  color: var(--text-faint);
}
.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--ig-gradient);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ig-gradient-text);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: none !important;
}
.chat-send-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.notif-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.notif-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.95));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium, rgba(221, 221, 221, 0.55));
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--border-subtle);
  z-index: 1000;
  overflow: hidden;
  animation: notifDropIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}
[data-theme="dark"] .notif-dropdown-menu,
html.dark .notif-dropdown-menu {
  background: var(--bg-surface-elevated) !important;
  border-color: var(--border-medium) !important;
  box-shadow: var(--card-shadow-hover) !important;
}
@keyframes notifDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ndm-header {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}
.ndm-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.ndm-clear-btn {
  background: transparent !important;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary) !important;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.ndm-clear-btn:hover {
  background: var(--bg-surface-hover) !important;
  color: var(--text-primary) !important;
}
.ndm-list {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0;
}
.ndm-item {
  padding: 12px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
}
.ndm-item:last-child {
  border-bottom: none;
}
.ndm-item:hover {
  background: var(--bg-surface-hover, rgba(255, 255, 255, 0.06));
}
.ndm-item.unread {
  background: var(--accent-primary-soft);
}
.ndm-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.ndm-content {
  flex: 1;
  min-width: 0;
}
.ndm-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
}
.ndm-item-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.ndm-item-time {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}



.settings-avatar-glow {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  border-radius: 50% !important;
  position: relative;
  flex-shrink: 0;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.4) !important;
}
.settings-avatar-glow .memoji-avatar-badge {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.settings-avatar-glow .memoji-img {
  width: 85% !important;
  height: 85% !important;
  object-fit: contain !important;
  display: block !important;
}






.gathering-card-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle, rgba(233, 233, 233, 0.8));
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--card-shadow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .gathering-card-row,
html.dark .gathering-card-row {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--card-shadow);
}

.gathering-card-row:hover {
  border-color: var(--border-medium, rgba(167, 167, 167, 0.4));
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.gathering-card-row.is-completed {
  opacity: 0.72;
}

.gathering-card-row.is-cancelled {
  opacity: 0.65;
  border-left: 3px solid var(--accent-rose);
}


.gcr-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--accent-primary-soft);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 18%, var(--border-subtle));
}


.gcr-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.gcr-header-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gcr-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin: 0;
}

.gcr-venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary) !important;
  background: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.gcr-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gcr-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  flex-wrap: wrap;
  margin-top: 2px;
}


.gathering-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.gathering-status-pill.upcoming {
  background: var(--accent-amber-soft) !important;
  color: var(--accent-amber) !important;
  border: 1px solid color-mix(in srgb, var(--accent-amber) 34%, transparent) !important;
}

.gathering-status-pill.happening {
  background: var(--accent-emerald-soft) !important;
  color: var(--accent-emerald) !important;
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 34%, transparent) !important;
}

.gathering-status-pill.completed {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-subtle) !important;
}

.gathering-status-pill.cancelled {
  background: var(--accent-rose-soft) !important;
  color: var(--accent-rose) !important;
  border: 1px solid color-mix(in srgb, var(--accent-rose) 34%, transparent) !important;
}

.gsp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gsp-dot.pulse {
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-emerald) 55%, transparent);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-emerald) 55%, transparent); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-emerald) 0%, transparent); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-emerald) 0%, transparent); }
}


.gcr-capacity-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
  align-items: flex-end;
}

.gcr-cap-text {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.gcr-cap-progress {
  width: 120px;
  height: 6px;
  background: var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="dark"] .gcr-cap-progress,
html.dark .gcr-cap-progress {
  background: var(--bg-surface-hover);
}

.gcr-cap-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--ig-gradient);
  transition: width 0.3s ease;
}

.gcr-cap-fill.full {
  background: var(--accent-rose);
}


.gcr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-gcr-action {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-gcr-action.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  box-shadow: none;
}
.btn-gcr-action.primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
}

.btn-gcr-action.primary:hover {
  transform: translateY(-1px);
  box-shadow: none !important;
}

.btn-gcr-action.joined {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: color-mix(in srgb, var(--accent-emerald) 34%, transparent);
}

.btn-gcr-action.joined:hover {
  background: color-mix(in srgb, var(--accent-emerald) 18%, var(--bg-card));
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.btn-gcr-action.host {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
}
.btn-gcr-action.host:hover {
  background: var(--btn-secondary-hover) !important;
  color: var(--btn-secondary-text) !important;
  border-color: var(--border-strong) !important;
}

.btn-gcr-action.host:hover {
  background: var(--btn-secondary-hover) !important;
  color: var(--btn-secondary-text) !important;
  border-color: var(--border-strong) !important;
}

.btn-gcr-action.disabled {
  background: var(--bg-surface, rgba(0, 0, 0, 0.05));
  color: var(--text-muted);
  border-color: var(--border-subtle);
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-gcr-details {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-gcr-details:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}


.gathering-attendee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gathering-attendee-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.gac-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.gac-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gac-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gac-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}


@media (max-width: 900px) {
  .gathering-card-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .gcr-cat-icon {
    display: none;
  }
  .gcr-capacity-box {
    align-items: flex-start;
  }
  .gcr-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}



.ledger-table,
#gatheringsLedgerTable {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .ledger-table,
  #gatheringsLedgerTable {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.gatherings-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: var(--bg-card, rgba(255, 255, 255, 0.70));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 12px 18px;
  border-radius: var(--radius-md, 16px);
  border: 1px solid var(--border-subtle, rgba(233, 233, 233, 0.8));
  box-shadow: var(--card-shadow);
}
[data-theme="dark"] .gatherings-filter-bar,
html.dark .gatherings-filter-bar {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--card-shadow);
}
.gfb-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gfb-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gfb-chip:hover {
  background: var(--btn-secondary-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.gfb-chip.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-border);
  box-shadow: none;
}
.gfb-search-wrap {
  position: relative;
  min-width: 260px;
  flex-grow: 1;
  max-width: 380px;
}
.gfb-search-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-input, rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border-subtle, rgba(233, 233, 233, 0.8));
  border-radius: 12px;
  padding: 8px 14px 8px 36px;
  font-size: 12.5px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}
[data-theme="dark"] .gfb-search-input,
html.dark .gfb-search-input {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-primary);
}
.gfb-search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--border-focus);
}
.gfb-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}


.gathering-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle, rgba(233, 233, 233, 0.8));
  border-radius: var(--radius-lg, 20px);
  padding: 22px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
[data-theme="dark"] .gathering-card,
html.dark .gathering-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--card-shadow);
}
.gathering-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium, rgba(167, 167, 167, 0.45));
  box-shadow: var(--card-shadow-hover);
}
.gathering-card.is-completed {
  opacity: 0.70;
}
.gathering-card.is-cancelled {
  opacity: 0.65;
  border-top: 3px solid var(--accent-rose);
}


.gc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.gc-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  text-transform: capitalize;
}
.gc-category-pill.cat-tech { background: var(--accent-blue-soft); color: var(--accent-blue); border-color: color-mix(in srgb, var(--accent-blue) 30%, transparent); }
.gc-category-pill.cat-study { background: var(--accent-primary-soft); color: var(--accent-primary); border-color: color-mix(in srgb, var(--accent-primary) 30%, transparent); }
.gc-category-pill.cat-social { background: var(--accent-rose-soft); color: var(--accent-rose); border-color: color-mix(in srgb, var(--accent-rose) 30%, transparent); }
.gc-category-pill.cat-gaming, .gc-category-pill.cat-esports { background: var(--accent-primary-soft); color: var(--accent-purple); border-color: color-mix(in srgb, var(--accent-purple) 30%, transparent); }
.gc-category-pill.cat-food, .gc-category-pill.cat-dining { background: var(--accent-amber-soft); color: var(--accent-amber); border-color: color-mix(in srgb, var(--accent-amber) 30%, transparent); }


.gc-main {
  margin-bottom: 14px;
}
.gc-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
  line-height: 1.35;
}
[data-theme="dark"] .gc-title, html.dark .gc-title {
  color: var(--text-primary);
}
.gc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.gc-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--accent-primary-soft);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 25%, var(--border-subtle));
  border-radius: var(--radius-md, 14px);
}
[data-theme="dark"] .gc-details-list, html.dark .gc-details-list {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}
.gc-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
[data-theme="dark"] .gc-detail-row, html.dark .gc-detail-row {
  color: var(--text-secondary);
}
.gc-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  flex-shrink: 0;
}
.gc-detail-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gc-detail-val strong {
  color: var(--text-primary);
}
[data-theme="dark"] .gc-detail-val strong, html.dark .gc-detail-val strong {
  color: var(--text-primary);
}
.gc-instruction-badge {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-blue);
  background: var(--accent-blue-soft);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-blue) 25%, transparent);
  margin-top: 4px;
  line-height: 1.4;
}
[data-theme="dark"] .gc-instruction-badge, html.dark .gc-instruction-badge {
  color: var(--accent-blue);
  background: var(--accent-blue-soft);
}


.gc-capacity-wrap {
  margin-top: auto;
  margin-bottom: 14px;
}
.gc-cap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.gc-progress-track {
  width: 100%;
  height: 7px;
  background: var(--bg-surface-hover);
  border-radius: 9999px;
  overflow: hidden;
}
[data-theme="dark"] .gc-progress-track, html.dark .gc-progress-track {
  background: var(--bg-surface-hover);
}
.gc-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: var(--text-primary);
  transition: width 0.35s ease;
}
.gc-progress-bar.full {
  background: var(--accent-rose);
}


.gc-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.btn-gc-action {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
}
.btn-gc-action.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  box-shadow: none;
}
.btn-gc-action.primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
}
.btn-gc-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
}
.btn-gc-action.joined {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 34%, transparent);
}
.btn-gc-action.joined:hover {
  background: color-mix(in srgb, var(--accent-emerald) 18%, var(--bg-card));
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}
.btn-gc-action.host {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
}
.btn-gc-action.host:hover {
  background: var(--btn-secondary-hover);
  transform: translateY(-1px);
}
.btn-gc-action.host:hover {
  background: var(--btn-secondary-hover);
  transform: translateY(-2px);
}
.btn-gc-action.disabled {
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border-subtle);
}
.btn-gc-details {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card-subtle, rgba(0, 0, 0, 0.04));
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle, rgba(233, 233, 233, 0.8));
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  min-height: 40px;
}
[data-theme="dark"] .btn-gc-details, html.dark .btn-gc-details {
  background: var(--bg-card-subtle);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}
.btn-gc-details:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}
[data-theme="dark"] .btn-gc-details:hover, html.dark .btn-gc-details:hover {
  color: var(--text-primary);
}

.text-emerald { color: var(--accent-emerald) !important; }
.text-amber { color: var(--accent-amber) !important; }
.font-bold { font-weight: 700 !important; }



.masthead-editorial {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--masthead-bg, rgba(20, 20, 20, 0.85));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}
.masthead-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  cursor: pointer;
}
.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text) !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: none;
  border: 1px solid var(--border-medium);
}
.brand-meta {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary) !important;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.brand-sub {
  font-size: 10px;
  color: var(--text-muted) !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.editorial-footer {
  margin-top: 60px;
  background: var(--bg-surface, rgba(27, 27, 27, 0.75));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-medium, rgba(255, 255, 255, 0.08));
  padding: 40px 24px 30px;
}
.editorial-footer .footer-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.editorial-footer .footer-rule {
  height: 1px;
  background: var(--border-subtle, rgba(255, 255, 255, 0.08));
  margin-bottom: 20px;
}
.editorial-footer .footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.editorial-footer .footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.editorial-footer .footer-links {
  display: flex;
  gap: 16px;
}
.editorial-footer .footer-link {
  font-size: 12px;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.editorial-footer .footer-link:hover {
  color: var(--accent-primary) !important;
}


#campusMapContainer {
  background: var(--bg-canvas) !important;
}

#campusMapContainer canvas,
#campusMapContainer .maplibregl-canvas-container {
  background: var(--bg-canvas) !important;
}

.architectural-viewport {
  background: var(--bg-canvas) !important;
  position: relative;
}


.map-loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.map-loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.mlo-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--text-muted) 28%, transparent);
  border-top-color: var(--accent-primary);
  animation: mlo-spin 0.8s linear infinite;
  margin-bottom: 16px;
  box-shadow: none;
}

@keyframes mlo-spin {
  to { transform: rotate(360deg); }
}

.mlo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.mlo-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


.map-hotspots-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md, 12px);
  margin-top: 16px;
  box-shadow: var(--card-shadow);
}

.mhb-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  white-space: nowrap;
}

.mhb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  color: var(--text-primary);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.mhb-pill:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.mhb-pill:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--border-strong);
  color: var(--btn-secondary-text);
  transform: translateY(-1px);
  box-shadow: none;
}

.mhb-pill:active {
  transform: translateY(0) scale(0.97);
}


.btn-ledger-action:hover {
  background: var(--btn-secondary-hover) !important;
  color: var(--btn-secondary-text) !important;
  border-color: var(--border-strong) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}



html:not(.session-authenticated) .masthead,
html:not(.session-authenticated) #mainCampusView,
html:not(.session-authenticated) .editorial-container,
html:not(.session-authenticated) .campus-stories-bar,
html:not(.session-authenticated) .ticker-rule,
html:not(.session-authenticated) .institutional-footer,
html:not(.session-authenticated) .mobile-bottom-nav {
  display: none !important;
}

.auth-portal-gate {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  background: var(--bg-canvas) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 16px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

html.session-authenticated .auth-portal-gate,
html.session-authenticated #authGateOverlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


@media (max-width: 768px) {

  .auth-orb {
    display: none !important;
  }
  .auth-interactive-canvas {
    display: none !important;
  }
  .auth-bg-particles {
    display: none !important;
  }
  .auth-cursor-spotlight {
    display: none !important;
  }
  .auth-bg-canvas {
    background: var(--bg-canvas) !important;
  }
  .auth-portal-gate {
    background: var(--bg-canvas) !important;
    padding: 16px !important;
    align-items: center !important;
  }
  .auth-glass-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: auto !important;
    padding: 28px 18px 24px !important;
    border-radius: 22px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  }
  .auth-glass-title {
    font-size: 26px !important;
  }
}


#studentSwitcherModal,
#googleAccountsModal,
.google-chooser-backdrop,
.editorial-modal-backdrop {
  z-index: 100000 !important;
}

#studentSwitcherModal.active,
#googleAccountsModal.active,
.google-chooser-backdrop.active,
.editorial-modal-backdrop.active {
  z-index: 100001 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


html {
  min-height: 100%;
}

body {
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

@media (max-width: 960px) {
  .asym-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .asym-hero > * {
    min-width: 0;
    max-width: 100%;
  }

  .masthead-nav {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: block !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body:has(.mobile-bottom-nav) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

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

  .masthead {
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  }

  .masthead-inner {
    height: auto;
    min-height: 58px;
    gap: 8px;
  }

  .institutional-brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-nav-logo {
    height: 32px;
    max-width: 32px;
  }

  .brand-platform-title {
    font-size: 16px;
  }

  .session-user-badge {
    max-width: 42vw;
    min-width: 0;
  }

  .sub-meta,
  .sub-name {
    min-width: 0;
  }

  .sub-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav .mbn-item {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 8px;
  }

  .mobile-bottom-nav .mbn-label {
    font-size: 9px;
  }

  .editorial-container,
  .gatherings-page-wrap,
  .chat-page-wrap,
  .twin-page-wrap,
  .profile-page-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .editorial-container > *,
  .gatherings-page-wrap > *,
  .chat-page-wrap > *,
  .twin-page-wrap > *,
  .profile-page-container > * {
    min-width: 0;
  }

  .gatherings-page-wrap,
  .chat-page-wrap,
  .twin-page-wrap {
    margin-top: 18px;
    margin-bottom: 32px;
  }

  .if-grid,
  .profile-page-layout,
  .split-academic-layout {
    min-width: 0;
  }

  .editorial-modal-backdrop,
  .modal-backdrop,
  .google-chooser-backdrop {
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .editorial-modal-card,
  .modal-box,
  .google-chooser-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: 28px;
  width: 100%;
  max-width: 440px;
  padding: 32px 32px 28px;
  box-shadow: var(--card-shadow);
  font-family: var(--font-sans);
  color: var(--text-primary);
  animation: googleModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

  .notif-dropdown-menu {
    max-width: calc(100vw - 24px);
  }

  .settings-save-bar {
    position: sticky;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  #campusMapContainer {
    height: min(62dvh, 520px) !important;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-slideshow-container,
  .slides-viewport,
  .feature-slide {
    min-width: 0;
    max-width: 100%;
  }

  .hero-headline,
  .hero-body-prose {
    overflow-wrap: anywhere;
  }

  .gatherings-hero-card,
  .chat-hero-box,
  .twin-hero-box {
    padding: 20px 16px;
    gap: 14px;
  }

  .ghc-title,
  .chb-title,
  .thb-title {
    font-size: clamp(21px, 6vw, 26px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .gathering-card-row,
  .gathering-card,
  .peer-connect-card,
  .upcoming-events-card {
    min-width: 0;
    max-width: 100%;
  }

  .ledger-table-wrap,
  .admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 620px;
  }

  .ledger-table,
  #gatheringsLedgerTable {
    min-width: 0 !important;
    width: 100% !important;
  }

  .settings-save-bar > * {
    min-width: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  button,
  .nav-item,
  .mbn-item,
  .btn-icon,
  .btn-action-ghost,
  .match-trigger-button,
  .btn-signout,
  .free-dur-btn,
  .btn-respond-connect,
  .btn-send-connect,
  .vo-btn,
  .vp-chip,
  .presence-pill {
    min-height: 44px;
    touch-action: manipulation;
  }


  input,
  select,
  textarea,
  .form-input-impeccable,
  .free-status-input,
  .gic-input,
  .aes-select,
  .gfb-search-input,
  .chat-input-bar input,
  #chatMessageInput {
    font-size: 16px !important;
    touch-action: manipulation;
  }

  input[type="date"],
  input[type="datetime-local"] {
    -webkit-appearance: none;
    min-height: 44px;
    display: block;
  }

  .btn-respond-connect {
    padding: 8px 14px !important;
    font-size: 12px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .free-dur-btn {
    min-height: 44px;
    padding: 10px 14px;
  }
}


@supports (-webkit-touch-callout: none) {
  html, body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  button, a, input, select, textarea, .nav-item, .presence-pill, .vo-btn, .vp-chip, .mbn-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }


  button, .nav-item, .mbn-item, .presence-pill, .vo-btn, .vp-chip, .badge {
    -webkit-user-select: none;
    user-select: none;
  }


  .editorial-modal-backdrop,
  .modal-backdrop,
  .google-chooser-backdrop,
  .dm-chat-scroll,
  .chat-viewport,
  .notif-dropdown-menu {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }


  @media (orientation: landscape) and (max-width: 960px) {
    .masthead {
      padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
      padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
    }
    .editorial-container,
    .gatherings-page-wrap,
    .chat-page-wrap,
    .twin-page-wrap,
    .profile-page-container {
      padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
      padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
    }
    .mobile-bottom-nav {
      padding-left: max(8px, env(safe-area-inset-left, 0px)) !important;
      padding-right: max(8px, env(safe-area-inset-right, 0px)) !important;
    }
  }
}


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

  .mobile-bottom-nav {
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav-inner {
    max-width: 100%;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }

  .mbn-item {
    min-width: 0;
    flex: 1 1 0;
    padding-left: 4px;
    padding-right: 4px;
  }

  #profilePageView {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  #profilePageView .profile-page-topbar {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  #profilePageView .profile-page-container {
    width: 100%;
    max-width: 100%;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  #profilePageView .profile-page-layout,
  #profilePageView .pp-col-visual,
  #profilePageView .pp-col-settings,
  #profilePageView .psc-section,
  #profilePageView .psc-hero-card {
    min-width: 0;
    max-width: 100%;
  }

  #profilePageView .psc-hero-card {
    padding: 16px !important;
  }

  #profilePageView .psc-avatar-wrap {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  #profilePageView .psc-avatar-stage {
    width: clamp(64px, 20vw, 86px);
    height: clamp(64px, 20vw, 86px);
  }

  #profilePageView .psc-avatar-info,
  #profilePageView .psc-pseudo-row,
  #profilePageView .psc-realname-lock,
  #profilePageView #profileEmailDisplay {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #profilePageView .psc-pseudo-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #profilePageView .pseudo-prefix-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.55fr);
    gap: 10px;
  }

  #profilePageView .pseudo-prefix-row .form-group-impeccable {
    min-width: 0;
    width: 100%;
  }

  #profilePageView .form-input-impeccable,
  #profilePageView select,
  #profilePageView input {
    max-width: 100%;
    min-height: 44px;
    font-size: 16px !important;
  }

  #profilePageView .psc-toggle-row {
    align-items: center;
    min-height: 56px;
  }

  #profilePageView .psc-toggle-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  #profilePageView .psc-actions-row {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  #profilePageView .psc-actions-row button {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  #profilePageView .profile-page-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  #profilePageView .psc-avatar-wrap {
    gap: 10px;
  }

  #profilePageView .profile-clean-pill {
    font-size: 9px;
  }

  #profilePageView .pseudo-prefix-row {
    grid-template-columns: minmax(0, 1fr) 104px;
  }
}

@media (orientation: landscape) and (max-width: 960px) {
  #profilePageView .profile-page-container {
    margin-top: 12px;
    margin-bottom: 24px;
  }
}

.platform-status-banner {
  position: relative;
  z-index: 10000;
  padding: 10px 16px;
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-medium);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.platform-status-banner[data-style="warning"] { color: var(--color-warning); background: var(--color-warning-subtle); }
.platform-status-banner[data-style="success"] { color: var(--color-success-text); background: var(--color-success-subtle); }
.platform-feature-disabled { opacity: 0.58; cursor: not-allowed !important; }

@media (max-width: 430px) {
  .mobile-bottom-nav-inner { justify-content: space-evenly; padding: 0 2px; }
  .mobile-bottom-nav .mbn-item { flex: 1 1 0; min-width: 0; padding: 6px 2px; }
  .mobile-bottom-nav .mbn-label { font-size: 8px; letter-spacing: 0; white-space: nowrap; }
}

.app-skeleton {
  display: block;
  background: rgba(148, 163, 184, .2);
  opacity: .58;
  animation: app-skeleton-pulse 1.25s ease-in-out infinite alternate;
}
.app-skeleton-line { width: min(100%, 210px); height: 12px; border-radius: 999px; }
.app-skeleton-line.short { width: min(62%, 132px); height: 10px; }
.ticker-loading-skeleton { width: min(48%, 260px); height: 12px; margin: 8px 0; }
.uec-skeleton-list { display: grid; gap: 10px; }
.uec-skeleton-row { display: flex; min-height: 54px; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-md, 12px); }
.uec-skeleton-date { width: 38px; height: 42px; flex: none; border-radius: 8px; }
.uec-skeleton-copy, .free-list-skeleton-copy { display: grid; width: 100%; gap: 8px; }
.free-list-skeleton-card { display: flex; min-height: 82px; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border-subtle, rgba(148,163,184,.14)); border-radius: var(--radius-md, 12px); }
.free-list-skeleton-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; }
@keyframes app-skeleton-pulse { to { opacity: .28; } }
@media (prefers-reduced-motion: reduce) { .app-skeleton { animation: none; } }

.support-email-copyable { color: var(--text-secondary); font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
