/* =========================================================
   HomeDir Global Stylesheet
   - Look & feel retro / pixel-art
   - Usado por todo el sitio (layout + secciones)
   ========================================================= */

/* Reset básico */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.text-nowrap {
  white-space: nowrap;
}

:root {
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;

  /* Color Palette */
  --color-accent: #ffd700;
  --color-text-main: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.9);
  --card-bg: rgba(0, 0, 0, 0.45);

  --text-xs: 0.85rem;
  /* 14px approx */
  --text-sm: 0.95rem;
  /* 15px approx */
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
}

/* Layout base */
html {
  font-size: 16px;
  /* Base size */
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.6;
}

.homedir-body {
  position: relative;
  min-height: 100vh;
}

/* Removed Pixel grid sutil en el fondo */

/* Base Tag Styles */
main {
  display: block;
  width: 100%;
  min-height: 80vh;
  position: relative;
  z-index: 1;
}

section {
  display: block;
  width: 100%;
  margin-bottom: 2rem;
  position: relative;
}

article {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
  position: relative;
}

footer {
  display: block;
  width: 100%;
  padding: 3rem 0;
  text-align: center;
  opacity: 0.8;
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

/* Common Layout Utils */
.page-container {
  width: 100%;
}

/* Contenedor principal debajo del overlay */
.page-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.homedir-main {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===========================================
   HEADER / NAVBAR
   =========================================== */

.hd-top-nav,
.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.mode-switch-bar {
  position: relative;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 30px;
  padding: 0.2rem 0.8rem;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.mode-switch-label {
  font-family: var(--font-display);
  font-size: 0.46rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.86;
}

.mode-switch-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mode-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.08rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.46rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.mode-switch-link:hover {
  color: #ffffff;
  border-color: rgba(255, 215, 0, 0.75);
  background: rgba(255, 215, 0, 0.15);
}

.mode-switch-link-active {
  color: #1f1f1f;
  border-color: #ffd700;
  background: #ffd700;
}

.hd-logo,
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hd-logo-link,
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.hd-logo-icon,
.logo-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.logo-icon-image {
  width: 72px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.7rem;
  background: rgba(7, 10, 19, 0.32);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.header-brand-logo {
  padding-top: 5px;
  width: 100%;
  height: 190%;
  object-fit: cover;
  display: block;
}

.hd-logo-text,
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hd-logo-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.hd-logo-subtitle,
.logo-subtitle {
  font-size: 0.55rem;
  opacity: 0.8;
  letter-spacing: 2px;
}

.hd-main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hd-nav-link,
.nav-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.9;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.hd-nav-link:hover,
.nav-link:hover,
.hd-nav-link.is-active,
.nav-link.nav-link-active {
  opacity: 1;
  border-bottom-color: #ffd700;
}

.hd-user-area {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hd-notifications-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  font-size: 0.85rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.hd-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
}

.hd-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.hd-user-name,
.user-name {
  font-size: 0.65rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hd-login-btn,
.login-btn-nav {
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-bottom: 5px solid rgba(0, 0, 0, 0.5);
  border-right: 4px solid rgba(0, 0, 0, 0.4);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hd-login-btn:hover,
.login-btn-nav:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.hd-login-btn:active,
.login-btn-nav:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
}

/* Nav actions (legacy/compat) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.header-locale-icon {
  font-size: 16px;
  opacity: 0.85;
}

.header-locale-select {
  min-width: 84px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.2;
  outline: none;
  cursor: pointer;
}

.header-locale-select option {
  color: #111;
}

.eyebrow {
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.public-header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  margin-top: 0.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

.public-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65);
}

.tagline {
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.9;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.nav-link-active {
  opacity: 1;
  border-bottom-color: #ffd700;
}

/* Botón de login / CTA en navbar */
.login-btn-nav {
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-bottom: 5px solid rgba(0, 0, 0, 0.5);
  border-right: 4px solid rgba(0, 0, 0, 0.4);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
}

.login-btn-nav:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.login-btn-nav:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
}

/* Placeholder para avatar / menú de usuario */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ===========================================
   SECCIONES DE PÁGINA
   =========================================== */

.page-header {
  max-width: 1200px;
  margin: 2.5rem auto 1.5rem;
  padding: 0 2rem;
  text-align: left;
}

.section-header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-header.hd-section-heading {
  padding-bottom: 0.2rem;
}

.section-header.hd-section-heading::after {
  content: "";
  display: block;
  width: min(280px, 72%);
  height: 1px;
  margin-top: 0.28rem;
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.55),
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.85;
}

.section-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}

.section-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 620px;
  line-height: 1.7;
}

.section-body {
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-bottom: 6px solid rgba(0, 0, 0, 0.6);
  border-right: 5px solid rgba(0, 0, 0, 0.5);
  padding: 2rem;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.6);
  font-size: 1rem;
  line-height: 1.6;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 0.55rem;
  max-width: 640px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Grid principal de tarjetas/secciones */
.page-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.main-sections {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  position: relative;
  z-index: 3;
}

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

/* ===========================================
   CARDS / PANEL RETRO
   =========================================== */

.section-card {
  display: block;
  background: rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-bottom: 6px solid rgba(0, 0, 0, 0.7);
  border-right: 5px solid rgba(0, 0, 0, 0.6);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.6);
  transition: background-color 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  will-change: background-color, box-shadow, border-color;
}

/* Decorative overlay from theme must never block form controls inside cards. */
.section-card::before {
  pointer-events: none;
}

.section-card:hover {
  transform: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 215, 0, 0.18);
  background: rgba(0, 0, 0, 0.55);
}

.section-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.section-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.cfp-journey-card {
  margin-top: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.cfp-journey-top {
  margin: 0 0 0.9rem 0;
}

.cfp-journey-header h2,
.cfp-journey-header h3 {
  margin: 0;
}

.cfp-journey-header.compact h3 {
  font-size: 1rem;
}

.cfp-journey-range {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

.cfp-journey-track {
  margin-top: 0.55rem;
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
}

.cfp-journey-stage {
  flex: var(--cfp-stage-flex, 1) 1 0;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.38rem 0.45rem 0.45rem;
  background: rgba(255, 255, 255, 0.02);
}

.cfp-journey-stage.is-active {
  border-color: rgba(255, 213, 79, 0.65);
  background: rgba(255, 213, 79, 0.1);
}

.cfp-journey-stage-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.cfp-journey-stage.is-active .cfp-journey-stage-bar {
  background: linear-gradient(90deg, rgba(255, 213, 79, 0.95), rgba(114, 255, 159, 0.95));
}

.cfp-journey-stage-title {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.cfp-journey-stage-dates {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.2;
  opacity: 0.84;
}

@media (max-width: 860px) {
  .cfp-journey-track {
    flex-direction: column;
  }

  .cfp-journey-stage {
    min-width: 0;
  }
}

.section-card .section-icon {
  display: block;
  font-size: 3rem;
  text-align: center;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

/* ===========================================
   ADMIN HUB
   =========================================== */

.admin-hub-grid {
  margin-top: 0.25rem;
}

.homedir-main.admin-context-main {
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(42, 20, 58, 0.55) 0%, rgba(15, 8, 30, 0.5) 100%),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding-top: 1.4rem;
}

.homedir-main.admin-context-main::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 1.4rem;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.95), rgba(255, 255, 255, 0.15));
  opacity: 0.95;
}

.homedir-main.admin-context-main .section-card {
  background: rgba(12, 8, 24, 0.52);
  border-color: rgba(255, 255, 255, 0.58);
}

.homedir-main.admin-context-main .section-card:hover {
  background: rgba(12, 8, 24, 0.6);
}

.admin-hub-operator {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
}

.admin-hub-card {
  display: grid;
  gap: 0.95rem;
}

.admin-hub-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-hub-card-icon {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.admin-hub-card h2 {
  margin: 0;
}

.admin-hub-card-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  opacity: 0.92;
}

.admin-hub-actions {
  display: grid;
  gap: 0.55rem;
}

.admin-hub-action {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.55rem;
  align-items: start;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 0.58rem 0.62rem;
  background: rgba(0, 0, 0, 0.26);
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.admin-hub-action .material-symbols-outlined {
  font-size: 1.2rem;
  margin-top: 0.05rem;
}

.admin-hub-action strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-hub-action small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.84rem;
  line-height: 1.35;
  opacity: 0.9;
}

.admin-hub-action:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(0, 0, 0, 0.4);
}

.admin-hub-action:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

.admin-hub-shortcuts {
  margin-top: -1.2rem;
}

.admin-hub-shortcuts-card h2 {
  margin-bottom: 0.45rem;
}

.admin-hub-shortcuts-card > p {
  margin: 0 0 0.85rem;
  opacity: 0.9;
}

.admin-hub-shortcuts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-hub-shortcut-btn {
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .admin-hub-shortcuts {
    margin-top: -0.8rem;
  }

  .admin-hub-shortcuts-row {
    flex-direction: column;
  }

  .admin-hub-shortcut-btn {
    width: 100%;
    justify-content: flex-start;
  }
}

.homedir-main.admin-context-main .page-header {
  margin-bottom: 1.35rem;
}

.homedir-main.admin-context-main .page-header > .container,
.homedir-main.admin-context-main .retro-container {
  background: rgba(10, 8, 24, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.homedir-main.admin-context-main .page-header > .container {
  display: grid;
  gap: 1rem;
}

.homedir-main.admin-context-main .page-header .page-title,
.homedir-main.admin-context-main .retro-title-large {
  margin: 0;
}

.homedir-main.admin-context-main .page-header .section-subtitle,
.homedir-main.admin-context-main .retro-subtitle {
  opacity: 0.86;
}

.homedir-main.admin-context-main .card,
.homedir-main.admin-context-main .retro-box {
  background: rgba(10, 8, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.homedir-main.admin-context-main .card {
  padding: 1.2rem;
}

.homedir-main.admin-context-main .table,
.homedir-main.admin-context-main .hd-table,
.homedir-main.admin-context-main .retro-table {
  width: 100%;
}

.homedir-main.admin-context-main .table th,
.homedir-main.admin-context-main .table td,
.homedir-main.admin-context-main .hd-table th,
.homedir-main.admin-context-main .hd-table td,
.homedir-main.admin-context-main .retro-table th,
.homedir-main.admin-context-main .retro-table td {
  border-color: rgba(255, 255, 255, 0.08);
}

.homedir-main.admin-context-main .form-input,
.homedir-main.admin-context-main .form-select,
.homedir-main.admin-context-main .form-textarea,
.homedir-main.admin-context-main .hd-form-input {
  background: rgba(5, 6, 16, 0.62);
  border-color: rgba(255, 255, 255, 0.16);
}

.homedir-main.admin-context-main .form-input:focus,
.homedir-main.admin-context-main .form-select:focus,
.homedir-main.admin-context-main .form-textarea:focus,
.homedir-main.admin-context-main .hd-form-input:focus {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.14);
}

.admin-shell-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-shell-heading {
  display: grid;
  gap: 0.45rem;
}

.admin-shell-heading .section-subtitle {
  margin: 0;
}

.admin-shell-heading .page-title,
.admin-shell-heading h1 {
  margin: 0;
}

.admin-shell-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-shell-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.admin-shell-stack > * {
  min-width: 0;
}

.admin-shell-panel {
  background: rgba(10, 8, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  min-width: 0;
  overflow: hidden;
}

.admin-shell-panel > :first-child {
  margin-top: 0;
}

.admin-shell-panel > :last-child {
  margin-bottom: 0;
}

.admin-shell-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.admin-shell-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.admin-shell-toolbar-group .form-input,
.admin-shell-toolbar-group .form-select {
  min-width: 0;
  max-width: 100%;
}

.admin-shell-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.admin-event-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-event-action-form {
  display: inline-flex;
  margin: 0;
}

.admin-event-action {
  flex: 0 0 8.25rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-event-action .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}

.event-palette-preview-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  min-width: 0;
}

.event-palette-swatch {
  width: 2.35rem;
  height: 1.55rem;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.event-palette-value {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.event-edit-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.event-edit-delete-form {
  display: inline-flex;
  margin: 0;
}

.event-edit-item-actions .btn {
  flex: 1 1 10rem;
  max-width: 14rem;
  min-height: 2.55rem;
}

.admin-shell-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.85rem;
}

.admin-shell-stat {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.24);
}

.admin-shell-stat-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.76;
}

.admin-shell-stat-value {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.5px;
}

.admin-shell-note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.84;
}

.admin-shell-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-shell-split > * {
  min-width: 0;
}

.admin-shell-empty {
  margin: 0;
  opacity: 0.78;
}

.homedir-main.admin-context-main .admin-shell-stack > .page-grid {
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.homedir-main.admin-context-main .admin-shell-stack > .page-grid > * {
  min-width: 0;
}

.admin-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.admin-metrics-panel {
  width: 100%;
  max-width: 100%;
}

.admin-metrics-toolbar .admin-shell-toolbar-group:first-child {
  flex: 1 1 280px;
}

.admin-metrics-toolbar .admin-shell-toolbar-group:nth-child(2) {
  flex: 1 1 320px;
}

.admin-metrics-toolbar .admin-shell-toolbar-group:last-child {
  flex: 1 1 260px;
  justify-content: flex-end;
}

.hd-profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(10, 18, 22, 0.4);
}

.hd-profile-nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(8, 14, 18, 0.75);
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.hd-profile-nav-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(13, 23, 30, 0.86);
}

.hd-profile-nav-btn:focus-visible {
  outline: 2px solid rgba(96, 205, 255, 0.72);
  outline-offset: 2px;
}

.hd-profile-nav-btn.is-active {
  border-color: rgba(96, 205, 255, 0.75);
  background: rgba(28, 69, 95, 0.72);
  color: #dff6ff;
}

.admin-shell-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-shell-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.admin-shell-card-header .card-title,
.admin-shell-card-header .section-subtitle,
.admin-shell-card-header .form-hint {
  margin-top: 0;
  margin-bottom: 0;
}

.admin-shell-field-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-shell-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-shell-actions-tight {
  gap: 0.5rem;
}

.admin-shell-margin-top-sm {
  margin-top: 0.55rem;
}

.admin-shell-margin-top-md {
  margin-top: 0.75rem;
}

.admin-shell-margin-top-lg {
  margin-top: 1rem;
}

.admin-shell-margin-bottom-md {
  margin-bottom: 1rem;
}

.admin-shell-feedback {
  margin-top: 0.6rem;
}

.admin-shell-hint-tight {
  margin-top: 0.35rem;
}

.admin-shell-kpi-meta {
  margin: 0.5rem 0 0 0;
}

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

.admin-observability-card {
  min-width: 0;
  min-height: 100%;
}

.admin-observability-card--full {
  grid-column: 1 / -1;
}

.admin-observability-card--split {
  grid-column: span 1;
}

.admin-observability-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.admin-observability-heatmap {
  overflow-x: auto;
}

.admin-observability-summary {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-observability-kpi {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.7);
}

.admin-observability-kpi-label {
  display: block;
  font-size: 0.82rem;
  opacity: 0.82;
}

.admin-observability-kpi-value {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.admin-observability-kpi-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  opacity: 0.72;
}

.admin-observability-heatmap-grid {
  display: grid;
  gap: 0.55rem;
}

.admin-observability-heatmap-header,
.admin-observability-heatmap-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) repeat(24, minmax(12px, 1fr)) minmax(84px, 110px);
  gap: 0.3rem;
  align-items: center;
}

.admin-observability-heatmap-hour {
  font-size: 0.68rem;
  opacity: 0.7;
  text-align: center;
}

.admin-observability-heatmap-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-observability-heatmap-total {
  text-align: right;
  font-size: 0.82rem;
  opacity: 0.82;
}

.admin-observability-cell {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 120ms ease;
}

.admin-observability-cell.level-1 { background: rgba(64, 169, 255, 0.18); }
.admin-observability-cell.level-2 { background: rgba(64, 169, 255, 0.35); }
.admin-observability-cell.level-3 { background: rgba(64, 169, 255, 0.56); }
.admin-observability-cell.level-4 { background: rgba(64, 169, 255, 0.82); }

.admin-observability-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.admin-observability-item {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.64);
}

.admin-observability-item-copy {
  display: grid;
  gap: 0.2rem;
}

.admin-observability-item-copy small {
  opacity: 0.72;
}

.admin-observability-item-meta {
  text-align: right;
  white-space: nowrap;
  font-size: 0.86rem;
}

.admin-observability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-observability-badge.level-high,
.admin-observability-badge.high {
  background: rgba(255, 114, 114, 0.18);
  color: #ffd5d5;
}

.admin-observability-badge.level-watch,
.admin-observability-badge.watch {
  background: rgba(255, 214, 102, 0.18);
  color: #fff1bf;
}

.admin-observability-badge.level-healthy {
  background: rgba(114, 255, 159, 0.16);
  color: #dfffe8;
}

.admin-observability-delivery {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-observability-delivery-item {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.66);
}

.admin-observability-delivery-label {
  display: block;
  opacity: 0.74;
  font-size: 0.82rem;
}

.admin-observability-delivery-value {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-reputation-grid {
  gap: 1rem;
}

.admin-reputation-card {
  display: grid;
  gap: 0.9rem;
}

.admin-reputation-card--full {
  grid-column: 1 / -1;
}

.admin-reputation-summary {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-reputation-kpi {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-reputation-kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.admin-reputation-kpi-value {
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.admin-reputation-list {
  display: grid;
  gap: 0.75rem;
}

.admin-reputation-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-reputation-route-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-reputation-route-card h3 {
  margin: 0;
}

.admin-reputation-route-metrics {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.campaigns-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.campaigns-admin-list {
  display: grid;
  gap: 0.9rem;
}

.campaigns-admin-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.campaigns-admin-item strong {
  color: rgba(255, 255, 255, 0.92);
}

.campaigns-admin-item span {
  color: rgba(255, 255, 255, 0.74);
}

.campaigns-admin-cta {
  justify-self: start;
}

.campaigns-content-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
}

.campaigns-content-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.campaigns-content-card {
  gap: 0.8rem;
}

.campaigns-channel-layout {
  display: grid;
  gap: 1rem;
}

.campaigns-channel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.campaigns-channel-card {
  gap: 0.8rem;
}

.campaigns-board {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.campaigns-board-column {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  min-width: 0;
}

.campaigns-board-cards {
  display: grid;
  gap: 0.9rem;
}

.campaigns-board-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .campaigns-content-layout {
    grid-template-columns: 1fr;
  }
}

.insights-initiatives-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.55rem 0 0.75rem 0;
}

.insights-initiatives-search {
  flex: 1 1 260px;
  min-width: 220px;
}

.insights-initiatives-state {
  flex: 0 0 190px;
  min-width: 160px;
}

.insights-initiatives-sort {
  flex: 0 0 190px;
  min-width: 160px;
}

.insights-initiatives-window {
  flex: 0 0 180px;
  min-width: 150px;
}

.insights-initiatives-count {
  margin: 0;
  white-space: nowrap;
}

.insights-event-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.insights-event-preset {
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
}

.admin-nav-strip {
  gap: 0.45rem;
}

.cfp-admin-subnav {
  margin-bottom: 1rem;
}

[data-cfp-admin-section][hidden] {
  display: none !important;
}

.cfp-toolbar-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.cfp-review-search-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem;
}

.cfp-review-search-field,
.cfp-event-config-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cfp-insights-box {
  margin-top: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.55rem 0.65rem;
  font-size: 0.84rem;
  line-height: 1.42;
}

.cfp-stats-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.5rem;
}

.cfp-stats-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cfp-stats-item span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.cfp-stats-item strong {
  font-size: 1rem;
  line-height: 1.1;
}

.cfp-event-config-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.55rem;
}

.cfp-results-config-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
}

.cfp-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cfp-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.cfp-pagination-row {
  margin-top: 0.55rem;
}

.cfp-page-info {
  margin: 0;
  min-width: 108px;
  text-align: center;
}

.cfp-filter-btn.is-active,
.cfp-sort-btn.is-active {
  border-color: rgba(255, 215, 0, 0.7);
  background: rgba(255, 215, 0, 0.12);
}

.cfp-admin-card {
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  height: 100%;
}

#cfpQueueList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.9rem;
}

.cfp-admin-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cfp-admin-meta {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

.cfp-admin-summary {
  margin-top: 0.55rem;
}

.cfp-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
}

.cfp-status-chip {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cfp-score-chip {
  border-color: rgba(120, 185, 255, 0.7);
  background: rgba(120, 185, 255, 0.14);
  margin-left: 0.35rem;
}

.cfp-status-chip--pending {
  border-color: rgba(255, 215, 0, 0.7);
  background: rgba(255, 215, 0, 0.14);
}

.cfp-status-chip--under_review {
  border-color: rgba(120, 185, 255, 0.7);
  background: rgba(120, 185, 255, 0.14);
}

.cfp-status-chip--accepted {
  border-color: rgba(114, 255, 159, 0.7);
  background: rgba(114, 255, 159, 0.14);
}

.cfp-status-chip--rejected {
  border-color: rgba(255, 126, 126, 0.75);
  background: rgba(255, 126, 126, 0.14);
}

.scenario-ultra-shell,
.talk-ultra-shell,
.speaker-theme-shell,
.volunteer-page-shell {
  color: var(--event-theme-text, rgba(255, 255, 255, 0.94));
}

.scenario-ultra-shell,
.scenario-ultra-shell *,
.scenario-ultra-shell *::before,
.scenario-ultra-shell *::after,
.talk-ultra-shell,
.talk-ultra-shell *,
.talk-ultra-shell *::before,
.talk-ultra-shell *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.scenario-ultra-shell .section-card,
.scenario-ultra-shell .scenario-talk-card,
.talk-ultra-shell .section-card,
.volunteer-page-shell .section-card,
.volunteer-page-shell .volunteer-status-card,
.volunteer-page-shell .volunteer-application-item,
.speaker-theme-shell .card,
.speaker-theme-shell .talk-card {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.24)), var(--event-theme-surface, rgba(20, 26, 38, 0.86));
  border-color: var(--event-theme-primary, rgba(255, 255, 255, 0.2));
  color: var(--event-theme-text, rgba(255, 255, 255, 0.94));
}

.scenario-ultra-shell .section-card,
.scenario-ultra-shell .scenario-talk-card {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.52) !important;
}

.scenario-ultra-shell .section-card::before,
.scenario-ultra-shell .section-card:hover::before {
  content: none !important;
}

.scenario-ultra-shell .scenario-full-width,
.talk-ultra-shell .talk-full-width {
  grid-column: 1 / -1;
}

.scenario-ultra-shell .scenario-shell-card,
.talk-ultra-shell .talk-shell-card {
  display: grid;
  gap: 0.8rem;
}

.scenario-ultra-shell .scenario-talk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.scenario-ultra-shell .scenario-talk-item {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.7rem 0.75rem;
  border-left: 3px solid var(--event-theme-primary, rgba(255, 255, 255, 0.28)) !important;
}

.scenario-ultra-shell .scenario-talk-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.32;
}

.scenario-ultra-shell .scenario-talk-meta,
.talk-ultra-shell .talk-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.scenario-ultra-shell .scenario-talk-meta .badge,
.talk-ultra-shell .talk-meta-row .badge,
.speaker-theme-shell .chip {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--event-theme-surface, rgba(20, 26, 38, 0.86));
  border-color: var(--event-theme-accent, rgba(255, 215, 0, 0.6));
  color: var(--event-theme-text, rgba(255, 255, 255, 0.94));
}

.scenario-ultra-shell .scenario-talk-meta .badge,
.talk-ultra-shell .talk-meta-row .badge {
  border: 1px solid var(--event-theme-accent, rgba(255, 215, 0, 0.6));
  text-transform: none;
  letter-spacing: 0;
}

.scenario-ultra-shell .hd-link,
.talk-ultra-shell .hd-link,
.volunteer-page-shell .hd-link,
.speaker-theme-shell a {
  color: var(--event-theme-accent, #72ff9f);
}

.scenario-ultra-shell .btn-primary,
.talk-ultra-shell .btn-primary,
.volunteer-page-shell .btn-primary,
.speaker-theme-shell .btn-primary {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)), var(--event-theme-primary, rgba(255, 255, 255, 0.2));
  border-color: var(--event-theme-primary, rgba(255, 255, 255, 0.2));
  color: var(--event-theme-text, rgba(255, 255, 255, 0.94));
}

.scenario-ultra-shell .btn,
.scenario-ultra-shell .login-btn-nav,
.talk-ultra-shell .btn,
.talk-ultra-shell .btn-secondary,
.talk-ultra-shell .login-btn-nav,
.volunteer-page-shell .btn,
.volunteer-page-shell .login-btn-nav,
.volunteer-page-shell .btn-secondary,
.speaker-theme-shell .btn,
.speaker-theme-shell .btn-secondary {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)), var(--event-theme-surface, rgba(20, 26, 38, 0.86));
  border-color: var(--event-theme-accent, rgba(255, 215, 0, 0.6));
  color: var(--event-theme-text, rgba(255, 255, 255, 0.94));
}

.scenario-ultra-shell .avatar.placeholder,
.talk-ultra-shell .avatar.placeholder {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)), var(--event-theme-surface, rgba(20, 26, 38, 0.86));
  border-color: var(--event-theme-accent, rgba(255, 215, 0, 0.6));
  color: var(--event-theme-text, rgba(255, 255, 255, 0.94));
}

.scenario-ultra-shell .scenario-talk-action {
  margin-top: 0.2rem;
}

.scenario-ultra-shell .scenario-empty-card,
.talk-ultra-shell .talk-empty-card {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.scenario-ultra-shell .btn-primary:hover,
.scenario-ultra-shell .btn-primary:active {
  transform: none !important;
}

.talk-ultra-shell .talk-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.5rem;
}

.talk-ultra-shell .talk-kv-item {
  border: 1px solid var(--event-theme-primary, rgba(255, 255, 255, 0.2));
  border-radius: 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--event-theme-surface, rgba(20, 26, 38, 0.86));
  padding: 0.46rem 0.58rem;
  display: grid;
  gap: 0.12rem;
}

.talk-ultra-shell .talk-kv-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  opacity: 0.72;
}

.talk-ultra-shell .talk-kv-value {
  font-size: 0.84rem;
  line-height: 1.32;
  word-break: break-word;
}

.talk-ultra-shell .talk-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.talk-ultra-shell .talk-occurrence-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.talk-ultra-shell .talk-occurrence-item {
  border: 1px solid var(--event-theme-primary, rgba(255, 255, 255, 0.2));
  border-left: 3px solid var(--event-theme-primary, rgba(255, 255, 255, 0.28));
  border-radius: 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)), var(--event-theme-surface, rgba(20, 26, 38, 0.86));
  padding: 0.5rem 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
}

.speaker-theme-shell .page-title,
.speaker-theme-shell .card-title,
.speaker-theme-shell .speaker-bio,
.speaker-theme-shell .talk-title {
  color: var(--event-theme-text, rgba(255, 255, 255, 0.94));
}

.speaker-theme-shell .speaker-photo {
  border: 2px solid var(--event-theme-primary, rgba(255, 255, 255, 0.2));
}

.volunteer-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.volunteer-status-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  display: grid;
  gap: 0.4rem;
}

.volunteer-status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.14rem 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.volunteer-status-chip--applied {
  border-color: rgba(255, 215, 0, 0.7);
  background: rgba(255, 215, 0, 0.14);
}

.volunteer-status-chip--under_review {
  border-color: rgba(120, 185, 255, 0.7);
  background: rgba(120, 185, 255, 0.14);
}

.volunteer-status-chip--selected {
  border-color: rgba(114, 255, 159, 0.7);
  background: rgba(114, 255, 159, 0.14);
}

.volunteer-status-chip--not_selected,
.volunteer-status-chip--withdrawn {
  border-color: rgba(255, 126, 126, 0.75);
  background: rgba(255, 126, 126, 0.14);
}

.volunteer-feedback {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
}

.volunteer-feedback.is-error {
  border-color: rgba(255, 126, 126, 0.85);
  background: rgba(255, 96, 96, 0.2);
  color: #ffe7e7;
}

.volunteer-feedback.is-success {
  border-color: rgba(114, 255, 159, 0.8);
  background: rgba(114, 255, 159, 0.18);
  color: #e9fff1;
}

.volunteer-form-actions {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.volunteer-application-item {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

.volunteer-application-item p {
  margin: 0;
}

@media (max-width: 1100px) {
  .admin-metrics-toolbar .admin-shell-toolbar-group {
    flex: 1 1 100%;
  }

  .admin-metrics-toolbar .admin-shell-toolbar-group:last-child {
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .homedir-main.admin-context-main .page-header > .container,
  .homedir-main.admin-context-main .retro-container {
    padding: 1.1rem;
  }

  .admin-shell-actions,
  .admin-shell-toolbar,
  .admin-shell-toolbar-group {
    width: 100%;
  }

  .admin-shell-actions .btn,
  .admin-shell-toolbar .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .admin-observability-grid {
    grid-template-columns: 1fr;
  }

  .admin-reputation-routes {
    grid-template-columns: 1fr;
  }

  .hd-profile-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.45rem;
  }

  .hd-profile-nav-btn {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .volunteer-page-grid {
    grid-template-columns: 1fr;
  }
}


.icon-wrapper {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-bottom: 5px solid rgba(0, 0, 0, 0.6);
  border-right: 4px solid rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6);
}

.activity-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.activity-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
  animation: blink 1.2s infinite ease-in-out;
}

.activity-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.activity-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.activity-text {
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Variantes generales de botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  font-family: var(--font-display);
}

.btn:focus-visible,
.hd-btn:focus-visible {
  outline: 2px solid rgba(96, 205, 255, 0.72);
  outline-offset: 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-bottom: 8px solid rgba(0, 0, 0, 0.4);
  border-right: 6px solid rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(4px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.25);
  color: #ffd700;
}

.btn-primary:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  transition: all 0.1s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 216, 77, 0.5);
  color: #ffd700;
  box-shadow: inset 0 0 20px rgba(255, 216, 77, 0.08);
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 216, 77, 0.45);
  color: #ffd700;
}

.btn-ghost:active {
  transform: translateY(1px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(220, 53, 69, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  border: 4px solid rgba(255, 100, 100, 0.6);
  border-bottom: 8px solid rgba(139, 0, 0, 0.5);
  border-right: 6px solid rgba(139, 0, 0, 0.4);
  transition: all 0.1s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 0, 0, 0.1);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  text-decoration: none;
}

.btn-danger:hover {
  transform: translateY(4px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 50, 50, 0.2);
  background: rgba(220, 53, 69, 0.45);
  color: #fff;
  border-color: rgba(255, 100, 100, 0.9);
}

.btn-danger:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* ===========================================
   FOOTER
   =========================================== */

.homedir-footer {
  margin-top: auto;
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  border-top: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.6);
}

.homedir-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.35rem 2rem;
  text-align: center;
}

.homedir-footer p {
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.homedir-footer .footer-subtitle {
  font-size: 0.5rem;
  opacity: 0.85;
  letter-spacing: 1px;
}

/* Legacy footer helpers */
.site-footer {
  margin-top: auto;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  border-top: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.6);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  text-align: center;
}

.footer-text {
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.footer-subtext {
  font-size: 0.5rem;
  opacity: 0.8;
}

/* ===========================================
   UTILIDADES Y RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .mode-switch-bar {
    justify-content: space-between;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .mode-switch-label {
    font-size: 0.42rem;
    letter-spacing: 1px;
  }

  .mode-switch-actions {
    gap: 0.3rem;
  }

  .mode-switch-link {
    font-size: 0.42rem;
    letter-spacing: 0.8px;
    padding: 0.06rem 0.4rem;
  }

  .top-nav {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-locale-switcher {
    order: 5;
  }

  .homedir-main {
    padding: 2rem 1.25rem 2.5rem;
  }

  .public-title {
    font-size: 1.05rem;
  }

  .tagline {
    font-size: 0.55rem;
  }

  .page-header {
    padding: 1.5rem 1.25rem 0.75rem;
    margin: 1.5rem auto 0.75rem;
  }

  .page-grid {
    padding: 0 1.25rem 1.5rem;
  }

  .section-body {
    padding: 1.25rem 1rem;
  }
}

/* ===========================================
   HEADER EXTRAS - USER MENU & BANNER
   =========================================== */

/* Alpha Banner */
.alpha-banner {
  background: var(--color-surface-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  text-align: center;
  padding: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-body);
  position: relative;
}

.alpha-badge {
  background: #ffd700;
  color: var(--color-surface-2);
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.6rem;
}

.system-banner {
  background: #ffa500;
  color: var(--color-surface-2);
  text-align: center;
  padding: 0.5rem;
  font-weight: bold;
  font-family: var(--font-display);
  font-size: 0.8rem;
  position: relative;
  z-index: 10;
}

/* User Menu & Dropdown */
.user-menu-wrapper {
  position: relative;
}

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface-2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease;
}

.user-profile-link-styled {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile-link-styled:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header-avatar-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary, #667eea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.user-menu-btn-styled {
  background: none;
  border: none;
  color: #ffffff;
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-btn-styled:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
  color: #fff;
}

.dropdown-menu.show {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.dropdown-header {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.text-signed-in {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-xp-stats {
  margin-top: 0.75rem;
}

.header-xp-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  color: var(--color-accent);
}

.xp-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: var(--color-accent);
  width: var(--xp-percent, 0%);
  transition: width 0.5s ease;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.1s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dropdown-item .material-symbols-outlined {
  font-size: 1.2rem;
  opacity: 0.8;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Level badge small fix */
.header-level-badge {
  font-size: 0.6rem !important;
  margin-left: 0.4rem;
  transform: scale(0.9);
}

/* ===========================================
   FIXES & MISSING STYLES (Profile & GitHub)
   =========================================== */

/* GitHub Integration */
.hd-github-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hd-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hd-github-info {
  display: flex;
  flex-direction: column;
}

.hd-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.hd-link:hover {
  text-decoration: underline;
}



/* =========================================================
   HomeDir Profile Components (HD-*)
   - Component-only styles to coexist with retro-theme.css
   ========================================================= */

/* ===========================================
   STANDARD UI COMPONENTS (HD-*)
   =========================================== */

/* Panels & Sections */
.hd-section {
  padding: 4rem 1rem;
}

.hd-page {
  max-width: 1200px;
  margin: 0 auto;
}

.hd-panel {
  background: rgba(20, 10, 40, 0.6);
  /* Darker, more contrast */
  border: 1px solid rgba(255, 215, 0, 0.2);
  /* Gold border hint */
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hd-panel.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hd-panel.centered .hd-dashboard-header {
  justify-content: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.hd-panel.centered .hd-panel-actions {
  justify-content: center;
}

.hd-panel.centered .hd-list,
.hd-panel.centered .progress-bar-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hd-panel.centered .hd-list-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.hd-panel.centered .hd-list-log .hd-log-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hd-panel.centered .hd-list-log .hd-list-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hd-panel.centered .hd-list-log .hd-list-content strong {
  line-height: 1.3;
}

.hd-panel.centered .hd-list-log .hd-list-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .hd-panel.centered .hd-list-log .hd-log-entry {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

.hd-card-surface {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Headers & Text */
.hd-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.hd-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  font-family: 'Orbitron', 'Exo 2', sans-serif;
  /* Retro font */
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(166, 75, 244, 0.5);
}

.hd-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  color: #fff;
}

.hd-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: #ffd700;
  /* Gold */
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hd-page-intro {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 600px;
}

/* KPIs */
.hd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.hd-kpi {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #a64bf4;
}

.hd-kpi-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hd-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

/* Components */
.hd-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  /* More retro/boxy */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-family: 'Exo 2', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hd-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hd-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}

.hd-btn:hover {
  color: #ffd700;
}

/* Specific GitHub Button */
.btn-github-dark {
  background-color: #24292e !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.btn-github-dark:hover {
  background-color: #2f363d !important;
  color: #fff !important;
  transform: translateY(4px);
}

.hd-alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.hd-alert-success {
  background: rgba(0, 255, 128, 0.1);
  color: #8affc1;
  border: 1px solid rgba(0, 255, 128, 0.2);
}

.hd-alert-warning {
  background: rgba(255, 170, 0, 0.1);
  color: #ffca80;
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.hd-alert-info {
  background: rgba(0, 150, 255, 0.1);
  color: #80caff;
  border: 1px solid rgba(0, 150, 255, 0.2);
}

.hd-alert-danger {
  background: rgba(255, 0, 80, 0.1);
  color: #ff80a0;
  border: 1px solid rgba(255, 0, 80, 0.2);
}

/* Talks */
.talk-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.talk-time {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.talk-info {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.talk-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.talk-title a {
  transition: color 0.2s;
  color: #fff;
}

.talk-title a:hover {
  color: #ffd700;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.motivation-badge {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.talk-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.hd-form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  font-family: inherit;
}

.hd-form-input:focus {
  outline: 2px solid #a64bf4;
  border-color: transparent;
}

/* Tabs */
.hd-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hd-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-family: 'Exo 2', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;

  /* Default (Inactive) - Match hd-btn-secondary */
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hd-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffd700;
  transform: translateY(-2px);
}

.hd-tab.active {
  /* Active - Match hd-btn-primary */
  background: linear-gradient(135deg, var(--color-primary, #667eea), #1d4ed8);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Avatars */
.speaker-avatars {
  display: flex;
  gap: -8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #222;
  object-fit: cover;
}

.avatar.placeholder {
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ===========================================
   SKILL TREE (Gamification)
   =========================================== */
/* Standard Material Symbols Class */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

.hd-skill-tree {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  /* Connectors handle spacing */
  flex-wrap: wrap;
  margin: 2rem 0;
  flex-direction: row;
  /* Force horizontal */
}

.hd-skill-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100px;
  text-align: center;
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: grayscale(1);
}

.hd-skill-node.unlocked {
  opacity: 1;
  filter: grayscale(0);
}

.hd-skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.5);
  /* Dimmed by default */
}

.hd-skill-node.unlocked .hd-skill-icon {
  background: linear-gradient(135deg, #a64bf4, #667eea);
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(166, 75, 244, 0.6);
  color: #ffd700;
  /* Yellow Icon */
}

/* Ensure the material symbol span inherits the yellow color */
.hd-skill-node.unlocked .hd-skill-icon .material-symbols-outlined {
  color: #ffd700;
}

.hd-skill-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.hd-skill-node.unlocked .hd-skill-label {
  color: #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.hd-skill-connector {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 -10px;
  /* Overlap slightly with nodes/margins */
  z-index: -1;
  position: relative;
  top: -15px;
  /* Align with icon center approx */
}

.hd-skill-connector.active {
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ===========================================
   RETRO DASHBOARD (Required by Character Sheet)
   =========================================== */
.retro-dashboard {
  background: rgba(26, 22, 53, 0.9);
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 4px solid #b8860b;
  color: #ffd700;
  font-family: 'Courier New', Courier, monospace;
  position: relative;
  border-radius: 8px;
}

.dashboard-warning {
  border: 1px solid #ff4500;
  color: #ff4500;
  padding: 0.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.text-signed-in {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ... existing code ... */

/* ===========================================
   TABLES (Agenda & Data)
   =========================================== */
.hd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.hd-table th,
.hd-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hd-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.hd-table-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hd-table-cell {
  vertical-align: top;
}

.agenda-time {
  font-family: 'Orbitron', monospace;
  color: var(--color-accent);
  white-space: nowrap;
  width: 140px;
}

.agenda-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.agenda-title a {
  text-decoration: none;
  color: #fff;
  transition: color 0.2s;
}

.agenda-title a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.agenda-title .icon {
  margin-right: 0.5rem;
  opacity: 0.7;
  vertical-align: middle;
}

.agenda-speakers {
  width: 150px;
}

.agenda-location a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
}

.agenda-location a:hover {
  color: #fff;
}

/* Agenda Grid View specific */
.agenda-grid-table th {
  text-align: center;
}

.agenda-grid-table td {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.agenda-grid-table td:last-child {
  border-right: none;
}

.agenda-slot {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--color-accent);
}

.agenda-slot a {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
  text-decoration: none;
}

.agenda-slot-speakers {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Responsive Tables */
@media (max-width: 768px) {

  .hd-table,
  .hd-table tbody,
  .hd-table tr,
  .hd-table td {
    display: block;
    width: 100%;
  }

  .hd-table thead {
    display: none;
  }

  .hd-table-row {
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hd-table td {
    padding: 0.5rem 0;
    border-bottom: none;
  }

  .agenda-time {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
    width: auto;
  }

  .agenda-speakers,
  .agenda-location {
    width: auto;
    font-size: 0.9rem;
    opacity: 0.8;
  }
}


.identity-class {
  border: 1px solid #ffd700;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  color: #ffd700;
}

.level-box {
  border: 2px solid #ffd700;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.4rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  color: #ffd700;
}

.dashboard-divider {
  height: 2px;
  background: #ffd700;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

/* ===========================================
   UTILITIES (Refactor)
   =========================================== */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.9rem;
}

.icon-wrapper-center {
  margin: 0 auto 1rem;
}

.flex-between-center {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.grid-responsive-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.contributors-grid-sm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.event-card-lg {
  padding: 1rem;
  border-left: 4px solid var(--color-accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.event-date-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  text-align: center;
  min-width: 60px;
  border-radius: 4px;
}

.event-day {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-accent);
}

.event-month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.contributor-card-block {
  text-align: center;
  display: block;
}

.contributor-avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
}

.contributor-login {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.join-cta-box {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.empty-state-lg {
  text-align: center;
  padding: 2rem;
}

/* ... existing code ... */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Col 1: Vitals */
.vital-card {
  border: 1px solid #555;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

.vital-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.vital-bar-track {
  height: 10px;
  background: #222;
  border: 1px solid #444;
}

.vital-bar-fill {
  height: 100%;
}

.vital-bar-fill.hp {
  background: #ff4444;
}

.vital-bar-fill.sp {
  background: #4444ff;
}

.vital-bar-fill.xp {
  background: #ffff44;
}

/* Col 2: Stats Grid */
.stat-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dash-stat-card {
  background: rgba(15, 12, 34, 0.8);
  border: 1px solid rgba(51, 43, 85, 0.8);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.stat-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 0.1rem;
}

.stat-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

/* Col 3: Equipment */
.equipment-header-box {
  border: 1px solid #ffd700;
  padding: 0.4rem;
  text-align: center;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  color: #ffd700;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.equipment-slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dash-slot {
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
  background-image: linear-gradient(45deg, #111 25%, transparent 25%, transparent 50%, #111 50%, #111 75%, transparent 75%, transparent);
  background-size: 10px 10px;
}

.dashboard-footer {
  text-align: center;
}

.retro-login-btn {
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  transition: all 0.2s;
  font-family: 'Courier New', Courier, monospace;
}

.retro-login-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

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

.quest-dashboard-header {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.quest-dashboard-header .hd-eyebrow,
.quest-dashboard-header .hd-page-title,
/* User Class Icon in Header */
.user-class-icon .material-symbols-outlined {
  font-size: 1.2rem;
  vertical-align: middle;
  color: #ffd700;
  margin-right: 4px;
}

/* Guild Identity Layout - 2 Columns Override */
.hd-grid-classes-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem;
}

@media (max-width: 600px) {
  .hd-grid-classes-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================================
   HOME HIGHLIGHTS (Social / Events / Project)
   =========================================== */

.homedir-main-home {
  max-width: 1360px;
  padding: 1.2rem 1.25rem 1.6rem;
  gap: 0.95rem;
}

.homedir-main-home .home-highlight-hero {
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.homedir-main-home .home-panorama-grid {
  margin: 0 auto 0.9rem;
  padding: 0;
  gap: 0.8rem;
}

.homedir-main-home .home-pane {
  min-height: 470px;
  margin-bottom: 0;
}

.homedir-main-home .home-top-metric {
  padding: 0.62rem 0.76rem;
}

.homedir-main-home .home-pane-item {
  padding: 0.58rem;
}

.home-highlight-hero {
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.home-highlight-hero .public-title {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.home-highlight-hero .tagline {
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 940px;
}

.home-welcome-en {
  margin: 0;
  max-width: 980px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.7rem);
  letter-spacing: 0.8px;
  line-height: 1.35;
  text-transform: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.home-welcome-es {
  margin: 0;
  max-width: 960px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.96;
}

.home-highlights-intro {
  margin: 0;
  max-width: 980px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: 0.8px;
  text-transform: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  opacity: 0.96;
}

.home-onboarding-shell {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.home-onboarding-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 0.9rem;
  align-items: stretch;
}

.home-onboarding-copy {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.home-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.home-onboarding-actions .btn-primary,
.home-onboarding-actions .btn-secondary {
  min-width: 170px;
  justify-content: center;
}

.home-hero-spotlight {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.home-hero-spotlight-grid {
  display: grid;
  gap: 0.55rem;
}

.home-proof-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.home-progress-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.home-progress-summary {
  display: grid;
  gap: 0.12rem;
}

.home-progress-summary strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
}

.home-progress-summary span {
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.home-progress-summary small {
  font-size: 0.72rem;
  opacity: 0.85;
}

.home-progress-bar {
  margin-top: -0.1rem;
}

.home-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-progress-stat {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.52rem;
  display: grid;
  gap: 0.1rem;
}

.home-progress-stat span {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  opacity: 0.8;
}

.home-progress-stat strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.1;
}

.home-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.home-how-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.7rem;
  display: grid;
  gap: 0.3rem;
}

.home-how-card .material-symbols-outlined {
  font-size: 1.1rem;
  opacity: 0.92;
}

.home-how-card h2 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.home-how-card p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.38;
  opacity: 0.92;
}

.home-new-hot {
  margin-top: 0.22rem;
  display: grid;
  gap: 0.5rem;
}

.home-lightning-strip {
  margin-top: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.26);
  padding: 0.62rem;
  display: grid;
  gap: 0.48rem;
}

.home-lightning-header {
  display: grid;
  gap: 0.22rem;
}

.home-lightning-header h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.home-lightning-header p {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.9;
}

.home-lightning-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.home-lightning-mode-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.7rem;
  cursor: pointer;
}

.home-lightning-mode-btn.active {
  border-color: rgba(120, 255, 160, 0.9);
  background: rgba(120, 255, 160, 0.16);
}

.home-lightning-form {
  display: grid;
  gap: 0.35rem;
}

.home-lightning-form.hidden {
  display: none;
}

.home-lightning-form input,
.home-lightning-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border-radius: 6px;
  padding: 0.42rem 0.52rem;
  font-family: inherit;
  font-size: 0.78rem;
}

.home-lightning-form textarea {
  resize: vertical;
  min-height: 58px;
  max-height: 160px;
}

.home-lightning-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.home-lightning-form-actions small {
  font-size: 0.68rem;
  opacity: 0.82;
}

.home-lightning-count {
  font-size: 0.68rem;
  opacity: 0.82;
  min-width: 3.9rem;
  text-align: right;
}

.home-lightning-login {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.16);
}

.home-lightning-login.hidden {
  display: none;
}

.home-lightning-login p {
  margin: 0;
  font-size: 0.76rem;
}

.home-lightning-feedback {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.38rem 0.5rem;
  font-size: 0.74rem;
}

.home-lightning-feedback.hidden {
  display: none;
}

.home-lightning-feedback.home-lightning-feedback-error {
  border-color: rgba(255, 120, 120, 0.45);
  background: rgba(255, 80, 80, 0.15);
}

.home-lightning-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-lightning-item {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.home-lightning-item-focus {
  border-color: rgba(255, 215, 120, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 120, 0.4);
}

.home-lightning-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.home-lightning-item-head small {
  font-size: 0.68rem;
  opacity: 0.82;
}

.home-lightning-item-head strong {
  font-size: 0.68rem;
  opacity: 0.92;
}

.home-lightning-item h3 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.28;
}

.home-lightning-item p {
  margin: 0;
  font-size: 0.71rem;
  line-height: 1.34;
  opacity: 0.93;
}

.home-lightning-modified {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 214, 102, 0.65);
  background: rgba(255, 199, 80, 0.14);
  color: #ffe7a6;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.08rem 0.34rem;
}

.home-lightning-thread-actions,
.home-lightning-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.home-lightning-mini-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 0.16rem 0.42rem;
  font-size: 0.67rem;
  cursor: pointer;
}

.home-lightning-best {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  border: 1px solid rgba(120, 255, 160, 0.5);
  background: rgba(120, 255, 160, 0.1);
  padding: 0.24rem 0.36rem;
  font-size: 0.67rem;
}

.home-lightning-comments {
  display: grid;
  gap: 0.3rem;
}

.home-lightning-comment {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.16);
  padding: 0.32rem;
  display: grid;
  gap: 0.24rem;
}

.home-lightning-comment.best {
  border-color: rgba(120, 255, 160, 0.6);
}

.home-lightning-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.home-lightning-comment-head strong,
.home-lightning-comment-head span {
  font-size: 0.64rem;
}

.home-lightning-actions {
  display: flex;
  justify-content: flex-end;
}

.home-lightning-empty {
  font-size: 0.75rem;
  opacity: 0.85;
}

.home-lightning-empty.hidden {
  display: none;
}

.home-new-hot-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-new-hot-badge {
  border-color: rgba(255, 179, 0, 0.75);
  color: #fff3ce;
  background: rgba(255, 153, 0, 0.18);
}

.home-new-hot-title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.home-new-hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-new-hot-card {
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.38rem;
  gap: 0.4rem;
  min-height: 0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.home-new-hot-card:hover {
  border-color: #ffd700;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.16);
}

.home-new-hot-card img {
  width: 50%;
  max-width: 160px;
  display: block;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.26);
}

.home-lta-preview {
  margin-top: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.26);
  padding: 0.62rem;
  display: grid;
  gap: 0.45rem;
  cursor: pointer;
}

.home-lta-preview-header {
  display: grid;
  gap: 0.2rem;
}

.home-lta-preview-header h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.home-lta-preview-header p {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.9;
}

.home-lta-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
}

.home-lta-preview-item {
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.4rem 0.45rem;
  display: grid;
  gap: 0.2rem;
}

.home-lta-preview-item strong {
  font-size: 0.72rem;
  line-height: 1.3;
}

.home-lta-preview-item span,
.home-lta-preview-empty {
  font-size: 0.66rem;
  opacity: 0.86;
}

.home-lta-preview-actions {
  display: flex;
  justify-content: flex-end;
}

.community-lta-shell {
  margin-bottom: 0.7rem;
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
}

.community-lta-shell .home-lightning-header {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.48rem 0.55rem;
}

.community-lta-shell .home-lightning-header h2 {
  font-size: 0.92rem;
  line-height: 1.25;
}

.community-lta-shell .home-lightning-header p {
  font-size: 0.7rem;
  line-height: 1.35;
  opacity: 0.88;
}

.community-lta-stage {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 0.62rem;
}

.community-lta-compose {
  display: grid;
  gap: 0.48rem;
}

.community-lta-feed {
  min-width: 0;
  display: grid;
  gap: 0.42rem;
}

.community-lta-shell .home-lightning-form,
.community-lta-shell .home-lightning-login,
.community-lta-shell .home-lightning-feedback {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
}

.community-lta-shell .home-lightning-form-actions {
  margin-top: 0.05rem;
}

.community-lta-shell .home-lightning-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.community-lta-shell .home-lightning-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
  padding: 0.54rem;
}

.community-lta-shell .home-lightning-item-head {
  align-items: flex-start;
  gap: 0.26rem;
}

.community-lta-shell .home-lightning-item-head small {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  padding: 0.08rem 0.32rem;
  font-size: 0.62rem;
  line-height: 1.2;
}

.community-lta-shell .home-lightning-item h3 {
  font-size: 0.8rem;
  line-height: 1.3;
}

.community-lta-shell .home-lightning-thread-actions,
.community-lta-shell .home-lightning-comment-actions {
  gap: 0.32rem;
}

.community-lta-shell .home-lightning-mini-btn {
  padding: 0.18rem 0.45rem;
}

.community-lta-shell .home-lightning-comments {
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  padding-top: 0.34rem;
}

.community-lta-shell .home-lightning-actions {
  justify-content: center;
  padding-top: 0.08rem;
}

.home-new-hot-copy {
  display: grid;
  gap: 0.22rem;
}

.home-new-hot-copy h3 {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.25;
}

.home-new-hot-copy p {
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.3;
  opacity: 0.9;
}

.home-value-login {
  margin: 0.4rem 0 0.2rem;
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.home-value-login-header {
  margin-bottom: 0.1rem;
}

.home-value-login-header .page-title {
  margin: 0;
  font-size: 1rem;
}

.home-value-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-value-login-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.72rem;
  display: grid;
  gap: 0.35rem;
}

.home-value-login-card h3 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.3;
}

.home-value-login-card p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.35;
  opacity: 0.94;
}

.home-value-login-card .btn-primary {
  justify-self: center;
  margin-top: 0.08rem;
}

.home-top-metrics {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.home-top-metric {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  text-decoration: none;
  color: #ffffff;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.home-top-metric-head {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.home-top-metric-icon {
  font-size: 0.9rem;
  opacity: 0.9;
}

.home-top-metric:hover {
  border-color: #ffd700;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.16);
}

.home-top-metric strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
}

.home-top-metric small {
  font-size: 0.68rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.home-member-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.home-member-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
}

.home-member-card-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.home-member-reward-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.home-member-reward-strip strong {
  font-size: 0.92rem;
}

.home-member-checklist {
  display: grid;
  gap: 0.6rem;
}

.home-member-checklist-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
}

.home-member-checklist-item.is-complete {
  border-color: rgba(85, 196, 122, 0.45);
  background: rgba(22, 64, 44, 0.28);
}

.home-member-checklist-item .material-symbols-outlined {
  color: #ffd84d;
  font-size: 1.15rem;
  margin-top: 0.05rem;
}

.home-member-checklist-item.is-complete .material-symbols-outlined {
  color: #55c47a;
}

.home-member-checklist-item strong,
.home-member-action-card strong {
  display: block;
  margin-bottom: 0.12rem;
}

.home-member-checklist-item p,
.home-member-action-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.home-member-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.home-member-action-card {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
  color: #ffffff;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.home-member-action-card:hover,
.home-member-action-card:focus-visible {
  border-color: rgba(255, 216, 77, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 77, 0.14);
}

.home-member-action-card .material-symbols-outlined {
  font-size: 1.3rem;
  color: #98f5ff;
}

.home-member-action-cta {
  color: #ffd84d;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-gamification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.home-gamification-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
}

.home-class-focus,
.home-reward-spotlight {
  display: grid;
  gap: 0.28rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.home-class-focus strong,
.home-reward-spotlight strong {
  font-size: 1rem;
}

.home-class-focus p,
.home-reward-spotlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.home-class-focus-empty {
  border-style: dashed;
}

.home-class-list {
  display: grid;
  gap: 0.55rem;
}

.home-class-row {
  display: grid;
  gap: 0.34rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.home-class-row.is-dominant {
  border-color: rgba(255, 216, 77, 0.44);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 77, 0.12);
}

.home-class-row-head,
.home-class-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.home-class-row-head {
  align-items: baseline;
}

.home-class-row-label {
  justify-content: flex-start;
  min-width: 0;
}

.home-class-row-emoji {
  font-size: 1rem;
}

.home-class-row-head small {
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.home-class-row-bar {
  height: 8px;
}

.home-reward-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-reward-summary-item {
  display: grid;
  gap: 0.12rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.home-reward-summary-item span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-reward-summary-item strong {
  font-size: 1.1rem;
}

.home-gamification-actions {
  margin-top: 0;
}

.home-challenges-shell {
  display: grid;
  gap: 1rem;
}

.home-challenges-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.home-challenges-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-challenges-summary-item,
.home-challenge-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.home-challenges-summary-item span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-challenges-summary-item strong {
  font-size: 1.2rem;
}

.home-challenge-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-challenge-card {
  align-content: start;
}

.home-challenge-cta {
  display: inline-flex;
  align-items: center;
}

.hd-challenge-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.hd-challenge-card {
  display: grid;
  gap: 0.8rem;
}

.hd-challenge-card-header {
  margin-bottom: 0;
}

.hd-challenge-progress-bar {
  margin-top: -0.1rem;
}

.hd-grid-details-challenge {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-return-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.home-return-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
}

.home-return-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-return-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-return-signal,
.home-return-empty,
.home-notification-preview-item,
.home-loop-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
}

.home-return-signal strong,
.home-return-notification-top strong,
.home-return-empty strong,
.home-notification-preview-item strong,
.home-loop-item strong {
  font-size: 1rem;
}

.home-return-signal p,
.home-return-empty p,
.home-notification-preview-item p,
.home-loop-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.home-return-notification-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.home-return-empty {
  justify-items: start;
}

.home-return-empty .material-symbols-outlined,
.home-loop-item .material-symbols-outlined {
  color: #98f5ff;
}

.home-notification-preview-list,
.home-loop-list {
  display: grid;
  gap: 0.55rem;
}

.home-loop-item {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  text-decoration: none;
  color: #ffffff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.home-loop-item:hover,
.home-loop-item:focus-visible {
  border-color: rgba(255, 216, 77, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 77, 0.14);
}

.home-loop-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.16rem;
}

.home-return-actions {
  margin-top: 0;
}

.home-panorama-grid {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-pane {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 520px;
  padding: 1rem 0.95rem 0.9rem;
}

.home-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.55rem;
}

.home-pane-header-main {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
}

.home-pane-identity {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  overflow: hidden;
}

.home-pane-identity .material-symbols-outlined {
  font-size: 1rem;
}

.home-pane-identity-social {
  border-color: rgba(103, 182, 255, 0.75);
}

.home-pane-identity-events {
  border-color: rgba(255, 181, 75, 0.78);
}

.home-pane-identity-project {
  border-color: rgba(88, 202, 123, 0.75);
}

.home-pane-identity-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-pane-header .section-subtitle {
  font-size: 0.7rem;
  margin: 0;
}

.home-pane-section-header {
  gap: 0.25rem;
}

.home-pane-section-header.hd-section-heading::after {
  width: min(140px, 78%);
  margin-top: 0.18rem;
}

.home-pane-header .page-title {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: 1px;
  line-height: 1.2;
}

.home-pane-header .btn-primary {
  padding: 0.52rem 0.75rem;
  font-size: 0.56rem;
  letter-spacing: 1.1px;
  white-space: nowrap;
}

.home-pane-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
}

.home-pane-item {
  display: block;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.26);
  padding: 0.65rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.home-pane-item:hover {
  border-color: #ffd700;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.16);
}

.home-pane-title {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.home-event-item .home-pane-title {
  margin-bottom: 0.22rem;
}

.home-pane-summary {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.94;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-event-content {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
}

.home-event-avatar-shell {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.24), rgba(0, 0, 0, 0.3));
  overflow: hidden;
}

.home-event-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-event-avatar-fallback {
  font-size: 1rem;
  opacity: 0.88;
}

.home-event-text {
  min-width: 0;
  flex: 1 1 auto;
}

.home-project-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.6rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.home-project-brief p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.home-project-brief span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.84;
}

.home-project-brief strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1.2;
}

.home-project-brief strong:last-child {
  word-break: break-all;
}

.home-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.42rem;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.44rem;
  border: none;
  font-size: 0.56rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.home-source {
  font-size: 0.68rem;
  opacity: 0.85;
}

.home-highlight-empty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 88px;
}

.home-highlight-empty .material-symbols-outlined {
  font-size: 1.35rem;
  opacity: 0.85;
}

.home-contributor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.home-contributor-grid-compact {
  margin-top: 0.1rem;
}

.home-contributor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  color: #ffffff;
  padding: 0.44rem 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.4));
  border-radius: 8px;
  min-height: 102px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.home-contributor-card:hover {
  border-color: #ffd700;
  transform: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 215, 0, 0.14);
}

.home-contributor-avatar-shell {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.25));
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.home-contributor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.home-contributor-login {
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-contributor-meta {
  font-size: 0.58rem;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #ffd700;
  opacity: 0.95;
}

.home-project-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.home-project-actions-row .btn-primary {
  flex: 1 1 auto;
  padding: 0.5rem 0.55rem;
  font-size: 0.53rem;
  letter-spacing: 0.85px;
}

.home-priority-shell {
  max-width: 1180px;
  margin: 0 auto 1rem;
}

.home-priority-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.home-priority-hero-copy,
.home-priority-spotlight,
.home-priority-card,
.home-priority-status {
  border: 3px solid #12233d;
  border-radius: 8px;
  background: rgba(8, 16, 32, 0.84);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.32), inset 0 0 18px rgba(255, 255, 255, 0.05);
}

.home-priority-hero-copy,
.home-priority-spotlight {
  padding: 1.1rem;
}

.home-priority-hero-copy h1 {
  max-width: 860px;
  margin: 0.1rem 0 0.65rem;
  font-size: clamp(1.65rem, 2.7vw, 2.7rem);
  line-height: 1.08;
}

.home-priority-hero-copy p,
.home-priority-spotlight p,
.home-priority-card p {
  color: #d8e7ff;
}

.home-priority-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.home-priority-actions .btn-primary,
.home-priority-actions .btn-secondary {
  min-width: 0;
  white-space: normal;
  line-height: 1.15;
}

.home-priority-spotlight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-priority-spotlight h2,
.home-priority-card h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.15;
}

.home-priority-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 215, 0, 0.72);
  border-radius: 8px;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
}

.home-priority-grid {
  max-width: 1180px;
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-priority-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 0.95rem;
}

.home-priority-card::before {
  content: none;
}

.home-priority-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.home-priority-link {
  margin-top: auto;
  color: #ffd700;
  font-weight: 800;
  text-decoration: none;
}

.home-priority-link:hover,
.home-priority-link:focus-visible {
  text-decoration: underline;
}

.home-priority-news-list,
.home-collaboration-list {
  display: grid;
  gap: 0.55rem;
}

.home-priority-news-item,
.home-collaboration-item {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.58rem 0.65rem;
  border: 2px solid rgba(123, 215, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.home-priority-news-item span,
.home-collaboration-item span,
.home-priority-empty {
  color: #a8c3df;
  font-size: 0.72rem;
  line-height: 1.35;
}

.home-priority-news-item strong,
.home-collaboration-item strong {
  min-width: 0;
  line-height: 1.25;
}

.home-priority-news-item:hover,
.home-collaboration-item:hover,
.home-priority-news-item:focus-visible,
.home-collaboration-item:focus-visible {
  border-color: rgba(255, 215, 0, 0.62);
}

.home-priority-status {
  max-width: 1180px;
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.home-priority-status-item {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.9rem;
  color: #ffffff;
  text-decoration: none;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.home-priority-status-item:last-child {
  border-right: 0;
}

.home-priority-status-item strong {
  color: #ffd700;
  font-size: 1.18rem;
}

.home-priority-status-item span {
  color: #a8c3df;
  font-size: 0.72rem;
}

.community-submenu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.38rem;
  margin: 0.2rem 0 0.6rem;
}

.community-submenu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  text-decoration: none;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  border-width: 2px;
  border-bottom-width: 5px;
  border-right-width: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.8px;
  line-height: 1.15;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.32), inset 0 0 14px rgba(255, 255, 255, 0.08);
}

.community-submenu-icon {
  font-size: 0.86rem;
  opacity: 0.88;
  flex: 0 0 auto;
}

.community-submenu-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-submenu-link:hover {
  transform: none;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.32), inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.community-submenu-link:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.32);
}

.community-submenu-link-active {
  filter: brightness(1.12);
  border-color: rgba(255, 215, 0, 0.86);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.19), rgba(0, 0, 0, 0.22));
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.32),
    0 0 0 2px rgba(255, 215, 0, 0.34) inset,
    0 0 0 1px rgba(255, 255, 255, 0.35);
}

.community-submenu-link-active .community-submenu-icon {
  color: #ffd700;
  opacity: 1;
}

.community-submenu-link-active .community-submenu-label {
  color: #fffdf1;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.32);
}

/* Community ultra-lite mode for heavy lists (picks + board). */
.homedir-main.community-ultra-lite .section-card,
.homedir-main.community-ultra-lite .section-card:hover,
.homedir-main.community-ultra-lite .btn-primary,
.homedir-main.community-ultra-lite .btn-primary:hover,
.homedir-main.community-ultra-lite .btn-primary:active,
.homedir-main.community-ultra-lite .community-submenu-link,
.homedir-main.community-ultra-lite .community-submenu-link:hover,
.homedir-main.community-ultra-lite .community-submenu-link:active {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}

.homedir-main.community-ultra-lite .section-card::before,
.homedir-main.community-ultra-lite .section-card:hover::before {
  content: none !important;
}

/* Global ultra-lite mode:
   keep visual identity but remove motion hotspots that caused flicker/jank. */
.homedir-body.ultra-lite-mode .floating-shapes {
  display: none !important;
}

.homedir-body.ultra-lite-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 540px at 8% -12%, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0) 72%),
    radial-gradient(980px 480px at 92% 112%, rgba(123, 215, 255, 0.08), rgba(123, 215, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0.02) 100%);
}

.homedir-body.ultra-lite-mode .app-container {
  position: relative;
  z-index: 2;
}

.homedir-body.ultra-lite-mode .section-card,
.homedir-body.ultra-lite-mode .section-card:hover,
.homedir-body.ultra-lite-mode .btn-primary,
.homedir-body.ultra-lite-mode .btn-primary:hover,
.homedir-body.ultra-lite-mode .btn-primary:active,
.homedir-body.ultra-lite-mode .hd-btn-primary,
.homedir-body.ultra-lite-mode .hd-btn-primary:hover,
.homedir-body.ultra-lite-mode .hd-btn-primary:active,
.homedir-body.ultra-lite-mode .hd-btn-secondary,
.homedir-body.ultra-lite-mode .hd-btn-secondary:hover,
.homedir-body.ultra-lite-mode .hd-btn-secondary:active,
.homedir-body.ultra-lite-mode .retro-nav-link,
.homedir-body.ultra-lite-mode .retro-nav-link:hover,
.homedir-body.ultra-lite-mode .retro-nav-link:active,
.homedir-body.ultra-lite-mode .community-submenu-link,
.homedir-body.ultra-lite-mode .community-submenu-link:hover,
.homedir-body.ultra-lite-mode .community-submenu-link:active {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease !important;
}

.homedir-body.ultra-lite-mode .section-card,
.homedir-body.ultra-lite-mode .section-card:hover {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 32%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.018) 0 1px, rgba(255, 255, 255, 0) 1px 7px);
}

.homedir-body.ultra-lite-mode .section-card::before,
.homedir-body.ultra-lite-mode .section-card:hover::before {
  content: none !important;
}

/* Normalize legacy card/list components to the same lightweight baseline used in Community. */
.homedir-body.ultra-lite-mode .card,
.homedir-body.ultra-lite-mode .card:hover,
.homedir-body.ultra-lite-mode .box,
.homedir-body.ultra-lite-mode .box:hover,
.homedir-body.ultra-lite-mode .scenario-card,
.homedir-body.ultra-lite-mode .scenario-card:hover,
.homedir-body.ultra-lite-mode .speaker-card,
.homedir-body.ultra-lite-mode .speaker-card:hover,
.homedir-body.ultra-lite-mode .talk-card,
.homedir-body.ultra-lite-mode .talk-card:hover,
.homedir-body.ultra-lite-mode .event-card,
.homedir-body.ultra-lite-mode .event-card:hover,
.homedir-body.ultra-lite-mode .project-card,
.homedir-body.ultra-lite-mode .project-card:hover,
.homedir-body.ultra-lite-mode .community-card,
.homedir-body.ultra-lite-mode .community-card:hover {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease !important;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.56);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 32%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.015) 0 1px, rgba(255, 255, 255, 0) 1px 8px);
}

.homedir-body.ultra-lite-mode .talk-list,
.homedir-body.ultra-lite-mode .speaker-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.62rem;
}

.homedir-body.ultra-lite-mode .scenario-talk-list {
  margin-top: 0.18rem;
}

.homedir-body.ultra-lite-mode .scenario-talk-card {
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 3px solid rgba(255, 215, 0, 0.55);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.52);
  padding: 0.68rem 0.74rem;
  display: grid;
  gap: 0.42rem;
}

.homedir-body.ultra-lite-mode .scenario-talk-card .talk-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.34;
}

/* Strictly stabilize event/scenario/talk/speaker content regions.
   This mirrors Community's low-motion baseline to avoid flicker and hover loops. */
.homedir-body.ultra-lite-mode .page-header *,
.homedir-body.ultra-lite-mode .page-grid *,
.homedir-body.ultra-lite-mode .talk-detail *,
.homedir-body.ultra-lite-mode .speaker-detail * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.homedir-body.ultra-lite-mode .page-grid .section-card,
.homedir-body.ultra-lite-mode .page-grid .section-card:hover,
.homedir-body.ultra-lite-mode .talk-detail .card,
.homedir-body.ultra-lite-mode .talk-detail .card:hover,
.homedir-body.ultra-lite-mode .speaker-detail .card,
.homedir-body.ultra-lite-mode .speaker-detail .card:hover {
  cursor: default;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.56) !important;
}

.homedir-body.ultra-lite-mode .section-header {
  position: relative;
  padding-bottom: 0.18rem;
}

.homedir-body.ultra-lite-mode .section-header::after {
  content: "";
  display: block;
  width: min(240px, 65%);
  height: 1px;
  margin-top: 0.38rem;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.5), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0.78;
}

.homedir-body.ultra-lite-mode .community-empty,
.homedir-body.ultra-lite-mode .errors-empty-state,
.homedir-body.ultra-lite-mode .project-hd-empty,
.homedir-body.ultra-lite-mode .hd-empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.18));
  padding: 0.58rem 0.72rem;
}

.homedir-body.ultra-lite-mode .hd-empty-callout {
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.18));
  padding: 0.58rem 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.homedir-body.ultra-lite-mode .hd-empty-callout::before {
  font-family: "Material Symbols Outlined";
  content: "info";
  font-size: 1.12rem;
  line-height: 1;
  opacity: 0.82;
}

.homedir-body.ultra-lite-mode .community-empty p,
.homedir-body.ultra-lite-mode .errors-empty-state,
.homedir-body.ultra-lite-mode .project-hd-empty,
.homedir-body.ultra-lite-mode .hd-empty-state,
.homedir-body.ultra-lite-mode .hd-empty-callout p {
  margin: 0;
}

@media (max-width: 900px) {
  .community-submenu {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .community-submenu-link {
    padding: 0.38rem 0.5rem;
    font-size: 0.58rem;
    letter-spacing: 0.7px;
  }

  .community-submenu-icon {
    font-size: 0.78rem;
  }
}

@media (max-width: 1120px) {
  .homedir-main-home {
    max-width: 1200px;
  }

  .homedir-main-home .home-panorama-grid {
    gap: 0.75rem;
  }

  .home-onboarding-stage {
    grid-template-columns: 1fr;
  }

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

  .home-challenge-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-new-hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-lightning-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-lta-stage {
    grid-template-columns: 1fr;
  }

  .community-lta-shell .home-lightning-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-lta-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-pane {
    min-height: 470px;
  }

  .home-top-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-member-command-grid,
  .home-member-actions-grid,
  .home-return-grid {
    grid-template-columns: 1fr;
  }

  .home-priority-hero,
  .home-priority-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .homedir-main-home {
    padding: 0.95rem 0.85rem 1.25rem;
    gap: 0.75rem;
  }

  .homedir-main-home .home-highlight-hero {
    margin-bottom: 0.3rem;
  }

  .home-top-metrics {
    grid-template-columns: 1fr;
  }

  .home-priority-hero-copy,
  .home-priority-spotlight,
  .home-priority-card {
    padding: 0.85rem;
  }

  .home-priority-status {
    grid-template-columns: 1fr;
  }

  .home-priority-status-item {
    border-right: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }

  .home-priority-status-item:last-child {
    border-bottom: 0;
  }

  .home-how-grid,
  .home-progress-grid,
  .home-challenges-summary-grid,
  .home-challenge-card-grid,
  .home-member-command-grid,
  .home-member-actions-grid,
  .home-gamification-grid,
  .home-return-grid,
  .home-return-signal-grid,
  .home-reward-summary-grid {
    grid-template-columns: 1fr;
  }

  .home-member-checklist-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hd-grid-details-challenge {
    grid-template-columns: 1fr;
  }

  .home-member-checklist-item .btn-secondary {
    grid-column: 1 / -1;
  }

  .home-value-login-grid {
    grid-template-columns: 1fr;
  }

  .home-new-hot-grid {
    grid-template-columns: 1fr;
  }

  .home-lightning-list {
    grid-template-columns: 1fr;
  }

  .community-lta-shell .home-lightning-list {
    grid-template-columns: 1fr;
  }

  .home-lta-preview-list {
    grid-template-columns: 1fr;
  }

  .home-panorama-grid {
    grid-template-columns: 1fr;
  }

  .home-pane {
    min-height: 0;
  }

  .home-project-brief {
    grid-template-columns: 1fr 1fr;
  }

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

  .home-pane-header .btn-primary {
    padding: 0.45rem 0.65rem;
    font-size: 0.52rem;
  }

  .home-lightning-form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Stabilize hover on member cards to avoid edge-trigger flicker */
.community-member-card:hover {
  transform: none;
}

/* Header layout and language selector (extracted from template for maintainability) */
.top-nav.header-3col {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.nav-actions.header-center {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hd-circle-btn {
  width: 25px;
  height: 25px;
  min-width: 25px;
  min-height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color, #fff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.hd-circle-btn:hover,
.hd-circle-btn.active-circle-btn {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.icon-lg {
  font-size: 20px;
}

.icon-middle {
  vertical-align: middle;
}

.notifications-bell {
  text-decoration: none;
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.5rem;
  padding: 2px 4px;
}

@media (max-width: 960px) {
  .top-nav.header-3col {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-left,
  .header-right {
    flex: initial;
  }

  .nav-actions.header-center {
    order: 3;
    width: 100%;
    flex: initial;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}
