@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800&family=Inria+Sans:wght@700&family=Kaushan+Script&family=Outfit:wght@400;500;600;700;800&family=Sansita:wght@700&display=swap');

:root {
  --brand-blue: #5a7ca5;
  --brand-navy: #1f3555;
  --accent: #c9a84b;
  --toggle-inactive-bg: #f2f4f6;
  --toggle-active-border: #8ebbf7;
  --btn-secondary-bg: #f2f4f7;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .phone-status-rail__notch {
    display: none;
  }

  .phone-status-rail {
    top: calc(10px + env(safe-area-inset-top));
    left: 1rem;
    right: 1rem;
    min-height: 2.3rem;
  }
}

.col-span-1 {
  grid-column: span 1;
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-3 {
  grid-column: span 3;
}

.glass-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  transition: all 0.2s;
}

.glass-input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.glass-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

.glass-file {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  color: white;
}

.glass-file::file-selector-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-right: 1rem;
  transition: background-color 0.2s;
}

.glass-file::file-selector-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.auth-shell input[type="text"],
.auth-shell input[type="password"],
.auth-shell input.pw-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  outline: none;
}

.auth-shell input[type="text"]:focus,
.auth-shell input[type="password"]:focus {
  box-shadow: 0 0 0 2px rgba(142, 187, 247, 0.15);
}

.auth-shell input::placeholder {
  color: rgba(31, 53, 85, 0.45);
}

.auth-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(142, 187, 247, 0.45);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.auth-card label,
.auth-label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #5a7ca5;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(142, 187, 247, 0.45);
  border-radius: 0.75rem;
  color: #1f3555;
  font-family: 'Inter', sans-serif;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
  border-color: #8ebbf7;
  box-shadow: 0 0 0 3px rgba(142, 187, 247, 0.18);
}

.auth-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: #5a7ca5;
  color: #ffffff;
  border: none;
  transition: all 0.2s;
}

.auth-submit:hover {
  background: #1f3555;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(90, 124, 165, 0.3);
}

.auth-secondary {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  background: #f2f4f7;
  color: #1f3555;
  border: 1px solid rgba(31, 53, 85, 0.12);
  text-align: center;
  transition: all 0.2s;
}

.auth-secondary:hover {
  background: #ffffff;
  border-color: rgba(31, 53, 85, 0.22);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.5s ease-out forwards;
}

.register-shell input[type="text"],
.register-shell input[type="email"],
.register-shell input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(142, 187, 247, 0.45);
  border-radius: 0.75rem;
  color: #1f3555;
  font-family: 'Inter', sans-serif;
}

.register-shell input[type="text"]:focus,
.register-shell input[type="email"]:focus,
.register-shell input[type="password"]:focus {
  border-color: #8ebbf7;
  box-shadow: 0 0 0 3px rgba(142, 187, 247, 0.18);
}

.edit-block-shell input[type="text"],
.edit-block-shell input[type="number"],
.edit-block-shell textarea,
.edit-block-shell input[type="url"],
.edit-block-shell input[type="email"],
.edit-block-shell input[type="datetime-local"],
.edit-block-shell input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  transition: all 0.2s;
}

.edit-block-shell input[type="text"]:focus,
.edit-block-shell input[type="number"]:focus,
.edit-block-shell textarea:focus,
.edit-block-shell input[type="url"]:focus,
.edit-block-shell input[type="email"]:focus,
.edit-block-shell input[type="datetime-local"]:focus,
.edit-block-shell input[type="tel"]:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* The event editor provides its own calendar button and opens the native picker. */
#dashboardEventStartsAt::-webkit-calendar-picker-indicator {
  display: none;
}

.edit-block-shell input[type="text"]::placeholder,
.edit-block-shell textarea::placeholder,
.edit-block-shell input[type="url"]::placeholder,
.edit-block-shell input[type="email"]::placeholder,
.edit-block-shell input[type="tel"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.edit-block-shell select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

.edit-block-shell input[type="file"] {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
}

.edit-block-shell input[type="file"]::file-selector-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-right: 1rem;
  transition: background-color 0.2s;
}

.edit-block-shell input[type="file"]::file-selector-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.page-home * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-home {
  min-height: 100vh;
  min-height: 100dvh;
  background: #0d0d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-home,
.page-home .phone {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-home::-webkit-scrollbar,
.page-home .phone::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.page-home::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(180, 140, 60, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(30, 30, 80, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.page-home::after {
  content: 'P';
  position: fixed;
  font-family: 'Sansita', sans-serif;
  font-size: 80vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.012);
  pointer-events: none;
  line-height: 1;
}

.page-home .phone {
  width: 390px;
  width: min(390px, 100%);
  height: 780px;
  height: min(780px, calc(100vh - 4rem));
  height: min(780px, calc(100dvh - 4rem));
  background: #13131f;
  border-radius: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 8px #0a0a14, 0 0 0 10px rgba(255, 255, 255, 0.04), 0 60px 120px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 3rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-home .phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0a0a14;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.page-home .phone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  border-radius: 0 0 2px 2px;
}

.page-home .logo-block {
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;
  text-align: center;
  animation: fadeUp 0.6s 0.3s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-home .logo-icon {
  width: 52px;
  height: 52px;
  background: rgba(142, 187, 247, 0.14);
  border: 1px solid rgba(142, 187, 247, 0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
}

.page-home .logo-icon svg {
  width: 26px;
  height: 26px;
}

.page-home .logo-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  gap: 0;
}

.page-home .logo-pol {
  font-family: 'Inria Sans', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.14em;
  color: #f5f0e8;
}

.page-home .logo-dot {
  font-family: 'Inria Sans', sans-serif;
  font-size: 2.4rem;
  color: var(--brand-blue);
  letter-spacing: 0;
  margin: 0 1px;
}

.page-home .logo-app {
  font-family: 'Kaushan Script', cursive;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
  padding-bottom: 4px;
}

.page-home .logo-sub {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.35);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  font-weight: 400;
}

.page-home .card {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(142, 187, 247, 0.45);
  border-radius: 20px;
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  animation: fadeUp 0.6s 0.5s ease forwards;
  opacity: 0;
}

.page-home .card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 2rem;
  width: 2.5rem;
  height: 2px;
  background: var(--toggle-active-border);
  border-radius: 2px;
}

.page-home .card-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-blue);
  text-align: center;
  margin-bottom: 0.4rem;
}

.page-home .home-title-prefix {
  font-family: 'Inria Sans', sans-serif;
  font-weight: 700;
}

.page-home .home-title-perfil {
  font-family: 'Kaushan Script', cursive;
  color: var(--brand-navy);
  font-weight: 400;
}

.page-home .card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--brand-navy);
  text-align: center;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-home .message {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  color: rgba(245, 240, 232, 0.8);
  font-size: 0.78rem;
  line-height: 1.35;
}

.page-home .message.error {
  border-color: rgba(255, 86, 86, 0.35);
  background: rgba(255, 86, 86, 0.08);
}

.page-home .message.success {
  border-color: rgba(46, 213, 115, 0.35);
  background: rgba(46, 213, 115, 0.08);
}

.page-home .card .message {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(31, 53, 85, 0.12);
  color: var(--brand-navy);
}

.page-home .card .message.error {
  color: #7a1f1f;
}

.page-home .card .message.success {
  color: #1f5a2f;
}

.page-home .toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  padding: 0;
}

.page-home .toggle-btn {
  border: none;
  background: var(--toggle-inactive-bg);
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-navy);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.page-home .toggle-btn.active {
  background: #ffffff;
  border: 2px solid var(--toggle-active-border);
}

.page-home .input-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.page-home .input-url {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(142, 187, 247, 0.65);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.page-home .input-url:focus-within {
  border-color: rgba(142, 187, 247, 1);
  box-shadow: 0 0 0 3px rgba(142, 187, 247, 0.14);
}

.page-home .input-prefix {
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  color: var(--brand-navy);
  font-weight: 800;
  border-right: 1px solid rgba(31, 53, 85, 0.08);
  white-space: nowrap;
  background: var(--btn-secondary-bg);
  letter-spacing: 0.02em;
}

.page-home .input-url input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--brand-navy);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-home .input-url input::placeholder {
  color: rgba(31, 53, 85, 0.45);
}

.page-home .input-url select {
  flex: 1;
  min-width: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231f3555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  border: none;
  outline: none;
  padding: 0.75rem 2.2rem 0.75rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--brand-navy);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-home .input-url select option {
  color: #1f3555;
  background: #ffffff;
}

@media (max-width: 360px) {
  .page-home .input-prefix {
    padding: 0.7rem 0.65rem;
    font-size: 0.72rem;
  }
  .page-home .input-url input {
    padding: 0.7rem 0.65rem;
    font-size: 0.82rem;
  }

  .page-home .input-url select {
    padding: 0.7rem 2rem 0.7rem 0.65rem;
    font-size: 0.82rem;
    background-position: right 0.65rem center;
  }

  .dashboard-grid-modern {
    gap: 0.65rem;
  }

  .hero-meta-card,
  .featured-link-card {
    border-radius: 1.2rem;
  }

  .app-status-chip {
    padding: 0.46rem 0.65rem;
    font-size: 0.69rem;
  }

  .hero-name {
    font-size: 1.33rem;
  }

  .hero-role {
    font-size: 1.2125rem;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  .public-profile-shell .block-title,
  .dashboard-block-title {
    font-size: 0.74rem;
  }

  .public-profile-shell .block-card > div:first-child {
    width: 2.3rem;
    height: 2.3rem;
  }

  .quick-actions-module-grid {
    gap: 0.58rem;
  }

  .blocks-preview-grid {
    gap: 0.7rem;
  }

  .blocks-preview-item__toolbar {
    inset: 0;
  }

  .blocks-preview-item__actions {
    gap: 0.42rem;
  }

  .blocks-preview-action {
    min-height: 2.55rem;
    padding: 0.62rem 0.92rem;
    font-size: 0.88rem;
  }
}

.pw-wrap {
  position: relative;
}

.pw-input {
  padding-right: 2.75rem !important;
}

.pw-toggle-btn {
  background: transparent;
  border: none;
  padding: 0 0.85rem;
  color: var(--brand-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.pw-toggle-btn:hover {
  color: var(--brand-navy);
}

.pw-toggle-btn:focus-visible {
  outline: 2px solid rgba(142, 187, 247, 0.85);
  outline-offset: 2px;
  border-radius: 8px;
}

.page-home .btn-main {
  width: 100%;
  background: var(--brand-blue);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}

.page-home .btn-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.4s;
}

.page-home .btn-main:hover {
  background: var(--brand-navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(90, 124, 165, 0.3);
}

.page-home .btn-main:hover::before {
  left: 140%;
}

.page-home .divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.page-home .divider::before,
.page-home .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(90, 124, 165, 0.25);
}

.page-home .divider span {
  font-size: 0.65rem;
  color: var(--brand-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-home .btn-login {
  width: 100%;
  background: var(--btn-secondary-bg);
  color: var(--brand-navy);
  border: 1px solid rgba(31, 53, 85, 0.12);
  border-radius: 10px;
  padding: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.page-home .btn-login:hover {
  border-color: rgba(31, 53, 85, 0.22);
  background: #ffffff;
}

.page-home .btn-directory {
  width: 100%;
  background: rgba(201, 168, 76, 0.08);
  color: rgba(245, 240, 232, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-home .btn-directory:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-1px);
}

.page-home .footer-note {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(245, 240, 232, 0.2);
  line-height: 1.6;
  margin-top: 1.5rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.7s ease forwards;
  opacity: 0;
}

.page-home .footer-note strong {
  color: rgba(201, 168, 76, 0.5);
  font-weight: 500;
}

.page-home .stats-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
  animation: fadeUp 0.6s 0.9s ease forwards;
  opacity: 0;
}

.page-home .stat {
  text-align: center;
}

.page-home .stat-num {
  font-family: 'Sansita', sans-serif;
  font-size: 1.3rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1;
}

.page-home .stat-lbl {
  font-size: 0.58rem;
  color: rgba(245, 240, 232, 0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.page-home .stat-sep {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.06);
  align-self: center;
}

@media (max-width: 420px) {
  .page-home .phone {
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }
  .page-home::after {
    display: none;
  }
  .page-home {
    padding: 0;
  }

  .hero-video-controls {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    gap: 0.34rem;
    padding: 0.46rem 0.5rem;
  }

  .hero-video-controls__time {
    min-width: 2.1rem;
    font-size: 0.64rem;
  }

  .hero-video-controls__toggle {
    width: 1.95rem;
    height: 1.95rem;
  }

  .hero-video-speed-btn {
    min-width: 2.55rem;
    padding: 0.34rem 0.46rem;
    font-size: 0.68rem;
  }

  .hero-media-gallery.has-multiple .hero-media-dots {
    top: 0.78rem;
    bottom: auto !important;
  }

  .hero-media-actions {
    bottom: 4.9rem;
    right: 0.85rem;
  }
}

.page-directory * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-directory {
  min-height: 100vh;
  background: #0d0d1a;
  font-family: 'Inter', sans-serif;
  padding: 1.2rem 1rem;
  position: relative;
  overflow-x: hidden;
  color: rgba(245, 240, 232, 0.9);
}

.public-profile-shell {
  font-family: 'Outfit', 'Inter', sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(73, 124, 184, 0.26), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(35, 102, 184, 0.2), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(8, 36, 71, 0.95), transparent 54%),
    linear-gradient(180deg, #071a31 0%, #081224 48%, #040b15 100%);
}

.public-profile-shell::before,
.dashboard-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(98, 153, 222, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
  z-index: 0;
}

.public-profile-shell::after,
.dashboard-shell::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 78%);
  opacity: 0.22;
  z-index: 0;
}

.dashboard-shell {
  font-family: 'Outfit', 'Inter', sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(73, 124, 184, 0.26), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(35, 102, 184, 0.2), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(8, 36, 71, 0.95), transparent 54%),
    linear-gradient(180deg, #071a31 0%, #081224 48%, #040b15 100%);
}

.public-profile-shell,
.dashboard-shell {
  --shell-primary: #67a7ff;
  --shell-primary-hover: #3b73df;
  --shell-primary-light: #dbeafe;
  --shell-secondary: #8ebfff;
  --shell-surface: #ffffff;
  --shell-background: #071426;
  --shell-text: #f3f7ff;
  --shell-muted: #c4d8f5;
}

body.theme-light .public-profile-shell,
body.theme-light .dashboard-shell {
  --shell-primary: #e56056 !important;
  --shell-primary-hover: #cc463c !important;
  --shell-primary-light: #ffd8d2 !important;
  --shell-secondary: #1f3a6e !important;
  --shell-surface: #ffffff !important;
  --shell-background: #ffffff !important;
  --shell-text: #12284f !important;
  --shell-muted: #6b778c !important;
  color-scheme: light;
}

body.theme-light.public-profile-shell,
body.theme-light.dashboard-shell,
body.theme-light .public-profile-shell,
body.theme-light .dashboard-shell {
  background:
    radial-gradient(circle at 20% 10%, rgba(80, 120, 180, 0.22), transparent 32%),
    radial-gradient(circle at 82% 90%, rgba(160, 90, 160, 0.18), transparent 36%),
    linear-gradient(180deg, #0b1f47 0%, #091a3c 48%, #071632 100%) !important;
}

body.theme-light .public-profile-shell .profile-phone > .absolute.inset-0,
body.theme-light .dashboard-shell .dashboard-phone > .absolute.inset-0,
body.theme-light .app-shell > div.absolute.inset-0 {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 52%, #ffffff 100%) !important;
  background-image: linear-gradient(180deg, #ffffff 0%, #fbfcff 52%, #ffffff 100%) !important;
}

.edit-block-shell {
  --edit-accent: var(--shell-primary, #67a7ff);
  background:
    radial-gradient(circle at 50% 18%, rgba(79, 134, 229, 0.2), transparent 38%),
    rgba(3, 12, 25, 0.88);
  backdrop-filter: blur(18px) saturate(118%);
}

.edit-block-dialog {
  position: relative;
  padding: 1.35rem;
  border: 1px solid rgba(171, 210, 255, 0.16);
  border-radius: 1.5rem;
  color: #f4f8ff;
  background:
    linear-gradient(145deg, rgba(20, 43, 72, 0.96), rgba(8, 24, 45, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.edit-block-dialog::before {
  content: "";
  position: absolute;
  inset: 0.55rem 1.4rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 187, 247, 0.36), transparent);
}

.edit-block-header,
.edit-block-heading,
.edit-block-actions {
  display: flex;
  align-items: center;
}

.edit-block-header {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.edit-block-heading { gap: 0.8rem; min-width: 0; }

.edit-block-heading__icon {
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(171, 210, 255, 0.2);
  border-radius: 0.9rem;
  color: #dcecff;
  background: linear-gradient(145deg, rgba(116, 173, 255, 0.24), rgba(116, 173, 255, 0.08));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.edit-block-eyebrow {
  margin: 0 0 0.16rem;
  color: rgba(181, 211, 250, 0.68);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.edit-block-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.edit-block-close {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(235, 243, 255, 0.62);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.edit-block-close:hover { color: #fff; background: rgba(255, 255, 255, 0.11); transform: rotate(4deg); }

.edit-block-field {
  padding: 0.9rem;
  border: 1px solid rgba(171, 210, 255, 0.11);
  border-radius: 1rem;
  background: rgba(3, 13, 28, 0.28);
}

.edit-block-field > label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(240, 246, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
}

.edit-block-hint {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.55rem 0 0;
  color: rgba(181, 211, 250, 0.58);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.35;
}

.edit-block-actions { gap: 0.7rem; }

.edit-block-button,
.edit-block-actions > a,
.edit-block-actions > button {
  flex: 1;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.edit-block-button--secondary,
.edit-block-actions > a {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 249, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
}

.edit-block-button--primary,
.edit-block-actions > button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: linear-gradient(135deg, var(--edit-accent), var(--shell-primary-hover, #3b73df));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--edit-accent) 24%, transparent);
}

.edit-block-actions > *:hover { transform: translateY(-1px); }
.edit-block-actions > a:hover { background: rgba(255, 255, 255, 0.11); }
.edit-block-actions > button:hover { box-shadow: 0 16px 32px color-mix(in srgb, var(--edit-accent) 32%, transparent); }

@media (max-width: 420px) {
  .edit-block-dialog { padding: 1.05rem; border-radius: 1.25rem; }
  .edit-block-heading__icon { width: 2.35rem; height: 2.35rem; }
  .edit-block-actions { flex-direction: column-reverse; }
  .edit-block-actions > * { width: 100%; flex: auto; }
}

body.theme-light .public-profile-shell .profile-phone,
body.theme-light .dashboard-shell .dashboard-phone {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 52%, #ffffff 100%) !important;
  background-image: linear-gradient(180deg, #ffffff 0%, #fbfcff 52%, #ffffff 100%) !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
  box-shadow:
    0 0 0 8px #ffffff,
    0 0 0 11px rgba(18, 40, 79, 0.08),
    0 42px 96px rgba(4, 10, 24, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.theme-light .app-brand {
  color: #12284f !important;
  text-shadow: none !important;
  background: #ffffff !important;
  border: 1px solid rgba(18, 40, 79, 0.08) !important;
  border-radius: 999px !important;
  padding: 0.3rem 0.7rem !important;
  box-shadow: 0 8px 22px rgba(18, 40, 79, 0.06) !important;
}

body.theme-light .app-brand-script,
body.theme-light .app-brand--status .app-brand-script {
  color: #d94a40 !important;
}

body.theme-light .public-profile-shell .profile-subtitle,
body.theme-light .dashboard-shell .profile-subtitle,
body.theme-light .hero-role {
  color: #4a5770 !important;
}

body.theme-light .hero-name {
  color: #12284f !important;
  text-shadow: none !important;
}

body.theme-light .hero-photo-card {
  background:
    linear-gradient(180deg, rgba(242, 244, 249, 0.96), rgba(232, 236, 244, 0.98)),
    #eef1f7 !important;
  background-image:
    linear-gradient(180deg, rgba(242, 244, 249, 0.96), rgba(232, 236, 244, 0.98)) !important;
  background-color: #eef1f7 !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
  box-shadow:
    0 0 0 1px rgba(229, 96, 86, 0.12),
    0 26px 56px rgba(229, 96, 86, 0.14),
    0 26px 56px rgba(18, 40, 79, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.theme-light .hero-photo-card::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(229, 96, 86, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(255, 228, 226, 0.36), transparent 72%) !important;
  background-image:
    radial-gradient(circle at 50% 18%, rgba(229, 96, 86, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(255, 228, 226, 0.36), transparent 72%) !important;
}

body.theme-light .hero-photo-card::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 236, 234, 0.04) 36%, rgba(229, 96, 86, 0.12) 100%),
    radial-gradient(circle at 50% 12%, rgba(229, 96, 86, 0.18), transparent 36%) !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 236, 234, 0.04) 36%, rgba(229, 96, 86, 0.12) 100%),
    radial-gradient(circle at 50% 12%, rgba(229, 96, 86, 0.18), transparent 36%) !important;
  mix-blend-mode: normal !important;
}

body.theme-light .hero-photo-card > .absolute.inset-0,
body.theme-light .hero-photo-card > .absolute.inset-0 > div {
  background: #eef1f7 !important;
  background-image: none !important;
  background-color: #eef1f7 !important;
}

body.theme-light .hero-photo-card > .absolute.inset-0 > div::after,
body.theme-light .hero-photo-card > .absolute.inset-0 > div::before {
  background: transparent !important;
  background-image: none !important;
}

body.theme-light .hero-photo-card img:not(.hero-media-blur-bg),
body.theme-light .hero-photo-card video {
  filter: saturate(1) contrast(1.01) brightness(1) !important;
  border-color: rgba(229, 96, 86, 0.14) !important;
  box-shadow: inset 0 0 0 1px rgba(229, 96, 86, 0.14) !important;
}

body.theme-light .hero-photo-fallback {
  background: #eef1f7 !important;
}

body.theme-light .hero-fallback-bg {
  background: #ffffff !important;
}

body.theme-light .hero-photo-fallback i {
  color: rgba(18, 40, 79, 0.6) !important;
}

body.theme-light .hero-media-dot:not(.is-active)::before {
  background: rgba(18, 40, 79, 0.22) !important;
}

body.theme-light .hero-media-dot.is-active::before {
  background: #e56056 !important;
  box-shadow: 0 0 14px rgba(229, 96, 86, 0.45) !important;
}

body.theme-light .hero-media-dot:focus-visible {
  box-shadow: 0 0 0 2px rgba(229, 96, 86, 0.36) !important;
}

body.theme-light .app-status-chip {
  background: #ffffff !important;
  color: #4a5770 !important;
  border: 1px solid rgba(229, 96, 86, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 24px rgba(18, 40, 79, 0.06) !important;
}

body.theme-light .app-status-chip::before {
  display: inline-flex !important;
  flex-shrink: 0;
  width: 0.5rem !important;
  height: 0.5rem !important;
  border-radius: 999px !important;
  background: #e56056 !important;
  box-shadow:
    0 0 14px rgba(229, 96, 86, 0.55),
    0 0 0 3px rgba(229, 96, 86, 0.12) !important;
  content: '' !important;
}

body.theme-light .app-theme-toggle {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(18, 40, 79, 0.1) !important;
  color: #d94a40 !important;
  box-shadow: 0 8px 22px rgba(18, 40, 79, 0.06) !important;
  backdrop-filter: none !important;
  text-shadow: none !important;
}

body.theme-light .app-theme-toggle:hover {
  background: #ffe4e1 !important;
  background-color: #ffe4e1 !important;
  border-color: rgba(229, 96, 86, 0.24) !important;
  color: #cc463c !important;
}

body.theme-light .featured-link-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #12284f !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 20px 40px rgba(18, 40, 79, 0.06) !important;
}

body.theme-light .featured-link-card:hover {
  border-color: rgba(229, 96, 86, 0.32) !important;
  background: #fffaf9 !important;
}

body.theme-light .featured-link-title {
  color: #12284f !important;
}

body.theme-light .featured-link-subtitle {
  color: rgba(18, 40, 79, 0.72) !important;
}

body.theme-light .featured-link-arrow,
body.theme-light .featured-link-actions {
  color: rgba(18, 40, 79, 0.42) !important;
}

body.theme-light .featured-link-icon {
  --feature-icon-base: #ffe4e1 !important;
  --feature-icon-glow: rgba(229, 96, 86, 0.14) !important;
  --feature-icon-shadow: rgba(18, 40, 79, 0.06) !important;
  --feature-icon-border: rgba(229, 96, 86, 0.1) !important;
  background: #ffe4e1 !important;
  background-color: #ffe4e1 !important;
  background-image: none !important;
  border-color: rgba(229, 96, 86, 0.12) !important;
  box-shadow: 0 10px 22px rgba(229, 96, 86, 0.1) !important;
}

body.theme-light .featured-link-icon svg stop[offset="0"],
body.theme-light .featured-link-icon svg stop[offset="1"],
body.theme-light .featured-link-icon-glyph stop[offset="0"],
body.theme-light .featured-link-icon-glyph stop[offset="1"] {
  stop-color: #e56056 !important;
}

body.theme-light .featured-link-icon svg [fill],
body.theme-light .featured-link-icon-glyph [fill],
body.theme-light .featured-link-icon svg path,
body.theme-light .featured-link-icon svg rect,
body.theme-light .featured-link-icon svg g {
  fill: #e56056 !important;
}

/* ====== SCOPE: solo dentro de modales (Mis plataformas / Compartir) → anular modo claro para igualar dark mode ====== */

body.theme-light #publicQuickActions .featured-link-card,
body.theme-light #shareModal .featured-link-card,
body.theme-light #publicQuickActions .block-card,
body.theme-light #shareModal .block-card {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
  border-color: inherit !important;
  box-shadow: none !important;
}

body.theme-light #publicQuickActions .featured-link-card:hover,
body.theme-light #shareModal .featured-link-card:hover {
  background: transparent !important;
  background-color: transparent !important;
  border-color: inherit !important;
}

body.theme-light #publicQuickActions .featured-link-title,
body.theme-light #shareModal .featured-link-title,
body.theme-light #publicQuickActions .block-title,
body.theme-light #shareModal .block-title {
  color: inherit !important;
}

body.theme-light #publicQuickActions .featured-link-subtitle,
body.theme-light #shareModal .featured-link-subtitle {
  color: inherit !important;
}

body.theme-light #publicQuickActions .featured-link-arrow,
body.theme-light #shareModal .featured-link-arrow,
body.theme-light #publicQuickActions .featured-link-actions,
body.theme-light #shareModal .featured-link-actions {
  color: inherit !important;
}

body.theme-light #publicQuickActions .featured-link-icon,
body.theme-light #shareModal .featured-link-icon {
  --feature-icon-base: initial !important;
  --feature-icon-glow: initial !important;
  --feature-icon-shadow: initial !important;
  --feature-icon-border: initial !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: inherit !important;
  box-shadow: none !important;
}

body.theme-light #publicQuickActions .featured-link-icon svg stop[offset="0"],
body.theme-light #shareModal .featured-link-icon svg stop[offset="0"],
body.theme-light #publicQuickActions .featured-link-icon svg stop[offset="1"],
body.theme-light #shareModal .featured-link-icon svg stop[offset="1"],
body.theme-light #publicQuickActions .featured-link-icon-glyph stop[offset="0"],
body.theme-light #shareModal .featured-link-icon-glyph stop[offset="0"],
body.theme-light #publicQuickActions .featured-link-icon-glyph stop[offset="1"],
body.theme-light #shareModal .featured-link-icon-glyph stop[offset="1"] {
  stop-color: inherit !important;
}

body.theme-light #publicQuickActions .featured-link-icon svg [fill],
body.theme-light #shareModal .featured-link-icon svg [fill],
body.theme-light #publicQuickActions .featured-link-icon-glyph [fill],
body.theme-light #shareModal .featured-link-icon-glyph [fill],
body.theme-light #publicQuickActions .featured-link-icon svg path,
body.theme-light #shareModal .featured-link-icon svg path,
body.theme-light #publicQuickActions .featured-link-icon svg rect,
body.theme-light #shareModal .featured-link-icon svg rect,
body.theme-light #publicQuickActions .featured-link-icon svg g,
body.theme-light #shareModal .featured-link-icon svg g {
  fill: inherit !important;
}

body.theme-light #publicQuickActions .block-card > div:first-child,
body.theme-light #shareModal .block-card > div:first-child {
  color: inherit !important;
}

body.theme-light #publicQuickActions .block-card img,
body.theme-light #shareModal .block-card img,
body.theme-light #publicQuickActions .block-card video,
body.theme-light #shareModal .block-card video {
  filter: none !important;
}

/* ============== FIX ABSOLUTO: #publicQuickActions (Mis plataformas) = IGUAL EN CLARO Y OSCURO ==============
 * Sobreescribe TODO lo que haya en body.theme-light sobre este sheet.
 * Valores PIXEL-PERFECT del base modo oscuro L3041-3278, añadido !important.
 * NOTA CRÍTICA: NO poner background-color:transparent ni background-image:none DESPUÉS de `background:<gradient/color> !important;`
 *   porque sobreescriben y destruyen el gradiente → hoja transparente = fondo blanco modo claro.
 */
body.theme-light #publicQuickActions.quick-actions-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: none !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 1rem !important;
  background: color-mix(in srgb, #0b1f47 54%, rgba(1, 6, 12, 0.58) 46%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 55 !important;
  color: initial !important;
}

body.theme-light #publicQuickActions.quick-actions-overlay.is-open {
  display: flex !important;
}

body.theme-light #publicQuickActions > .quick-actions-sheet {
  width: 100% !important;
  border-radius: 1.38rem !important;
  border: 1px solid color-mix(in srgb, #3f71c7 12%, transparent) !important;
  border-color: color-mix(in srgb, #3f71c7 12%, transparent) !important;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, #0b1f47 62%, rgba(12, 29, 50, 0.98) 38%),
      color-mix(in srgb, #0b1f47 82%, rgba(6, 17, 32, 0.99) 18%)
    ) !important;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.42) !important;
  padding: 0.8rem !important;
  color: initial !important;
}

body.theme-light #publicQuickActions > .quick-actions-sheet::-webkit-scrollbar,
body.theme-light #publicQuickActions .quick-actions-sheet::-webkit-scrollbar {
  width: 6px !important;
}

body.theme-light #publicQuickActions > .quick-actions-sheet::-webkit-scrollbar-track,
body.theme-light #publicQuickActions .quick-actions-sheet::-webkit-scrollbar-track {
  background: transparent !important;
}

body.theme-light #publicQuickActions > .quick-actions-sheet::-webkit-scrollbar-thumb,
body.theme-light #publicQuickActions .quick-actions-sheet::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
}

body.theme-light #publicQuickActions .quick-actions-handle {
  width: 3rem !important;
  height: 0.28rem !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #68a7ff 26%, transparent) !important;
  opacity: 1 !important;
  margin: 0 auto 0.75rem !important;
  box-shadow: none !important;
  border: none !important;
}

body.theme-light #publicQuickActions .quick-actions-title {
  color: color-mix(in srgb, #97a9c6 72%, transparent) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  font-weight: 700 !important;
}

body.theme-light #publicQuickActions .quick-actions-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.8rem !important;
  margin-bottom: 0.65rem !important;
}

body.theme-light #publicQuickActions .quick-actions-list {
  display: grid !important;
  gap: 0.55rem !important;
}

body.theme-light #publicQuickActions .quick-actions-section {
  margin-top: 0.78rem !important;
}

body.theme-light #publicQuickActions .quick-actions-subsection {
  margin-top: 0.9rem !important;
  padding-top: 0.8rem !important;
  border-top: 1px solid color-mix(in srgb, #3f71c7 10%, transparent) !important;
  border-top-color: color-mix(in srgb, #3f71c7 10%, transparent) !important;
}

body.theme-light #publicQuickActions .quick-actions-subtitle {
  margin: 0 0 0.7rem !important;
  color: color-mix(in srgb, #97a9c6 72%, transparent) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

body.theme-light #publicQuickActions .quick-action-item {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.9rem !important;
  text-align: left !important;
  padding: 0.88rem 0.96rem !important;
  border-radius: 1rem !important;
  border: 1px solid color-mix(in srgb, #3f71c7 10%, transparent) !important;
  border-color: color-mix(in srgb, #3f71c7 10%, transparent) !important;
  background: color-mix(in srgb, #e56056 4%, transparent) !important;
  color: color-mix(in srgb, #e3edff 94%, white 6%) !important;
  color-scheme: dark !important;
  font-size: 0.91rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.theme-light #publicQuickActions .quick-action-item:hover,
body.theme-light #publicQuickActions button.quick-action-item:hover,
body.theme-light #publicQuickActions a.quick-action-item:hover {
  background: color-mix(in srgb, #3f71c7 8%, transparent) !important;
  border-color: color-mix(in srgb, #3f71c7 20%, transparent) !important;
}

body.theme-light #publicQuickActions .quick-action-lead {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  color: inherit !important;
}

body.theme-light #publicQuickActions .quick-action-item span,
body.theme-light #publicQuickActions .quick-action-item * {
  color: inherit !important;
}

body.theme-light #publicQuickActions .quick-action-item > i.fa-chevron-right,
body.theme-light #publicQuickActions .quick-action-item > .fas.fa-chevron-right,
body.theme-light #publicQuickActions .quick-action-item [class*="text-white/"] {
  color: rgba(255, 255, 255, 0.42) !important;
}

/* ============== Badges plataformas semánticos (IGUAL modo oscuro L3190-L3243) ============== */
body.theme-light #publicQuickActions .quick-action-badge {
  width: 1.95rem !important;
  height: 1.95rem !important;
  border-radius: 0.72rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: color-mix(in srgb, #ff9d95 84%, white 16%) !important;
  background: color-mix(in srgb, #e56056 14%, transparent) !important;
  border: 1px solid color-mix(in srgb, #e56056 12%, transparent) !important;
  border-color: color-mix(in srgb, #e56056 12%, transparent) !important;
  box-shadow: none !important;
}

body.theme-light #publicQuickActions .quick-action-badge--link {
  color: #9bc5ff !important;
  background: rgba(77, 148, 255, 0.16) !important;
  border-color: rgba(171, 210, 255, 0.14) !important;
}

body.theme-light #publicQuickActions .quick-action-badge--email {
  color: #ffd8b0 !important;
  background: rgba(255, 146, 76, 0.18) !important;
  border-color: rgba(255, 182, 120, 0.16) !important;
}

body.theme-light #publicQuickActions .quick-action-badge--whatsapp {
  color: #dcffe8 !important;
  background: rgba(37, 211, 102, 0.24) !important;
  border-color: rgba(117, 255, 167, 0.16) !important;
}

body.theme-light #publicQuickActions .quick-action-badge--telegram {
  color: #e3f6ff !important;
  background: rgba(36, 162, 255, 0.24) !important;
  border-color: rgba(137, 213, 255, 0.16) !important;
}

body.theme-light #publicQuickActions .quick-action-badge--facebook {
  color: #dbe7ff !important;
  background: rgba(66, 103, 178, 0.26) !important;
  border-color: rgba(112, 152, 224, 0.16) !important;
}

body.theme-light #publicQuickActions .quick-action-badge--twitter {
  color: #eaf0ff !important;
  background: rgba(15, 20, 25, 0.3) !important;
  border-color: rgba(120, 138, 160, 0.16) !important;
}

body.theme-light #publicQuickActions .quick-action-badge--instagram {
  color: #ffe3ef !important;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.26), rgba(253, 29, 29, 0.22), rgba(252, 175, 69, 0.22)) !important;
  border-color: rgba(234, 130, 140, 0.16) !important;
  box-shadow: none !important;
}

body.theme-light #publicQuickActions .quick-action-badge--tiktok {
  color: #eafffe !important;
  background: rgba(0, 0, 0, 0.34) !important;
  border-color: rgba(254, 44, 85, 0.22) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 0, 80, 0.35), inset 0 0 0 1px rgba(0, 242, 234, 0.25) !important;
}

body.theme-light #publicQuickActions .quick-action-badge--preview {
  color: #efe7ff !important;
  background: rgba(144, 102, 255, 0.22) !important;
  border-color: rgba(193, 173, 255, 0.18) !important;
}

body.theme-light #publicQuickActions .quick-actions-module-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.68rem !important;
}

body.theme-light #publicQuickActions .quick-actions-module-grid .public-block-slot[data-span="2"] {
  grid-column: span 2 !important;
}

body.theme-light #publicQuickActions .quick-actions-module-grid .block-card {
  min-height: 6.2rem !important;
}

/* ============== BLOCK CARDS / FEATURED LINKS DENTRO DEL SHEET → GLASS OSCURO, NUNCA BLANCO ============== */
body.theme-light #publicQuickActions .block-card,
body.theme-light #publicQuickActions .featured-link-card {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, #0b1f47 62%, rgba(12, 29, 50, 0.96) 38%),
      color-mix(in srgb, #0b1f47 82%, rgba(6, 17, 32, 0.98) 18%)
    ) !important;
  color: #eaf2ff !important;
  color-scheme: dark !important;
  border: 1px solid color-mix(in srgb, #3f71c7 10%, transparent) !important;
  border-color: color-mix(in srgb, #3f71c7 10%, transparent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.22) !important;
}

body.theme-light #publicQuickActions .block-card:hover,
body.theme-light #publicQuickActions .featured-link-card:hover {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, #0b1f47 66%, rgba(16, 38, 66, 0.98) 34%),
      color-mix(in srgb, #0b1f47 86%, rgba(6, 17, 32, 0.99) 14%)
    ) !important;
  border-color: color-mix(in srgb, #3f71c7 22%, transparent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 48px rgba(0, 0, 0, 0.28) !important;
}

body.theme-light #publicQuickActions .block-title,
body.theme-light #publicQuickActions .featured-link-title {
  color: #ffffff !important;
}

body.theme-light #publicQuickActions .block-card > div:first-child,
body.theme-light #publicQuickActions .featured-link-subtitle {
  color: rgba(235, 243, 255, 0.68) !important;
}

body.theme-light #publicQuickActions .block-card > div.w-8.h-8.bg-white,
body.theme-light #publicQuickActions .block > div.w-8.h-8.bg-white {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: transparent !important;
  border: none !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

body.theme-light #publicQuickActions .block-card > div.w-8.h-8.bg-white i,
body.theme-light #publicQuickActions .block > div.w-8.h-8.bg-white i,
body.theme-light #publicQuickActions .block-card > div.w-8.h-8.bg-white svg,
body.theme-light #publicQuickActions .block > div.w-8.h-8.bg-white svg {
  color: #000000 !important;
  fill: #000000 !important;
}

body.theme-light #publicQuickActions .featured-link-arrow,
body.theme-light #publicQuickActions .featured-link-actions {
  color: rgba(255, 255, 255, 0.42) !important;
}

body.theme-light #publicQuickActions .featured-link-icon {
  --feature-icon-base: rgba(255, 255, 255, 0.04) !important;
  --feature-icon-glow: rgba(171, 210, 255, 0.22) !important;
  --feature-icon-shadow: rgba(0, 0, 0, 0.24) !important;
  --feature-icon-border: rgba(171, 210, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(171, 210, 255, 0.12) !important;
  border-color: rgba(171, 210, 255, 0.12) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2) !important;
  color: #d4e3ff !important;
}

body.theme-light #publicQuickActions .featured-link-icon svg stop[offset="0"],
body.theme-light #publicQuickActions .featured-link-icon svg stop[offset="1"],
body.theme-light #publicQuickActions .featured-link-icon-glyph stop[offset="0"],
body.theme-light #publicQuickActions .featured-link-icon-glyph stop[offset="1"] {
  stop-color: #d4e3ff !important;
}

body.theme-light #publicQuickActions .featured-link-icon svg [fill],
body.theme-light #publicQuickActions .featured-link-icon-glyph [fill],
body.theme-light #publicQuickActions .featured-link-icon svg path,
body.theme-light #publicQuickActions .featured-link-icon svg rect,
body.theme-light #publicQuickActions .featured-link-icon svg g {
  fill: #d4e3ff !important;
}

body.theme-light #publicQuickActions .block-card img,
body.theme-light #publicQuickActions .featured-link-card img,
body.theme-light #publicQuickActions .block-card video,
body.theme-light #publicQuickActions .featured-link-card video {
  filter: saturate(1) contrast(1.02) brightness(0.98) !important;
}

/* ============== Botones editar bloque / ver detalle DENTRO del sheet ============== */
body.theme-light #publicQuickActions .blocks-preview-edit-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(171, 210, 255, 0.16) !important;
  background: rgba(116, 173, 255, 0.1) !important;
  background-color: rgba(116, 173, 255, 0.1) !important;
  background-image: none !important;
  color: rgba(235, 243, 255, 0.82) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
}

body.theme-light #publicQuickActions .blocks-preview-edit-btn:hover {
  background: rgba(116, 173, 255, 0.18) !important;
  border-color: rgba(171, 210, 255, 0.28) !important;
  color: rgba(235, 243, 255, 0.94) !important;
}

body.theme-light #publicQuickActions .blocks-preview-edit-btn.is-active {
  background: rgba(116, 173, 255, 0.28) !important;
  border-color: rgba(171, 210, 255, 0.45) !important;
  color: #ffffff !important;
}

body.theme-light #publicQuickActions .blocks-preview-edit-btn i {
  font-size: 0.7rem !important;
  color: inherit !important;
}

body.theme-light #publicQuickActions .blocks-preview-copy {
  margin: -0.15rem 0 0.45rem !important;
  color: rgba(235, 243, 255, 0.72) !important;
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
}

body.theme-light #publicQuickActions .blocks-preview-helper {
  margin: 0.18rem 0 0 !important;
  color: rgba(235, 243, 255, 0.58) !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

body.theme-light #publicQuickActions .blocks-preview-stage {
  margin-top: 0.7rem !important;
  padding: 0.82rem !important;
  border-radius: 1.28rem !important;
  border: 1px solid rgba(171, 210, 255, 0.1) !important;
  border-color: rgba(171, 210, 255, 0.1) !important;
  background:
    linear-gradient(180deg, rgba(7, 19, 34, 0.96), rgba(6, 16, 30, 0.98)),
    rgba(255, 255, 255, 0.03) !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.2) !important;
}

body.theme-light #publicQuickActions .blocks-preview-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.88rem !important;
}

body.theme-light #publicQuickActions .blocks-preview-item[data-span="2"] {
  grid-column: span 2 !important;
}

/* END FIX ABSOLUTO #publicQuickActions (Mis plataformas) */

/* ============== FIX ABSOLUTO #blocksPreviewModal (Mis plataformas DASHBOARD) = IGUAL EN CLARO Y OSCURO ==============
 * Selectores reales según dashboard.html:
 *   #blocksPreviewModal.share-fullscreen-modal.blocks-preview-fullscreen
 *     └─.share-fullscreen-inner.blocks-preview-inner
 *         ├─.share-fullscreen-topbar.blocks-preview-topbar
 *         │   ├─p.share-fullscreen-title
 *         │   └─.blocks-preview-topbar-actions
 *         └─.share-fullscreen-body.blocks-preview-body
 *             ├─.quick-actions-handle.blocks-preview-handle
 *             └─.quick-actions-section.blocks-preview-section
 *                 └─.blocks-preview-stage > .blocks-preview-grid
 */
body.theme-light #blocksPreviewModal {
  --shell-primary: #67a7ff !important;
  --shell-primary-hover: #3b73df !important;
  --shell-primary-light: #dbeafe !important;
  --shell-secondary: #8ebfff !important;
  --shell-surface: #0d2340 !important;
  --shell-surface-alt: #122d4e !important;
  --shell-background: #071426 !important;
  --shell-text: #f3f7ff !important;
  --shell-muted: #c4d8f5 !important;
  color-scheme: dark !important;
}
body.theme-light #blocksPreviewModal.share-fullscreen-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999 !important;
  background: rgba(10, 16, 34, 0.88) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transition: opacity 240ms ease, visibility 240ms ease !important;
  color: initial !important;
}

body.theme-light #blocksPreviewModal.share-fullscreen-modal.is-open,
body.theme-light #blocksPreviewModal.share-fullscreen-modal:not(.hidden) {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.theme-light #blocksPreviewModal .share-fullscreen-inner.blocks-preview-inner {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 18px 16px 20px !important;
  gap: 10px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: initial !important;
}

body.theme-light #blocksPreviewModal .share-fullscreen-topbar.blocks-preview-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 2px 4px !important;
  flex: 0 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: initial !important;
}

body.theme-light #blocksPreviewModal .share-fullscreen-title {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  background: transparent !important;
  text-shadow: none !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.theme-light #blocksPreviewModal .share-fullscreen-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  background-image: none !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 160ms ease, transform 160ms ease !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.theme-light #blocksPreviewModal .share-fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  background-image: none !important;
}
body.theme-light #blocksPreviewModal .share-fullscreen-close:active { transform: scale(0.96) !important; }
body.theme-light #blocksPreviewModal .share-fullscreen-close i { color: inherit !important; font-size: inherit !important; }

body.theme-light #blocksPreviewModal .share-fullscreen-body.blocks-preview-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: initial !important;
}
body.theme-light #blocksPreviewModal .share-fullscreen-body.blocks-preview-body::-webkit-scrollbar {
  width: 6px !important;
}
body.theme-light #blocksPreviewModal .share-fullscreen-body.blocks-preview-body::-webkit-scrollbar-track {
  background: transparent !important;
}
body.theme-light #blocksPreviewModal .share-fullscreen-body.blocks-preview-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
}

body.theme-light #blocksPreviewModal .quick-actions-handle.blocks-preview-handle {
  width: 3rem !important;
  height: 0.28rem !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #68a7ff 26%, transparent) !important;
  background-color: color-mix(in srgb, #68a7ff 26%, transparent) !important;
  background-image: none !important;
  opacity: 1 !important;
  margin: 0 auto 0.75rem !important;
  box-shadow: none !important;
  border: none !important;
}

body.theme-light #blocksPreviewModal .quick-actions-title {
  color: color-mix(in srgb, #97a9c6 72%, transparent) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  font-weight: 700 !important;
}

body.theme-light #blocksPreviewModal .quick-actions-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.8rem !important;
  margin-bottom: 0.65rem !important;
}

body.theme-light #blocksPreviewModal .quick-actions-section.blocks-preview-section {
  margin-top: 0.78rem !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Botón Editar / Mis plataformas dentro sheet */
body.theme-light #blocksPreviewModal .blocks-preview-edit-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(171, 210, 255, 0.16) !important;
  background: rgba(116, 173, 255, 0.1) !important;
  background-color: rgba(116, 173, 255, 0.1) !important;
  background-image: none !important;
  color: rgba(235, 243, 255, 0.82) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-edit-btn:hover {
  background: rgba(116, 173, 255, 0.18) !important;
  background-color: rgba(116, 173, 255, 0.18) !important;
  background-image: none !important;
  border-color: rgba(171, 210, 255, 0.28) !important;
  color: rgba(235, 243, 255, 0.94) !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-edit-btn.is-active {
  background: rgba(116, 173, 255, 0.28) !important;
  background-color: rgba(116, 173, 255, 0.28) !important;
  background-image: none !important;
  border-color: rgba(171, 210, 255, 0.45) !important;
  color: #ffffff !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-edit-btn i {
  font-size: 0.7rem !important;
  color: inherit !important;
  background: transparent !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-copy {
  margin: -0.15rem 0 0.45rem !important;
  color: rgba(235, 243, 255, 0.72) !important;
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-helper {
  margin: 0.18rem 0 0 !important;
  color: rgba(235, 243, 255, 0.58) !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-stage {
  margin-top: 0.7rem !important;
  padding: 0.82rem !important;
  border-radius: 1.28rem !important;
  border: 1px solid rgba(171, 210, 255, 0.1) !important;
  border-color: rgba(171, 210, 255, 0.1) !important;
  background:
    linear-gradient(180deg, rgba(7, 19, 34, 0.96), rgba(6, 16, 30, 0.98)),
    rgba(255, 255, 255, 0.03) !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.2) !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-stage.accent-top::before {
  display: none !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.88rem !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-item[data-span="2"] {
  grid-column: span 2 !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-item__toolbar,
body.theme-light #blocksPreviewModal .blocks-preview-drag,
body.theme-light #blocksPreviewModal .blocks-preview-lock-badge,
body.theme-light #blocksPreviewModal .blocks-preview-item__actions,
body.theme-light #blocksPreviewModal .blocks-preview-action,
body.theme-light #blocksPreviewModal .blocks-preview-action--edit,
body.theme-light #blocksPreviewModal .blocks-preview-action--delete,
body.theme-light #blocksPreviewModal .blocks-preview-add-card__icon {
  color: rgba(235, 243, 255, 0.82) !important;
  border-color: rgba(171, 210, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  background-image: none !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-action--edit:hover {
  color: #ffffff !important;
  background: rgba(116, 173, 255, 0.2) !important;
  background-color: rgba(116, 173, 255, 0.2) !important;
  background-image: none !important;
  border-color: rgba(171, 210, 255, 0.28) !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-action--delete:hover {
  color: #ffffff !important;
  background: rgba(229, 96, 86, 0.2) !important;
  background-color: rgba(229, 96, 86, 0.2) !important;
  background-image: none !important;
  border-color: rgba(255, 140, 130, 0.28) !important;
}

body.theme-light #blocksPreviewModal .block-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, #071426 64%, rgba(14, 32, 56, 0.9) 36%), color-mix(in srgb, #071426 82%, rgba(8, 19, 35, 0.96) 18%)),
    rgba(255, 255, 255, 0.03) !important;
  background-image: none !important;
  background-color: transparent !important;
  border: 1px solid color-mix(in srgb, #67a7ff 10%, transparent) !important;
  border-color: color-mix(in srgb, #67a7ff 10%, transparent) !important;
  color: #f3f7ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

body.theme-light #blocksPreviewModal .block-card:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, #071426 54%, rgba(18, 40, 69, 0.94) 46%), color-mix(in srgb, #071426 76%, rgba(8, 20, 37, 0.98) 24%)),
    rgba(255, 255, 255, 0.04) !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: color-mix(in srgb, #67a7ff 18%, transparent) !important;
}

body.theme-light #blocksPreviewModal .block-title {
  color: #f3f7ff !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-back-card,
body.theme-light #blocksPreviewModal .blocks-preview-add-card {
  background:
    radial-gradient(circle at 50% 22%, rgba(93, 139, 214, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.04) !important;
  background-image:
    radial-gradient(circle at 50% 22%, rgba(93, 139, 214, 0.16), transparent 58%) !important;
  background-color: transparent !important;
  border-style: solid !important;
  border: 1px solid rgba(171, 210, 255, 0.16) !important;
  border-color: rgba(171, 210, 255, 0.16) !important;
  color: rgba(236, 242, 255, 0.88) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-add-card {
  border-style: dashed !important;
  border-color: rgba(151, 198, 255, 0.24) !important;
  background:
    radial-gradient(circle at 50% 22%, rgba(117, 170, 255, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.03) !important;
  background-image:
    radial-gradient(circle at 50% 22%, rgba(117, 170, 255, 0.14), transparent 58%) !important;
  color: rgba(233, 242, 255, 0.82) !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-back-card .block-title,
body.theme-light #blocksPreviewModal .blocks-preview-add-card .block-title {
  color: inherit !important;
}

body.theme-light .action-primary-btn {
  color: #ffffff !important;
  background: linear-gradient(180deg, #e56056 0%, #d54940 100%) !important;
  background-image: linear-gradient(180deg, #e56056 0%, #d54940 100%) !important;
  border-color: rgba(204, 70, 60, 0.32) !important;
  box-shadow: 0 14px 24px rgba(229, 96, 86, 0.24) !important;
}

body.theme-light .action-primary-btn:hover {
  background: linear-gradient(180deg, #ef695e 0%, #df5247 100%) !important;
}

body.theme-light .action-more-btn {
  background: #ffffff !important;
  color: #12284f !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
  box-shadow: 0 12px 20px rgba(18, 40, 79, 0.06) !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row .action-more-btn,
body.theme-light .dashboard-shell .public-bottom-action-row .action-more-btn {
  background: #ffffff !important;
  color: #12284f !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row .action-primary-btn,
body.theme-light .dashboard-shell .public-bottom-action-row .action-primary-btn,
body.theme-light .action-primary-btn {
  color: #ffffff !important;
  background: linear-gradient(180deg, #e56056 0%, #d54940 100%) !important;
  background-image: linear-gradient(180deg, #e56056 0%, #d54940 100%) !important;
  border-color: rgba(204, 70, 60, 0.32) !important;
  box-shadow: 0 14px 24px rgba(229, 96, 86, 0.22) !important;
}

/* theme-light: .quick-action-item + badge overrides removed → igual dark mode en ambos temas */

body.theme-light .public-profile-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *),
body.theme-light .dashboard-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #12284f !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 40px rgba(18, 40, 79, 0.06) !important;
}

body.theme-light .public-profile-shell .block-title:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *),
body.theme-light .dashboard-shell .block-title:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) {
  color: #12284f !important;
}

body.theme-light .dashboard-block-title {
  color: #12284f !important;
}

body.theme-light .dashboard-block-surface,
body.theme-light .tile-accent {
  background:
    linear-gradient(180deg, #ffffff, #f4f6fb) !important;
  background-color: #ffffff !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 12px 24px rgba(18, 40, 79, 0.06) !important;
}

body.theme-light .dashboard-block-surface:hover,
body.theme-light .tile-accent:hover {
  border-color: rgba(18, 40, 79, 0.18) !important;
  background:
    linear-gradient(180deg, #f8f9fd, #eef1f7) !important;
}

body.theme-light .public-profile-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) > div:first-child,
body.theme-light .dashboard-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) > div:first-child {
  color: rgba(18, 40, 79, 0.68) !important;
}

body.theme-light .public-profile-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) img,
body.theme-light .dashboard-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) img,
body.theme-light .public-profile-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) video,
body.theme-light .dashboard-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) video {
  filter: saturate(1) contrast(1.01) brightness(1) !important;
}

/* ============== REFUERZO ABSOLUTO #blocksPreviewModal theme-light → TARJETAS DASHBOARD OSCURAS ============== */
body.theme-light #blocksPreviewModal .dashboard-block-surface,
body.theme-light #blocksPreviewModal .tile-accent,
body.theme-light #blocksPreviewModal .public-profile-shell .block-card,
body.theme-light #blocksPreviewModal .block-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, #071426 64%, rgba(14, 32, 56, 0.9) 36%), color-mix(in srgb, #071426 82%, rgba(8, 19, 35, 0.96) 18%)),
    rgba(255, 255, 255, 0.03) !important;
  background-image: none !important;
  background-color: transparent !important;
  border: 1px solid color-mix(in srgb, #67a7ff 10%, transparent) !important;
  border-color: color-mix(in srgb, #67a7ff 10%, transparent) !important;
  color: #f3f7ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

body.theme-light #blocksPreviewModal .dashboard-block-surface:hover,
body.theme-light #blocksPreviewModal .tile-accent:hover,
body.theme-light #blocksPreviewModal .public-profile-shell .block-card:hover,
body.theme-light #blocksPreviewModal .block-card:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, #071426 54%, rgba(18, 40, 69, 0.94) 46%), color-mix(in srgb, #071426 76%, rgba(8, 20, 37, 0.98) 24%)),
    rgba(255, 255, 255, 0.04) !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: color-mix(in srgb, #67a7ff 18%, transparent) !important;
}

body.theme-light #blocksPreviewModal .dashboard-shell .accent-top .tile-accent,
body.theme-light #blocksPreviewModal .public-profile-shell .accent-top .block-card {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #67a7ff 22%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

body.theme-light #blocksPreviewModal .dashboard-block-title,
body.theme-light #blocksPreviewModal .block-title,
body.theme-light #blocksPreviewModal .public-profile-shell .block-title,
body.theme-light #blocksPreviewModal .public-profile-shell .block-title:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *) {
  color: #f3f7ff !important;
}

body.theme-light #blocksPreviewModal .profile-subtitle,
body.theme-light #blocksPreviewModal .hero-role,
body.theme-light #blocksPreviewModal .text-slate-400,
body.theme-light #blocksPreviewModal .text-white\/50,
body.theme-light #blocksPreviewModal .text-white\/60,
body.theme-light #blocksPreviewModal .text-white\/70,
body.theme-light #blocksPreviewModal .text-white\/80 {
  color: #c4d8f5 !important;
}

body.theme-light #blocksPreviewModal .block-card > div:first-child,
body.theme-light #blocksPreviewModal .dashboard-block-surface > div:first-child,
body.theme-light #blocksPreviewModal .tile-accent > div:first-child {
  color: #eaf1ff !important;
}

body.theme-light .bottom-action-bar,
body.theme-light .public-bottom-action-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 38%, #ffffff 100%) !important;
  background-color: transparent !important;
  border: none !important;
  border-top: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.theme-light .public-profile-shell .public-bottom-action-bar,
body.theme-light .dashboard-shell .public-bottom-action-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 38%, #ffffff 100%) !important;
  background-color: transparent !important;
}

body.theme-light .bottom-action-row,
body.theme-light .public-profile-shell .public-bottom-action-row,
body.theme-light .dashboard-shell .public-bottom-action-row,
body.theme-light .public-bottom-action-row {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0.1rem 0 !important;
  padding-top: 0.2rem !important;
  border-radius: 0 !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row::before {
  display: none !important;
  background: transparent !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row .action-primary-btn,
body.theme-light .dashboard-shell .public-bottom-action-row .action-primary-btn,
body.theme-light .action-primary-btn {
  color: #ffffff !important;
  background:
    linear-gradient(180deg, #f3847a 0%, #e56056 46%, #d24940 100%) !important;
  background-image:
    linear-gradient(180deg, #f3847a 0%, #e56056 46%, #d24940 100%) !important;
  border: 1px solid rgba(204, 70, 60, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(122, 24, 18, 0.18),
    0 12px 28px rgba(229, 96, 86, 0.34),
    0 2px 6px rgba(229, 96, 86, 0.14) !important;
  min-height: 3rem !important;
  border-radius: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 1px 0 rgba(140, 30, 22, 0.22) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row .action-primary-btn:hover,
body.theme-light .dashboard-shell .public-bottom-action-row .action-primary-btn:hover,
body.theme-light .action-primary-btn:hover {
  background:
    linear-gradient(180deg, #f6938a 0%, #ea6a60 46%, #d8534a 100%) !important;
  background-image:
    linear-gradient(180deg, #f6938a 0%, #ea6a60 46%, #d8534a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -1px 0 rgba(122, 24, 18, 0.2),
    0 16px 34px rgba(229, 96, 86, 0.42),
    0 4px 10px rgba(229, 96, 86, 0.18) !important;
  transform: translateY(-1px) !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row .action-primary-btn:active,
body.theme-light .action-primary-btn:active {
  transform: translateY(0) scale(0.992) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(122, 24, 18, 0.22),
    0 6px 16px rgba(229, 96, 86, 0.3),
    0 2px 6px rgba(229, 96, 86, 0.12) !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row .action-more-btn,
body.theme-light .dashboard-shell .public-bottom-action-row .action-more-btn,
body.theme-light .action-more-btn {
  background: #ffffff !important;
  color: #12284f !important;
  border: 1px solid rgba(18, 40, 79, 0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 10px 22px rgba(18, 40, 79, 0.08) !important;
  min-height: 3rem !important;
  border-radius: 1rem !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease, border-color 0.2s ease !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row .action-more-btn:hover,
body.theme-light .action-more-btn:hover {
  background: #fff8f7 !important;
  border-color: rgba(229, 96, 86, 0.28) !important;
  color: #cc463c !important;
  transform: translateY(-1px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 28px rgba(229, 96, 86, 0.1) !important;
}

body.theme-light #videoModal {
  color: #12284f !important;
}

body.theme-light #videoModal > div[onclick*="stopPropagation"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #12284f !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 30px 70px rgba(10, 30, 70, 0.18) !important;
}

body.theme-light #videoModal h3 {
  color: #12284f !important;
}

body.theme-light #videoModal button {
  color: rgba(18, 40, 79, 0.72) !important;
  background: transparent !important;
  border-color: transparent !important;
}

body.theme-light #videoModal button:hover {
  background: rgba(18, 40, 79, 0.06) !important;
  color: #12284f !important;
}

body.theme-light #videoTitle {
  color: #12284f !important;
}

body.theme-light .public-profile-shell .public-bottom-action-row::before {
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff) !important;
}

body.theme-light .hero-media-slide {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 228, 226, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(238, 241, 247, 0.24), rgba(230, 234, 244, 0.32)) !important;
  background-image:
    radial-gradient(circle at 50% 10%, rgba(255, 228, 226, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(238, 241, 247, 0.24), rgba(230, 234, 244, 0.32)) !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.theme-light .hero-media-slide::before {
  background: transparent !important;
}

body.theme-light .hero-media-slide::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 236, 234, 0.08) 52%, rgba(229, 96, 86, 0.12) 100%) !important;
}

body.theme-light .hero-media-dots {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 22px rgba(18, 40, 79, 0.1) !important;
}

body.theme-light .hero-photo-card::before,
body.theme-light .hero-photo-card::after {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

body.theme-light .hero-video-shell {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.theme-light .hero-video-shell::before,
body.theme-light .hero-video-shell::after {
  background: transparent !important;
  background-image: none !important;
  display: none !important;
}

body.theme-light .hero-photo-card .hero-video-shell,
body.theme-light .dashboard-shell .hero-video-shell,
body.theme-light .public-profile-shell .hero-video-shell {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.theme-light .hero-media-slide[data-media-kind="video"]::before,
body.theme-light .hero-media-slide[data-media-kind="video"]::after,
body.theme-light .hero-media-slide[data-media-kind="photo"]::before,
body.theme-light .hero-media-slide[data-media-kind="photo"]::after {
  background: transparent !important;
  background-image: none !important;
  display: none !important;
}

.hero-media-blur-bg {
  display: block !important;
  pointer-events: none !important;
  user-select: none !important;
}

body.theme-light .hero-media-blur-bg {
  filter: blur(26px) saturate(1.38) contrast(1.06) brightness(1.04) opacity(0.7) !important;
  -webkit-filter: blur(26px) saturate(1.38) contrast(1.06) brightness(1.04) opacity(0.7) !important;
  mix-blend-mode: normal !important;
}

body.theme-light .hero-media-slide img:not(.hero-media-blur-bg),
body.theme-light .hero-media-slide > img:not(.hero-media-blur-bg),
body.theme-light .hero-media-slide .hero-video-shell,
body.theme-light .hero-media-slide video,
body.theme-light .hero-media-slide {
  position: relative !important;
  z-index: 1 !important;
}

body.theme-light .hero-photo-card video,
body.theme-light .hero-photo-video,
body.theme-light .profile-hero-video,
body.theme-light #publicHeroVideo {
  background: #eef1f7 !important;
  background-color: #eef1f7 !important;
  background-image: none !important;
  filter: saturate(1.02) contrast(1.01) brightness(1) !important;
  box-shadow:
    inset 0 0 0 1px rgba(229, 96, 86, 0.16),
    0 10px 26px rgba(229, 96, 86, 0.08) !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
  border-color: rgba(229, 96, 86, 0.14) !important;
}

body.theme-light .hero-media-gallery,
body.theme-light .hero-media-track,
body.theme-light .hero-media-track .hero-media-slide {
  background-image: none !important;
}

body.theme-light .hero-photo-card {
  isolation: isolate !important;
}

body.theme-light .hero-photo-card::before,
body.theme-light .hero-photo-card::after {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: saturate(1) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 236, 234, 0.06) 36%, rgba(229, 96, 86, 0.14) 100%),
    radial-gradient(circle at 50% 12%, rgba(229, 96, 86, 0.22), transparent 36%) !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 236, 234, 0.06) 36%, rgba(229, 96, 86, 0.14) 100%),
    radial-gradient(circle at 50% 12%, rgba(229, 96, 86, 0.22), transparent 36%) !important;
}

body.theme-light .hero-video-cover {
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 167, 255, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(12, 34, 64, 0.18), rgba(6, 17, 32, 0.22)) !important;
  background-color: transparent !important;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(104, 167, 255, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(12, 34, 64, 0.18), rgba(6, 17, 32, 0.22)) !important;
}

body.theme-light .hero-video-cover::before,
body.theme-light .hero-video-cover::after {
  background: transparent !important;
  background-image: none !important;
  display: none !important;
}

body.theme-light .hero-video-shell > video,
body.theme-light .hero-media-slide > video,
body.theme-light .hero-media-slide > div > video {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

body.theme-light .hero-video-shell[class*="bg-"],
body.theme-light .hero-media-slide[class*="bg-"],
body.theme-light .hero-video-shell[style*="background"],
body.theme-light .hero-media-slide[style*="background"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

body.theme-light .hero-video-shell > *:not(video):not(.hero-video-controls):not(.hero-video-play):not(.hero-video-cover) {
  background: transparent !important;
  background-image: none !important;
}

body.theme-light .hero-video-cover__badge,
body.theme-light .hero-video-play {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: color-mix(in srgb, #071426 54%, rgba(6, 18, 35, 0.42) 46%) !important;
  background-color: transparent !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.28) !important;
}

body.theme-light #blocksPreviewModal .hero-video-cover__badge,
body.theme-light #blocksPreviewModal .hero-video-play {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.2) !important;
}

body.theme-light #blocksPreviewModal .hero-video-cover {
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 167, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(12, 34, 64, 0.18), rgba(6, 17, 32, 0.24)) !important;
  background-color: transparent !important;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(104, 167, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(12, 34, 64, 0.18), rgba(6, 17, 32, 0.24)) !important;
}

body.theme-light .hero-video-controls,
body.theme-light .dashboard-hero-compact .hero-video-controls {
  background: rgba(10, 20, 40, 0.62) !important;
  background-color: rgba(10, 20, 40, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

body.theme-light .hero-video-controls__toggle,
body.theme-light .hero-video-speed-btn {
  color: rgba(235, 243, 255, 0.92) !important;
  background: transparent !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.theme-light .hero-video-controls__toggle:hover,
body.theme-light .hero-video-speed-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.theme-light .hero-video-controls__progress {
  background: rgba(255, 255, 255, 0.12) !important;
}

body.theme-light .hero-video-controls__progress > span,
body.theme-light .dashboard-hero-compact .hero-video-controls__progress > span {
  background: linear-gradient(90deg, rgba(117, 170, 255, 0.92), rgba(154, 199, 255, 0.92)) !important;
  background-image: linear-gradient(90deg, rgba(117, 170, 255, 0.92), rgba(154, 199, 255, 0.92)) !important;
  box-shadow: 0 0 10px rgba(117, 170, 255, 0.45) !important;
}

body.theme-light .public-profile-shell .hero-media-kind-btn,
body.theme-light .dashboard-shell .hero-media-kind-btn,
body.theme-light .hero-media-kind-btn {
  background: rgba(255, 255, 255, 0.92) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  color: rgba(18, 40, 79, 0.78) !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow:
    0 0 0 1px rgba(229, 96, 86, 0.08),
    0 10px 24px rgba(229, 96, 86, 0.12) !important;
}

body.theme-light .hero-media-kind-btn[aria-pressed="true"],
body.theme-light .hero-media-kind-btn.is-active {
  background: linear-gradient(180deg, #e56056 0%, #d54940 100%) !important;
  color: #ffffff !important;
  border-color: rgba(204, 70, 60, 0.28) !important;
  box-shadow: 0 12px 26px rgba(229, 96, 86, 0.26) !important;
}

.public-profile-shell .profile-phone,
.dashboard-shell .dashboard-phone {
  --phone-notch-width: 96px;
  --phone-notch-gap: 4px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% -12%, color-mix(in srgb, var(--shell-primary) 28%, transparent), transparent 34%),
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--shell-secondary) 16%, transparent), transparent 30%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--shell-background) 16%, #091b31 84%) 0%,
      color-mix(in srgb, var(--shell-background) 10%, #06101f 90%) 100%
    );
  width: min(450px, 100%);
  height: min(960px, calc(100dvh - 1rem));
  border-radius: 42px;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 18%, transparent);
  box-shadow:
    0 0 0 8px #020912,
    0 0 0 10px rgba(255, 255, 255, 0.05),
    0 42px 96px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-light .public-profile-shell .profile-phone,
body.theme-light .dashboard-shell .dashboard-phone {
  background:
    radial-gradient(circle at 50% -12%, color-mix(in srgb, var(--shell-primary) 18%, transparent), transparent 34%),
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--shell-secondary) 12%, transparent), transparent 30%),
    linear-gradient(
      180deg,
      #ffffff 0%,
      color-mix(in srgb, var(--shell-surface) 96%, #f4f6fb 4%) 62%,
      #ffffff 100%
    ) !important;
  background-image:
    radial-gradient(circle at 50% -12%, color-mix(in srgb, var(--shell-primary) 18%, transparent), transparent 34%),
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--shell-secondary) 12%, transparent), transparent 30%),
    linear-gradient(
      180deg,
      #ffffff 0%,
      color-mix(in srgb, var(--shell-surface) 96%, #f4f6fb 4%) 62%,
      #ffffff 100%
    ) !important;
  background-color: #ffffff !important;
  color: initial !important;
}

.public-profile-shell .profile-main-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.public-profile-shell .profile-username,
.dashboard-shell .profile-username {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.public-profile-shell .profile-subtitle,
.dashboard-shell .profile-subtitle {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--shell-primary);
}

.phone-fit-viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.phone-fit-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

/* The dashboard uses the same content-based fitting as the public profile. */
.dashboard-phone-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

.public-phone-scale {
  --public-fit-scale: 1;
  transform: scale(var(--public-fit-scale));
  transform-origin: top center;
  transition: transform 0.16s ease;
  will-change: transform;
}

.dashboard-phone-scale {
  --dashboard-fit-scale: 1;
  transform: scale(var(--dashboard-fit-scale));
  transform-origin: top center;
  transition: transform 0.16s ease;
  will-change: transform;
}

.public-phone-content {
  display: flex;
  flex-direction: column;
}

.phone-status-rail {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 36;
  min-height: 2.3rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0 0.72rem;
}

.app-theme-toggle {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shell-background) 72%, rgba(8, 21, 39, 0.64) 28%);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 14%, transparent);
  color: color-mix(in srgb, var(--shell-secondary) 78%, white 22%);
  backdrop-filter: blur(14px);
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  font-size: 0.9rem;
}

.app-theme-toggle:hover {
  opacity: 1;
  transform: translateY(-0.5px);
  color: color-mix(in srgb, var(--shell-primary-light) 80%, white 20%);
}

.phone-status-rail__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--phone-notch-width);
  height: 28px;
  border-radius: 999px;
  background: rgba(1, 7, 14, 0.92);
}

.app-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  color: color-mix(in srgb, var(--shell-text) 92%, white 8%);
  text-decoration: none;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.app-brand-main {
  font-size: clamp(1.38rem, 4vw, 1.64rem);
  font-weight: 800;
  letter-spacing: -0.052em;
}

.app-brand-script {
  font-family: 'Kaushan Script', cursive;
  color: color-mix(in srgb, var(--shell-secondary) 76%, white 24%);
  font-size: clamp(1.02rem, 3.04vw, 1.18rem);
}

.app-brand--status {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.3rem 0.52rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shell-background) 72%, rgba(8, 21, 39, 0.64) 28%);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 14%, transparent);
  backdrop-filter: blur(14px);
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-brand--status:hover {
  opacity: 1;
  transform: translateY(-0.5px);
}

.app-brand--status .app-brand-main {
  font-size: clamp(0.82rem, 2.4vw, 0.98rem);
}

.app-brand--status .app-brand-script {
  font-size: clamp(0.65rem, 1.95vw, 0.78rem);
}

.app-brand--footer {
  justify-content: center;
  width: 100%;
  margin-top: 0.6rem;
  margin-bottom: 0.08rem;
  opacity: 0.88;
}

.app-status-chip {
  display: inline-flex;
  position: relative;
  z-index: 2;
  margin-left: auto;
  flex-shrink: 0;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.58rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shell-background) 78%, rgba(8, 21, 39, 0.6) 22%);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 16%, transparent);
  color: color-mix(in srgb, var(--shell-text) 72%, transparent);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.app-status-chip::before {
  content: '';
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--shell-primary);
  box-shadow: 0 0 16px color-mix(in srgb, var(--shell-primary) 75%, transparent);
}

.app-status-chip .status-chip-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.app-status-chip .status-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.52rem;
  margin-left: auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shell-primary) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 34%, transparent);
  color: color-mix(in srgb, var(--shell-primary-light) 92%, white 8%);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.app-status-chip .status-chip-btn:hover {
  background: color-mix(in srgb, var(--shell-primary) 30%, transparent);
  border-color: color-mix(in srgb, var(--shell-primary) 52%, transparent);
  transform: translateY(-0.5px);
}

.app-status-chip .status-chip-btn i {
  font-size: 0.6rem;
  opacity: 0.92;
}

body.theme-light .app-status-chip .status-chip-btn {
  background: rgba(229, 96, 86, 0.1);
  border-color: rgba(229, 96, 86, 0.32);
  color: #d4554a;
}

body.theme-light .app-status-chip .status-chip-btn:hover {
  background: rgba(229, 96, 86, 0.18);
  border-color: rgba(229, 96, 86, 0.48);
}

.dashboard-shell[data-dashboard-mode="preview"] .edit-only {
  display: none !important;
}

.dashboard-shell[data-dashboard-mode="edit"] .preview-only {
  display: none !important;
}

.pwa-install-btn {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shell-primary) 18%, color-mix(in srgb, var(--shell-background) 72%, rgba(8, 21, 39, 0.64) 28%) 82%);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 38%, transparent);
  color: color-mix(in srgb, var(--shell-primary-light) 86%, white 14%);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transition: opacity 0.35s cubic-bezier(.2,.9,.3,1.4),
              transform 0.35s cubic-bezier(.2,.9,.3,1.4),
              color 0.2s ease,
              background 0.2s ease,
              box-shadow 0.25s ease;
  font-size: 0.78rem;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--shell-primary) 26%, transparent);
  overflow: hidden;
}

.pwa-install-btn.is-visible {
  opacity: 0.96;
  transform: translateY(0) scale(1);
}

.pwa-install-btn:hover,
.pwa-install-btn:focus-visible {
  opacity: 1;
  transform: translateY(-1px) scale(1.03);
  color: white;
  background: color-mix(in srgb, var(--shell-primary) 42%, color-mix(in srgb, var(--shell-background) 72%, rgba(8, 21, 39, 0.64) 28%) 58%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--shell-primary) 42%, transparent);
}

.pwa-install-btn:active {
  transform: translateY(0) scale(0.97);
}

.pwa-install-btn::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    color-mix(in srgb, var(--shell-primary-light) 55%, transparent) 60deg,
    transparent 120deg,
    transparent 360deg);
  opacity: 0;
  animation: pwaShineSpin 3.4s linear infinite;
  transition: opacity 0.25s ease;
}

.pwa-install-btn:hover::before,
.pwa-install-btn:focus-visible::before {
  opacity: 1;
}

.pwa-install-btn > * {
  position: relative;
  z-index: 1;
}

@keyframes pwaShineSpin {
  to { transform: rotate(360deg); }
}

.pwa-install-btn__label {
  display: none;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding-right: 0.45rem;
  white-space: nowrap;
}

@media (min-width: 380px) {
  .pwa-install-btn {
    width: auto;
    padding: 0 0.55rem 0 0.4rem;
  }
  .pwa-install-btn__label {
    display: inline;
  }
}

body.theme-light .pwa-install-btn {
  color: color-mix(in srgb, var(--shell-primary) 82%, #0f1b3d 18%);
  border-color: color-mix(in srgb, var(--shell-primary) 32%, transparent);
  background: color-mix(in srgb, var(--shell-primary) 10%, var(--shell-surface) 90%);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--shell-primary) 18%, transparent);
}

body.theme-light .pwa-install-btn:hover,
body.theme-light .pwa-install-btn:focus-visible {
  color: var(--shell-primary);
  background: color-mix(in srgb, var(--shell-primary) 18%, var(--shell-surface) 82%);
}

.pwa-install-toast {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  max-width: min(92vw, 420px);
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  background: rgba(10, 22, 42, 0.92);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 30%, transparent);
  color: #e6ecff;
  font-size: 0.74rem;
  line-height: 1.4;
  font-weight: 600;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2,.9,.3,1.3);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pwa-install-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pwa-install-toast i:first-child {
  color: color-mix(in srgb, var(--shell-primary-light) 85%, white 15%);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pwa-install-toast__close {
  margin-left: auto;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pwa-install-toast__close:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.public-update-toast__action {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  /* El toast siempre es oscuro: colores fijos para que el botón se vea en cualquier tema. */
  color: #0f1b3d !important;
  background: #a9c1ff !important;
  border: 0 !important;
  white-space: nowrap;
}

.public-update-toast__action:hover,
.public-update-toast__action:focus-visible {
  background: #c7d6ff !important;
}

.public-update-toast__action + .pwa-install-toast__close {
  margin-left: 0;
}

.public-refresh-btn {
  margin-left: auto; /* centra el botón entre logo y chip (el chip también tiene margin-left:auto) */
  pointer-events: auto;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 38%, transparent);
  background: color-mix(in srgb, var(--shell-primary) 18%, color-mix(in srgb, var(--shell-background) 72%, rgba(8, 21, 39, 0.64) 28%) 82%);
  color: color-mix(in srgb, var(--shell-primary-light) 86%, white 14%);
  font-size: 0.78rem;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--shell-primary) 26%, transparent);
  transition: transform 0.2s ease, background 0.2s ease;
}

.public-refresh-btn:hover,
.public-refresh-btn:focus-visible {
  transform: scale(1.06);
}

body.theme-light .public-refresh-btn {
  color: color-mix(in srgb, var(--shell-primary) 82%, #0f1b3d 18%);
  background: color-mix(in srgb, var(--shell-primary) 10%, var(--shell-surface) 90%);
}

.public-refresh-btn__dot {
  display: none;
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #ff5a6e;
  border: 2px solid rgba(10, 22, 42, 0.95);
}

.public-refresh-btn.has-update .public-refresh-btn__dot {
  display: block;
}

.public-refresh-btn.has-update i {
  animation: publicRefreshSpin 1.2s ease-in-out 1;
}

@keyframes publicRefreshSpin {
  to { transform: rotate(360deg); }
}

.app-hero {
  position: relative;
  display: grid;
  gap: clamp(0.45rem, 1.1vh, 0.62rem);
  margin-bottom: clamp(0.48rem, 1.2vh, 0.66rem);
  justify-items: center;
}

.hero-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.48rem;
  min-height: clamp(194px, 33.4svh, 352px);
  max-height: min(352px, 38svh);
  aspect-ratio: 0.78;
  width: 100%;
  justify-self: stretch;
  background:
    linear-gradient(180deg, rgba(16, 46, 81, 0.26), rgba(7, 18, 35, 0.48)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(183, 215, 255, 0.16);
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-photo-card::before {
  content: '';
  position: absolute;
  inset: -10% -8% 28%;
  background:
    radial-gradient(circle at 50% 20%, rgba(112, 173, 255, 0.48), rgba(37, 86, 162, 0.24) 42%, transparent 68%),
    linear-gradient(180deg, rgba(10, 45, 88, 0.32), transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.hero-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 29, 57, 0.16), rgba(7, 24, 46, 0.04) 36%, rgba(3, 10, 19, 0.36) 100%),
    radial-gradient(circle at 50% 12%, rgba(74, 134, 228, 0.18), transparent 34%);
  mix-blend-mode: multiply;
  z-index: 2;
  pointer-events: none;
}

.hero-photo-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  z-index: 1;
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.84) contrast(1.03) brightness(0.92);
}

.hero-photo-card img.hero-media-blur-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 30% !important;
  transform: scale(1.12);
  filter: blur(36px) saturate(110%) brightness(0.62) contrast(1.12) !important;
  opacity: 0.98 !important;
  z-index: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

.hero-photo-card video,
.hero-photo-card .hero-photo-video,
.hero-photo-card .profile-hero-video,
.hero-photo-card #publicHeroVideo,
.hero-photo-card #dashboardHeroVideo,
.hero-media-slide[data-media-kind="video"] video,
.hero-media-slide[data-media-kind="video"] .profile-hero-video,
.hero-media-slide[data-media-kind="video"] .hero-photo-video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  filter: saturate(1) contrast(1) brightness(1) !important;
  box-shadow: none !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
}

body.theme-light .hero-photo-card video,
body.theme-light .hero-photo-card .hero-photo-video,
body.theme-light .hero-photo-card .profile-hero-video,
body.theme-light .hero-photo-card #publicHeroVideo,
body.theme-light .hero-photo-card #dashboardHeroVideo,
body.theme-light .hero-media-slide[data-media-kind="video"] video,
body.theme-light .hero-media-slide[data-media-kind="video"] .profile-hero-video {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  filter: saturate(1.02) contrast(1.01) brightness(1) !important;
  box-shadow: none !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
  border-color: transparent !important;
}

/* Hero-video-shell (el wrapper del video) también sin clip ni recorte. */
.hero-media-slide[data-media-kind="video"] .hero-video-shell {
  overflow: visible !important;
  background: transparent;
  border-radius: 0;
}

body.theme-light .hero-media-slide[data-media-kind="video"] .hero-video-shell {
  background: transparent !important;
  background-color: transparent !important;
}

.hero-video-shell {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 167, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(12, 34, 64, 0.88), rgba(6, 17, 32, 0.94));
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hero-video-cover__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.hero-video-shell:not(.is-pristine) .hero-video-cover {
  opacity: 0;
}

.hero-video-controls {
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.72rem;
  z-index: 8;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.58rem;
  border-radius: 1rem;
  background: rgba(7, 18, 35, 0.54);
  border: 1px solid rgba(171, 210, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.hero-video-controls__toggle,
.hero-video-speed-btn {
  border: 0;
  cursor: pointer;
  color: rgba(241, 247, 255, 0.92);
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  touch-action: manipulation;
}

.hero-video-controls__toggle {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(116, 173, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-video-controls__time {
  flex: 0 0 auto;
  min-width: 2.35rem;
  color: rgba(234, 243, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.hero-video-controls__seek {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: pointer;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.hero-video-controls__seek::-webkit-slider-runnable-track {
  height: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117, 170, 255, 0.92) 0%, rgba(117, 170, 255, 0.92) var(--hero-video-progress, 0%), rgba(255, 255, 255, 0.16) var(--hero-video-progress, 0%), rgba(255, 255, 255, 0.16) 100%);
}

.hero-video-controls__seek::-webkit-slider-thumb {
  appearance: none;
  margin-top: -0.32rem;
  width: 0.92rem;
  height: 0.92rem;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.hero-video-controls__seek::-moz-range-track {
  height: 0.28rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-video-controls__seek::-moz-range-progress {
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(117, 170, 255, 0.92);
}

.hero-video-controls__seek::-moz-range-thumb {
  width: 0.92rem;
  height: 0.92rem;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.hero-video-controls__speed {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.hero-video-speed-btn {
  min-width: 2.9rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(241, 247, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.hero-video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.hero-photo-card:hover .hero-video-play.is-hidden,
.hero-photo-card:focus-within .hero-video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-media-gallery {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-media-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.28s ease;
  will-change: transform;
}

.hero-media-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 8%, rgba(104, 167, 255, 0.10), transparent 48%),
    linear-gradient(180deg, rgba(7, 19, 34, 0.28), rgba(4, 11, 21, 0.38));
}

.hero-media-slide img,
.hero-media-slide video,
.hero-media-slide .hero-video-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 1.28rem;
  overflow: hidden;
}

.hero-media-slide img.hero-media-blur-bg,
.hero-media-slide video.hero-media-blur-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 30% !important;
  z-index: 0 !important;
  border-radius: 0 !important;
  filter: blur(36px) saturate(110%) brightness(0.62) contrast(1.12) !important;
  opacity: 0.98 !important;
  pointer-events: none;
  transform: scale(1.12);
}

.hero-media-dots {
  position: absolute;
  left: 50%;
  top: 0.85rem;
  bottom: auto !important;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(7, 18, 35, 0.38);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.hero-media-gallery.has-multiple .hero-media-dots {
  top: 0.85rem;
  bottom: auto !important;
}

.hero-media-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.hero-media-dot::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-media-dot:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.hero-media-dot.is-active {
  transform: scale(1.04);
}

.hero-media-dot.is-active::before {
  background: white;
  transform: scale(1.1);
}

.hero-photo-video {
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 167, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(20, 53, 91, 0.95), rgba(8, 19, 37, 0.98));
  pointer-events: none;
}

.hero-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 167, 255, 0.4), transparent 34%),
    linear-gradient(180deg, rgba(20, 53, 91, 0.95), rgba(8, 19, 37, 0.98));
}

.hero-fallback-bg {
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 167, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #092141 0%, #071426 52%, #040b15 100%);
}

.hero-photo-check {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 6;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shell-primary) 88%, white 12%) 0%, color-mix(in srgb, var(--shell-primary-hover) 86%, black 14%) 100%);
  border: 2px solid color-mix(in srgb, var(--shell-primary-light) 24%, transparent);
  box-shadow: 0 14px 24px color-mix(in srgb, var(--shell-primary) 34%, transparent);
}

.hero-media-actions {
  position: absolute;
  right: 1rem;
  bottom: 5.35rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-media-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 12%, transparent);
  background: color-mix(in srgb, var(--shell-background) 60%, rgba(7, 18, 35, 0.44) 40%);
  color: color-mix(in srgb, var(--shell-text) 94%, white 6%);
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-media-action-btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--shell-background) 54%, rgba(8, 21, 42, 0.56) 46%);
  border-color: color-mix(in srgb, var(--shell-primary) 26%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(0, 0, 0, 0.24);
}

.hero-media-action-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.hero-media-action-btn.is-ready {
  border-color: color-mix(in srgb, #4ade80 22%, rgba(255, 255, 255, 0.12) 78%);
}

.hero-media-action-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: transparent;
  color: white;
  font-size: 1rem;
}

.hero-media-action-btn__state {
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.hero-media-action-btn__state.is-ready {
  background: #37d67a;
  box-shadow:
    0 0 0 3px rgba(55, 214, 122, 0.16),
    0 0 14px rgba(55, 214, 122, 0.42);
}

.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: color-mix(in srgb, var(--shell-background) 54%, rgba(6, 18, 35, 0.42) 46%);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.hero-video-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.hero-video-play.is-playing {
  opacity: 0.42;
}

.hero-photo-card:hover .hero-video-play.is-playing,
.hero-photo-card:focus-within .hero-video-play.is-playing {
  opacity: 0.8;
}

.hero-photo-card.is-swiping .hero-media-track {
  transition: none;
}

.hero-photo-card.is-uploading .hero-media-actions {
  pointer-events: none;
}

.hero-media-upload {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: end stretch;
  padding: 0.9rem;
  background:
    linear-gradient(180deg, rgba(5, 15, 29, 0.08), rgba(5, 15, 29, 0.56)),
    rgba(4, 12, 24, 0.18);
  backdrop-filter: blur(10px);
}

.hero-media-upload.hidden {
  display: none;
}

.hero-media-upload__panel {
  padding: 0.9rem 0.95rem 0.82rem;
  border-radius: 1.12rem;
  border: 1px solid color-mix(in srgb, var(--shell-primary-light) 20%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--shell-background) 56%, rgba(10, 26, 48, 0.9) 44%), color-mix(in srgb, var(--shell-background) 78%, rgba(4, 13, 25, 0.98) 22%));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 36px rgba(0, 0, 0, 0.26);
}

.hero-media-upload__eyebrow {
  color: color-mix(in srgb, var(--shell-muted) 76%, white 24%);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-media-upload__title {
  margin-top: 0.28rem;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-media-upload__hint {
  margin-top: 0.34rem;
  color: rgba(225, 237, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.35;
  max-width: 22rem;
}

.hero-media-upload__bar {
  margin-top: 0.72rem;
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.hero-media-upload__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--shell-primary) 76%, white 24%) 0%, color-mix(in srgb, var(--shell-primary-light) 86%, white 14%) 100%);
  box-shadow:
    0 0 22px color-mix(in srgb, var(--shell-primary-light) 44%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: width 0.18s ease;
}

.hero-media-upload__meta {
  margin-top: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: rgba(236, 244, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-media-upload.is-success .hero-media-upload__bar-fill {
  background: linear-gradient(90deg, #40d989 0%, #7cffbc 100%);
  box-shadow:
    0 0 22px rgba(64, 217, 137, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-media-upload.is-error .hero-media-upload__bar-fill {
  background: linear-gradient(90deg, #ff7a7a 0%, #ffb1b1 100%);
  box-shadow:
    0 0 22px rgba(255, 122, 122, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-copy {
  text-align: center;
  color: white;
  padding: 0 0.1rem;
  max-width: 22rem;
  margin: 0 auto;
}

.dashboard-hero-compact {
  gap: 0.42rem;
  margin-bottom: 0.52rem;
}

.dashboard-photo-stage {
  display: block;
}

.dashboard-photo-overlay-action {
  position: absolute;
  left: 0.78rem;
  right: 3.9rem;
  bottom: 0.78rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.72rem 0.8rem;
  border-radius: 1.16rem;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 16%, transparent);
  background: color-mix(in srgb, var(--shell-background) 64%, rgba(7, 18, 35, 0.46) 36%);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(0, 0, 0, 0.24);
  color: white;
  text-align: left;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.dashboard-photo-overlay-action:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--shell-background) 76%, rgba(7, 18, 35, 0.58) 24%);
  border-color: color-mix(in srgb, var(--shell-primary) 28%, transparent);
}

.dashboard-photo-overlay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 2.2rem;
  border-radius: 0.92rem;
  background: color-mix(in srgb, var(--shell-primary) 18%, transparent);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-photo-overlay-copy {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.dashboard-photo-overlay-title {
  display: block;
  font-size: 0.9rem;
  line-height: 1.05;
  font-weight: 800;
  color: color-mix(in srgb, var(--shell-text) 94%, white 6%);
}

.dashboard-photo-overlay-subtitle {
  display: block;
  font-size: 0.76rem;
  line-height: 1.14;
  color: color-mix(in srgb, var(--shell-muted) 82%, transparent);
}

.dashboard-shell .hero-copy {
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
}

.dashboard-shell .hero-name {
  font-size: clamp(1.41rem, 4.8vw - 5px, 1.87rem);
  text-align: center;
}

.dashboard-shell .hero-role {
  margin-top: calc(0.22rem + 5px);
  font-size: clamp(1.1925rem, 2.45vw + 5px, 1.3125rem);
  text-align: center;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero-name {
  margin: 0;
  font-size: clamp(1.51rem, 5.2vw - 5px, 2.01rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  color: color-mix(in srgb, var(--shell-text) 92%, white 8%);
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.hero-role {
  margin-top: calc(0.18rem + 5px);
  font-size: clamp(1.2125rem, 2.48vw + 5px, 1.3125rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--shell-primary);
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero-meta-card {
  display: grid;
  gap: 0.72rem;
  padding: clamp(0.72rem, 1.8vh, 0.95rem) clamp(0.82rem, 2vw, 1rem);
  border-radius: 1.38rem;
  background: color-mix(in srgb, var(--shell-background) 80%, rgba(8, 22, 39, 0.72) 20%);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 14%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(239, 245, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.22;
}

.hero-meta-row + .hero-meta-row {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-meta-icon {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 1.9rem;
  border-radius: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--shell-primary) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--shell-primary-light) 12%, transparent);
  color: color-mix(in srgb, var(--shell-primary) 84%, white 16%);
}

.section-kicker {
  margin: 0 0 clamp(0.48rem, 1.4vh, 0.8rem);
  color: color-mix(in srgb, var(--shell-muted) 58%, transparent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.featured-link-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: clamp(0.5rem, 1.2vh, 0.65rem) clamp(0.78rem, 1.6vh, 0.9rem);
  border-radius: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 14%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--shell-background) 62%, rgba(10, 24, 45, 0.9) 38%), color-mix(in srgb, var(--shell-background) 78%, rgba(6, 15, 30, 0.94) 22%)),
    rgba(255, 255, 255, 0.025);
  text-decoration: none;
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 20px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.featured-link-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--shell-primary) 32%, transparent);
}

.featured-link-card:active,
.action-primary-btn:active,
.action-more-btn:active,
.quick-action-item:active,
.hero-photo-card:active {
  transform: scale(0.985);
}

.featured-link-icon {
  --feature-icon-base: #27457a;
  --feature-icon-glow: rgba(124, 161, 255, 0.16);
  --feature-icon-shadow: rgba(8, 18, 38, 0.18);
  --feature-icon-border: rgba(178, 198, 238, 0.08);
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.88rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.55rem;
  background-color: color-mix(in srgb, var(--feature-icon-base) 34%, var(--shell-background) 66%);
  background-image:
    radial-gradient(84% 74% at 50% 28%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(90% 76% at 50% 30%, color-mix(in srgb, var(--shell-primary-light) 18%, var(--feature-icon-glow) 82%) 0%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, color-mix(in srgb, var(--feature-icon-base) 18%, rgba(255, 255, 255, 0.02) 82%) 0%, rgba(255, 255, 255, 0.012) 28%, rgba(8, 15, 28, 0.11) 64%, rgba(4, 8, 16, 0.28) 100%);
  border: 1px solid var(--feature-icon-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -10px 14px rgba(3, 7, 16, 0.18),
    0 8px 16px var(--feature-icon-shadow);
  overflow: hidden;
  isolation: isolate;
}

.featured-link-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(70% 56% at 32% 24%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 34%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.024);
  pointer-events: none;
  z-index: 0;
}

.featured-link-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(90% 76% at 50% 112%, rgba(2, 6, 14, 0.28) 0%, rgba(2, 6, 14, 0) 54%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.016),
    inset 0 -12px 18px rgba(3, 7, 16, 0.12),
    inset 0 0 18px rgba(5, 11, 22, 0.04);
  pointer-events: none;
  z-index: 0;
}

.featured-link-icon-glyph {
  width: 58%;
  height: 58%;
  display: block;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.featured-link-icon--platforms {
  --feature-icon-base: #27457a;
  --feature-icon-glow: rgba(124, 161, 255, 0.16);
  --feature-icon-shadow: rgba(8, 18, 38, 0.18);
  --feature-icon-border: rgba(178, 198, 238, 0.08);
}

.featured-link-icon--proposals {
  --feature-icon-base: #4c8174;
  --feature-icon-glow: rgba(150, 235, 196, 0.14);
  --feature-icon-shadow: rgba(9, 21, 18, 0.18);
  --feature-icon-border: rgba(182, 225, 203, 0.08);
}

.featured-link-icon--survey {
  --feature-icon-base: #7253a6;
  --feature-icon-glow: rgba(204, 164, 255, 0.14);
  --feature-icon-shadow: rgba(16, 10, 28, 0.18);
  --feature-icon-border: rgba(213, 190, 248, 0.08);
}

.featured-link-icon--events {
  --feature-icon-base: #b24319;
  --feature-icon-glow: rgba(255, 156, 108, 0.14);
  --feature-icon-shadow: rgba(32, 12, 4, 0.18);
  --feature-icon-border: rgba(255, 200, 168, 0.08);
}

.featured-link-copy {
  min-width: 0;
  flex: 1;
}

.featured-link-title {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--shell-text) 96%, white 4%);
}

.featured-link-subtitle {
  margin-top: 0.18rem;
  font-size: 0.78rem;
  line-height: 1.28;
  color: color-mix(in srgb, var(--shell-muted) 72%, transparent);
}

.featured-link-arrow {
  color: color-mix(in srgb, var(--shell-primary-light) 58%, transparent);
  font-size: 0.92rem;
}

.featured-link-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: color-mix(in srgb, var(--shell-primary-light) 58%, transparent);
}

.featured-link-chip {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: color-mix(in srgb, var(--shell-secondary) 78%, rgba(10, 40, 82, 0.92) 22%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.featured-link-card--proposals {
  border-color: color-mix(in srgb, rgba(60, 200, 145, 0.94) 26%, transparent);
}

.featured-link-card--survey {
  border-color: color-mix(in srgb, rgba(125, 94, 228, 0.94) 26%, transparent);
}

.featured-link-card--events {
  border-color: color-mix(in srgb, rgba(255, 107, 53, 0.96) 26%, transparent);
}

.blocks-section {
  margin-top: clamp(0.52rem, 1.2vh, 0.72rem);
  gap: 0.55rem;
}

.blocks-section > * + * {
  margin-top: 0.55rem;
}

.dashboard-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
}

.dashboard-grid-modern .sortable-item[data-span="2"],
.dashboard-grid-modern .public-block-slot[data-span="2"] {
  grid-column: span 2;
}

.dashboard-block-surface,
.public-profile-shell .block-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.22rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--shell-background) 64%, rgba(14, 32, 56, 0.9) 36%), color-mix(in srgb, var(--shell-background) 82%, rgba(8, 19, 35, 0.96) 18%)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 10%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.dashboard-block-surface:hover,
.public-profile-shell .block-card:hover {
  border-color: color-mix(in srgb, var(--shell-primary) 18%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--shell-background) 54%, rgba(18, 40, 69, 0.94) 46%), color-mix(in srgb, var(--shell-background) 76%, rgba(8, 20, 37, 0.98) 24%)),
    rgba(255, 255, 255, 0.04);
}

.public-profile-shell .block-card {
  min-height: 5.85rem;
  padding: 0.82rem 0.72rem;
  border-radius: 1.22rem;
  justify-content: center;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.public-profile-shell .accent-top .block-card,
.dashboard-shell .accent-top .tile-accent {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--shell-primary) 22%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.public-profile-shell .block-title,
.dashboard-block-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.028em;
}

.public-profile-shell .block-title {
  font-size: 0.78rem;
  line-height: 1.08;
}

.public-profile-shell .block-card > div:first-child {
  width: 2.48rem;
  height: 2.48rem;
  margin-bottom: 0.6rem;
  border-radius: 0.86rem;
}

.public-profile-shell .block-card img {
  width: 100%;
  height: 4.9rem;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.7rem;
}

.public-profile-shell .public-block-slot {
  min-width: 0;
}

.public-profile-shell .public-block-slot .block-card {
  width: 100%;
  height: 100%;
}

.bottom-action-bar {
  position: relative;
  z-index: 30;
  padding-top: clamp(0.48rem, 1.2vh, 0.66rem);
  padding-bottom: env(safe-area-inset-bottom);
  background: none;
  backdrop-filter: none;
}

.bottom-action-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem;
  border-radius: 1.08rem;
  background: color-mix(in srgb, var(--shell-background) 86%, rgba(7, 20, 37, 0.92) 14%);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 12%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 26px rgba(0, 0, 0, 0.22);
}

.public-profile-shell .public-bottom-action-bar {
  margin-top: auto;
}

.public-profile-shell .public-bottom-action-row {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(0, 0, 0, 0.2);
}

.action-primary-btn {
  flex: 1;
  min-height: 2.82rem;
  border-radius: 0.95rem;
  border: 1px solid color-mix(in srgb, var(--shell-primary-light) 20%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--shell-primary) 88%, white 12%) 0%, color-mix(in srgb, var(--shell-primary-hover) 84%, black 16%) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 24px color-mix(in srgb, var(--shell-primary) 26%, transparent);
}

.action-primary-btn:hover {
  transform: translateY(-1px);
}

.action-more-btn {
  width: 2.82rem;
  height: 2.82rem;
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--shell-background) 82%, rgba(7, 23, 43, 0.72) 18%);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 14%, transparent);
  color: color-mix(in srgb, var(--shell-text) 94%, white 6%);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.action-save-btn {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--shell-primary-light) 22%, transparent);
  background: color-mix(in srgb, var(--shell-primary) 18%, rgba(7, 23, 43, 0.62) 82%);
  color: rgba(235, 243, 255, 0.92);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.action-save-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--shell-primary-light) 38%, transparent);
  background: color-mix(in srgb, var(--shell-primary) 26%, rgba(7, 23, 43, 0.58) 74%);
}

.quick-actions-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--shell-background) 54%, rgba(1, 6, 12, 0.58) 46%);
  backdrop-filter: blur(10px);
  z-index: 55;
}

.quick-actions-overlay.is-open {
  display: flex;
}

.quick-actions-sheet {
  width: 100%;
  max-height: min(78dvh, 42rem);
  overflow-y: auto;
  border-radius: 1.38rem;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 12%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--shell-background) 62%, rgba(12, 29, 50, 0.98) 38%), color-mix(in srgb, var(--shell-background) 82%, rgba(6, 17, 32, 0.99) 18%));
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.42);
  padding: 0.8rem;
}

.quick-actions-sheet::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.quick-actions-handle {
  width: 3rem;
  height: 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shell-primary-light) 26%, transparent);
  margin: 0 auto 0.75rem;
}

.quick-actions-title {
  color: color-mix(in srgb, var(--shell-muted) 72%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 700;
}

.quick-actions-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
}

.blocks-preview-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 210, 255, 0.16);
  background: rgba(116, 173, 255, 0.1);
  color: rgba(235, 243, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.blocks-preview-edit-btn:hover {
  background: rgba(116, 173, 255, 0.18);
  border-color: rgba(171, 210, 255, 0.28);
  color: rgba(235, 243, 255, 0.94);
}

.blocks-preview-edit-btn.is-active {
  background: rgba(116, 173, 255, 0.28);
  border-color: rgba(171, 210, 255, 0.45);
  color: #ffffff;
}

.blocks-preview-edit-btn i {
  font-size: 0.7rem;
}

.blocks-preview-grid .blocks-preview-drag,
.blocks-preview-grid .blocks-preview-lock-badge,
.blocks-preview-grid .blocks-preview-item__actions {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.88);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.blocks-preview-grid.is-edit-mode .blocks-preview-drag,
.blocks-preview-grid.is-edit-mode .blocks-preview-lock-badge,
.blocks-preview-grid.is-edit-mode .blocks-preview-item__actions {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.quick-actions-list {
  display: grid;
  gap: 0.55rem;
}

.quick-actions-section {
  margin-top: 0.78rem;
}

.quick-action-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  text-align: left;
  padding: 0.88rem 0.96rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 10%, transparent);
  background: color-mix(in srgb, var(--shell-surface) 4%, transparent);
  color: color-mix(in srgb, var(--shell-text) 94%, white 6%);
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
}

.quick-action-item:hover {
  background: color-mix(in srgb, var(--shell-surface) 8%, transparent);
  border-color: color-mix(in srgb, var(--shell-primary) 20%, transparent);
}

.quick-action-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.quick-action-badge {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--shell-primary) 84%, white 16%);
  background: color-mix(in srgb, var(--shell-primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--shell-primary) 12%, transparent);
}

.quick-action-badge--link {
  color: #9bc5ff;
  background: rgba(77, 148, 255, 0.16);
  border-color: rgba(171, 210, 255, 0.14);
}

.quick-action-badge--email {
  color: #ffd8b0;
  background: rgba(255, 146, 76, 0.18);
  border-color: rgba(255, 182, 120, 0.16);
}

.quick-action-badge--whatsapp {
  color: #dcffe8;
  background: rgba(37, 211, 102, 0.24);
  border-color: rgba(117, 255, 167, 0.16);
}

.quick-action-badge--telegram {
  color: #e3f6ff;
  background: rgba(36, 162, 255, 0.24);
  border-color: rgba(137, 213, 255, 0.16);
}

.quick-action-badge--facebook {
  color: #dbe7ff;
  background: rgba(66, 103, 178, 0.26);
  border-color: rgba(112, 152, 224, 0.16);
}

.quick-action-badge--twitter {
  color: #eaf0ff;
  background: rgba(15, 20, 25, 0.3);
  border-color: rgba(120, 138, 160, 0.16);
}

.quick-action-badge--instagram {
  color: #ffe3ef;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.26), rgba(253, 29, 29, 0.22), rgba(252, 175, 69, 0.22));
  border-color: rgba(234, 130, 140, 0.16);
}

.quick-action-badge--tiktok {
  color: #eafffe;
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(254, 44, 85, 0.22);
  box-shadow: inset 0 0 0 0.5px rgba(255, 0, 80, 0.35), inset 0 0 0 1px rgba(0, 242, 234, 0.25);
}

.quick-action-badge--preview {
  color: #efe7ff;
  background: rgba(144, 102, 255, 0.22);
  border-color: rgba(193, 173, 255, 0.18);
}

.public-profile-shell .share-btn {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
}

.public-profile-shell .public-bottom-action-row .action-primary-btn {
  min-height: 3.15rem;
  border-radius: 1rem;
  box-shadow: none;
  font-size: 0.94rem;
}

.public-profile-shell .public-bottom-action-row .action-more-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--shell-background) 84%, rgba(5, 17, 31, 0.74) 16%);
  box-shadow: none;
}

.public-profile-shell .public-platforms-btn {
  min-height: 0;
}

.quick-actions-subsection {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--shell-primary) 10%, transparent);
}

.quick-actions-subtitle {
  margin: 0 0 0.7rem;
  color: color-mix(in srgb, var(--shell-muted) 72%, transparent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quick-actions-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
}

.quick-actions-module-grid .public-block-slot[data-span="2"] {
  grid-column: span 2;
}

.quick-actions-module-grid .block-card {
  min-height: 6.2rem;
}

.dashboard-shell .quick-actions-module-grid {
  margin-top: 0.2rem;
}

.dashboard-modules-summary {
  margin-top: 0.72rem;
}

.blocks-preview-handle {
  display: none;
}

.blocks-preview-topbar {
  padding: 0 0 4px;
}

.blocks-preview-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blocks-preview-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 2px;
  flex: 1 1 auto;
  min-height: 0;
}

.blocks-preview-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.blocks-preview-section {
  margin-top: 2px;
}

.blocks-preview-stage {
  margin-top: 0;
}

.blocks-preview-sheet {
  padding-bottom: 1rem;
}

.blocks-preview-copy {
  margin: -0.15rem 0 0.45rem;
  color: rgba(235, 243, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.45;
}

.blocks-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.blocks-preview-helper {
  margin: 0.18rem 0 0;
  color: rgba(235, 243, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.4;
}

.blocks-preview-stage {
  margin-top: 0.7rem;
  padding: 0.82rem;
  border-radius: 1.28rem;
  border: 1px solid rgba(171, 210, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(7, 19, 34, 0.96), rgba(6, 16, 30, 0.98)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.blocks-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.88rem;
}

.blocks-preview-item[data-span="2"] {
  grid-column: span 2;
}

.blocks-preview-item {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 0.42rem;
}

.blocks-preview-item.is-highlight .blocks-preview-slot .block-card {
  animation: blocks-preview-highlight 1.25s ease-out 1;
}

@keyframes blocks-preview-highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(171, 210, 255, 0), 0 18px 34px rgba(0, 0, 0, 0.18);
    transform: translateY(0);
  }
  30% {
    box-shadow: 0 0 0 2px rgba(171, 210, 255, 0.52), 0 22px 40px rgba(0, 0, 0, 0.26);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(171, 210, 255, 0), 0 18px 34px rgba(0, 0, 0, 0.18);
    transform: translateY(0);
  }
}

.blocks-preview-item__toolbar {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.blocks-preview-drag,
.blocks-preview-action {
  min-width: 2.75rem;
  min-height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 210, 255, 0.14);
  padding: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  backdrop-filter: blur(10px);
}

.blocks-preview-drag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: rgba(235, 243, 255, 0.82);
  background: rgba(116, 173, 255, 0.12);
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.blocks-preview-drag:active {
  cursor: grabbing;
}

.blocks-preview-delete-btn {
  position: relative;
}

.blocks-preview-lock-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2.15rem;
  height: 2.15rem;
  min-height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 210, 255, 0.14);
  padding: 0.28rem;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: rgba(235, 243, 255, 0.82);
  background: rgba(116, 173, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.blocks-preview-item__actions {
  position: absolute;
  right: 0;
  top: 0;
  bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.46rem;
  pointer-events: none;
}

.blocks-preview-action {
  text-decoration: none;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0.28rem;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blocks-preview-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
}

.blocks-preview-action--delete {
  color: #ffd7d7;
  background: rgba(255, 93, 93, 0.16);
}

.blocks-preview-action--delete:hover {
  border-color: rgba(255, 146, 146, 0.28);
  background: rgba(255, 93, 93, 0.24);
}

.blocks-preview-action--edit {
  color: rgba(233, 242, 255, 0.88);
  background: rgba(116, 173, 255, 0.16);
}

.blocks-preview-action--edit:hover {
  border-color: rgba(171, 210, 255, 0.32);
  background: rgba(116, 173, 255, 0.26);
}

.blocks-preview-slot .block-card {
  min-height: 6.2rem;
}

.blocks-preview-slot .block-title {
  font-size: 0.8rem;
}

.blocks-preview-slot .block-card > div:first-child {
  width: 2.45rem;
  height: 2.45rem;
}

.blocks-preview-slot .block-card img {
  height: 5.2rem;
}

.blocks-preview-grid .block-card {
  min-height: 6.2rem;
}

.blocks-preview-add-card {
  min-height: 6.2rem;
  border-radius: 1.35rem;
  border: 1px dashed rgba(151, 198, 255, 0.24);
  background:
    radial-gradient(circle at 50% 22%, rgba(117, 170, 255, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: rgba(233, 242, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.blocks-preview-add-card:hover {
  transform: translateY(-1px);
  border-color: rgba(151, 198, 255, 0.38);
  background:
    radial-gradient(circle at 50% 22%, rgba(117, 170, 255, 0.22), transparent 58%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.blocks-preview-back-card {
  color: rgba(236, 242, 255, 0.88);
  border-style: solid;
  border-color: rgba(171, 210, 255, 0.16);
  background:
    radial-gradient(circle at 50% 22%, rgba(93, 139, 214, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.blocks-preview-back-card:hover {
  border-color: rgba(171, 210, 255, 0.28);
  background:
    radial-gradient(circle at 50% 22%, rgba(116, 173, 255, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.06);
}

.blocks-preview-add-card__icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(116, 173, 255, 0.14);
  border: 1px solid rgba(171, 210, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  font-size: 1.02rem;
}

.blocks-preview-empty {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding: 1.05rem 1rem;
  border-radius: 1.12rem;
  border: 1px solid rgba(171, 210, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 243, 255, 0.76);
  text-align: center;
}

.blocks-preview-empty strong {
  color: #f4f8ff;
  font-size: 0.94rem;
}

.blocks-preview-empty span:last-child {
  font-size: 0.82rem;
  line-height: 1.45;
}

.blocks-preview-empty__icon {
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 auto 0.1rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  color: #c9d7ff;
  background: rgba(110, 141, 255, 0.18);
  border: 1px solid rgba(171, 210, 255, 0.14);
}

@media (max-width: 430px) {
  .public-profile-shell .profile-phone,
  .dashboard-shell .dashboard-phone {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .public-profile-shell,
  .dashboard-shell {
    padding: 0;
  }

  .phone-status-rail {
    top: calc(10px + env(safe-area-inset-top));
    left: 1rem;
    right: 1rem;
    min-height: 2.3rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .public-profile-shell,
  .dashboard-shell {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .public-profile-shell .profile-phone,
  .dashboard-shell .dashboard-phone {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .phone-status-rail {
    top: calc(10px + env(safe-area-inset-top));
    left: 1rem;
    right: 1rem;
    min-height: 2.3rem;
  }

  .phone-status-rail__notch {
    display: none;
  }

  .public-profile-shell .public-phone-scale,
  .dashboard-shell .dashboard-phone-scale {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .public-profile-shell .phone-fit-viewport,
  .dashboard-shell .phone-fit-viewport {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-height: 780px) {
  .hero-photo-card {
    min-height: 168px;
  }

  .hero-photo-card img {
    object-position: 50% 20%;
  }

  .hero-name {
    font-size: 1.54rem;
  }

  .hero-meta-card {
    gap: 0.58rem;
    padding: 0.78rem 0.84rem;
  }

  .hero-meta-row {
    gap: 0.64rem;
    font-size: 0.86rem;
  }

  .hero-meta-row + .hero-meta-row {
    padding-top: 0.68rem;
  }

  .featured-link-card {
    padding: 0.76rem 0.84rem;
  }

  .featured-link-icon {
    width: 2.9rem;
    height: 2.9rem;
    flex-basis: 2.9rem;
  }

  .bottom-action-bar {
    padding-top: 0.68rem;
  }
}

@media (max-height: 700px) {
  .app-brand-main {
    font-size: 1.54rem;
  }

  .app-brand-script {
    font-size: 1.16rem;
  }

  .app-brand--footer .app-brand-main {
    font-size: 1.24rem;
  }

  .app-brand--footer .app-brand-script {
    font-size: 0.94rem;
  }

  .app-status-chip {
    padding: 0.42rem 0.62rem;
    font-size: 0.61rem;
  }

  .hero-photo-card {
    min-height: 142px;
    border-radius: 1.42rem;
  }

  .hero-photo-card img {
    object-position: 50% 22%;
  }

  .dashboard-hero-compact {
    gap: 0.62rem;
  }

  .dashboard-photo-overlay-action {
    left: 0.68rem;
    right: 3.52rem;
    bottom: 0.68rem;
    padding: 0.62rem 0.72rem;
    gap: 0.58rem;
  }

  .dashboard-photo-overlay-icon {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
  }

  .dashboard-photo-overlay-title {
    font-size: 0.84rem;
  }

  .dashboard-photo-overlay-subtitle {
    font-size: 0.72rem;
  }

  .hero-photo-check {
    width: 2.16rem;
    height: 2.16rem;
    right: 0.72rem;
    bottom: 0.72rem;
  }

  .hero-name {
    font-size: 1.31rem;
  }

  .hero-role {
    margin-top: calc(0.16rem + 5px);
    font-size: 1.1725rem;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  .hero-meta-card {
    padding: 0.68rem 0.78rem;
  }

  .hero-meta-icon {
    width: 1.68rem;
    height: 1.68rem;
    flex-basis: 1.68rem;
  }

  .featured-link-title {
    font-size: 0.9rem;
  }

  .featured-link-subtitle {
    font-size: 0.76rem;
    line-height: 1.24;
  }

  .action-primary-btn,
  .action-more-btn {
    min-height: 2.92rem;
    height: 2.92rem;
  }
}

@media (max-height: 620px) {
  .app-hero {
    gap: 0.48rem;
    margin-bottom: 0.56rem;
  }

  .hero-photo-card {
    min-height: 120px;
  }

  .hero-photo-card img {
    object-position: 50% 25%;
  }

  .hero-name {
    font-size: 1.11rem;
  }

  .hero-meta-row {
    font-size: 0.8rem;
  }

  .section-kicker {
    margin-bottom: 0.4rem;
    font-size: 0.6rem;
  }

  .blocks-section {
    margin-top: 0.56rem;
  }

  .bottom-action-row {
    gap: 0.55rem;
    padding: 0.34rem;
  }
}

@media (hover: none) {
  .blocks-preview-item__actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.page-directory .shell {
  max-width: 1200px;
  margin: 0 auto;
}

.page-directory .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.page-directory .brand {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  text-decoration: none;
  color: rgba(245, 240, 232, 0.95);
}

.page-directory .brand .pol {
  font-family: 'Inria Sans', sans-serif;
  letter-spacing: 0.12em;
  font-size: 1.5rem;
}

.page-directory .brand .dot {
  font-family: 'Inria Sans', sans-serif;
  color: var(--brand-blue);
  font-size: 1.5rem;
  margin: 0 0.1rem;
}

.page-directory .brand .app {
  font-family: 'Kaushan Script', cursive;
  color: var(--brand-blue);
  font-weight: 400;
  font-size: 0.95rem;
  padding-bottom: 2px;
}

.page-directory .top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-directory .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 240, 232, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.page-directory .chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-directory .panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.page-directory .panel-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.page-directory .title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-directory .title h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 232, 0.96);
}

.page-directory .title p {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.45);
}

.page-directory .view-toggle {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  min-width: 220px;
}

.page-directory .view-toggle button {
  border: none;
  background: transparent;
  color: rgba(245, 240, 232, 0.6);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.page-directory .view-toggle button.active {
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: #c9a84c;
}

.page-directory .filters {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-directory .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

@media (min-width: 820px) {
  .page-directory .filters {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
  .page-directory .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .page-directory .list {
    grid-template-columns: 1fr 1fr;
  }
}

.page-directory .field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.page-directory .field input,
.page-directory .field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(245, 240, 232, 0.9);
  outline: none;
  transition: all 0.2s;
}

.page-directory .field input:focus,
.page-directory .field select:focus {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

.page-directory .content {
  padding: 1rem;
}

.page-directory .list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.page-directory .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s;
}

.page-directory .card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.page-directory .avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.22);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.page-directory .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-directory .who {
  flex: 1 1 auto;
  min-width: 0;
}

.page-directory .who .name {
  font-weight: 800;
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-directory .who .role {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.6);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-directory .who .loc {
  font-size: 0.74rem;
  color: rgba(245, 240, 232, 0.45);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-directory .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 240, 232, 0.85);
  text-decoration: none;
  transition: all 0.2s;
  flex: 0 0 auto;
}

.page-directory .cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-directory .map-wrap {
  width: 100%;
  height: min(70vh, 680px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

.page-directory #map {
  width: 100%;
  height: 100%;
}

.page-directory .empty {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Share modal fullscreen ===== */
.share-fullscreen-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(10, 16, 34, 0.88);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow: hidden !important;
  transition: opacity 240ms ease, visibility 240ms ease;
}

#shareModal.share-fullscreen-modal:not(.hidden),
#blocksPreviewModal.share-fullscreen-modal:not(.hidden),
.share-fullscreen-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.share-fullscreen-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 20px;
  gap: 10px;
  overflow: hidden !important;
}

.share-fullscreen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 4px;
  flex: 0 0 auto;
}

.share-fullscreen-title {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.share-fullscreen-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.share-fullscreen-close:hover { background: rgba(255, 255, 255, 0.12); }
.share-fullscreen-close:active { transform: scale(0.96); }

.share-fullscreen-body {
  flex: 1 1 auto;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
  min-height: 0;
}

.share-qr-card {
  align-self: center;
  width: min(88vw, 232px);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.36), 0 5px 14px rgba(0, 0, 0, 0.16);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #0f1b3d;
  flex: 0 0 auto;
}

.share-qr-kicker {
  margin: 0;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 27, 61, 0.86);
}

.share-qr-img {
  display: block;
  width: min(58vw, 168px);
  height: auto;
  max-width: 100%;
  border-radius: 14px;
  background: #ffffff;
  background-image: none;
}

.share-qr-url {
  display: none !important;
}

.share-qr-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
}

.share-qr-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  padding: 8px 12px;
  background: rgba(16, 35, 75, 0.08);
  color: rgba(15, 27, 61, 0.92);
  border: 1px solid rgba(16, 35, 75, 0.14);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.share-qr-download-btn:hover { background: rgba(16, 35, 75, 0.14); }
.share-qr-download-btn:active { transform: scale(0.97); }

.share-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0;
  flex: 0 0 auto;
}

.share-section-title {
  margin: 0 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.share-social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 14px 18px;
  padding: 4px 2px 0;
  flex: 0 0 auto;
  min-height: 0;
}

.share-social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: min(72px, 22vw);
  padding: 9px 4px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  flex: 0 0 auto;
}
.share-social-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.share-social-card:active { transform: translateY(0); }

.share-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex: 0 0 auto;
}

.share-social-label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
  text-align: center;
  flex: 0 0 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.share-social--link .share-social-icon {
  background: #64748b;
  border-color: rgba(0, 0, 0, 0.08);
}
.share-social-icon--copy i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.share-social--whatsapp .share-social-icon,
.share-social--telegram .share-social-icon,
.share-social--facebook .share-social-icon,
.share-social--x .share-social-icon,
.share-social--instagram .share-social-icon,
.share-social--tiktok .share-social-icon,
.share-social--email .share-social-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.share-social--system .share-social-icon { background: linear-gradient(145deg, #475569); }

/* Supplied app-logo PNGs contain their own brand backgrounds and must keep their aspect ratio. */
.brand-logo-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 1 !important;
  filter: none !important;
}

.brand-logo-image--share { width: 100%; height: 100%; }
.brand-logo-image--platform { width: 100%; height: 100%; }
.brand-logo-image--compact { width: 28px; height: 28px; }
.brand-logo-image--action { width: 20px; height: 20px; }
.brand-logo-image--facebook { object-fit: cover; }

.brand-logo-chip {
  display: inline-flex;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
}

.brand-platform-tile:has(.brand-logo-image) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.fa-x-twitter::before {
  content: "" !important;
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;
  vertical-align: -0.125em;
}

@media (min-width: 640px) {
  .share-fullscreen-inner { max-width: 560px; padding: 22px 20px 24px; }
  .share-qr-card { width: min(300px, 72%); padding: 16px; }
  .share-qr-img { width: min(62vw, 200px); }
  .share-social-grid { gap: 18px 22px; }
  .share-social-card { width: 78px; }
  .share-social-icon { width: 44px; height: 44px; border-radius: 16px; }
  .share-social-label { font-size: 11.5px; }
}

@media (max-width: 380px) {
  .share-social-grid { gap: 10px; }
  .share-social-card { width: 60px; padding: 8px 3px 7px; }
  .share-social-icon { width: 34px; height: 34px; border-radius: 12px; }
  .share-social-label { font-size: 9.5px; }
  .share-qr-card { border-radius: 20px; padding: 12px 10px 10px; }
  .share-qr-img { width: min(70vw, 156px); }
}

@media (max-width: 767px) {
  #shareModal .share-social-grid {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 380px) {
  #shareModal .share-social-grid { max-width: 220px; }
}

/* Opciones desactivadas visualmente sin eliminar sus botones ni handlers. */
#shareModal .share-social--facebook,
#shareModal .share-social--tiktok {
  display: none !important;
}

@media (min-width: 768px) {
  #shareModal .share-social--instagram {
    display: none !important;
  }
}

.blocks-preview-grid.is-edit-mode .blocks-preview-item[data-edit-url]:focus-visible,
.blocks-preview-grid.is-edit-mode .blocks-preview-item[data-edit-action]:focus-visible,
.blocks-preview-drag:focus-visible,
.blocks-preview-action:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 5px #ffffff;
}

/* ============== SELECTOR PERSONAL DE COLOR ============== */
.color-theme-panel[hidden] { display: none !important; }

.color-theme-panel {
  position: absolute;
  z-index: 120;
  top: calc(3.15rem + env(safe-area-inset-top));
  left: 12px;
  width: min(286px, calc(100% - 24px));
  padding: 12px;
  max-height: calc(100dvh - 4.25rem - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 18%, rgba(255, 255, 255, 0.62) 82%);
  border-radius: 20px;
  color: var(--shell-text);
  background: linear-gradient(145deg, color-mix(in srgb, var(--shell-surface) 94%, white 6%), var(--shell-surface));
  box-shadow: 0 22px 50px rgba(4, 10, 24, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
  transform-origin: 20px 0;
  animation: color-theme-panel-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes color-theme-panel-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.color-theme-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 2px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.color-theme-panel__header > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.color-theme-panel__header i { color: var(--shell-primary); }

.color-theme-panel__close {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--shell-text);
  background: color-mix(in srgb, var(--shell-primary) 12%, transparent);
  cursor: pointer;
}

.color-theme-swatch > i { opacity: 0; transform: scale(0.7); transition: opacity 140ms ease, transform 140ms ease; }
.color-theme-swatch.is-selected > i { opacity: 1; transform: scale(1); }

.color-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.color-theme-swatch {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--shell-text) 10%, transparent);
  border-radius: 12px;
  color: var(--shell-text);
  background: color-mix(in srgb, var(--shell-surface) 94%, transparent);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.color-theme-swatch__preview {
  grid-column: 1 / -1;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(7, 20, 38, 0.16), 0 4px 10px rgba(7, 20, 38, 0.1);
}

.color-theme-swatch__preview > span { background: var(--swatch-color); }

.color-theme-swatch__preview--dark {
  background: linear-gradient(135deg, #071426 0%, #162d4a 50%, #4d90f4 100%);
  box-shadow: inset 0 0 0 2px rgba(77, 144, 244, 0.3);
}

.color-theme-swatch__preview--light {
  background: linear-gradient(145deg, #fffaf2, #ffe4bd);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.color-theme-swatch__name {
  font-size: 0.64rem;
  font-weight: 800;
  text-align: left;
  text-transform: capitalize;
}

.color-theme-swatch > i {
  font-size: 0.62rem;
  color: var(--shell-text);
}

.color-theme-swatch:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(7, 20, 38, 0.12); }
.color-theme-swatch.is-selected { border-color: var(--shell-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--shell-primary) 22%, transparent); }

.color-theme-swatch:focus-visible,
.color-theme-panel__close:focus-visible,
.app-theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--shell-primary) 74%, white 26%);
  outline-offset: 2px;
}

body.has-color-theme .app-shell > div.absolute.inset-0 {
  background: linear-gradient(180deg, color-mix(in srgb, var(--shell-background) 90%, var(--shell-surface) 10%), var(--shell-background)) !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--shell-background) 90%, var(--shell-surface) 10%), var(--shell-background)) !important;
}

body.has-color-theme .profile-username,
body.has-color-theme .hero-name,
body.has-color-theme .profile-subtitle,
body.has-color-theme .hero-role,
body.has-color-theme .block-title,
body.has-color-theme .dashboard-block-title { color: var(--shell-text) !important; }

body.has-color-theme .app-brand,
body.has-color-theme .app-status-chip {
  color: var(--shell-text) !important;
  background: color-mix(in srgb, var(--shell-surface) 92%, transparent) !important;
  border-color: color-mix(in srgb, var(--shell-text) 14%, transparent) !important;
}

body.has-color-theme .app-brand-main,
body.has-color-theme .featured-link-title,
body.has-color-theme .featured-link-subtitle,
body.has-color-theme .featured-link-arrow,
body.has-color-theme .featured-link-actions { color: var(--shell-text) !important; }

body.has-color-theme .app-brand-script { color: var(--shell-primary) !important; }

body.has-color-theme .public-profile-shell .block-card:not(#publicQuickActions *):not(#shareModal *):not(#proposalsModal *):not(#surveyModal *):not(#blocksPreviewModal *) {
  /* Public blocks are generated by a shared include; preserve their boundary
     while using the same semantic card tokens as the explicit shell cards. */
  color: var(--shell-text) !important;
  background: linear-gradient(145deg, var(--ui-surface-raised, var(--shell-surface)), var(--ui-surface, var(--shell-surface))) !important;
  border-color: var(--ui-border, color-mix(in srgb, var(--shell-text) 12%, transparent)) !important;
}

body.has-color-theme .app-theme-toggle {
  color: var(--visitor-secondary-text) !important;
  border-color: var(--shell-secondary) !important;
  background: var(--shell-secondary) !important;
}

body.has-color-theme .featured-link-icon {
  color: var(--shell-primary) !important;
  border-color: var(--shell-accent) !important;
  background: linear-gradient(145deg, var(--shell-primary-light), var(--shell-surface)) !important;
}

body.has-color-theme .featured-link-icon svg stop,
body.has-color-theme .featured-link-icon-glyph stop {
  stop-color: var(--shell-primary) !important;
}

body.has-color-theme.color-theme-is-light .public-profile-shell .featured-link-icon svg stop,
body.has-color-theme.color-theme-is-light .dashboard-shell .featured-link-icon svg stop,
body.has-color-theme.color-theme-is-light .public-profile-shell .featured-link-icon-glyph stop,
body.has-color-theme.color-theme-is-light .dashboard-shell .featured-link-icon-glyph stop {
  stop-color: var(--shell-primary) !important;
}

body.has-color-theme .hero-photo-card,
body.has-color-theme .hero-photo-fallback,
body.has-color-theme .hero-fallback-bg {
  background: linear-gradient(145deg, color-mix(in srgb, var(--shell-primary-light) 34%, var(--shell-surface) 66%), color-mix(in srgb, var(--shell-background) 18%, var(--shell-surface) 82%)) !important;
}

body.has-color-theme .hero-photo-fallback i {
  color: color-mix(in srgb, var(--shell-text) 62%, transparent) !important;
  filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--shell-surface) 70%, transparent));
}

@media (max-width: 420px) {
  .color-theme-panel { top: calc(3rem + env(safe-area-inset-top)); left: 9px; width: min(280px, calc(100% - 18px)); padding: 10px; }
  .color-theme-grid { gap: 6px; }
  .color-theme-swatch { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .color-theme-panel { animation: none; }
  .color-theme-swatch,
  .color-theme-swatch > i { transition: none; }
}

/* ============== TEMAS EN PANELES Y MODALES ============== */
body.has-color-theme :is(
  #publicQuickActions,
  #blocksPreviewModal,
  #proposalsModal,
  #surveyModal,
  #dashboardProposalsModal,
  #dashboardAddProposalModal,
  #dashboardProposalDislikesModal,
  #dashboardSurveyModal
) {
  color: var(--shell-text) !important;
  background-color: color-mix(in srgb, var(--visitor-backdrop) 88%, rgba(0, 0, 0, 0.7) 12%) !important;
}

body.has-color-theme :is(
  #publicQuickActions > .quick-actions-sheet,
  #blocksPreviewModal > .blocks-preview-inner,
  #proposalsModal > div,
  #surveyModal > div,
  #dashboardProposalsModal > div,
  #dashboardAddProposalModal > div,
  #dashboardProposalDislikesModal > div,
  #dashboardSurveyModal > div
) {
  color: var(--shell-text) !important;
  background: linear-gradient(180deg, var(--shell-surface), color-mix(in srgb, var(--shell-surface) 88%, var(--shell-accent) 12%)) !important;
  border-color: color-mix(in srgb, var(--shell-text) 18%, transparent) !important;
}

body.has-color-theme :is(
  #blocksPreviewModal .blocks-preview-topbar,
  #proposalsModal > div > div:first-child,
  #surveyModal > div > div:first-child,
  #dashboardProposalsModal > div > div:first-child,
  #dashboardAddProposalModal > div > div:first-child,
  #dashboardProposalDislikesModal > div > div:first-child,
  #dashboardSurveyModal > div > div:first-child
) {
  color: var(--visitor-primary-text) !important;
  background: var(--shell-primary) !important;
  border-color: color-mix(in srgb, var(--visitor-primary-text) 20%, transparent) !important;
}

body.has-color-theme :is(
  #blocksPreviewModal .blocks-preview-topbar,
  #proposalsModal > div > div:first-child,
  #surveyModal > div > div:first-child,
  #dashboardProposalsModal > div > div:first-child,
  #dashboardAddProposalModal > div > div:first-child,
  #dashboardProposalDislikesModal > div > div:first-child,
  #dashboardSurveyModal > div > div:first-child
) :is(h3, p, button, i, span) {
  color: var(--visitor-primary-text) !important;
}

body.has-color-theme :is(
  #dashboardProposalsContent,
  #dashboardProposalsFooter,
  #dashboardAddProposalModal form,
  #dashboardProposalDislikesModal > div > div:last-child,
  #dashboardSurveyContent,
  #proposalsModal > div > div:nth-child(2),
  #surveyModal > div > div:nth-child(2),
  #blocksPreviewModal .blocks-preview-body,
  #publicQuickActions .quick-actions-sheet
) {
  color: var(--shell-text) !important;
  background-color: transparent !important;
}

body.has-color-theme :is(
  #dashboardProposalsContent,
  #dashboardProposalsFooter,
  #dashboardAddProposalModal,
  #dashboardProposalDislikesModal,
  #dashboardSurveyContent,
  #proposalsModal > div > div:nth-child(2),
  #surveyModal > div > div:nth-child(2),
  #blocksPreviewModal .blocks-preview-body,
  #publicQuickActions .quick-actions-sheet
) :is(.text-white, .text-white\/90, .text-white\/85, .text-white\/80, .text-white\/70, .text-white\/65, .text-white\/60, .text-white\/55, .text-white\/50, .text-white\/40) {
  color: var(--shell-text) !important;
}

body.has-color-theme :is(
  #dashboardProposalEmpty,
  #dashboardProposalDislikesEmpty,
  #dashboardSurveySelectorCount,
  #dashboardSurveyBlockHint,
  #dashboardSurveyActiveMeta,
  #dashboardSurveyVisitorsInline
) {
  color: var(--shell-text) !important;
  opacity: 0.78;
}

body.has-color-theme :is(
  #dashboardProposalTitle,
  #dashboardProposalDescription,
  #dashboardSurveyQuestion,
  #dashboardSurveyStartsOnTrigger,
  #dashboardSurveyEndsOnTrigger,
  #dashboardSurveyOptions input
) {
  color: var(--shell-text) !important;
  background: color-mix(in srgb, var(--shell-surface) 78%, var(--shell-accent) 22%) !important;
  border-color: color-mix(in srgb, var(--shell-text) 22%, transparent) !important;
}

body.has-color-theme :is(
  #dashboardProposalsModal,
  #dashboardAddProposalModal,
  #dashboardSurveyModal
) :is(.bg-secondary, button[type="submit"]) {
  color: var(--visitor-secondary-text) !important;
  background: var(--shell-secondary) !important;
  border-color: color-mix(in srgb, var(--visitor-secondary-text) 18%, transparent) !important;
}

body.has-color-theme #blocksPreviewModal :is(.blocks-preview-stage, .block-card, .dashboard-block-surface, .tile-accent, .blocks-preview-add-card),
body.has-color-theme #publicQuickActions :is(.block-card, .featured-link-card, .quick-action-item) {
  color: var(--shell-text) !important;
  background: color-mix(in srgb, var(--shell-surface) 82%, var(--shell-accent) 18%) !important;
  border-color: color-mix(in srgb, var(--shell-text) 18%, transparent) !important;
}

body.has-color-theme #blocksPreviewModal :is(.block-title, .dashboard-block-title, .featured-link-title, .featured-link-subtitle),
body.has-color-theme #publicQuickActions :is(.block-title, .featured-link-title, .featured-link-subtitle, .quick-actions-title) {
  color: var(--shell-text) !important;
}

/* Paneles de gestión: superficies, texto y formularios coherentes con modo claro. */
body.theme-light :is(
  #dashboardProposalsModal,
  #dashboardSurveyModal
) > div {
  color: #12284f !important;
  background: #ffffff !important;
  border-color: rgba(18, 40, 79, 0.12) !important;
}

body.theme-light :is(
  #dashboardProposalsModal,
  #dashboardSurveyModal
) > div > div:first-child {
  color: #12284f !important;
  background: #f6f8fc !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
}

body.theme-light :is(
  #dashboardProposalsContent,
  #dashboardProposalsFooter,
  #dashboardSurveyContent
) {
  color: #12284f !important;
  background-color: #ffffff !important;
}

body.theme-light #dashboardProposalsFooter {
  background: #f6f8fc !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
}

body.theme-light :is(
  #dashboardProposalsContent,
  #dashboardProposalsFooter,
  #dashboardSurveyContent
) :is(.text-white, .text-white\/90, .text-white\/85, .text-white\/80, .text-white\/75, .text-white\/70, .text-white\/65, .text-white\/60, .text-white\/55, .text-white\/50, .text-white\/40) {
  color: #12284f !important;
}

body.theme-light #dashboardProposalList > [data-proposal-id],
body.theme-light .dashboard-survey-selector-btn {
  background: #f6f8fc !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
}

body.theme-light :is(
  #dashboardProposalsModal,
  #dashboardSurveyModal
) > div > div:first-child :is(h3, button, i) {
  color: #12284f !important;
}

body.theme-light #dashboardProposalsFooter .bg-secondary,
body.theme-light #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]) {
  color: #ffffff !important;
}

body.theme-light #dashboardProposalsShareBtn {
  color: #12284f !important;
  background: #ffffff !important;
  border-color: rgba(18, 40, 79, 0.14) !important;
}

body.theme-light #dashboardAddProposalModal > div {
  color: #12284f !important;
  background: #ffffff !important;
  border-color: rgba(18, 40, 79, 0.12) !important;
}

body.theme-light #dashboardAddProposalModal > div > div:first-child {
  background: #f6f8fc !important;
  border-color: rgba(18, 40, 79, 0.1) !important;
}

body.theme-light #dashboardAddProposalModal :is(h3, label, .text-white\/90, .text-white\/70, .text-white\/60) {
  color: #12284f !important;
}

body.theme-light :is(#dashboardProposalTitle, #dashboardProposalDescription) {
  color: #12284f !important;
  background: #f6f8fc !important;
  border-color: rgba(18, 40, 79, 0.16) !important;
}

body.theme-light :is(#dashboardProposalTitle, #dashboardProposalDescription)::placeholder {
  color: rgba(18, 40, 79, 0.48) !important;
}

body.theme-light #dashboardAddProposalModal button[type="submit"] {
  color: #ffffff !important;
}

body.theme-light #dashboardSurveyModal :is(
  #dashboardSurveyQuestion,
  #dashboardSurveyStartsOnTrigger,
  #dashboardSurveyEndsOnTrigger,
  .dashboard-survey-option-input
) {
  color: #12284f !important;
  background: #f6f8fc !important;
  border-color: rgba(18, 40, 79, 0.16) !important;
}

body.theme-light #dashboardSurveyModal :is(
  #dashboardSurveyQuestion,
  .dashboard-survey-option-input
)::placeholder {
  color: rgba(18, 40, 79, 0.48) !important;
}

body.theme-light #dashboardSurveyModal :is(
  #dashboardSurveyStartsOnDisplay,
  #dashboardSurveyEndsOnDisplay,
  .dashboard-survey-option-counter,
  #dashboardSurveyQuestionCounter
) {
  color: rgba(18, 40, 79, 0.62) !important;
}

body.theme-light #dashboardSurveyModal :is(
  .survey-status-filter-btn:not(.bg-secondary),
  #dashboardSurveySelectorAddBtn
) {
  color: #12284f !important;
  background: #f6f8fc !important;
  border-color: rgba(18, 40, 79, 0.12) !important;
}

/* Mis Plataformas comparte la capa clara coral y difusa del resto del dashboard. */
body.theme-light #blocksPreviewModal.share-fullscreen-modal {
  color: #12284f !important;
  background: rgba(229, 96, 86, 0.16) !important;
  -webkit-backdrop-filter: blur(22px) saturate(112%) !important;
  backdrop-filter: blur(22px) saturate(112%) !important;
}

body.theme-light #blocksPreviewModal .share-fullscreen-inner.blocks-preview-inner {
  color: #12284f !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 245, 0.9)) !important;
  border-color: rgba(229, 96, 86, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 24px 68px rgba(122, 45, 39, 0.18) !important;
}

body.theme-light #blocksPreviewModal .share-fullscreen-topbar.blocks-preview-topbar {
  background: rgba(255, 255, 255, 0.52) !important;
  border-color: rgba(229, 96, 86, 0.16) !important;
  -webkit-backdrop-filter: blur(18px) saturate(112%) !important;
  backdrop-filter: blur(18px) saturate(112%) !important;
}

body.theme-light #blocksPreviewModal :is(.share-fullscreen-title, .quick-actions-title, .blocks-preview-copy, .blocks-preview-helper) {
  color: #12284f !important;
}

body.theme-light #blocksPreviewModal :is(.share-fullscreen-close, .blocks-preview-edit-btn) {
  color: #b8443c !important;
  background: rgba(255, 255, 255, 0.68) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
  box-shadow: 0 8px 20px rgba(229, 96, 86, 0.1) !important;
}

body.theme-light #blocksPreviewModal .share-fullscreen-body.blocks-preview-body {
  background:
    radial-gradient(circle at 50% 7%, rgba(229, 96, 86, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 240, 240, 0.28)) !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-stage {
  background: rgba(255, 255, 255, 0.46) !important;
  border-color: rgba(229, 96, 86, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 30px rgba(229, 96, 86, 0.08) !important;
}

body.theme-light #blocksPreviewModal :is(.block-card, .dashboard-block-surface, .tile-accent, .blocks-preview-add-card, .blocks-preview-back-card) {
  color: #12284f !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 235, 235, 0.72)) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 24px rgba(229, 96, 86, 0.1) !important;
}

body.theme-light #blocksPreviewModal :is(.block-title, .dashboard-block-title, .featured-link-title, .featured-link-subtitle, .text-white\/50, .text-white\/60, .text-white\/70, .text-white\/80) {
  color: #12284f !important;
}

body.theme-light #blocksPreviewModal :is(.blocks-preview-add-card__icon, .blocks-preview-drag, .blocks-preview-action, .blocks-preview-lock-badge) {
  color: #b8443c !important;
  background: rgba(229, 96, 86, 0.1) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

/* Acentos coral compartidos por propuestas y encuestas en modo claro. */
body.theme-light :is(
  #dashboardProposalsModal,
  #dashboardSurveyModal
) > div {
  background: linear-gradient(180deg, #ffffff, #fff8f8) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 24px 62px rgba(229, 96, 86, 0.16) !important;
}

body.theme-light :is(
  #dashboardProposalsModal,
  #dashboardSurveyModal
) > div > div:first-child {
  background: linear-gradient(135deg, rgba(255, 246, 246, 0.96), rgba(255, 228, 226, 0.9)) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light :is(#dashboardProposalsContent, #dashboardSurveyContent) {
  background:
    radial-gradient(circle at 82% 0%, rgba(229, 96, 86, 0.1), transparent 34%),
    #ffffff !important;
}

body.theme-light #dashboardProposalsFooter {
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.9), rgba(255, 234, 232, 0.82)) !important;
  border-color: rgba(229, 96, 86, 0.18) !important;
}

body.theme-light :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn) {
  background: linear-gradient(145deg, #ffffff, #fff1f0) !important;
  border-color: rgba(229, 96, 86, 0.16) !important;
}

body.theme-light :is(
  #dashboardProposalsFooter .bg-secondary,
  #dashboardSurveyModal .bg-secondary,
  #dashboardSurveyModal .bg-sky-500,
  #dashboardSurveyModal button[type="submit"],
  #dashboardAddProposalModal button[type="submit"]
) {
  color: #ffffff !important;
  background: linear-gradient(180deg, #f3847a, #e56056 52%, #d24940) !important;
  border-color: rgba(204, 70, 60, 0.5) !important;
  box-shadow: 0 10px 22px rgba(229, 96, 86, 0.25) !important;
}

body.theme-light #dashboardAddProposalModal > div {
  background: linear-gradient(180deg, #ffffff, #fff8f8) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 24px 62px rgba(229, 96, 86, 0.16) !important;
}

body.theme-light #dashboardAddProposalModal > div > div:first-child {
  background: linear-gradient(135deg, rgba(255, 246, 246, 0.96), rgba(255, 228, 226, 0.9)) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light :is(#dashboardProposalTitle, #dashboardProposalDescription) {
  background: #fff9f9 !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
}

/* El panel se mantiene dentro de los márgenes del teléfono. */
body.theme-light #blocksPreviewModal .share-fullscreen-inner.blocks-preview-inner {
  box-sizing: border-box !important;
  width: calc(100% - 28px) !important;
  height: calc(100% - 24px) !important;
  max-width: 440px !important;
  max-height: 860px !important;
  margin: 12px auto !important;
  border-radius: 28px !important;
}

.platform-brand-icon--instagram .platform-brand-glyph,
.platform-brand-icon--youtube .platform-brand-glyph,
body.has-color-theme #blocksPreviewModal .blocks-preview-slot .platform-brand-icon--instagram .platform-brand-glyph,
body.has-color-theme #blocksPreviewModal .blocks-preview-slot .platform-brand-icon--youtube .platform-brand-glyph,
body.theme-light #blocksPreviewModal .blocks-preview-slot .platform-brand-icon--instagram .platform-brand-glyph,
body.theme-light #blocksPreviewModal .blocks-preview-slot .platform-brand-icon--youtube .platform-brand-glyph,
body.has-color-theme #publicQuickActions .platform-brand-icon--instagram .platform-brand-glyph,
body.has-color-theme #publicQuickActions .platform-brand-icon--youtube .platform-brand-glyph,
body.theme-light #publicQuickActions .platform-brand-icon--instagram .platform-brand-glyph,
body.theme-light #publicQuickActions .platform-brand-icon--youtube .platform-brand-glyph {
  color: #ffffff !important;
}

/* Semantic UI roles for the dashboard and public-profile shell.
   Brand-icon selectors deliberately remain outside this role system. */
body.has-color-theme [data-ui-surface="canvas"] {
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--ui-primary, var(--shell-primary)) 20%, transparent), transparent 30%),
    radial-gradient(circle at 82% 88%, color-mix(in srgb, var(--ui-primary, var(--shell-secondary)) 12%, transparent), transparent 36%),
    var(--ui-canvas, var(--shell-background)) !important;
  color: var(--ui-text, var(--shell-text)) !important;
}

body.has-color-theme [data-ui-surface="surface"] {
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--ui-primary, var(--shell-primary-light)) 14%, transparent), transparent 34%),
    var(--ui-surface, var(--shell-surface)) !important;
  border-color: var(--ui-border, color-mix(in srgb, var(--shell-text) 14%, transparent)) !important;
  color: var(--ui-text, var(--shell-text)) !important;
}

body.has-color-theme [data-ui-surface="raised"] {
  background: var(--ui-surface-raised, var(--shell-surface)) !important;
  border-color: var(--ui-border, color-mix(in srgb, var(--shell-text) 14%, transparent)) !important;
  color: var(--ui-text, var(--shell-text)) !important;
}

body.has-color-theme [data-ui-surface="card"] {
  background:
    linear-gradient(145deg, var(--ui-surface-raised, var(--shell-surface)), var(--ui-surface, var(--shell-surface))) !important;
  border-color: var(--ui-border, color-mix(in srgb, var(--shell-text) 12%, transparent)) !important;
  color: var(--ui-text, var(--shell-text)) !important;
}

body.has-color-theme [data-ui-role="text"] {
  color: var(--ui-text, var(--shell-text)) !important;
}

body.has-color-theme [data-ui-role="muted"] {
  color: var(--ui-text-muted, var(--shell-muted)) !important;
}

body.has-color-theme [data-ui-role="on-primary"] {
  color: var(--ui-on-primary, var(--visitor-primary-text)) !important;
  background: linear-gradient(180deg, var(--ui-primary, var(--shell-primary)), var(--ui-primary-hover, var(--shell-primary-hover))) !important;
  border-color: var(--ui-primary, var(--shell-primary)) !important;
}

body.has-color-theme [data-ui-surface] :focus-visible {
  outline: 3px solid var(--ui-focus, var(--shell-primary-light)) !important;
  outline-offset: 3px;
}

/* Mis Plataformas sigue el mismo patrón modal compacto que propuestas y encuestas. */
body.theme-light #blocksPreviewModal.share-fullscreen-modal {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  align-items: flex-start !important;
  padding: 0.75rem !important;
  overflow-y: auto !important;
}

body.theme-light #blocksPreviewModal .share-fullscreen-inner.blocks-preview-inner {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 32rem !important;
  max-height: 85vh !important;
  margin: 1.5rem auto 0 !important;
  border-radius: 1.5rem !important;
}

/* Acentos coral: elimina los restos azules en formularios del modo claro. */
body.theme-light :is(
  #dashboardProposalTitle,
  #dashboardProposalDescription,
  #dashboardSurveyQuestion,
  #dashboardSurveyStartsOnTrigger,
  #dashboardSurveyEndsOnTrigger,
  .dashboard-survey-option-input
) {
  color: #12284f !important;
  background: #fff9f9 !important;
  border-color: rgba(229, 96, 86, 0.26) !important;
}

body.theme-light :is(
  #dashboardProposalTitle,
  #dashboardProposalDescription,
  #dashboardSurveyQuestion,
  #dashboardSurveyStartsOnTrigger,
  #dashboardSurveyEndsOnTrigger,
  .dashboard-survey-option-input
):focus {
  outline: none !important;
  border-color: #e56056 !important;
  box-shadow: 0 0 0 2px rgba(229, 96, 86, 0.22) !important;
}

body.theme-light :is(
  #dashboardProposalTitle,
  #dashboardProposalDescription,
  #dashboardSurveyQuestion,
  .dashboard-survey-option-input
)::placeholder {
  color: rgba(163, 72, 64, 0.5) !important;
}

body.theme-light #dashboardSurveyModal :is(
  #dashboardSurveyStartsOnDisplay,
  #dashboardSurveyEndsOnDisplay,
  .dashboard-survey-option-counter,
  #dashboardSurveyQuestionCounter,
  .text-secondary
) {
  color: #c64b42 !important;
}

body.theme-light #dashboardSurveyModal .bg-secondary\/20 {
  background-color: rgba(229, 96, 86, 0.12) !important;
}

body.theme-light #dashboardSurveyModal .border-secondary\/20 {
  border-color: rgba(229, 96, 86, 0.22) !important;
}

body.theme-light #dashboardSurveyModal :is(.survey-status-filter-btn, #dashboardSurveySelectorAddBtn) {
  border-color: rgba(229, 96, 86, 0.2) !important;
}

/* El selector para añadir plataformas comparte el fondo claro; sus textos no heredan blanco. */
body.theme-light #addBlockModal {
  background: rgba(229, 96, 86, 0.14) !important;
}

body.theme-light #addBlockModal > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 246, 0.94)) !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
}

body.theme-light #addBlockModal :is(h2, p, h3) {
  color: #12284f !important;
}

body.theme-light #addBlockModal button:not([type="submit"]) {
  color: #12284f !important;
}

body.theme-light #addBlockModal button[type="button"]:has(h3) {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #addBlockModal button[type="button"]:has(h3):hover {
  background: rgba(255, 237, 237, 0.92) !important;
  border-color: rgba(229, 96, 86, 0.42) !important;
}

/* Formulario posterior a elegir una plataforma: conserva contraste en modo claro. */
body.theme-light #inputModal {
  background: rgba(229, 96, 86, 0.14) !important;
}

body.theme-light #inputModal > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 246, 0.94)) !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
}

body.theme-light #inputModal :is(h2, p, label) {
  color: #12284f !important;
}

body.theme-light #inputModal .glass-input {
  color: #12284f !important;
  background: #fff9f9 !important;
  border-color: rgba(229, 96, 86, 0.3) !important;
}

body.theme-light #inputModal .glass-input::placeholder {
  color: rgba(163, 72, 64, 0.5) !important;
}

body.theme-light #inputModal .glass-input:focus {
  border-color: #e56056 !important;
  box-shadow: 0 0 0 2px rgba(229, 96, 86, 0.22) !important;
}

body.theme-light #inputModal button:not([type="submit"]) {
  color: #12284f !important;
  background-color: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #inputModal button[type="submit"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef6b61, #d94a41) !important;
  border-color: rgba(185, 58, 50, 0.34) !important;
  box-shadow: 0 0.7rem 1.25rem rgba(217, 74, 65, 0.24) !important;
}

body.theme-light #inputModal button[type="submit"]:hover {
  background: linear-gradient(135deg, #f4786f, #df5148) !important;
}

/* Edición de bloques: versión clara del editor que antes conservaba la superficie nocturna. */
body.theme-light .edit-block-shell {
  --edit-accent: #ef6b61 !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(229, 96, 86, 0.18), transparent 42%),
    rgba(255, 250, 250, 0.9) !important;
}

body.theme-light .edit-block-dialog {
  color: #12284f !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 246, 0.94)) !important;
  border-color: rgba(229, 96, 86, 0.24) !important;
  box-shadow: 0 1.5rem 3.8rem rgba(115, 43, 40, 0.18), inset 0 1px 0 #ffffff !important;
}

body.theme-light .edit-block-dialog::before {
  background: linear-gradient(90deg, transparent, rgba(229, 96, 86, 0.44), transparent) !important;
}

body.theme-light .edit-block-dialog :is(h2, .edit-block-eyebrow, label) {
  color: #12284f !important;
}

body.theme-light .edit-block-heading__icon,
body.theme-light .edit-block-close {
  color: #c64b42 !important;
  background: rgba(229, 96, 86, 0.1) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light .edit-block-field {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(229, 96, 86, 0.18) !important;
}

body.theme-light .edit-block-shell :is(input[type="text"], input[type="number"], textarea, input[type="url"], input[type="email"], input[type="datetime-local"], input[type="tel"], select) {
  color: #12284f !important;
  background: #fff9f9 !important;
  border-color: rgba(229, 96, 86, 0.3) !important;
}

body.theme-light .edit-block-shell :is(input[type="text"], input[type="number"], textarea, input[type="url"], input[type="email"], input[type="datetime-local"], input[type="tel"], select):focus {
  outline: none !important;
  border-color: #e56056 !important;
  box-shadow: 0 0 0 2px rgba(229, 96, 86, 0.22) !important;
}

body.theme-light .edit-block-shell :is(input, textarea)::placeholder {
  color: rgba(163, 72, 64, 0.5) !important;
}

body.theme-light .edit-block-hint {
  color: #8d5d5a !important;
}

body.theme-light .edit-block-actions > a {
  color: #12284f !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light .edit-block-actions > button {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef6b61, #d94a41) !important;
  border-color: rgba(185, 58, 50, 0.34) !important;
  box-shadow: 0 0.7rem 1.25rem rgba(217, 74, 65, 0.24) !important;
}

/* Detalles de encuesta y creación de alternativas en la paleta clara coral. */
body.theme-light #dashboardSurveyAddOption {
  color: #c64b42 !important;
  background: rgba(229, 96, 86, 0.1) !important;
  border-color: rgba(229, 96, 86, 0.38) !important;
}

body.theme-light #dashboardSurveyAddOption:hover {
  color: #b8443c !important;
  background: rgba(229, 96, 86, 0.17) !important;
  border-color: rgba(229, 96, 86, 0.56) !important;
}

body.theme-light #dashboardSurveyActivePanel {
  border-color: rgba(229, 96, 86, 0.18) !important;
}

body.theme-light #dashboardSurveyActivePanel > div:last-child {
  background: linear-gradient(145deg, #ffffff, #fff1f0) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0.75rem 1.5rem rgba(229, 96, 86, 0.08) !important;
}

body.theme-light #dashboardSurveyActivePanel :is(
  #dashboardSurveyDetailHeading,
  #dashboardSurveyActiveQuestion,
  #dashboardSurveyActiveMeta,
  #dashboardSurveyVisitorsInline,
  #dashboardSurveyActiveOptions span
) {
  color: #12284f !important;
}

body.theme-light #dashboardSurveyActivePanel :is(#dashboardSurveyBackBtn, #dashboardSurveyDetailActions button) {
  color: #b8443c !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(229, 96, 86, 0.24) !important;
}

body.theme-light #dashboardSurveyActiveOptions .bg-white\/10 {
  background-color: rgba(229, 96, 86, 0.14) !important;
}

body.theme-light #dashboardSurveyActiveOptions .bg-secondary\/70 {
  background-color: #e56056 !important;
}

/* Edición de plataformas: los controles se alinean con el centro visual de cada tarjeta. */
body.theme-light #blocksPreviewModal .blocks-preview-drag {
  top: 50% !important;
  left: 0.65rem !important;
  transform: translateY(-50%) !important;
}

body.theme-light #blocksPreviewModal .blocks-preview-item__actions {
  top: 50% !important;
  right: 0.65rem !important;
  bottom: auto !important;
  align-items: center !important;
  transform: translateY(-50%) scale(1) !important;
}

/* Confirmación propia, consistente con el modo claro, al eliminar una plataforma. */
body.theme-light #deleteModal {
  background: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #deleteModal > div {
  color: #12284f !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 246, 0.94)) !important;
  border-color: rgba(229, 96, 86, 0.24) !important;
  box-shadow: 0 1.5rem 3.8rem rgba(115, 43, 40, 0.2), inset 0 1px 0 #ffffff !important;
}

body.theme-light #deleteModal :is(h3, p) {
  color: #12284f !important;
}

body.theme-light #deleteModal > div > div:first-child {
  background: rgba(229, 96, 86, 0.12) !important;
  border-color: rgba(229, 96, 86, 0.26) !important;
}

body.theme-light #deleteModal form button[type="button"] {
  color: #12284f !important;
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #deleteModal form button[type="submit"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef6b61, #d94a41) !important;
  border-color: rgba(185, 58, 50, 0.34) !important;
  box-shadow: 0 0.7rem 1.25rem rgba(217, 74, 65, 0.24) !important;
}

/* Geometría compartida por todos los temas: acciones alineadas con el logotipo. */
#blocksPreviewModal .blocks-preview-drag {
  top: 50% !important;
  left: 0.65rem !important;
  transform: translateY(-50%) !important;
}

#blocksPreviewModal .blocks-preview-item__actions {
  top: 50% !important;
  right: 0.65rem !important;
  bottom: auto !important;
  align-items: center !important;
  transform: translateY(-50%) scale(1) !important;
}

/* Respiro entre la barra de estado y la imagen principal. */
.app-hero {
  margin-top: 0.45rem;
}

/* Overlays secundarios del dashboard integrados al modo claro coral. */
body.theme-light #dashboardQuickActions.quick-actions-overlay {
  background: rgba(229, 96, 86, 0.18) !important;
  -webkit-backdrop-filter: blur(20px) saturate(112%) !important;
  backdrop-filter: blur(20px) saturate(112%) !important;
}

body.theme-light #dashboardQuickActions .quick-actions-sheet {
  color: #12284f !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 242, 0.94)) !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
  box-shadow: 0 -1rem 3rem rgba(115, 43, 40, 0.16), inset 0 1px 0 #ffffff !important;
}

body.theme-light #dashboardQuickActions :is(.quick-actions-title, .quick-actions-subtitle) {
  color: #8d5d5a !important;
}

body.theme-light #dashboardQuickActions .quick-actions-handle {
  background-color: rgba(229, 96, 86, 0.22) !important;
}

body.theme-light #dashboardQuickActions .quick-action-item {
  color: #12284f !important;
  background: rgba(255, 255, 255, 0.68) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #dashboardQuickActions .quick-action-item:hover {
  background: rgba(255, 237, 237, 0.9) !important;
  border-color: rgba(229, 96, 86, 0.42) !important;
}

body.theme-light #dashboardQuickActions :is(.quick-action-lead, .quick-action-item > i) {
  color: #12284f !important;
}

body.theme-light #dashboardQuickActions .quick-action-badge {
  color: #c64b42 !important;
  background: rgba(229, 96, 86, 0.12) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
  box-shadow: 0 0.35rem 0.8rem rgba(229, 96, 86, 0.1) !important;
}

body.theme-light #dashboardQuickActions .quick-action-badge > i {
  color: inherit !important;
}

/* Perfil y lista de correos: evita texto blanco heredado sobre los modales claros. */
body.theme-light :is(#profileModal, #dashboardEmailsModal) {
  background: rgba(229, 96, 86, 0.16) !important;
}

body.theme-light #profileModal > div,
body.theme-light #dashboardEmailsModal > div {
  color: #12284f !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 246, 0.94)) !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
  box-shadow: 0 1.5rem 3.8rem rgba(115, 43, 40, 0.18), inset 0 1px 0 #ffffff !important;
}

body.theme-light #profileModal :is(h2, label),
body.theme-light #dashboardEmailsModal :is(h3, p, [class*="text-white"]) {
  color: #12284f !important;
}

body.theme-light #profileModal :is(.glass-input, .glass-select) {
  color: #12284f !important;
  background: #fff9f9 !important;
  border-color: rgba(229, 96, 86, 0.3) !important;
}

body.theme-light #profileModal :is(.glass-input, .glass-select):focus {
  outline: none !important;
  border-color: #e56056 !important;
  box-shadow: 0 0 0 2px rgba(229, 96, 86, 0.22) !important;
}

body.theme-light #profileModal :is(.glass-input, .glass-select)::placeholder {
  color: rgba(163, 72, 64, 0.5) !important;
}

body.theme-light #profileModal button:not([type="submit"]) {
  color: #12284f !important;
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #profileModal button[type="submit"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef6b61, #d94a41) !important;
  border-color: rgba(185, 58, 50, 0.34) !important;
  box-shadow: 0 0.7rem 1.25rem rgba(217, 74, 65, 0.24) !important;
}

body.theme-light #dashboardEmailsModal > div > div:first-child {
  background: rgba(255, 250, 250, 0.7) !important;
  border-color: rgba(229, 96, 86, 0.16) !important;
}

body.theme-light #dashboardEmailsModal :is(#dashboardEmailsExportBtn, #dashboardEmailsRefreshBtn, #dashboardEmailsEmpty button) {
  color: #12284f !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #dashboardEmailsModal :is(#dashboardEmailsEmpty > div, #dashboardEmailsLoading > div) {
  color: #c64b42 !important;
  background: rgba(229, 96, 86, 0.1) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #dashboardEmailsList > li {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #dashboardEmailsList > li > div {
  background: rgba(255, 242, 242, 0.58) !important;
  border-color: rgba(229, 96, 86, 0.16) !important;
}

body.theme-light #dashboardEmailsList :is([class*="text-white"], [class*="bg-white"]) {
  color: #12284f !important;
  border-color: rgba(229, 96, 86, 0.18) !important;
}

body.theme-light #dashboardEmailsList a[class*="bg-primary"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef6b61, #d94a41) !important;
}

/* Acceso biométrico y configuración de cuenta con el mismo contraste claro. */
body.theme-light :is(#webAuthnModal, #accountSettingsModal) {
  background: rgba(229, 96, 86, 0.16) !important;
}

body.theme-light #webAuthnModal > div,
body.theme-light #accountSettingsModal > div > div {
  color: #12284f !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 246, 0.94)) !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
  box-shadow: 0 1.5rem 3.8rem rgba(115, 43, 40, 0.18), inset 0 1px 0 #ffffff !important;
}

body.theme-light :is(#webAuthnModal, #accountSettingsModal) :is(h2, h3, p, label, [class*="text-white"]) {
  color: #12284f !important;
}

body.theme-light :is(#webAuthnModal, #accountSettingsModal) :is([class*="bg-white"], [class*="bg-black"]) {
  background-color: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light :is(#webAuthnModal, #accountSettingsModal) :is(input, select, textarea) {
  color: #12284f !important;
  background: #fff9f9 !important;
  border-color: rgba(229, 96, 86, 0.3) !important;
}

body.theme-light :is(#webAuthnModal, #accountSettingsModal) :is(input, select, textarea):focus {
  outline: none !important;
  border-color: #e56056 !important;
  box-shadow: 0 0 0 2px rgba(229, 96, 86, 0.22) !important;
}

body.theme-light :is(#webAuthnModal, #accountSettingsModal) :is(input, textarea)::placeholder {
  color: rgba(163, 72, 64, 0.5) !important;
}

body.theme-light :is(#webAuthnModal .w-11, #accountSettingsModal .w-10) {
  color: #c64b42 !important;
  background: rgba(229, 96, 86, 0.12) !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
}

body.theme-light :is(#btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef6b61, #d94a41) !important;
  border-color: rgba(185, 58, 50, 0.34) !important;
  box-shadow: 0 0.7rem 1.25rem rgba(217, 74, 65, 0.22) !important;
}

body.theme-light #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li) {
  color: #12284f !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

body.theme-light #webAuthnModal > div > div:last-child button,
body.theme-light #accountSettingsModal .account-pw-toggle {
  color: #12284f !important;
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
}

/* Ningún acento azul queda en los accesos rápidos del modo claro. */
body.theme-light #dashboardEmailsModal > div > div:first-child .w-9 {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef6b61, #d94a41) !important;
  border-color: rgba(185, 58, 50, 0.34) !important;
  box-shadow: 0 0.55rem 1.2rem rgba(217, 74, 65, 0.22) !important;
}

body.theme-light :is(#btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn) :is(i, span) {
  color: #ffffff !important;
}

body.theme-light #shareModal.share-fullscreen-modal {
  background: rgba(229, 96, 86, 0.18) !important;
  -webkit-backdrop-filter: blur(20px) saturate(112%) !important;
  backdrop-filter: blur(20px) saturate(112%) !important;
}

body.theme-light #shareModal .share-fullscreen-inner {
  color: #12284f !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 246, 246, 0.94)) !important;
  border-color: rgba(229, 96, 86, 0.22) !important;
}

body.theme-light #shareModal :is(.share-fullscreen-topbar, .share-fullscreen-body) {
  background: transparent !important;
}

body.theme-light #shareModal :is(.share-fullscreen-title, .share-section-title) {
  color: #12284f !important;
}

body.theme-light #shareModal .share-fullscreen-close {
  color: #b8443c !important;
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(229, 96, 86, 0.24) !important;
}

body.theme-light #shareModal .share-qr-card {
  background: #ffffff !important;
  border-color: rgba(229, 96, 86, 0.24) !important;
  box-shadow: 0 0.9rem 2rem rgba(229, 96, 86, 0.12) !important;
}

body.theme-light #shareModal :is(.share-qr-kicker, .share-qr-url, .share-qr-download-btn) {
  color: #12284f !important;
}

body.theme-light #shareModal .share-qr-download-btn {
  background: rgba(229, 96, 86, 0.1) !important;
  border-color: rgba(229, 96, 86, 0.24) !important;
}

body.theme-light #shareModal .share-social-card {
  color: #12284f !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(229, 96, 86, 0.2) !important;
  box-shadow: 0 0.55rem 1.3rem rgba(229, 96, 86, 0.08) !important;
}

body.theme-light #shareModal .share-social-card:hover {
  background: rgba(255, 237, 237, 0.92) !important;
  border-color: rgba(229, 96, 86, 0.42) !important;
}

body.theme-light #shareModal .share-social-label {
  color: #12284f !important;
}

body.theme-light #shareModal .share-social-card:not(.share-social--link) .share-social-icon {
  background: transparent !important;
  border-color: transparent !important;
}

/* Deja un respiro visible entre la última tarjeta y las acciones del perfil. */
.dashboard-shell .bottom-action-bar {
  padding-top: clamp(0.8rem, 2vh, 1rem);
}

body.theme-light .dashboard-shell .bottom-action-bar {
  padding-top: clamp(0.8rem, 2vh, 1rem) !important;
}

/* Modo normal: los ajustes conservan la familia azul del perfil. */
body[data-color-theme="original"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal) {
  background: rgba(3, 12, 28, 0.82) !important;
}

body[data-color-theme="original"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div) {
  color: #f4f8ff !important;
  background: linear-gradient(160deg, #162d4a 0%, #09192d 100%) !important;
  border-color: rgba(122, 170, 239, 0.28) !important;
  box-shadow: 0 1.5rem 3.8rem rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body[data-color-theme="original"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal) :is(h2, h3) {
  color: #f4f8ff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.2 !important;
}

body[data-color-theme="original"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal) :is(p, label, span) {
  font-family: 'Outfit', sans-serif;
}

body[data-color-theme="original"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal) :is(label, [class*="text-white/"], [class*="text-white"]) {
  color: rgba(226, 238, 255, 0.76) !important;
}

body[data-color-theme="original"] :is(#profileModal, #accountSettingsModal) :is(.glass-input, .glass-select, input, select, textarea) {
  color: #f4f8ff !important;
  background: rgba(3, 12, 28, 0.64) !important;
  border-color: rgba(152, 190, 245, 0.22) !important;
}

body[data-color-theme="original"] :is(#profileModal, #accountSettingsModal) :is(.glass-input, .glass-select, input, select, textarea):focus {
  border-color: #4d90f4 !important;
  box-shadow: 0 0 0 2px rgba(77, 144, 244, 0.24) !important;
}

body[data-color-theme="original"] :is(#profileModal, #accountSettingsModal) :is(input, textarea)::placeholder {
  color: rgba(202, 222, 251, 0.48) !important;
}

body[data-color-theme="original"] :is(#dashboardEmailsModal > div > div:first-child, #webAuthnModal > div > div:first-child, #accountSettingsModal > div > div > div:first-child) {
  border-color: rgba(122, 170, 239, 0.18) !important;
}

body[data-color-theme="original"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) {
  color: #f4f8ff !important;
  background: linear-gradient(135deg, #4d90f4, #2f6dd1) !important;
  border-color: rgba(206, 226, 255, 0.24) !important;
  box-shadow: 0 0.55rem 1.2rem rgba(47, 109, 209, 0.24) !important;
}

body[data-color-theme="original"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #4d90f4, #2f6dd1) !important;
  border-color: rgba(206, 226, 255, 0.24) !important;
  box-shadow: 0 0.7rem 1.25rem rgba(47, 109, 209, 0.28) !important;
}

body[data-color-theme="original"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn) :is(i, span) {
  color: #ffffff !important;
}

body[data-color-theme="original"] #dashboardEmailsModal :is(#dashboardEmailsExportBtn, #dashboardEmailsRefreshBtn),
body[data-color-theme="original"] #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li),
body[data-color-theme="original"] #webAuthnModal > div > div:last-child button,
body[data-color-theme="original"] #accountSettingsModal .account-pw-toggle {
  color: #edf5ff !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(152, 190, 245, 0.2) !important;
}

body[data-color-theme="original"] #webAuthnModal .text-violet-200,
body[data-color-theme="original"] #dashboardEmailsModal #dashboardEmailsEmpty > div {
  color: #76aaf5 !important;
}

/* Propuestas y encuestas: la misma jerarquía azul del resto de modales normales. */
body[data-color-theme="original"] :is(#dashboardProposalsModal, #dashboardSurveyModal) {
  background: rgba(3, 12, 28, 0.82) !important;
}

body[data-color-theme="original"] :is(#dashboardProposalsModal, #dashboardSurveyModal) > div {
  color: #f4f8ff !important;
  background: linear-gradient(160deg, #162d4a 0%, #09192d 100%) !important;
  border-color: rgba(122, 170, 239, 0.28) !important;
  box-shadow: 0 1.5rem 3.8rem rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body[data-color-theme="original"] :is(#dashboardProposalsModal, #dashboardSurveyModal) > div > div:first-child,
body[data-color-theme="original"] :is(#dashboardProposalsFooter, #dashboardSurveyContent) {
  background: rgba(7, 22, 43, 0.62) !important;
  border-color: rgba(122, 170, 239, 0.18) !important;
}

body[data-color-theme="original"] :is(#dashboardProposalsModal, #dashboardSurveyModal) :is(h3, p, label, button, span) {
  font-family: 'Outfit', sans-serif;
}

body[data-color-theme="original"] :is(#dashboardProposalsModal, #dashboardSurveyModal) h3 {
  color: #f4f8ff !important;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.2 !important;
}

body[data-color-theme="original"] :is(#dashboardProposalsModal, #dashboardSurveyModal) :is(.text-white, .text-white\/90, .text-white\/85, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/55, .text-white\/50, .text-white\/40) {
  color: rgba(226, 238, 255, 0.78) !important;
}

body[data-color-theme="original"] :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn, #dashboardSurveySelectorAddBtn) {
  color: #edf5ff !important;
  background: rgba(3, 12, 28, 0.52) !important;
  border-color: rgba(152, 190, 245, 0.24) !important;
}

body[data-color-theme="original"] :is(#dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"])) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #4d90f4, #2f6dd1) !important;
  border-color: rgba(206, 226, 255, 0.24) !important;
  box-shadow: 0 0.7rem 1.25rem rgba(47, 109, 209, 0.28) !important;
}

body[data-color-theme="original"] #dashboardProposalsShareBtn,
body[data-color-theme="original"] #dashboardSurveyModal :is(.survey-status-filter-btn, #dashboardSurveyAddOption, #dashboardSurveyResetBtn, #dashboardSurveyBackBtn) {
  color: #edf5ff !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(152, 190, 245, 0.2) !important;
}
/* Impide que preguntas y alternativas extensas desborden el detalle. */
#dashboardSurveyActiveQuestion,
#dashboardSurveyActiveOptions .space-y-1 > div:first-child > span:first-child {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

#dashboardSurveyActiveOptions .space-y-1 > div:first-child {
  align-items: flex-start !important;
  gap: 0.75rem;
}

#dashboardSurveyActiveOptions .space-y-1 > div:first-child > span:first-child {
  flex: 1 1 auto;
}

#dashboardSurveyActiveOptions .space-y-1 > div:first-child > span:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Tema rojo: una única escala cromática para cada capa de gestión. */
body[data-color-theme="red"] :is(
  #profileModal,
  #dashboardEmailsModal,
  #webAuthnModal,
  #accountSettingsModal,
  #dashboardProposalsModal,
  #dashboardSurveyModal,
  #dashboardQuickActions,
  #shareModal,
  #blocksPreviewModal,
  #addBlockModal,
  #inputModal,
  #deleteModal,
  .edit-block-shell
) {
  background: rgba(127, 29, 29, 0.4) !important;
}

body[data-color-theme="red"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div, #dashboardProposalsModal > div, #dashboardSurveyModal > div) {
  color: #1f2937 !important;
  background: #ffffff !important;
  border-color: #f3d4d6 !important;
  box-shadow: 0 1.5rem 3.8rem rgba(127, 29, 29, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body[data-color-theme="red"] :is(#dashboardQuickActions .quick-actions-sheet, #shareModal .share-fullscreen-inner, #blocksPreviewModal .share-fullscreen-inner, #addBlockModal > div, #inputModal > div, #deleteModal > div, .edit-block-dialog) {
  color: #1f2937 !important;
  background: #ffffff !important;
  border-color: #f3d4d6 !important;
  box-shadow: 0 1.5rem 3.8rem rgba(127, 29, 29, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body[data-color-theme="red"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, p, label, span, .text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/50) {
  color: #6b7280 !important;
}

body[data-color-theme="red"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, .quick-actions-title, .share-fullscreen-title, .blocks-preview-copy) {
  color: #1f2937 !important;
}

body[data-color-theme="red"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea) {
  color: #1f2937 !important;
  background: #fff7f7 !important;
  border-color: #f3d4d6 !important;
}

body[data-color-theme="red"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea):focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18) !important;
}

body[data-color-theme="red"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(input, textarea)::placeholder {
  color: #6b7280 !important;
}

body[data-color-theme="red"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"])) {
  color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 0.7rem 1.25rem rgba(220, 38, 38, 0.28) !important;
}

body[data-color-theme="red"] :is(#dashboardProposalsShareBtn, #dashboardSurveyModal :is(.survey-status-filter-btn, #dashboardSurveyAddOption, #dashboardSurveyResetBtn, #dashboardSurveyBackBtn), #dashboardEmailsExportBtn, #dashboardEmailsRefreshBtn, #webAuthnModal > div > div:last-child button, #accountSettingsModal .account-pw-toggle, .edit-block-actions > a, #inputModal button:not([type="submit"])) {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border-color: #f3d4d6 !important;
}

body[data-color-theme="red"] :is(#dashboardProposalsContent, #dashboardSurveyContent, #dashboardProposalsFooter, #dashboardSurveyActivePanel > div:last-child, #dashboardEmailsList > li, #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li), .edit-block-field, #blocksPreviewModal .blocks-preview-stage, #shareModal .share-qr-card, #shareModal .share-social-card) {
  background: #fff1f2 !important;
  border-color: #f3d4d6 !important;
}

/* Superficies que permanecen visibles fuera de los modales. */
body[data-color-theme="red"] :is(.dashboard-shell, .public-profile-shell) {
  --ui-canvas: #fef2f2 !important;
  --ui-surface: #ffffff !important;
  --ui-surface-raised: #fff7f7 !important;
  --ui-text: #1f2937 !important;
  --ui-text-muted: #6b7280 !important;
  --ui-border: #f3d4d6 !important;
  --ui-primary: #dc2626 !important;
  --ui-primary-hover: #b91c1c !important;
  --ui-on-primary: #ffffff !important;
}

body[data-color-theme="red"] :is(.featured-link-card, .block-card, .dashboard-block-surface, .tile-accent, .dashboard-survey-selector-btn, #dashboardProposalList > [data-proposal-id], .quick-action-item) {
  color: #1f2937 !important;
  background: #fff7f7 !important;
  border-color: #f3d4d6 !important;
}

body[data-color-theme="red"] :is(.featured-link-title, .block-title, .dashboard-block-title, .hero-name, .quick-actions-title) {
  color: #1f2937 !important;
}

body[data-color-theme="red"] :is(.featured-link-subtitle, .profile-subtitle, .hero-role, .quick-actions-subtitle) {
  color: #6b7280 !important;
}

body[data-color-theme="red"] :is(.app-status-chip, .app-theme-toggle, .featured-link-icon, .quick-action-badge, .dashboardSurveyActiveOptions .bg-white\/10) {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #f3d4d6 !important;
}

body[data-color-theme="red"] :is(.bg-primary, .bg-secondary, .dashboard-shell .bottom-action-bar > button:first-child, #dashboardSurveySelectorAddBtn, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) {
  color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

body[data-color-theme="red"] :is(.bg-primary, .bg-secondary, .dashboard-shell .bottom-action-bar > button:first-child, #dashboardSurveySelectorAddBtn, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

/* Etiquetas de estado de encuestas según la referencia del tema rojo. */
body[data-color-theme="red"] .dashboard-survey-selector-btn[data-status="open"] > div > span {
  color: #dc2626 !important;
  background: #fee2e2 !important;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

body[data-color-theme="red"] .dashboard-survey-selector-btn[data-status="closed"] > div > span {
  color: #6b7280 !important;
  background: #e5e7eb !important;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

/* Los encabezados son una superficie independiente, nunca una capa oscura heredada. */
body[data-color-theme="red"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal) > div > div:first-child {
  background: #ffffff !important;
  border-color: #f3d4d6 !important;
}

body[data-color-theme="red"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal) > div > div:first-child :is(h2, h3, p, span, button, i) {
  color: #1f2937 !important;
}

/* La acción primaria conserva texto blanco, incluidos sus iconos y etiquetas internas. */
body[data-color-theme="red"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"])) :is(i, span) {
  color: #ffffff !important;
}

body[data-color-theme="red"] :is(#dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) {
  color: #ffffff !important;
}

body[data-color-theme="red"] #dashboardSurveyModal .survey-status-filter-btn.bg-secondary {
  color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 0.6rem 1rem rgba(220, 38, 38, 0.22) !important;
}

body[data-color-theme="red"] #dashboardSurveyModal .survey-status-filter-btn.bg-secondary span {
  color: #ffffff !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body[data-color-theme="red"] #dashboardSurveyModal .survey-status-filter-btn:not(.bg-secondary) {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border-color: #f3d4d6 !important;
  box-shadow: none !important;
}

body[data-color-theme="red"] #dashboardSurveyModal .survey-status-filter-btn:not(.bg-secondary) span {
  color: #b91c1c !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* La selección se obtiene del estado real emitido por el renderizador. */
body[data-color-theme="red"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] {
  color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 0.6rem 1rem rgba(220, 38, 38, 0.22) !important;
}

body[data-color-theme="red"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] span {
  color: #ffffff !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body[data-color-theme="red"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border-color: #f3d4d6 !important;
  box-shadow: none !important;
}

body[data-color-theme="red"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] span {
  color: #b91c1c !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Tema amarillo: capa autónoma con la especificación aprobada. */
body[data-color-theme="yellow"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) {
  background: rgba(120, 53, 15, 0.28) !important;
}

body[data-color-theme="yellow"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div, #dashboardProposalsModal > div, #dashboardSurveyModal > div, #dashboardQuickActions .quick-actions-sheet, #shareModal .share-fullscreen-inner, #blocksPreviewModal .share-fullscreen-inner, #addBlockModal > div, #inputModal > div, #deleteModal > div, .edit-block-dialog) {
  color: #1f2937 !important;
  background: #ffffff !important;
  border-color: #fde68a !important;
  box-shadow: 0 1.5rem 3.8rem rgba(120, 53, 15, 0.2) !important;
}

body[data-color-theme="yellow"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, p, label, span, .text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/50) {
  color: #6b7280 !important;
}

body[data-color-theme="yellow"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, .quick-actions-title, .share-fullscreen-title) {
  color: #1f2937 !important;
}

body[data-color-theme="yellow"] :is(#dashboardProposalsContent, #dashboardSurveyContent, #dashboardProposalsFooter, #dashboardSurveyActivePanel > div:last-child, #dashboardEmailsList > li, #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li), .edit-block-field, #blocksPreviewModal .blocks-preview-stage, #shareModal .share-qr-card, #shareModal .share-social-card) {
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

body[data-color-theme="yellow"] :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn, #dashboardSurveySelectorAddBtn, .featured-link-card, .block-card, .dashboard-block-surface, .tile-accent, .quick-action-item) {
  color: #1f2937 !important;
  background: #fffdf5 !important;
  border-color: #fde68a !important;
}

body[data-color-theme="yellow"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea) {
  color: #1f2937 !important;
  background: #fffdf5 !important;
  border-color: #fde68a !important;
}

body[data-color-theme="yellow"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea):focus {
  border-color: #facc15 !important;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25) !important;
}

body[data-color-theme="yellow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) {
  color: #1f2937 !important;
  background: #facc15 !important;
  border-color: #facc15 !important;
}

body[data-color-theme="yellow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover {
  background: #eab308 !important;
  border-color: #eab308 !important;
}

body[data-color-theme="yellow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) {
  color: #1f2937 !important;
}

body[data-color-theme="yellow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] {
  color: #1f2937 !important;
  background: #facc15 !important;
  border-color: #facc15 !important;
}

body[data-color-theme="yellow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] span {
  color: #1f2937 !important;
  background: transparent !important;
}

body[data-color-theme="yellow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] {
  color: #6b7280 !important;
  background: #ffffff !important;
  border-color: #fde68a !important;
}

body[data-color-theme="yellow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] span {
  color: #6b7280 !important;
  background: transparent !important;
}

body[data-color-theme="yellow"] .dashboard-survey-selector-btn[data-status="open"] > div > span {
  color: #b45309 !important;
  background: #fef3c7 !important;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

body[data-color-theme="yellow"] .dashboard-survey-selector-btn[data-status="closed"] > div > span {
  color: #6b7280 !important;
  background: #e5e7eb !important;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

/* Iconos: los pictogramas de interfaz pertenecen al tema activo. El Excel conserva
 * verde porque identifica el formato del archivo, no una acción cromática del tema. */
body[data-color-theme="red"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) {
  color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

body[data-color-theme="red"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i {
  color: #ffffff !important;
}

body[data-color-theme="red"] :is(#dashboardEmailsRefreshBtn i, #webAuthnModal :is(#webauthnNotSupported i, #webauthnRegisterStatus i, #webauthnCredList i), #accountSettingsModal :is(.account-pw-toggle, .account-pw-toggle i, .relative > span i)) {
  color: #b91c1c !important;
}

body[data-color-theme="red"] :is(#dashboardEmailsModal, #webAuthnModal, #accountSettingsModal) button[aria-label="Cerrar"] :is(i, svg) {
  color: #6b7280 !important;
}

body[data-color-theme="yellow"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) {
  color: #1f2937 !important;
  background: #facc15 !important;
  border-color: #facc15 !important;
}

body[data-color-theme="yellow"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i {
  color: #1f2937 !important;
}

body[data-color-theme="yellow"] :is(#dashboardEmailsRefreshBtn i, #webAuthnModal :is(#webauthnNotSupported i, #webauthnRegisterStatus i, #webauthnCredList i), #accountSettingsModal :is(.account-pw-toggle, .account-pw-toggle i, .relative > span i)) {
  color: #6b7280 !important;
}

body[data-color-theme="yellow"] :is(#dashboardEmailsModal, #webAuthnModal, #accountSettingsModal) button[aria-label="Cerrar"] :is(i, svg) {
  color: #6b7280 !important;
}

body:is([data-color-theme="red"], [data-color-theme="yellow"]) #dashboardEmailsExportBtn .fa-file-excel {
  color: #10b981 !important;
}

/* Tema azul: capa autónoma, sin heredar la identidad visual de otros temas. */
body[data-color-theme="blue"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) {
  background: rgba(30, 64, 175, 0.5) !important;
}

body[data-color-theme="blue"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div, #dashboardProposalsModal > div, #dashboardSurveyModal > div, #dashboardQuickActions .quick-actions-sheet, #shareModal .share-fullscreen-inner, #blocksPreviewModal .share-fullscreen-inner, #addBlockModal > div, #inputModal > div, #deleteModal > div, .edit-block-dialog) {
  color: #1e293b !important;
  background: #ffffff !important;
  border-color: #d6e4f0 !important;
  box-shadow: 0 1.5rem 3.8rem rgba(30, 64, 175, 0.24) !important;
}

body[data-color-theme="blue"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, p, label, span, .text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/50) {
  color: #64748b !important;
}

body[data-color-theme="blue"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, .quick-actions-title, .share-fullscreen-title, .blocks-preview-copy) {
  color: #1e293b !important;
}

body[data-color-theme="blue"] :is(#dashboardProposalsContent, #dashboardSurveyContent, #dashboardProposalsFooter, #dashboardSurveyActivePanel > div:last-child, #dashboardEmailsList > li, #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li), .edit-block-field, #blocksPreviewModal .blocks-preview-stage, #shareModal .share-qr-card, #shareModal .share-social-card) {
  background: #eff6ff !important;
  border-color: #d6e4f0 !important;
}

body[data-color-theme="blue"] :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn, #dashboardSurveySelectorAddBtn, .featured-link-card, .block-card, .dashboard-block-surface, .tile-accent, .quick-action-item) {
  color: #1e293b !important;
  background: #f8fbff !important;
  border-color: #d6e4f0 !important;
}

body[data-color-theme="blue"] :is(.dashboard-shell, .public-profile-shell) {
  --ui-canvas: #eff6ff !important;
  --ui-surface: #ffffff !important;
  --ui-surface-raised: #f8fbff !important;
  --ui-text: #1e293b !important;
  --ui-text-muted: #64748b !important;
  --ui-border: #d6e4f0 !important;
  --ui-primary: #2563eb !important;
  --ui-primary-hover: #1d4ed8 !important;
  --ui-on-primary: #ffffff !important;
}

body[data-color-theme="blue"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea) {
  color: #1e293b !important;
  background: #f8fbff !important;
  border-color: #d6e4f0 !important;
}

body[data-color-theme="blue"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea):focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

body[data-color-theme="blue"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

body[data-color-theme="blue"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

body[data-color-theme="blue"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) {
  color: #ffffff !important;
}

body[data-color-theme="blue"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

body[data-color-theme="blue"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] span {
  color: #ffffff !important;
  background: transparent !important;
}

body[data-color-theme="blue"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] {
  color: #64748b !important;
  background: #f8fbff !important;
  border-color: #d6e4f0 !important;
}

body[data-color-theme="blue"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] span {
  color: #64748b !important;
  background: transparent !important;
}

body[data-color-theme="blue"] .dashboard-survey-selector-btn[data-status="open"] > div > span {
  color: #2563eb !important;
  background: #dbeafe !important;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

body[data-color-theme="blue"] .dashboard-survey-selector-btn[data-status="closed"] > div > span {
  color: #64748b !important;
  background: #e2e8f0 !important;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

body[data-color-theme="blue"] #dashboardQuickActions .quick-action-badge {
  color: #2563eb !important;
  background: #dbeafe !important;
  border-color: #d6e4f0 !important;
}

body[data-color-theme="blue"] #dashboardQuickActions :is(.quick-action-badge, .quick-action-item > i) i,
body[data-color-theme="blue"] #dashboardQuickActions .quick-action-item > i {
  color: #64748b !important;
}

body[data-color-theme="blue"] #dashboardQuickActions .quick-action-badge i {
  color: #2563eb !important;
}

body[data-color-theme="blue"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

body[data-color-theme="blue"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i,
body[data-color-theme="blue"] :is(#dashboardEmailsRefreshBtn i, #webAuthnModal :is(#webauthnNotSupported i, #webauthnRegisterStatus i, #webauthnCredList i), #accountSettingsModal :is(.account-pw-toggle, .account-pw-toggle i, .relative > span i), #dashboardEmailsModal button[aria-label="Cerrar"] i, #webAuthnModal button[aria-label="Cerrar"] i, #accountSettingsModal button[aria-label="Cerrar"] i) {
  color: #64748b !important;
}

body[data-color-theme="blue"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i {
  color: #ffffff !important;
}

body[data-color-theme="blue"] #dashboardEmailsExportBtn .fa-file-excel {
  color: #10b981 !important;
}

/* Acciones del tema amarillo: una sola escala, incluso ante estilos inline. */
body[data-color-theme="yellow"] #dashboardQuickActions .quick-action-badge {
  color: #1f2937 !important;
  background: #fef9c3 !important;
  border-color: #fde68a !important;
}

body[data-color-theme="yellow"] #dashboardQuickActions .quick-action-badge i {
  color: #1f2937 !important;
}

body[data-color-theme="yellow"] #dashboardQuickActions .quick-action-item > i {
  color: #6b7280 !important;
}

/* Tema verde: capa autónoma con la paleta aprobada. */
body[data-color-theme="green"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) {
  background: rgba(20, 83, 45, 0.32) !important;
}

body[data-color-theme="green"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div, #dashboardProposalsModal > div, #dashboardSurveyModal > div, #dashboardQuickActions .quick-actions-sheet, #shareModal .share-fullscreen-inner, #blocksPreviewModal .share-fullscreen-inner, #addBlockModal > div, #inputModal > div, #deleteModal > div, .edit-block-dialog) {
  color: #1f2937 !important; background: #ffffff !important; border-color: #bbf7d0 !important; box-shadow: 0 1.5rem 3.8rem rgba(20, 83, 45, 0.22) !important;
}

body[data-color-theme="green"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, .quick-actions-title, .share-fullscreen-title, .blocks-preview-copy) { color: #1f2937 !important; }
body[data-color-theme="green"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(p, label, span, .text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/50) { color: #6b7280 !important; }

body[data-color-theme="green"] :is(#dashboardProposalsContent, #dashboardSurveyContent, #dashboardProposalsFooter, #dashboardSurveyActivePanel > div:last-child, #dashboardEmailsList > li, #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li), .edit-block-field, #blocksPreviewModal .blocks-preview-stage, #shareModal .share-qr-card, #shareModal .share-social-card) { background: #f0fdf4 !important; border-color: #bbf7d0 !important; }
body[data-color-theme="green"] :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn, #dashboardSurveySelectorAddBtn, .featured-link-card, .block-card, .dashboard-block-surface, .tile-accent, .quick-action-item) { color: #1f2937 !important; background: #f7fcf8 !important; border-color: #bbf7d0 !important; }

body[data-color-theme="green"] :is(.dashboard-shell, .public-profile-shell) { --ui-canvas: #f0fdf4 !important; --ui-surface: #ffffff !important; --ui-surface-raised: #f7fcf8 !important; --ui-text: #1f2937 !important; --ui-text-muted: #6b7280 !important; --ui-border: #bbf7d0 !important; --ui-primary: #16a34a !important; --ui-primary-hover: #15803d !important; --ui-on-primary: #ffffff !important; }
body[data-color-theme="green"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea) { color: #1f2937 !important; background: #f7fcf8 !important; border-color: #bbf7d0 !important; }
body[data-color-theme="green"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea):focus { border-color: #16a34a !important; box-shadow: 0 0 0 2px rgba(22, 163, 74, .2) !important; }

body[data-color-theme="green"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) { color: #ffffff !important; background: #16a34a !important; border-color: #16a34a !important; }
body[data-color-theme="green"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover { background: #15803d !important; border-color: #15803d !important; }
body[data-color-theme="green"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) { color: #ffffff !important; }

body[data-color-theme="green"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] { color: #ffffff !important; background: #16a34a !important; border-color: #16a34a !important; }
body[data-color-theme="green"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] span { color: #ffffff !important; background: transparent !important; }
body[data-color-theme="green"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] { color: #4b5563 !important; background: #ffffff !important; border-color: #bbf7d0 !important; }
body[data-color-theme="green"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] span { color: #4b5563 !important; background: transparent !important; }
body[data-color-theme="green"] .dashboard-survey-selector-btn[data-status="open"] > div > span { color: #15803d !important; background: #dcfce7 !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="green"] .dashboard-survey-selector-btn[data-status="closed"] > div > span { color: #6b7280 !important; background: #e5e7eb !important; border-radius: 999px; padding: .35rem .65rem; }

body[data-color-theme="green"] #dashboardQuickActions .quick-action-badge { color: #15803d !important; background: #dcfce7 !important; border-color: #bbf7d0 !important; }
body[data-color-theme="green"] #dashboardQuickActions .quick-action-badge i { color: #15803d !important; }
body[data-color-theme="green"] #dashboardQuickActions .quick-action-item > i { color: #6b7280 !important; }
body[data-color-theme="green"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) { color: #ffffff !important; background: #16a34a !important; border-color: #16a34a !important; }
body[data-color-theme="green"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i { color: #ffffff !important; }
body[data-color-theme="green"] :is(#dashboardEmailsRefreshBtn i, #webAuthnModal :is(#webauthnNotSupported i, #webauthnRegisterStatus i, #webauthnCredList i), #accountSettingsModal :is(.account-pw-toggle, .account-pw-toggle i, .relative > span i), #dashboardEmailsModal button[aria-label="Cerrar"] i, #webAuthnModal button[aria-label="Cerrar"] i, #accountSettingsModal button[aria-label="Cerrar"] i) { color: #6b7280 !important; }
body[data-color-theme="green"] #dashboardEmailsExportBtn .fa-file-excel { color: #10b981 !important; }

/* Tema naranja: capa autónoma con la paleta aprobada. */
body[data-color-theme="orange"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) { background: rgba(154, 52, 18, 0.3) !important; }
body[data-color-theme="orange"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div, #dashboardProposalsModal > div, #dashboardSurveyModal > div, #dashboardQuickActions .quick-actions-sheet, #shareModal .share-fullscreen-inner, #blocksPreviewModal .share-fullscreen-inner, #addBlockModal > div, #inputModal > div, #deleteModal > div, .edit-block-dialog) { color: #1f2937 !important; background: #ffffff !important; border-color: #fed7aa !important; box-shadow: 0 1.5rem 3.8rem rgba(154, 52, 18, .22) !important; }
body[data-color-theme="orange"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, .quick-actions-title, .share-fullscreen-title, .blocks-preview-copy) { color: #1f2937 !important; }
body[data-color-theme="orange"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(p, label, span, .text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/50) { color: #6b7280 !important; }
body[data-color-theme="orange"] :is(#dashboardProposalsContent, #dashboardSurveyContent, #dashboardProposalsFooter, #dashboardSurveyActivePanel > div:last-child, #dashboardEmailsList > li, #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li), .edit-block-field, #blocksPreviewModal .blocks-preview-stage, #shareModal .share-qr-card, #shareModal .share-social-card) { background: #fff7ed !important; border-color: #fed7aa !important; }
body[data-color-theme="orange"] :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn, #dashboardSurveySelectorAddBtn, .featured-link-card, .block-card, .dashboard-block-surface, .tile-accent, .quick-action-item) { color: #1f2937 !important; background: #fffbf7 !important; border-color: #fed7aa !important; }
body[data-color-theme="orange"] :is(.dashboard-shell, .public-profile-shell) { --ui-canvas: #fff7ed !important; --ui-surface: #ffffff !important; --ui-surface-raised: #fffbf7 !important; --ui-text: #1f2937 !important; --ui-text-muted: #6b7280 !important; --ui-border: #fed7aa !important; --ui-primary: #f97316 !important; --ui-primary-hover: #ea580c !important; --ui-on-primary: #ffffff !important; }
body[data-color-theme="orange"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea) { color: #1f2937 !important; background: #fffbf7 !important; border-color: #fed7aa !important; }
body[data-color-theme="orange"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) { color: #ffffff !important; background: #f97316 !important; border-color: #f97316 !important; }
body[data-color-theme="orange"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover { background: #ea580c !important; border-color: #ea580c !important; }
body[data-color-theme="orange"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) { color: #ffffff !important; }
body[data-color-theme="orange"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] { color: #ffffff !important; background: #f97316 !important; border-color: #f97316 !important; }
body[data-color-theme="orange"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] span { color: #ffffff !important; background: transparent !important; }
body[data-color-theme="orange"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] { color: #4b5563 !important; background: #ffffff !important; border-color: #fed7aa !important; }
body[data-color-theme="orange"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] span { color: #4b5563 !important; background: transparent !important; }
body[data-color-theme="orange"] .dashboard-survey-selector-btn[data-status="open"] > div > span { color: #ea580c !important; background: #ffedd5 !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="orange"] .dashboard-survey-selector-btn[data-status="closed"] > div > span { color: #6b7280 !important; background: #e5e7eb !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="orange"] #dashboardQuickActions .quick-action-badge { color: #ea580c !important; background: #ffedd5 !important; border-color: #fed7aa !important; }
body[data-color-theme="orange"] #dashboardQuickActions .quick-action-badge i { color: #ea580c !important; }
body[data-color-theme="orange"] #dashboardQuickActions .quick-action-item > i { color: #6b7280 !important; }
body[data-color-theme="orange"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) { color: #ffffff !important; background: #f97316 !important; border-color: #f97316 !important; }
body[data-color-theme="orange"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i { color: #ffffff !important; }
body[data-color-theme="orange"] :is(#dashboardEmailsRefreshBtn i, #webAuthnModal :is(#webauthnNotSupported i, #webauthnRegisterStatus i, #webauthnCredList i), #accountSettingsModal :is(.account-pw-toggle, .account-pw-toggle i, .relative > span i), #dashboardEmailsModal button[aria-label="Cerrar"] i, #webAuthnModal button[aria-label="Cerrar"] i, #accountSettingsModal button[aria-label="Cerrar"] i) { color: #6b7280 !important; }
body[data-color-theme="orange"] #dashboardEmailsExportBtn .fa-file-excel { color: #10b981 !important; }

/* Tema neutro: capa autónoma con la paleta aprobada. */
body[data-color-theme="neutral"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) { background: rgba(17, 24, 39, 0.28) !important; }
body[data-color-theme="neutral"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div, #dashboardProposalsModal > div, #dashboardSurveyModal > div, #dashboardQuickActions .quick-actions-sheet, #shareModal .share-fullscreen-inner, #blocksPreviewModal .share-fullscreen-inner, #addBlockModal > div, #inputModal > div, #deleteModal > div, .edit-block-dialog) { color: #111827 !important; background: #ffffff !important; border-color: #e5e7eb !important; box-shadow: 0 1.5rem 3.8rem rgba(17, 24, 39, .2) !important; }
body[data-color-theme="neutral"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, .quick-actions-title, .share-fullscreen-title, .blocks-preview-copy) { color: #111827 !important; }
body[data-color-theme="neutral"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(p, label, span, .text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/50) { color: #6b7280 !important; }
body[data-color-theme="neutral"] :is(#dashboardProposalsContent, #dashboardSurveyContent, #dashboardProposalsFooter, #dashboardSurveyActivePanel > div:last-child, #dashboardEmailsList > li, #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li), .edit-block-field, #blocksPreviewModal .blocks-preview-stage, #shareModal .share-qr-card, #shareModal .share-social-card) { background: #f9fafb !important; border-color: #e5e7eb !important; }
body[data-color-theme="neutral"] :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn, #dashboardSurveySelectorAddBtn, .featured-link-card, .block-card, .dashboard-block-surface, .tile-accent, .quick-action-item) { color: #111827 !important; background: #ffffff !important; border-color: #e5e7eb !important; }
body[data-color-theme="neutral"] :is(.dashboard-shell, .public-profile-shell) { --ui-canvas: #f9fafb !important; --ui-surface: #ffffff !important; --ui-surface-raised: #ffffff !important; --ui-text: #111827 !important; --ui-text-muted: #6b7280 !important; --ui-border: #e5e7eb !important; --ui-primary: #374151 !important; --ui-primary-hover: #1f2937 !important; --ui-on-primary: #ffffff !important; }
body[data-color-theme="neutral"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea) { color: #111827 !important; background: #ffffff !important; border-color: #e5e7eb !important; }
body[data-color-theme="neutral"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) { color: #ffffff !important; background: #374151 !important; border-color: #374151 !important; }
body[data-color-theme="neutral"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover { background: #1f2937 !important; border-color: #1f2937 !important; }
body[data-color-theme="neutral"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) { color: #ffffff !important; }
body[data-color-theme="neutral"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] { color: #ffffff !important; background: #374151 !important; border-color: #374151 !important; }
body[data-color-theme="neutral"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] span { color: #ffffff !important; background: transparent !important; }
body[data-color-theme="neutral"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] { color: #4b5563 !important; background: #ffffff !important; border-color: #e5e7eb !important; }
body[data-color-theme="neutral"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] span { color: #4b5563 !important; background: transparent !important; }
body[data-color-theme="neutral"] .dashboard-survey-selector-btn[data-status="open"] > div > span { color: #374151 !important; background: #f3f4f6 !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="neutral"] .dashboard-survey-selector-btn[data-status="closed"] > div > span { color: #6b7280 !important; background: #e5e7eb !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="neutral"] #dashboardQuickActions .quick-action-badge { color: #374151 !important; background: #f3f4f6 !important; border-color: #e5e7eb !important; }
body[data-color-theme="neutral"] #dashboardQuickActions .quick-action-badge i { color: #374151 !important; }
body[data-color-theme="neutral"] #dashboardQuickActions .quick-action-item > i { color: #6b7280 !important; }
body[data-color-theme="neutral"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) { color: #ffffff !important; background: #374151 !important; border-color: #374151 !important; }
body[data-color-theme="neutral"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i { color: #ffffff !important; }
body[data-color-theme="neutral"] :is(#dashboardEmailsRefreshBtn i, #webAuthnModal :is(#webauthnNotSupported i, #webauthnRegisterStatus i, #webauthnCredList i), #accountSettingsModal :is(.account-pw-toggle, .account-pw-toggle i, .relative > span i), #dashboardEmailsModal button[aria-label="Cerrar"] i, #webAuthnModal button[aria-label="Cerrar"] i, #accountSettingsModal button[aria-label="Cerrar"] i) { color: #6b7280 !important; }
body[data-color-theme="neutral"] #dashboardEmailsExportBtn .fa-file-excel { color: #10b981 !important; }
body[data-color-theme="lavender"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) { background: rgba(59, 7, 100, 0.34) !important; }
body[data-color-theme="lavender"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div, #dashboardProposalsModal > div, #dashboardSurveyModal > div, #dashboardQuickActions .quick-actions-sheet, #shareModal .share-fullscreen-inner, #blocksPreviewModal .share-fullscreen-inner, #addBlockModal > div, #inputModal > div, #deleteModal > div, .edit-block-dialog) { color: #1f2937 !important; background: #ffffff !important; border-color: #ddd0f7 !important; box-shadow: 0 1.5rem 3.8rem rgba(59, 7, 100, .24) !important; }
body[data-color-theme="lavender"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, .quick-actions-title, .share-fullscreen-title, .blocks-preview-copy) { color: #1f2937 !important; }
body[data-color-theme="lavender"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(p, label, span, .text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/50) { color: #6b7280 !important; }
body[data-color-theme="lavender"] :is(#dashboardProposalsContent, #dashboardSurveyContent, #dashboardProposalsFooter, #dashboardSurveyActivePanel > div:last-child, #dashboardEmailsList > li, #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li), .edit-block-field, #blocksPreviewModal .blocks-preview-stage, #shareModal .share-qr-card, #shareModal .share-social-card) { background: #f5f0ff !important; border-color: #ddd0f7 !important; }
body[data-color-theme="lavender"] :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn, #dashboardSurveySelectorAddBtn, .featured-link-card, .block-card, .dashboard-block-surface, .tile-accent, .quick-action-item) { color: #1f2937 !important; background: #fbf9ff !important; border-color: #ddd0f7 !important; }
body[data-color-theme="lavender"] :is(.dashboard-shell, .public-profile-shell) { --ui-canvas: #f5f0ff !important; --ui-surface: #ffffff !important; --ui-surface-raised: #fbf9ff !important; --ui-text: #1f2937 !important; --ui-text-muted: #6b7280 !important; --ui-border: #ddd0f7 !important; --ui-primary: #7c3aed !important; --ui-primary-hover: #6d28d9 !important; --ui-on-primary: #ffffff !important; }
body[data-color-theme="lavender"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea) { color: #1f2937 !important; background: #fbf9ff !important; border-color: #ddd0f7 !important; }
body[data-color-theme="lavender"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) { color: #ffffff !important; background: #7c3aed !important; border-color: #7c3aed !important; }
body[data-color-theme="lavender"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover { background: #6d28d9 !important; border-color: #6d28d9 !important; }
body[data-color-theme="lavender"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) { color: #ffffff !important; }
body[data-color-theme="lavender"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] { color: #ffffff !important; background: #7c3aed !important; border-color: #7c3aed !important; }
body[data-color-theme="lavender"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] span { color: #ffffff !important; background: transparent !important; }
body[data-color-theme="lavender"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] { color: #4b5563 !important; background: #ffffff !important; border-color: #ddd0f7 !important; }
body[data-color-theme="lavender"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] span { color: #4b5563 !important; background: transparent !important; }
body[data-color-theme="lavender"] .dashboard-survey-selector-btn[data-status="open"] > div > span { color: #6d28d9 !important; background: #ede9fe !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="lavender"] .dashboard-survey-selector-btn[data-status="closed"] > div > span { color: #6b7280 !important; background: #e5e7eb !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="lavender"] #dashboardQuickActions .quick-action-badge { color: #6d28d9 !important; background: #ede9fe !important; border-color: #ddd0f7 !important; }
body[data-color-theme="lavender"] #dashboardQuickActions .quick-action-badge i { color: #6d28d9 !important; }
body[data-color-theme="lavender"] #dashboardQuickActions .quick-action-item > i { color: #6b7280 !important; }
body[data-color-theme="lavender"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) { color: #ffffff !important; background: #7c3aed !important; border-color: #7c3aed !important; }
body[data-color-theme="lavender"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i { color: #ffffff !important; }
body[data-color-theme="lavender"] :is(#dashboardEmailsRefreshBtn i, #webAuthnModal :is(#webauthnNotSupported i, #webauthnRegisterStatus i, #webauthnCredList i), #accountSettingsModal :is(.account-pw-toggle, .account-pw-toggle i, .relative > span i), #dashboardEmailsModal button[aria-label="Cerrar"] i, #webAuthnModal button[aria-label="Cerrar"] i, #accountSettingsModal button[aria-label="Cerrar"] i) { color: #6b7280 !important; }
body[data-color-theme="lavender"] #dashboardEmailsExportBtn .fa-file-excel { color: #10b981 !important; }
body[data-color-theme="rainbow"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) { background: rgba(76, 29, 149, 0.28) !important; }
body[data-color-theme="rainbow"] :is(#profileModal > div, #dashboardEmailsModal > div, #webAuthnModal > div, #accountSettingsModal > div > div, #dashboardProposalsModal > div, #dashboardSurveyModal > div, #dashboardQuickActions .quick-actions-sheet, #shareModal .share-fullscreen-inner, #blocksPreviewModal .share-fullscreen-inner, #addBlockModal > div, #inputModal > div, #deleteModal > div, .edit-block-dialog) { color: #1f2937 !important; background: #ffffff !important; border-color: #e4defa !important; box-shadow: 0 1.5rem 3.8rem rgba(76, 29, 149, .2) !important; }
body[data-color-theme="rainbow"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(h2, h3, .quick-actions-title, .share-fullscreen-title, .blocks-preview-copy) { color: #1f2937 !important; }
body[data-color-theme="rainbow"] :is(#profileModal, #dashboardEmailsModal, #webAuthnModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #dashboardQuickActions, #shareModal, #blocksPreviewModal, #addBlockModal, #inputModal, #deleteModal, .edit-block-shell) :is(p, label, span, .text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/50) { color: #6b7280 !important; }
body[data-color-theme="rainbow"] :is(#dashboardProposalsContent, #dashboardSurveyContent, #dashboardProposalsFooter, #dashboardSurveyActivePanel > div:last-child, #dashboardEmailsList > li, #webAuthnModal :is(#webauthnRegisterStatus, #webauthnCredListEmpty, #webauthnCredList > li), .edit-block-field, #blocksPreviewModal .blocks-preview-stage, #shareModal .share-qr-card, #shareModal .share-social-card) { background: #f8f7ff !important; border-color: #e4defa !important; }
body[data-color-theme="rainbow"] :is(#dashboardProposalList > [data-proposal-id], .dashboard-survey-selector-btn, #dashboardSurveySelectorAddBtn, .featured-link-card, .block-card, .dashboard-block-surface, .tile-accent, .quick-action-item) { color: #1f2937 !important; background: #ffffff !important; border-color: #e4defa !important; }
body[data-color-theme="rainbow"] :is(.dashboard-shell, .public-profile-shell) { --ui-canvas: #f8f7ff !important; --ui-surface: #ffffff !important; --ui-surface-raised: #ffffff !important; --ui-text: #1f2937 !important; --ui-text-muted: #6b7280 !important; --ui-border: #e4defa !important; --ui-primary: #7c3aed !important; --ui-primary-hover: #6d28d9 !important; --ui-on-primary: #ffffff !important; }
body[data-color-theme="rainbow"] :is(#profileModal, #accountSettingsModal, #dashboardProposalsModal, #dashboardSurveyModal, #inputModal, .edit-block-shell) :is(.glass-input, .glass-select, input, select, textarea) { color: #1f2937 !important; background: #ffffff !important; border-color: #e4defa !important; }
body[data-color-theme="rainbow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) { color: #ffffff !important; background: #7c3aed !important; border-color: #7c3aed !important; }
body[data-color-theme="rainbow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover { background: #6d28d9 !important; border-color: #6d28d9 !important; }
body[data-color-theme="rainbow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) { color: #ffffff !important; }
body[data-color-theme="rainbow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] { color: #ffffff !important; background: #7c3aed !important; border-color: #7c3aed !important; }
body[data-color-theme="rainbow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] span { color: #ffffff !important; background: transparent !important; }
body[data-color-theme="rainbow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] { color: #4b5563 !important; background: #ffffff !important; border-color: #e4defa !important; }
body[data-color-theme="rainbow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"] span { color: #4b5563 !important; background: transparent !important; }
body[data-color-theme="rainbow"] .dashboard-survey-selector-btn[data-status="open"] > div > span { color: #6d28d9 !important; background: #f3e8ff !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="rainbow"] .dashboard-survey-selector-btn[data-status="closed"] > div > span { color: #6b7280 !important; background: #e5e7eb !important; border-radius: 999px; padding: .35rem .65rem; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-badge { color: #6d28d9 !important; background: #f3e8ff !important; border-color: #e4defa !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-badge i { color: #6d28d9 !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item > i { color: #6b7280 !important; }
body[data-color-theme="rainbow"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) { color: #ffffff !important; background: #7c3aed !important; border-color: #7c3aed !important; }
body[data-color-theme="rainbow"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) i { color: #ffffff !important; }
body[data-color-theme="rainbow"] :is(#dashboardEmailsRefreshBtn i, #webAuthnModal :is(#webauthnNotSupported i, #webauthnRegisterStatus i, #webauthnCredList i), #accountSettingsModal :is(.account-pw-toggle, .account-pw-toggle i, .relative > span i), #dashboardEmailsModal button[aria-label="Cerrar"] i, #webAuthnModal button[aria-label="Cerrar"] i, #accountSettingsModal button[aria-label="Cerrar"] i) { color: #6b7280 !important; }
body[data-color-theme="rainbow"] #dashboardEmailsExportBtn .fa-file-excel { color: #10b981 !important; }

/* Perfil público: estos overlays viven fuera del shell y no deben heredar las
 * reglas genéricas de los modales del dashboard. Los tokens se resuelven en
 * body para que el resultado sea consistente en cada familia cromática. */
:is(#publicQuickActions, #proposalsModal, #surveyModal) {
  --public-overlay-backdrop: rgba(1, 6, 12, 0.58);
  --public-overlay-surface: #0d2340;
  --public-overlay-card: #122d4e;
  --public-overlay-text: #f3f7ff;
  --public-overlay-muted: #c4d8f5;
  --public-overlay-border: #315277;
  --public-overlay-primary: #3b73df;
  --public-overlay-on-primary: #ffffff;
}

body.theme-light :is(#publicQuickActions, #proposalsModal, #surveyModal) {
  --public-overlay-backdrop: rgba(127, 29, 29, 0.24);
  --public-overlay-surface: #fff9f9;
  --public-overlay-card: #fff1f0;
  --public-overlay-text: #12284f;
  --public-overlay-muted: #6b778c;
  --public-overlay-border: #f3d4d6;
  --public-overlay-primary: #e56056;
  --public-overlay-on-primary: #ffffff;
}

body[data-color-theme="red"] :is(#publicQuickActions, #proposalsModal, #surveyModal) { --public-overlay-backdrop: rgba(127, 29, 29, 0.4); --public-overlay-surface: #fef2f2; --public-overlay-card: #fff7f7; --public-overlay-text: #1f2937; --public-overlay-muted: #6b7280; --public-overlay-border: #f3d4d6; --public-overlay-primary: #dc2626; --public-overlay-on-primary: #ffffff; }
body[data-color-theme="blue"] :is(#publicQuickActions, #proposalsModal, #surveyModal) { --public-overlay-backdrop: rgba(30, 64, 175, 0.5); --public-overlay-surface: #eff6ff; --public-overlay-card: #f8fbff; --public-overlay-text: #1e293b; --public-overlay-muted: #64748b; --public-overlay-border: #bfdbfe; --public-overlay-primary: #2563eb; --public-overlay-on-primary: #ffffff; }
body[data-color-theme="green"] :is(#publicQuickActions, #proposalsModal, #surveyModal) { --public-overlay-backdrop: rgba(20, 83, 45, 0.32); --public-overlay-surface: #f0fdf4; --public-overlay-card: #f7fcf8; --public-overlay-text: #1f2937; --public-overlay-muted: #6b7280; --public-overlay-border: #bbf7d0; --public-overlay-primary: #16a34a; --public-overlay-on-primary: #ffffff; }
body[data-color-theme="yellow"] :is(#publicQuickActions, #proposalsModal, #surveyModal) { --public-overlay-backdrop: rgba(113, 63, 18, 0.28); --public-overlay-surface: #fffbeb; --public-overlay-card: #fffdf5; --public-overlay-text: #1f2937; --public-overlay-muted: #6b7280; --public-overlay-border: #fde68a; --public-overlay-primary: #facc15; --public-overlay-on-primary: #1f2937; }
body[data-color-theme="orange"] :is(#publicQuickActions, #proposalsModal, #surveyModal) { --public-overlay-backdrop: rgba(154, 52, 18, 0.3); --public-overlay-surface: #fff7ed; --public-overlay-card: #fffbf7; --public-overlay-text: #1f2937; --public-overlay-muted: #6b7280; --public-overlay-border: #fed7aa; --public-overlay-primary: #f97316; --public-overlay-on-primary: #ffffff; }
body[data-color-theme="neutral"] :is(#publicQuickActions, #proposalsModal, #surveyModal) { --public-overlay-backdrop: rgba(17, 24, 39, 0.28); --public-overlay-surface: #f9fafb; --public-overlay-card: #ffffff; --public-overlay-text: #111827; --public-overlay-muted: #6b7280; --public-overlay-border: #e5e7eb; --public-overlay-primary: #374151; --public-overlay-on-primary: #ffffff; }
body[data-color-theme="lavender"] :is(#publicQuickActions, #proposalsModal, #surveyModal) { --public-overlay-backdrop: rgba(59, 7, 100, 0.34); --public-overlay-surface: #f5f0ff; --public-overlay-card: #fbf9ff; --public-overlay-text: #1f2937; --public-overlay-muted: #6b7280; --public-overlay-border: #ddd0f7; --public-overlay-primary: #7c3aed; --public-overlay-on-primary: #ffffff; }
body[data-color-theme="rainbow"] :is(#publicQuickActions, #proposalsModal, #surveyModal) { --public-overlay-backdrop: rgba(76, 29, 149, 0.28); --public-overlay-surface: #f8f7ff; --public-overlay-card: #ffffff; --public-overlay-text: #1f2937; --public-overlay-muted: #6b7280; --public-overlay-border: #e4defa; --public-overlay-primary: #2563eb; --public-overlay-on-primary: #ffffff; }

#publicQuickActions.quick-actions-overlay {
  background: var(--public-overlay-backdrop) !important;
}

#publicQuickActions .quick-actions-sheet {
  height: auto !important;
  color: var(--public-overlay-text) !important;
  background: var(--public-overlay-surface) !important;
  border-color: var(--public-overlay-border) !important;
}

#publicQuickActions :is(.block-card, .featured-link-card, .quick-action-item) {
  height: auto !important;
}

#proposalsModal,
#surveyModal {
  background: var(--public-overlay-backdrop) !important;
}

#proposalsModal > div,
#surveyModal > div {
  color: var(--public-overlay-text) !important;
  background: var(--public-overlay-surface) !important;
  border-color: var(--public-overlay-border) !important;
}

#proposalsModal > div {
  max-height: min(85dvh, 42rem) !important;
}

#surveyModal > div {
  max-height: min(85dvh, 42rem) !important;
  display: flex !important;
  flex-direction: column !important;
}

#surveyModal > div > div:nth-child(2) {
  flex: 1 1 auto;
  min-height: 0;
}

#proposalsModal > div > div:first-child,
#surveyModal > div > div:first-child {
  color: var(--public-overlay-on-primary) !important;
  background: var(--public-overlay-primary) !important;
  border-color: var(--public-overlay-primary) !important;
}

#proposalsModal > div > div:first-child :is(h3, button, i, span),
#surveyModal > div > div:first-child :is(h3, button, i, span) {
  color: var(--public-overlay-on-primary) !important;
}

#proposalsModal :is(#proposalsRemaining, #proposalsList, #proposalsToggleMore),
#surveyModal :is(#surveyListView, #surveyDetailView) {
  color: var(--public-overlay-text) !important;
}

#proposalsModal #proposalsList > div,
#surveyModal .survey-card-btn,
#surveyModal #surveyDetailView > div:first-child {
  color: var(--public-overlay-text) !important;
  background: var(--public-overlay-card) !important;
  border-color: var(--public-overlay-border) !important;
}

/* Las alternativas seleccionables conservan un borde claro en los temas cromáticos. */
body:is(
  [data-color-theme="red"],
  [data-color-theme="blue"],
  [data-color-theme="yellow"],
  [data-color-theme="green"],
  [data-color-theme="orange"],
  [data-color-theme="neutral"],
  [data-color-theme="lavender"],
  [data-color-theme="rainbow"]
) #surveyModal #surveyOptions > div {
  border-color: var(--public-overlay-border) !important;
}

#proposalsModal #proposalsList :is(.text-white, .text-white\/70),
#surveyModal :is(.text-white, .text-white\/90, .text-white\/85, .text-white\/80, .text-white\/70, .text-white\/60, .text-white\/55, .text-white\/50, .text-white\/45) {
  color: var(--public-overlay-text) !important;
}

/* Título de cada propuesta/episodio/publicación/actividad/noticia: negrita marcada. */
#proposalsModal #proposalsList .proposal-item-title {
  font-weight: 800 !important;
  -webkit-text-stroke: 0.3px currentColor;
}

#proposalsModal .proposal-star-btn {
  color: color-mix(in srgb, var(--public-overlay-text) 32%, transparent) !important;
}

#proposalsModal .proposal-star-btn:hover {
  color: var(--public-overlay-primary) !important;
  background: color-mix(in srgb, var(--public-overlay-primary) 10%, transparent) !important;
}

#proposalsModal #proposalsShare {
  color: var(--public-overlay-text) !important;
  background: var(--public-overlay-card) !important;
  border-color: var(--public-overlay-border) !important;
}

#surveyModal .survey-card-btn,
#surveyModal .survey-card-btn *,
#surveyModal #surveyQuestion,
#proposalsModal #proposalsList {
  min-width: 0;
  overflow-wrap: anywhere !important;
  word-break: break-word;
}

/* Estados semánticos: no se mezclan con el texto base del tema. */
#surveyModal .survey-card-btn :is(.text-emerald-100, .text-red-100, .text-amber-100),
#surveyModal #surveyStatusBadge.text-emerald-100 {
  color: #047857 !important;
  background-color: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

#surveyModal .survey-card-btn .text-red-100,
#surveyModal #surveyStatusBadge.text-red-100 {
  color: #b91c1c !important;
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

#surveyModal .survey-card-btn .text-amber-100,
#surveyModal #surveyStatusBadge.text-amber-100 {
  color: #92400e !important;
  background-color: #fef3c7 !important;
  border-color: #fcd34d !important;
}

#proposalsModal .proposal-star-btn.text-amber-300,
#proposalsModal .proposal-star-btn.text-amber-300 i {
  color: #f59e0b !important;
}

#proposalsModal .proposal-star-btn:not(.text-amber-300) {
  color: color-mix(in srgb, var(--public-overlay-text) 32%, transparent) !important;
}

#publicQuickActions .block-card > .bg-primary {
  color: var(--public-overlay-on-primary) !important;
  background: var(--public-overlay-primary) !important;
}

#publicQuickActions .platform-brand-icon--youtube {
  background: #ff0000 !important;
}

#publicQuickActions .platform-brand-icon--youtube .platform-brand-glyph {
  color: #ffffff !important;
}

/* Los logotipos siempre se leen en blanco sobre su color de marca. */
:is(#publicQuickActions, #blocksPreviewModal, .dashboard-shell) .platform-brand-icon > i {
  color: #ffffff !important;
}

/* Mis Plataformas: cabecera de producto y catálogo limpio para cualquier tema. */
#blocksPreviewModal .blocks-preview-topbar {
  color: var(--ui-text, var(--shell-text, #1f2937)) !important;
  background: var(--ui-surface-raised, var(--shell-surface, #ffffff)) !important;
  border: 1px solid var(--ui-border, var(--shell-primary-light)) !important;
  border-radius: 1rem !important;
  box-shadow: none !important;
  padding: 1rem 1.1rem !important;
}

#blocksPreviewModal .blocks-preview-topbar .share-fullscreen-title {
  color: var(--ui-text, #1f2937) !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

#blocksPreviewModal .blocks-preview-edit-btn {
  color: var(--ui-on-primary, #ffffff) !important;
  background: var(--ui-primary, var(--shell-primary)) !important;
  border: 1px solid var(--ui-primary, var(--shell-primary)) !important;
  border-radius: 999px !important;
  padding: 0.55rem 0.82rem !important;
  box-shadow: 0 0.5rem 1.1rem color-mix(in srgb, var(--ui-primary, var(--shell-primary)) 24%, transparent) !important;
}

#blocksPreviewModal .blocks-preview-edit-btn:hover,
#blocksPreviewModal .blocks-preview-edit-btn.is-active {
  background: var(--ui-primary-hover, var(--shell-primary-hover)) !important;
  border-color: var(--ui-primary-hover, var(--shell-primary-hover)) !important;
}

#blocksPreviewModal .share-fullscreen-close {
  color: var(--ui-text-muted, #6b7280) !important;
  background: color-mix(in srgb, var(--ui-primary, var(--shell-primary)) 9%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--ui-primary, var(--shell-primary)) 18%, #ffffff) !important;
}

#addBlockModal > div {
  color: var(--ui-text, #1f2937) !important;
  background: #ffffff !important;
  border-color: var(--ui-primary, var(--shell-primary)) !important;
  box-shadow: 0 1.5rem 3.8rem color-mix(in srgb, var(--ui-primary, var(--shell-primary)) 24%, transparent) !important;
}

#addBlockModal :is(h2, p) {
  color: var(--ui-text, #1f2937) !important;
}

#addBlockModal p {
  color: var(--ui-text-muted, #6b7280) !important;
}

#addBlockModal button[type="button"]:has(h3) {
  color: var(--ui-text, #1f2937) !important;
  background: #ffffff !important;
  border-color: var(--ui-primary, var(--shell-primary)) !important;
  box-shadow: none !important;
}

#addBlockModal button[type="button"]:has(h3):hover {
  background: color-mix(in srgb, var(--ui-primary, var(--shell-primary)) 8%, #ffffff) !important;
  border-color: var(--ui-primary-hover, var(--shell-primary-hover)) !important;
}

#addBlockModal button[type="button"]:has(h3) h3 {
  color: var(--ui-text, #1f2937) !important;
}

/* La capa temática anterior tenía más especificidad; esta conserva la composición clara. */
body:is(.has-color-theme, .theme-light) #blocksPreviewModal .blocks-preview-topbar {
  color: var(--ui-text, #1f2937) !important;
  background: var(--ui-surface-raised, var(--shell-surface, #ffffff)) !important;
  border: 1px solid var(--ui-border, var(--shell-primary-light)) !important;
  border-radius: 1rem !important;
  box-shadow: none !important;
}

body:is(.has-color-theme, .theme-light) #blocksPreviewModal .blocks-preview-topbar :is(.share-fullscreen-title, button, i, span) {
  color: var(--ui-text, #1f2937) !important;
}

body:is(.has-color-theme, .theme-light) #blocksPreviewModal .blocks-preview-edit-btn {
  color: var(--ui-on-primary, #ffffff) !important;
  background: var(--ui-primary, var(--shell-primary)) !important;
  border-color: var(--ui-primary, var(--shell-primary)) !important;
}

body:is(.has-color-theme, .theme-light) #blocksPreviewModal .blocks-preview-edit-btn :is(i, span) {
  color: var(--ui-on-primary, #ffffff) !important;
}

body:is(.has-color-theme, .theme-light) #blocksPreviewModal .share-fullscreen-close :is(i, span) {
  color: var(--ui-text-muted, #6b7280) !important;
}

body:is(.has-color-theme, .theme-light) #addBlockModal > div {
  color: var(--ui-text, #1f2937) !important;
  background: #ffffff !important;
  border-color: var(--ui-primary, var(--shell-primary)) !important;
}

body:is(.has-color-theme, .theme-light) #addBlockModal button[type="button"]:has(h3) {
  color: var(--ui-text, #1f2937) !important;
  background: #ffffff !important;
  border-color: var(--ui-primary, var(--shell-primary)) !important;
}

/* El modal se monta fuera del shell: sus tonos no deben depender de tokens heredados. */
body:not(.theme-light) #blocksPreviewModal {
  --platforms-header-surface: linear-gradient(180deg, rgba(7, 19, 34, 0.96), rgba(6, 16, 30, 0.98)) !important;
  --platforms-header-text: #f3f7ff !important;
  --platforms-header-border: #8ebfff !important;
  --platforms-header-action: #2563eb !important;
  --platforms-header-action-hover: #1d4ed8 !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #1f3d61 !important;
}

body.theme-light #blocksPreviewModal {
  --platforms-header-surface: #fff9f9 !important;
  --platforms-header-text: #12284f !important;
  --platforms-header-border: rgba(229, 96, 86, 0.24) !important;
  --platforms-header-action: #e56056 !important;
  --platforms-header-action-hover: #c64b42 !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #ffffff !important;
}

#blocksPreviewModal .blocks-preview-topbar {
  color: var(--platforms-header-text) !important;
  background: var(--platforms-header-surface) !important;
  border-color: var(--platforms-header-border) !important;
  box-shadow: none !important;
}

#blocksPreviewModal .blocks-preview-topbar :is(.share-fullscreen-title, button, i, span) {
  color: var(--platforms-header-text) !important;
}

#blocksPreviewModal .blocks-preview-edit-btn {
  color: var(--platforms-header-action-on) !important;
  background: var(--platforms-header-action) !important;
  border-color: var(--platforms-header-action) !important;
}

#blocksPreviewModal .blocks-preview-edit-btn:hover,
#blocksPreviewModal .blocks-preview-edit-btn.is-active {
  background: var(--platforms-header-action-hover) !important;
  border-color: var(--platforms-header-action-hover) !important;
}

#blocksPreviewModal .blocks-preview-edit-btn :is(i, span) {
  color: var(--platforms-header-action-on) !important;
}

#blocksPreviewModal .share-fullscreen-close {
  color: var(--platforms-header-text) !important;
  background: var(--platforms-header-control) !important;
  border-color: var(--platforms-header-border) !important;
}

/* Cada familia cromática conserva su identidad también en Mis Plataformas. */
body[data-color-theme="red"] #blocksPreviewModal {
  --platforms-header-surface: #dc2626 !important;
  --platforms-header-text: #ffffff !important;
  --platforms-header-border: #fca5a5 !important;
  --platforms-header-action: #b91c1c !important;
  --platforms-header-action-hover: #991b1b !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #b91c1c !important;
}

body[data-color-theme="blue"] #blocksPreviewModal {
  --platforms-header-surface: #2563eb !important;
  --platforms-header-text: #ffffff !important;
  --platforms-header-border: #93c5fd !important;
  --platforms-header-action: #1d4ed8 !important;
  --platforms-header-action-hover: #1e40af !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #1d4ed8 !important;
}

body[data-color-theme="green"] #blocksPreviewModal {
  --platforms-header-surface: #16a34a !important;
  --platforms-header-text: #ffffff !important;
  --platforms-header-border: #86efac !important;
  --platforms-header-action: #15803d !important;
  --platforms-header-action-hover: #166534 !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #15803d !important;
}

body[data-color-theme="yellow"] #blocksPreviewModal {
  --platforms-header-surface: #facc15 !important;
  --platforms-header-text: #1f2937 !important;
  --platforms-header-border: #fde047 !important;
  --platforms-header-action: #eab308 !important;
  --platforms-header-action-hover: #ca8a04 !important;
  --platforms-header-action-on: #1f2937 !important;
  --platforms-header-control: #eab308 !important;
}

body[data-color-theme="orange"] #blocksPreviewModal {
  --platforms-header-surface: #f97316 !important;
  --platforms-header-text: #ffffff !important;
  --platforms-header-border: #fdba74 !important;
  --platforms-header-action: #ea580c !important;
  --platforms-header-action-hover: #c2410c !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #ea580c !important;
}

body[data-color-theme="lavender"] #blocksPreviewModal {
  --platforms-header-surface: #7c3aed !important;
  --platforms-header-text: #ffffff !important;
  --platforms-header-border: #c4b5fd !important;
  --platforms-header-action: #6d28d9 !important;
  --platforms-header-action-hover: #5b21b6 !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #6d28d9 !important;
}

body[data-color-theme="rainbow"] #blocksPreviewModal {
  --platforms-header-surface: #7c3aed !important;
  --platforms-header-text: #ffffff !important;
  --platforms-header-border: #c4b5fd !important;
  --platforms-header-action: #6d28d9 !important;
  --platforms-header-action-hover: #5b21b6 !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #6d28d9 !important;
}

body[data-color-theme="neutral"] #blocksPreviewModal {
  --platforms-header-surface: #374151 !important;
  --platforms-header-text: #ffffff !important;
  --platforms-header-border: #9ca3af !important;
  --platforms-header-action: #1f2937 !important;
  --platforms-header-action-hover: #111827 !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: #1f2937 !important;
}

/* Guardar cuenta vive fuera del shell del teléfono: define sus propios tokens. */
#completeRegistrationModal {
  --complete-surface: #0d2340;
  --complete-surface-muted: #122d4e;
  --complete-text: #f3f7ff;
  --complete-muted: #c4d8f5;
  --complete-border: #315277;
  --complete-primary: #67a7ff;
  --complete-primary-hover: #3b73df;
  --complete-on-primary: #071426;
}

#completeRegistrationModal .complete-registration-dialog {
  background: var(--complete-surface) !important;
  border-color: var(--complete-border) !important;
  color: var(--complete-text) !important;
}

#completeRegistrationModal :is(h2, label) {
  color: var(--complete-text) !important;
}

#completeRegistrationModal :is(p, .text-slate-500) {
  color: var(--complete-muted) !important;
}

#completeRegistrationModal .border-slate-200 {
  border-color: var(--complete-border) !important;
}

#completeRegistrationModal :is(input, .cursor-not-allowed) {
  background: var(--complete-surface-muted) !important;
  border-color: var(--complete-border) !important;
  color: var(--complete-text) !important;
}

#completeRegistrationModal input:focus {
  border-color: var(--complete-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--complete-primary) 30%, transparent) !important;
}

#completeRegistrationModal .complete-registration-icon,
#completeRegistrationModal .complete-registration-submit {
  color: var(--complete-on-primary) !important;
  background: var(--complete-primary) !important;
}

#completeRegistrationModal .complete-registration-submit:hover {
  background: var(--complete-primary-hover) !important;
}

#completeRegistrationModal button[type="button"] {
  color: var(--complete-text) !important;
  background: var(--complete-surface-muted) !important;
  border-color: var(--complete-border) !important;
}

body:is(.theme-light, .has-color-theme) #completeRegistrationModal {
  --complete-surface: var(--ui-surface, #ffffff);
  --complete-surface-muted: var(--ui-surface-raised, #f8fafc);
  --complete-text: var(--ui-text, #1f2937);
  --complete-muted: var(--ui-text-muted, #64748b);
  --complete-border: var(--ui-border, #cbd5e1);
  --complete-primary: var(--ui-primary, #e56056);
  --complete-primary-hover: var(--ui-primary-hover, #c64b42);
  --complete-on-primary: var(--ui-on-primary, #ffffff);
}

/* Botón Pagar/Activar cuenta: siempre visible (contraste) en cualquier tema. */
body #subscriptionModal #subPayBtn {
  color: var(--ui-on-primary, #ffffff) !important;
  -webkit-text-fill-color: var(--ui-on-primary, #ffffff) !important;
  background: var(--ui-primary, #2563eb) !important;
  border: 1px solid transparent !important;
  opacity: 1 !important;
}

body #subscriptionModal #subPayBtn:hover {
  background: var(--ui-primary-hover, #1d4ed8) !important;
}

body #subscriptionModal #subPayBtn :is(i, span) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Debe ir al final: las familias de tema no pueden oscurecer logotipos de marca. */
body :is(#publicQuickActions, #blocksPreviewModal, .dashboard-shell) .platform-brand-icon > i,
body :is(#publicQuickActions, #blocksPreviewModal, .dashboard-shell) .platform-brand-icon > i::before {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Los controles de edición deben conservar contraste en todas las familias de color. */
body #blocksPreviewModal .blocks-preview-drag {
  color: var(--platforms-header-action-on, var(--ui-on-primary, #ffffff)) !important;
  -webkit-text-fill-color: var(--platforms-header-action-on, var(--ui-on-primary, #ffffff)) !important;
  background: var(--platforms-header-action, var(--ui-primary, #2563eb)) !important;
  border-color: transparent !important;
}

body #blocksPreviewModal .blocks-preview-action--delete {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

body #blocksPreviewModal :is(.blocks-preview-drag, .blocks-preview-action--delete) :is(i, i::before) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* El encabezado de compartir se lee sobre la superficie clara de cada tema. */
#proposalsShareHeading {
  color: var(--public-overlay-text) !important;
  -webkit-text-fill-color: var(--public-overlay-text) !important;
}

/* Copiar es una acción secundaria: conserva contraste sobre cualquier superficie. */
:is(#proposalsShareCopy, #surveyShareCopy) {
  color: var(--public-overlay-primary) !important;
  -webkit-text-fill-color: var(--public-overlay-primary) !important;
  background: color-mix(in srgb, var(--public-overlay-primary) 12%, var(--public-overlay-card)) !important;
  border-color: color-mix(in srgb, var(--public-overlay-primary) 45%, var(--public-overlay-border)) !important;
}

:is(#proposalsShareCopy, #surveyShareCopy) :is(i, span) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

.share-copy-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #ffffff !important;
  background: #64748b;
}

:is(#proposalsShareCopy, #surveyShareCopy) .share-copy-icon,
:is(#proposalsShareCopy, #surveyShareCopy) .share-copy-icon .fa-link {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Modo claro del perfil público: la hoja de plataformas no conserva el cristal oscuro. */
body.theme-light #publicQuickActions.quick-actions-overlay {
  background: var(--public-overlay-backdrop) !important;
}

body.theme-light #publicQuickActions > .quick-actions-sheet {
  color: var(--public-overlay-text) !important;
  background: var(--public-overlay-surface) !important;
  border-color: var(--public-overlay-border) !important;
  box-shadow: 0 1.25rem 3.5rem color-mix(in srgb, var(--public-overlay-text) 18%, transparent) !important;
}

body.theme-light #publicQuickActions .quick-actions-title {
  color: var(--public-overlay-text) !important;
}

body.theme-light #publicQuickActions :is(.block-card, .featured-link-card, .quick-action-item) {
  color: var(--public-overlay-text) !important;
  background: var(--public-overlay-card) !important;
  border-color: var(--public-overlay-border) !important;
  box-shadow: 0 0.75rem 1.5rem color-mix(in srgb, var(--public-overlay-text) 10%, transparent) !important;
}

/* La cadena de copiar enlace conserva contraste también en los temas claros. */
body #shareModal .share-social-icon--copy i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-light #publicQuickActions :is(.block-title, .featured-link-title, .featured-link-subtitle) {
  color: var(--public-overlay-text) !important;
}

/* Foto de perfil: llena todo el recuadro, centrada y sin márgenes (el punto focal viene del estilo inline). */
body .hero-photo-card .hero-media-slide > img:not(.hero-media-blur-bg),
body .hero-photo-card > img:not(.hero-media-blur-bg) {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* Mis Plataformas: la X de cerrar siempre blanca, en todos los temas. */
body #blocksPreviewModal .blocks-preview-topbar .share-fullscreen-close,
body #blocksPreviewModal .blocks-preview-topbar .share-fullscreen-close :is(i, svg) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Modo Pastel: el control era blanco (X invisible); usa el color de acción del tema. */
body.theme-light #blocksPreviewModal .blocks-preview-topbar .share-fullscreen-close {
  background: var(--platforms-header-action) !important;
  border-color: var(--platforms-header-action) !important;
}

/* Previsualizar / Editar (chip de estado): contraste alto en todos los temas. */
body.has-color-theme .app-status-chip .status-chip-btn {
  background: var(--ui-primary, var(--shell-primary)) !important;
  border-color: var(--ui-primary, var(--shell-primary)) !important;
  color: var(--ui-on-primary, #ffffff) !important;
  -webkit-text-fill-color: var(--ui-on-primary, #ffffff) !important;
}

body.has-color-theme .app-status-chip .status-chip-btn:hover {
  background: var(--ui-primary-hover, var(--shell-primary)) !important;
  border-color: var(--ui-primary-hover, var(--shell-primary)) !important;
}

body.has-color-theme .app-status-chip .status-chip-btn :is(i, span) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1;
}

body.theme-light:not(.has-color-theme) .app-status-chip .status-chip-btn {
  background: #d4554a !important;
  border-color: #d4554a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Listados públicos: botones de compartir compactos, alineados y centrados. */
.proposals-share-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem !important;
}

.proposals-share-grid > :is(a, button) {
  flex: 0 0 calc((100% - 1.2rem) / 4);
  width: calc((100% - 1.2rem) / 4) !important;
  padding: 0.4rem 0 !important;
  min-height: 2.5rem;
  border-radius: 0.75rem !important;
  gap: 0.25rem !important;
}

@media (max-width: 767px) {
  .proposals-share-grid > :is(a, button) {
    flex-basis: calc((100% - 0.8rem) / 3);
    width: calc((100% - 0.8rem) / 3) !important;
  }
}

.proposals-share-grid :is(#proposalsShareFacebook, #proposalsShareTikTok, #surveyShareFacebook, #surveyShareTikTok) {
  display: none !important;
}

@media (min-width: 768px) {
  .proposals-share-grid :is(#proposalsShareInstagram, #surveyShareInstagram) {
    display: none !important;
  }
}

.proposals-share-grid .brand-logo-chip,
.proposals-share-grid .share-copy-icon {
  width: 1.6rem !important;
  height: 1.6rem !important;
  min-width: 1.6rem !important;
}

.proposals-share-grid .brand-logo-image--compact {
  width: 1.2rem !important;
  height: 1.2rem !important;
}

.proposals-share-grid .share-copy-icon .fa-link {
  font-size: 0.8rem !important;
}

/* Compartir propuestas: solo iconos en cualquier ancho (el modal es angosto aunque la ventana sea ancha). */
.proposals-share-grid > :is(a, button) > span:not(.brand-logo-chip):not(.share-copy-icon) {
  display: none !important;
}

/* Detalle de encuesta (panel): botones legibles en temas claros y de color */
:is(body.theme-light, body.has-color-theme) #dashboardSurveyModal #dashboardSurveyDetailActions button,
:is(body.theme-light, body.has-color-theme) #dashboardSurveyModal #dashboardSurveyBackBtn {
    background: color-mix(in srgb, var(--shell-text, #1f2937) 8%, #ffffff) !important;
    border: 1px solid color-mix(in srgb, var(--shell-text, #1f2937) 28%, transparent) !important;
    color: var(--shell-text, #1f2937) !important;
    opacity: 1 !important;
}
:is(body.theme-light, body.has-color-theme) #dashboardSurveyModal #dashboardSurveyDetailActions button:hover,
:is(body.theme-light, body.has-color-theme) #dashboardSurveyModal #dashboardSurveyBackBtn:hover {
    background: color-mix(in srgb, var(--shell-text, #1f2937) 16%, #ffffff) !important;
}
:is(body.theme-light, body.has-color-theme) #dashboardSurveyModal #dashboardSurveyDetailActions button[data-action="edit-published"] {
    background: var(--shell-primary, var(--ui-primary, #d4554a)) !important;
    border-color: transparent !important;
    color: var(--visitor-primary-text, var(--ui-on-primary, #ffffff)) !important;
}
:is(body.theme-light, body.has-color-theme) #dashboardSurveyModal #dashboardSurveyDetailActions button[data-action="close-published"] {
    background: #fde8e8 !important;
    border-color: #e0a3a3 !important;
    color: #9b1c1c !important;
}
:is(body.theme-light, body.has-color-theme) #dashboardSurveyModal #dashboardSurveyBackBtn :is(i, span) {
    color: inherit !important;
}

/* Compartir perfil: "X" de cierre visible en temas de color y claro */
body:is(.has-color-theme, .theme-light) #shareModal .share-fullscreen-topbar .share-fullscreen-close {
    color: var(--shell-text, #12284f) !important;
    background: color-mix(in srgb, var(--shell-text, #12284f) 10%, #ffffff) !important;
    border: 1px solid color-mix(in srgb, var(--shell-text, #12284f) 32%, transparent) !important;
    opacity: 1 !important;
}
body:is(.has-color-theme, .theme-light) #shareModal .share-fullscreen-topbar .share-fullscreen-close:hover {
    background: color-mix(in srgb, var(--shell-text, #12284f) 18%, #ffffff) !important;
}
body:is(.has-color-theme, .theme-light) #shareModal .share-fullscreen-topbar .share-fullscreen-close :is(i, svg, span) {
    color: inherit !important;
    fill: currentColor;
}

/* Editar perfil: botón "Guardar Perfil" legible en temas de color */
body.has-color-theme #profileModal button[type="submit"] {
    background: var(--shell-primary, var(--ui-primary, #3b82f6)) !important;
    color: var(--visitor-primary-text, var(--ui-on-primary, #ffffff)) !important;
    border: 1px solid color-mix(in srgb, var(--visitor-primary-text, #ffffff) 28%, transparent) !important;
    box-shadow: 0 0.6rem 1.2rem color-mix(in srgb, var(--shell-primary, #3b82f6) 32%, transparent) !important;
    opacity: 1 !important;
}
body.has-color-theme #profileModal button[type="submit"]:hover {
    background: color-mix(in srgb, var(--shell-primary, #3b82f6) 88%, #000000) !important;
}
body.has-color-theme #profileModal button[type="submit"] :is(span, i) {
    color: inherit !important;
}

/* ============== TEMAS LAVANDA Y ARCOÍRIS ============== */
/* Lavanda: marco del teléfono en púrpura profundo y degradado suave. */
body[data-color-theme="lavender"] .dashboard-shell .dashboard-phone,
body[data-color-theme="lavender"] .public-profile-shell .profile-phone {
  background:
    radial-gradient(circle at 50% -10%, rgba(124, 58, 237, 0.28), transparent 42%),
    linear-gradient(180deg, #f3ecff 0%, #faf7ff 55%, #efe6ff 100%) !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
  box-shadow:
    0 0 0 8px #3b0764,
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 42px 96px rgba(59, 7, 100, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

body[data-color-theme="lavender"] .featured-link-card {
  border-color: #ddd0f7 !important;
  box-shadow: 0 0.6rem 1.4rem rgba(109, 40, 217, 0.12) !important;
}

body[data-color-theme="lavender"] :is(.action-primary-btn, .dashboard-shell .bottom-action-bar > button:first-child) {
  background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
  color: #ffffff !important;
  border-color: #5b21b6 !important;
  box-shadow: 0 0.7rem 1.4rem rgba(91, 33, 182, 0.32) !important;
}

/* Arcoíris: marco con degradado de colores y botón principal multicolor. */
body[data-color-theme="rainbow"] .dashboard-shell .dashboard-phone,
body[data-color-theme="rainbow"] .public-profile-shell .profile-phone {
  border: 8px solid transparent !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%) padding-box,
    linear-gradient(135deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6, #ec4899) border-box !important;
  box-shadow:
    0 30px 80px rgba(76, 29, 149, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body[data-color-theme="rainbow"] .featured-link-card {
  border-color: #e4defa !important;
  box-shadow: 0 0.6rem 1.4rem rgba(76, 29, 149, 0.1) !important;
}

body[data-color-theme="rainbow"] :is(.action-primary-btn, .dashboard-shell .bottom-action-bar > button:first-child) {
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
  box-shadow: 0 0.7rem 1.4rem rgba(76, 29, 149, 0.25) !important;
}
body[data-color-theme="rainbow"] :is(.action-primary-btn, .dashboard-shell .bottom-action-bar > button:first-child) :is(i, span) {
  color: #ffffff !important;
}

body[data-color-theme="rainbow"] :is(.public-profile-shell, .dashboard-shell) .featured-link-icon--platforms svg stop[offset="0"] { stop-color: #fda4af !important; }
body[data-color-theme="rainbow"] :is(.public-profile-shell, .dashboard-shell) .featured-link-icon--platforms svg stop[offset="1"] { stop-color: #e11d48 !important; }
body[data-color-theme="rainbow"] :is(.public-profile-shell, .dashboard-shell) .featured-link-icon--proposals svg stop[offset="0"] { stop-color: #86efac !important; }
body[data-color-theme="rainbow"] :is(.public-profile-shell, .dashboard-shell) .featured-link-icon--proposals svg stop[offset="1"] { stop-color: #16a34a !important; }
body[data-color-theme="rainbow"] :is(.public-profile-shell, .dashboard-shell) .featured-link-icon--survey svg stop[offset="0"] { stop-color: #c4b5fd !important; }
body[data-color-theme="rainbow"] :is(.public-profile-shell, .dashboard-shell) .featured-link-icon--survey svg stop[offset="1"] { stop-color: #7c3aed !important; }
body[data-color-theme="rainbow"] .featured-link-icon--platforms { background: linear-gradient(145deg, #ffe4e6, #ffffff) !important; border-color: #fecdd3 !important; }
body[data-color-theme="rainbow"] .featured-link-icon--proposals { background: linear-gradient(145deg, #dcfce7, #ffffff) !important; border-color: #bbf7d0 !important; }
body[data-color-theme="rainbow"] .featured-link-icon--survey { background: linear-gradient(145deg, #ede9fe, #ffffff) !important; border-color: #ddd6fe !important; }

/* Selector de temas: muestra una franja multicolor para arcoíris. */
.color-theme-swatch[data-theme-value="rainbow"] .color-theme-swatch__preview {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #8b5cf6);
}
.color-theme-swatch[data-theme-value="rainbow"] .color-theme-swatch__preview > span { opacity: 0; }

/* Modales con cabecera de color: el título y la "X" usan el texto de contraste del tema
   (las reglas genéricas de .text-white los dejaban oscuros sobre el color primario). */
html body.has-color-theme :is(
  #proposalsModal,
  #surveyModal,
  #dashboardProposalsModal,
  #dashboardAddProposalModal,
  #dashboardProposalDislikesModal,
  #dashboardSurveyModal
)[id] > div > div:first-child :is(h3, p, button, i, span, .text-white, .text-white\/70) {
  color: var(--visitor-primary-text, #ffffff) !important;
}

/* Tema rojo: la cabecera es blanca, así que título y "X" deben ser oscuros
   (gana a la regla de contraste anterior, que los dejaba blancos sobre blanco). */
html body.has-color-theme[data-color-theme="red"] :is(
  #proposalsModal,
  #surveyModal,
  #dashboardProposalsModal,
  #dashboardAddProposalModal,
  #dashboardProposalDislikesModal,
  #dashboardSurveyModal
)[id] > div > div:first-child :is(h3, p, button, i, span, .text-white, .text-white\/70) {
  color: #1f2937 !important;
}

/* Botón de envío del formulario de propuestas. */
html body.has-color-theme #dashboardAddProposalModal #dashboardProposalSubmit {
  background: var(--shell-primary) !important;
  color: var(--visitor-primary-text, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--visitor-primary-text, #ffffff) 26%, transparent) !important;
  opacity: 1 !important;
}
html body.has-color-theme #dashboardAddProposalModal #dashboardProposalSubmit:hover {
  background: var(--shell-primary-hover, var(--shell-primary)) !important;
}
html body.has-color-theme #dashboardAddProposalModal #dashboardProposalSubmit :is(i, span) {
  color: inherit !important;
}

/* Placeholders legibles sobre superficies claras. */
body.has-color-theme #dashboardAddProposalModal :is(input, textarea)::placeholder,
body.has-color-theme :is(#dashboardAddEventModal, #profileModal, #inputModal) :is(input, textarea)::placeholder {
  color: color-mix(in srgb, var(--shell-text) 48%, transparent) !important;
  opacity: 1;
}
body.has-color-theme #dashboardAddProposalModal :is(label, .text-white\/70, .text-white\/60, .text-white\/90) {
  color: var(--shell-text) !important;
}

/* Arcoíris: cabeceras, botones y acentos multicolor (no repiten el violeta de lavanda). */
body[data-color-theme="rainbow"] {
  --rainbow-gradient: linear-gradient(90deg, #ef4444 0%, #f97316 20%, #eab308 40%, #22c55e 60%, #3b82f6 80%, #8b5cf6 100%);
  --rainbow-gradient-diag: linear-gradient(135deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6);
}

/* Barra superior de la app */
body[data-color-theme="rainbow"] .app-theme-toggle {
  background: var(--rainbow-gradient-diag) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0.35rem 0.9rem rgba(76, 29, 149, 0.25) !important;
}
body[data-color-theme="rainbow"] .app-theme-toggle i { color: #ffffff !important; }
body[data-color-theme="rainbow"] .app-brand { border-color: #c4b5fd !important; }
body[data-color-theme="rainbow"] .app-brand-script { color: #2563eb !important; }
body[data-color-theme="rainbow"] .app-status-chip {
  border: 1px solid transparent !important;
  background: linear-gradient(#ffffff, #ffffff) padding-box, var(--rainbow-gradient) border-box !important;
}
body[data-color-theme="rainbow"] .app-status-chip::before { background: #22c55e !important; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22) !important; }
body[data-color-theme="rainbow"] .app-status-chip .status-chip-btn {
  background: var(--rainbow-gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}
body[data-color-theme="rainbow"] .app-status-chip .status-chip-btn :is(i, span) { color: #ffffff !important; }

/* Cargo del perfil en azul, nombre oscuro */
body[data-color-theme="rainbow"] :is(.hero-role, .profile-subtitle) { color: #2563eb !important; }

/* Cabeceras de modales */
html body[data-color-theme="rainbow"] :is(
  #proposalsModal,
  #surveyModal,
  #dashboardProposalsModal,
  #dashboardAddProposalModal,
  #dashboardProposalDislikesModal,
  #dashboardSurveyModal
)[id] > div > div:first-child,
body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-topbar {
  background: var(--rainbow-gradient) !important;
  border-color: transparent !important;
}
body[data-color-theme="rainbow"] #blocksPreviewModal { --platforms-header-surface: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6) !important; --platforms-header-text: #ffffff !important; }
html body[data-color-theme="rainbow"] :is(
  #proposalsModal,
  #surveyModal,
  #dashboardProposalsModal,
  #dashboardAddProposalModal,
  #dashboardProposalDislikesModal,
  #dashboardSurveyModal
)[id] > div > div:first-child :is(h3, p, button, i, span, .text-white),
body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-topbar :is(p, h3, span, i) {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}
body[data-color-theme="rainbow"] :is(#shareModal .share-fullscreen-topbar, #profileModal > div > div:first-child, #accountSettingsModal > div > div:first-child) {
  border-bottom: 3px solid transparent !important;
  border-image: var(--rainbow-gradient) 1 !important;
}

/* Botones principales de modales */
body[data-color-theme="rainbow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]),
html body.has-color-theme[data-color-theme="rainbow"] #dashboardAddProposalModal #dashboardProposalSubmit,
body[data-color-theme="rainbow"] #profileModal button[type="submit"] {
  background: var(--rainbow-gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}
body[data-color-theme="rainbow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]) :is(i, span) { color: #ffffff !important; }

/* Tarjetas con borde multicolor sutil */
body[data-color-theme="rainbow"] .featured-link-card {
  border: 1px solid transparent !important;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, #fecdd3, #fde68a, #bbf7d0, #bfdbfe, #ddd6fe) border-box !important;
}

/* Arcoíris: estados hover/activos sin volver al violeta. */
body[data-color-theme="rainbow"] :is(#profileContinueBtn, #btnAddBiometric, #accountEmailSubmitBtn, #accountPwSubmitBtn, #dashboardProposalsFooter .bg-secondary, #dashboardSurveyModal :is(.bg-secondary, .bg-sky-500, button[type="submit"]), #dashboardSurveySelectorAddBtn, .dashboard-shell .bottom-action-bar > button:first-child, .edit-block-actions > button, #inputModal button[type="submit"], #addBlockModal button[type="button"]:has(h3), #deleteModal form button[type="submit"]):hover,
html body.has-color-theme[data-color-theme="rainbow"] #dashboardAddProposalModal #dashboardProposalSubmit:hover,
body[data-color-theme="rainbow"] #profileModal button[type="submit"]:hover,
body[data-color-theme="rainbow"] :is(.action-primary-btn, .dashboard-shell .bottom-action-bar > button:first-child):hover,
body[data-color-theme="rainbow"] .app-status-chip .status-chip-btn:hover {
  background: var(--rainbow-gradient) !important;
  border-color: transparent !important;
  filter: brightness(1.08) saturate(1.1);
}
body[data-color-theme="rainbow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="true"] {
  background: var(--rainbow-gradient) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}
body[data-color-theme="rainbow"] #dashboardSurveyModal .survey-status-filter-btn[data-active="false"]:hover {
  background: #f8f7ff !important;
  border-color: #93c5fd !important;
}
body[data-color-theme="rainbow"] .dashboard-survey-selector-btn[data-status="open"] > div > span { color: #15803d !important; background: #dcfce7 !important; }
body[data-color-theme="rainbow"] :is(#dashboardEmailsModal > div > div:first-child .w-9, #webAuthnModal .w-11, #accountSettingsModal .w-10) {
  background: var(--rainbow-gradient-diag) !important;
  border-color: transparent !important;
}
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+1) .quick-action-badge { background: #fee2e2 !important; border-color: #fecaca !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+1) .quick-action-badge i { color: #dc2626 !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+2) .quick-action-badge { background: #ffedd5 !important; border-color: #fed7aa !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+2) .quick-action-badge i { color: #ea580c !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+3) .quick-action-badge { background: #fef9c3 !important; border-color: #fde68a !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+3) .quick-action-badge i { color: #a16207 !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+4) .quick-action-badge { background: #dcfce7 !important; border-color: #bbf7d0 !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+4) .quick-action-badge i { color: #16a34a !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+5) .quick-action-badge { background: #dbeafe !important; border-color: #bfdbfe !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n+5) .quick-action-badge i { color: #2563eb !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n) .quick-action-badge { background: #ede9fe !important; border-color: #ddd6fe !important; }
body[data-color-theme="rainbow"] #dashboardQuickActions .quick-action-item:nth-child(6n) .quick-action-badge i { color: #7c3aed !important; }
/* Pestañas/estrellas/números de propuestas */
body[data-color-theme="rainbow"] #proposalsModal #proposalsList > * [class*="rounded-full"]:first-child { color: #2563eb !important; background: #dbeafe !important; }

/* Arcoíris: modal "Redes y plataformas". */
html body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-topbar :is(.blocks-preview-edit-btn, .share-fullscreen-close) {
  background: rgba(255, 255, 255, 0.24) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0.3rem 0.8rem rgba(15, 23, 42, 0.18) !important;
}
html body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-topbar :is(.blocks-preview-edit-btn, .share-fullscreen-close):hover {
  background: rgba(255, 255, 255, 0.4) !important;
}
html body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-topbar :is(.blocks-preview-edit-btn, .share-fullscreen-close) :is(i, span) {
  color: #ffffff !important;
}

body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-add-card {
  border-color: #c4b5fd !important;
  background: #ffffff !important;
}
body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-add-card__icon {
  background: var(--rainbow-gradient-diag) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 0.6rem 1.2rem rgba(76, 29, 149, 0.22) !important;
}
body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-add-card__icon i { color: #ffffff !important; }
body[data-color-theme="rainbow"] #blocksPreviewModal .blocks-preview-back-card .blocks-preview-add-card__icon {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #22c55e) !important;
}
body[data-color-theme="rainbow"] #blocksPreviewModal .block-card :is(.fa-calendar-days, .platform-brand-glyph, .fas, .fab) { color: #ffffff !important; }

/* Arcoíris: el botón "Editar" recibe su color por estilo en línea desde estas variables. */
body[data-color-theme="rainbow"] #blocksPreviewModal {
  --platforms-header-action: rgba(255, 255, 255, 0.3) !important;
  --platforms-header-action-hover: rgba(255, 255, 255, 0.45) !important;
  --platforms-header-action-on: #ffffff !important;
  --platforms-header-control: rgba(255, 255, 255, 0.3) !important;
}


/* Perfil Medio: título + descripción apilados e íconos de línea */
.featured-link-copy {
  display: flex;
  flex-direction: column;
}
.featured-link-title,
.featured-link-subtitle {
  display: block;
}
.featured-link-icon .glyph-media {
  display: none;
}
html[data-feature-media="1"] .featured-link-icon .glyph-media {
  display: block;
}
html[data-feature-media="1"] .featured-link-icon .featured-link-icon-glyph:not(.glyph-media) {
  display: none;
}
html[data-feature-media="1"] .dashboard-shell[data-dashboard-mode="preview"] .featured-link-subtitle.edit-only {
  display: block !important;
}

/* Perfil Medio: solo el ícono (sin tile), negro en temas claros y blanco en oscuros */
html[data-feature-media="1"] body[class] .featured-link-icon[class],
html[data-feature-media="1"] body[class] .featured-link-icon[class]::before,
html[data-feature-media="1"] body[class] .featured-link-icon[class]::after {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
html[data-feature-media="1"] body[class] .featured-link-icon[class]::before,
html[data-feature-media="1"] body[class] .featured-link-icon[class]::after {
  display: none !important;
}
html[data-feature-media="1"] body[class] .featured-link-icon[class] .glyph-media {
  color: var(--shell-text, #ffffff);
  stroke: currentColor !important;
  opacity: 1 !important;
  width: 1.9rem;
  height: 1.9rem;
}
html[data-feature-media="1"] body[class] .featured-link-icon[class] .glyph-media rect {
  fill: none !important;
}
html[data-feature-media="1"] body[class] .featured-link-icon[class] .glyph-media rect[fill="#ffffff"] {
  fill: currentColor !important;
  stroke: none !important;
}

/* Perfil PodCast: ícono de audífonos en Episodios */
html[data-feature-media="1"] .featured-link-icon--proposals .glyph-podcast { display: none; }
html[data-feature-podcast="1"] .featured-link-icon--proposals .glyph-media:not(.glyph-podcast) { display: none !important; }
html[data-feature-podcast="1"][data-feature-media="1"] .featured-link-icon--proposals .glyph-podcast { display: block; }

/* Perfil Organización: ícono de calendario en Actividades */
html[data-feature-media="1"] .featured-link-icon--proposals .glyph-org { display: none; }
html[data-feature-org="1"] .featured-link-icon--proposals .glyph-media:not(.glyph-org) { display: none !important; }
html[data-feature-org="1"][data-feature-media="1"] .featured-link-icon--proposals .glyph-org { display: block; }


/* Estructura unificada: ícono de línea a la izquierda junto al texto y flecha de ingreso a la derecha */
.featured-link-card:has(.featured-link-icon--platforms, .featured-link-icon--proposals, .featured-link-icon--survey) .featured-link-actions {
  display: inline-flex !important;
}
.featured-link-card:has(.featured-link-icon--platforms, .featured-link-icon--proposals, .featured-link-icon--survey) .featured-link-icon {
  order: 0;
  margin-left: 0;
}
.featured-link-card:has(.featured-link-icon--platforms, .featured-link-icon--proposals, .featured-link-icon--survey) .featured-link-copy {
  order: 1;
}
.featured-link-card:has(.featured-link-icon--platforms, .featured-link-icon--proposals, .featured-link-icon--survey) .featured-link-actions {
  order: 2;
  margin-left: auto;
}

/* Modo Pastel: el hover de las tarjetas de plataformas no debe volver al cristal oscuro (texto ilegible). */
body.theme-light #publicQuickActions :is(.block-card, .featured-link-card, .quick-action-item):hover,
body.theme-light #publicQuickActions :is(.block-card, .featured-link-card, .quick-action-item):focus-visible {
  color: var(--public-overlay-text) !important;
  background: color-mix(in srgb, var(--public-overlay-primary) 9%, var(--public-overlay-card)) !important;
  border-color: color-mix(in srgb, var(--public-overlay-primary) 38%, var(--public-overlay-border)) !important;
  box-shadow: 0 0.9rem 1.8rem color-mix(in srgb, var(--public-overlay-text) 14%, transparent) !important;
}

/* Perfiles Medio/PodCast/Organización en Pastel: los glifos de línea no se rellenan con el coral del tema. */
html[data-feature-media="1"] body[class] .featured-link-icon[class] .glyph-media:not(#_) :is(path, g, circle, line, polyline, polygon) {
  fill: none !important;
}

/* Logos de plataformas dentro de las tarjetas: la regla de fotos (.block-card img) los desplazaba hacia arriba. */
.public-profile-shell .block-card .brand-logo-image {
  margin: 0 !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: inherit;
}
body.theme-light #publicQuickActions .block-card > div.brand-platform-tile.w-8.h-8:has(.brand-logo-image) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Encuesta pública (temas claros/color): alternativas separadas y con borde visible. */
:is(body.theme-light, body.has-color-theme) #surveyModal #surveyOptions > div:not(.ring-1) {
  background: #ffffff !important;
  border: 1.5px solid color-mix(in srgb, var(--public-overlay-primary, #dc2626) 30%, var(--public-overlay-border, #f3d4d6)) !important;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--public-overlay-text, #1f2937) 8%, transparent) !important;
}
:is(body.theme-light, body.has-color-theme) #surveyModal #surveyOptions > div:not(.ring-1):hover {
  background: color-mix(in srgb, var(--public-overlay-primary, #dc2626) 8%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--public-overlay-primary, #dc2626) 55%, var(--public-overlay-border, #f3d4d6)) !important;
}
:is(body.theme-light, body.has-color-theme) #surveyModal #surveyOptions {
  gap: 0.6rem !important;
}
:is(body.theme-light, body.has-color-theme) #surveyModal #surveyOptions .h-2.w-full {
  background: color-mix(in srgb, var(--public-overlay-primary, #dc2626) 12%, #ffffff) !important;
}

/* Compartir propuestas/encuestas: Copiar y Email con el mismo formato sólido que las redes (glifo blanco sobre color). */
:is(#proposalsShareCopy, #surveyShareCopy, #proposalsShareEmail, #surveyShareEmail) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
:is(#proposalsShareCopy, #surveyShareCopy) {
  background: #475569 !important;
}
:is(#proposalsShareEmail, #surveyShareEmail) {
  background: #334155 !important;
}
:is(#proposalsShareCopy, #surveyShareCopy):hover {
  background: #334155 !important;
}
:is(#proposalsShareEmail, #surveyShareEmail):hover {
  background: #1e293b !important;
}
:is(#proposalsShareCopy, #surveyShareCopy) .share-copy-icon {
  background: transparent !important;
}
:is(#proposalsShareCopy, #surveyShareCopy, #proposalsShareEmail, #surveyShareEmail) :is(i, svg) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.share-mail-glyph {
  font-size: 1rem;
}

/* Evaluaciones de propuestas/episodios/actividades: chip legible en cualquier tema (incluido pastel). */
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #fef3c7 !important;
  border: 1px solid #f59e0b !important;
  color: #78350f !important;
  -webkit-text-fill-color: #78350f !important;
  font-weight: 800;
}
.rating-chip .rating-chip-star,
.rating-chip .rating-star-on {
  color: #f59e0b !important;
  -webkit-text-fill-color: #f59e0b !important;
  filter: none !important;
  text-shadow: none !important;
}
.rating-chip .rating-star-off {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}
.rating-chip .rating-chip-avg {
  font-size: 0.8rem;
  color: #78350f !important;
  -webkit-text-fill-color: #78350f !important;
}
.rating-chip .rating-chip-count,
.rating-chip span {
  color: #92400e !important;
  -webkit-text-fill-color: #92400e !important;
  opacity: 1 !important;
}

/* Barra superior (dashboard y perfil público) en pantallas angostas: que el chip "Previsualizar" no se salga de la vista. */
@media (max-width: 430px) {
  .phone-status-rail {
    left: 0.5rem !important;
    right: 0.5rem !important;
    gap: 0.3rem;
    padding: 0;
  }

  .phone-status-rail .app-theme-toggle,
  .phone-status-rail .public-refresh-btn {
    width: 1.85rem;
    height: 1.85rem;
  }

  .phone-status-rail .app-brand--status {
    padding: 0.28rem 0.42rem;
  }

  .phone-status-rail .app-status-chip {
    min-width: 0;
    flex-shrink: 1;
    gap: 0.3rem;
    padding: 0.38rem 0.45rem;
    letter-spacing: 0.05em;
  }

  .phone-status-rail .app-status-chip .status-chip-btn {
    margin-left: 0.15rem !important;
    padding: 0.18rem 0.4rem;
    letter-spacing: 0.04em;
  }
}
