@font-face {
  font-family: "Londrina Solid";
  src: url("/fonts/LondrinaSolid-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Londrina Solid";
  src: url("/fonts/LondrinaSolid-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #007bc4;
  --green: #489034;
  --brown: #6e371e;
  --yellow: #f9b000;
  --gray: #9d9d9c;
  --navy: #142c46;
  --white: #ffffff;
  --black: #1a1a1a;
  --nav-bg: #142c46;
  --light-bg: #e9eef2;
  --font-display: "Londrina Solid", Impact, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-nav: Verdana, Geneva, Tahoma, "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1050px;
  --radius: 6px;
  --section-cut-height: 8px;
  --section-cut-gap: 10px;
  --nav-sticky-top: 0;
  --nav-height: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
}

main {
  overflow-x: hidden;
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.top-bar {
  background: var(--white);
  padding: 30px 0 0;
}

.top-bar .section-cut--bottom {
  margin-top: 30px;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.top-bar__logos {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav {
  position: sticky;
  top: var(--nav-sticky-top);
  z-index: 1000;
  width: 100%;
  background: transparent;
}

.main-nav__sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

.main-nav--stuck > .section-cut--top {
  display: none;
}

.main-nav__bar {
  background: var(--nav-bg);
}

.main-nav__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 32px;
  padding: 14px 0;
}

/* Misma línea de onda en ambos SVG (ver dibujo TOP / BOTTOM):
   wave-cut.svg        → TOP:    onda arriba, rectángulo hacia abajo  (--top)
   wave-cut-bottom.svg → BOTTOM: onda abajo, rectángulo hacia arriba (--bottom) */
.section-cut--top {
  margin-top: calc(-1 * var(--section-cut-height));
}

.section-cut--top.section-cut--spaced {
  margin-top: var(--section-cut-gap);
}

@media (min-width: 769px) {
  .main-nav__inner {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
  }
}

.main-nav__link {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  opacity: 0.8;
}

.main-nav__link--brand {
  font-weight: 900;
}

.section-cut {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--section-cut-height);
  line-height: 0;
  font-size: 0;
  background-color: var(--section-cut-color);
  -webkit-mask-image: url("/img/wave-cut.svg");
  mask-image: url("/img/wave-cut.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.section-cut--white {
  --section-cut-color: var(--white);
}

.section-cut--light-gray {
  --section-cut-color: var(--light-bg);
}

.section-cut--blue {
  --section-cut-color: var(--blue);
}

.section-cut--yellow {
  --section-cut-color: var(--yellow);
}

.section-cut--navy {
  --section-cut-color: var(--navy);
}

.section-cut--bottom {
  -webkit-mask-image: url("/img/wave-cut-bottom.svg");
  mask-image: url("/img/wave-cut-bottom.svg");
}

[id] {
  scroll-margin-top: var(--nav-height);
}

/* Buttons — misma onda que section-cut + laterales irregulares (btn-cut.svg) */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-mask-image: url("/img/btn-cut.svg");
  mask-image: url("/img/btn-cut.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  width: 100%;
  font-size: 20px;
  padding: 14px 28px;
}

.btn--completed {
  background: var(--green);
  color: var(--white);
  width: 100%;
  font-size: 20px;
  padding: 14px 28px;
}

.btn--completed:hover,
.btn--completed:focus-visible {
  background: #3a7529;
  color: var(--white);
  opacity: 1;
}

.btn--rejected {
  background: #c0392b;
  color: var(--white);
  width: 100%;
  font-size: 20px;
  padding: 14px 28px;
}

.btn--rejected:hover,
.btn--rejected:focus-visible {
  background: #962d22;
  color: var(--white);
  opacity: 1;
}

.btn--small {
  font-size: 15px;
  padding: 10px 22px;
}

/* Hero */
.hero {
  background: var(--white);
  padding: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 48px;
}

.hero .section-cut--bottom {
  margin-top: 64px;
}

.hero__logo img {
  width: min(100%, 420px);
  margin-inline: auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__tagline {
  width: min(100%, 480px);
}

/* Inside */
.inside,
.prize,
.about,
.separation,
.signup,
.site-footer {
  overflow: visible;
}

.inside {
  background: transparent;
  padding: 0;
}

.inside__bar {
  background: var(--light-bg);
}

.inside__inner {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.inside__icon {
  width: min(100%, 360px);
}

/* Prize — mismo patrón que .main-nav en cada bloque */
.prize {
  background: transparent;
}

.prize__header {
  background: transparent;
  padding: 0;
}

.prize__header-bar {
  background: var(--blue);
}

.prize__header-inner {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.prize__title {
  width: min(100%, 511px);
}

.prize__body {
  background: var(--white);
  padding: 88px 0 0;
}

.prize__body .section-cut--bottom {
  margin-top: 48px;
}

.prize__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.prize__text {
  max-width: 450px;
  text-align: left;
}

.prize__text p {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 28px;
}

.prize__text .btn {
  font-size: 20px;
}

.prize__visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.prize__head {
  width: 100%;
  height: auto;
}

.prize__footer {
  background: transparent;
  padding: 0;
}

.prize__footer-bar {
  background: var(--white);
}

.prize__footer-inner {
  padding: 20px 0;
}

.prize__values {
  display: block;
  width: 100%;
  max-width: 705px;
  margin: 0;
}

/* About — la sección amarilla empieza aquí (De que vai?) */
.about {
  background: transparent;
  padding: 0;
}

.about__bar {
  background: var(--yellow);
}

.about__inner {
  position: relative;
  padding: 48px 0 0;
  text-align: center;
  min-width: 0;
}

.about__hero {
  position: relative;
  margin-bottom: 40px;
}

.about__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.about__apple {
  position: absolute;
  right: 0;
  bottom: calc(100% + 24px);
  width: 64px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  transform: rotate(8deg);
}

.stats-wrap {
  position: relative;
}

/* Stats — anchos y alturas configurables por barra (ajustar a mano según diseño) */
.about__title {
  font-family: var(--font-display);
  font-size: 90px;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 900;
  line-height: 1;
}

.about__tagline {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--white);
  margin: 0 0 24px;
  font-weight: 900;
  line-height: 1.1;
}

.about__cta {
  font-size: 25px;
  line-height: 1.1;
  padding: 14px 28px;
  margin: 0;
}

.about__body {
  max-width: 850px;
  margin: 0 auto 110px;
  text-align: center;
}

.about__body p {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 24px;
}

.about__body p:last-child {
  margin-bottom: 0;
}

/* Stats — anchos y alturas configurables por barra (ajustar a mano según diseño) */
.stats {
  display: grid;
  /* Anchos relativos: blanca 95 | gris 100 | verde 100 | navy 115 | azul 120 | marrón 90 */
  grid-template-columns: 95fr 100fr 100fr 115fr 120fr 90fr;
  gap: 0;
  align-items: end;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

/* Gaps entre barras (border incluido en la celda, sin desbordar el grid):
   gris 15 | verde 32 | navy 24 | azul 27 | marrón 10 */
.stats__item--gray {
  border-left: 15px solid var(--yellow);
}

.stats__item--green {
  border-left: 32px solid var(--yellow);
}

.stats__item--navy {
  border-left: 24px solid var(--yellow);
}

.stats__item--blue {
  border-left: 27px solid var(--yellow);
}

.stats__item--brown {
  border-left: 10px solid var(--yellow);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 24px 8px 0;
  color: var(--white);
  height: var(--stats-height, 220px);
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

.stats__item--white {
  --stats-height: 340px;
  background: var(--white);
  color: var(--navy);
}

.stats__item--gray {
  --stats-height: 305px;
  background: var(--gray);
}

.stats__item--green {
  --stats-height: 305px;
  background: var(--green);
}

.stats__item--navy {
  --stats-height: 270px;
  background: var(--navy);
}

.stats__item--blue {
  --stats-height: 340px;
  background: var(--blue);
}

.stats__item--brown {
  --stats-height: 270px;
  background: var(--brown);
}

.stats__item img {
  margin-bottom: 8px;
  opacity: 0.9;
}

.stats__item--navy img {
  width: 64px;
  height: 64px;
}

.stats__number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  margin: 0;
  line-height: 1;
}

.stats__label {
  margin: 4px 0 0;
  line-height: 1;
}

.stats__highlight {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.stats__detail {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  margin-top: 2px;
}

.stats__line {
  display: block;
  line-height: 1;
}

.stats__item--blue .stats__label,
.stats__item--brown .stats__label {
  margin-top: 0;
}

/* Separation */
.separation {
  background: transparent;
  padding: 0;
}

.separation__body {
  background: var(--white);
  padding: 64px 0 0;
}

.separation .section-cut--top {
  position: relative;
  z-index: 2;
}

.separation__body .section-cut--bottom {
  margin-top: 64px;
}

.separation__inner {
  text-align: center;
  min-width: 0;
}

.separation__lead {
  position: relative;
  margin-bottom: 56px;
}

.separation__header {
  position: relative;
  min-width: 0;
  margin-bottom: 0;
}

.separation__header-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.separation__bottle {
  position: absolute;
  left: max(-54px, calc((100% - 100vw) / 2 + 8px));
  bottom: 26px;
  width: 42px;
  height: auto;
  transform: rotate(4deg);
  pointer-events: none;
  z-index: 0;
}

.separation__bag {
  position: absolute;
  right: 48px;
  top: 28px;
  width: 68px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.separation__title {
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  color: var(--navy);
}

.separation__title-char--gray {
  color: #918f90;
}

.separation__title-char--orange {
  color: #f9a70d;
}

.separation__title-char--blue {
  color: #1082ce;
}

.separation__title-char--brown {
  color: #602b1e;
}

.separation__title-char--green {
  color: #449637;
}

.separation__subtitle {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--blue);
  margin: 0 0 72px;
}

.separation__intro {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--navy);
  max-width: 63ch;
  margin: 0 auto;
}

.bins {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bins__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.bins__icon {
  flex-shrink: 0;
  width: 52px;
  height: auto;
}

.bins__bar {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  color: var(--white);
  -webkit-mask-image: url("/img/bin-bar-cut.svg");
  mask-image: url("/img/bin-bar-cut.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.bins__title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
  text-align: left;
}

.bins__desc {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  text-align: right;
}

.bins__bar--envases {
  background: var(--yellow);
  color: var(--white);
}

.bins__bar--papel {
  background: var(--blue);
}

.bins__bar--vidro {
  background: var(--green);
}

.bins__bar--organico {
  background: var(--brown);
}

.bins__bar--resto {
  background: var(--gray);
}

.separation__help {
  display: inline-block;
  margin-top: 72px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.separation__help:hover,
.separation__help:focus-visible {
  opacity: 0.85;
}

/* Signup */
.signup {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 0;
}

.signup .section-cut--bottom {
  margin-top: 64px;
}

.signup__head {
  text-align: center;
  margin-bottom: 40px;
}

.signup__title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
}

.signup__title-main {
  display: block;
}

.signup__title-sub {
  display: block;
  color: var(--blue);
}

.signup__intro,
.signup__desc {
  margin: 0 auto 12px;
  max-width: 52ch;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
}

.signup__intro {
  margin-bottom: 32px;
}

.signup__desc {
  margin-top: 32px;
}

.signup__logo {
  display: block;
  width: min(100%, 850px);
  margin: 0 auto;
}

.signup__form {
  width: 100%;
}

.signup__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 80px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.signup .form-group {
  margin-bottom: 0;
}

.signup .form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--white);
  line-height: 1.3;
}

.signup .form-group input {
  width: 100%;
  padding: 8px 16px;
  border: none;
  border-radius: 0;
  font: inherit;
  background: var(--white);
  color: var(--black);
}

.signup .form-group input.is-invalid {
  outline: 2px solid #c0392b;
  outline-offset: -2px;
}

.signup__alert {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.45;
}

.signup__alert--success {
  background: #e8f4e3;
  border: 2px solid var(--green);
  color: var(--navy);
}

.form-error {
  margin-top: 0.35rem;
  color: #f3bec7;
  font-size: 0.875rem;
  line-height: 1.35;
}

.signup__actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.signup .btn--primary {
  width: auto;
  flex-shrink: 0;
  font-size: 20px;
  padding: 18px 40px;
}

.signup__footer {
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--blue);
}

.signup__footer p {
  margin: 0;
  text-align: left;
}

/* Footer */
.site-footer {
  background: var(--white);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 104px 0;
}

.site-footer__logo {
  width: min(100%, 560px);
  height: auto;
}

.site-footer__btn {
  width: auto;
  flex-shrink: 0;
  font-size: 20px;
  padding: 18px 40px;
}

.site-footer__bottom {
  background: var(--blue);
  padding: 0;
}

.site-footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 140px;
  padding: 40px 0;
}

.site-footer__logos img {
  height: 44px;
  width: auto;
}

.site-footer__logos img.site-footer__logo-xacobeo {
  height: 28px;
  width: auto;
}

.site-footer__logo-link--xacobeo {
  align-self: flex-end;
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .about__apple {
    display: none;
  }

  .separation__bottle,
  .separation__bag {
    display: none;
  }

  .separation__subtitle {
    font-size: clamp(24px, 4.5vw, 38px);
    margin-bottom: clamp(40px, 8vw, 72px);
  }

  .separation__lead {
    margin-bottom: clamp(40px, 6vw, 56px);
  }

  .separation__intro {
    font-size: clamp(20px, 3.5vw, 25px);
  }

  .separation__help {
    font-size: clamp(20px, 3.5vw, 25px);
    margin-top: clamp(48px, 8vw, 72px);
  }

  .signup__intro,
  .signup__desc,
  .signup__footer {
    font-size: clamp(20px, 3.5vw, 25px);
  }

  .about__body {
    margin-bottom: 48px;
  }

  .stats-wrap {
    padding-bottom: 32px;
  }

  .separation .section-cut--top {
    --section-cut-height: 12px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  .stats__item--gray,
  .stats__item--green,
  .stats__item--navy,
  .stats__item--blue,
  .stats__item--brown {
    border-left: none;
  }

  .stats__item,
  .stats__item--white,
  .stats__item--gray,
  .stats__item--green,
  .stats__item--navy,
  .stats__item--blue,
  .stats__item--brown {
    height: auto;
    min-height: 0;
    padding: 20px 12px 28px;
  }

  .stats__item--navy img {
    width: 48px;
    height: 48px;
  }

  .stats__highlight {
    font-size: clamp(28px, 5vw, 40px);
  }

  .stats__detail {
    font-size: clamp(14px, 3.5vw, 20px);
  }

  .about__title,
  .separation__title {
    font-size: clamp(48px, 10vw, 90px);
  }

  .about__tagline {
    font-size: clamp(24px, 4vw, 38px);
  }

  .about__icon {
    width: 56px;
  }

  .hero__inner,
  .prize__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    align-items: center;
    width: 100%;
  }

  .hero__logo img,
  .hero__tagline {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .prize__title {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .about__hero {
    padding-top: 72px;
  }

  .about__icon {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 48px;
  }

  .about__body p {
    font-size: 20px;
  }

  .top-bar__logos {
    gap: 20px;
  }

  .main-nav__inner {
    gap: 8px 16px;
  }

  .main-nav__link {
    font-size: 15px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .bins__bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 20px;
  }

  .bins__title {
    font-size: clamp(20px, 3.5vw, 25px);
    text-align: left;
  }

  .bins__desc {
    font-size: clamp(16px, 3.5vw, 20px);
    text-align: left;
  }

  .bins__icon {
    width: 44px;
  }

  .signup__form-grid {
    grid-template-columns: 1fr;
  }

  .signup .form-group label,
  .signup .btn--primary {
    font-size: clamp(16px, 3.5vw, 20px);
  }

  .signup__actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .signup__footer {
    width: max-content;
    max-width: 100%;
  }

  .site-footer__top {
    flex-direction: column;
    gap: 24px;
    padding: 48px 0;
  }

  .site-footer__logos {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
  }

  .site-footer__logos img {
    height: 28px;
  }

  .site-footer__logos img.site-footer__logo-xacobeo {
    height: 18px;
  }

  .site-footer__logo-link--xacobeo {
    align-self: center;
    margin-bottom: 0;
  }

  .site-footer__btn {
    font-size: clamp(16px, 3.5vw, 20px);
    padding: 16px 32px;
  }
}

/* Tenant dashboard (Fase 4) */
.tenant-panel {
  background: #f4f7f9;
  color: var(--black);
  min-height: 100vh;
  min-height: 100dvh;
}

.tenant-panel__header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  background: var(--navy);
  color: var(--white);
}

.tenant-panel__header-desktop {
  display: block;
}

.tenant-panel__header-mobile {
  display: none;
}

.tenant-panel__header-desktop .tenant-panel__header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 16px 0;
}

.tenant-panel__header-mobile .tenant-panel__header-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.tenant-panel__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  justify-content: space-between;
  width: 100%;
}

.tenant-panel__brand {
  display: block;
  min-width: 0;
  line-height: 0;
}

.tenant-panel__brand img {
  display: block;
  width: min(100%, 200px);
  height: auto;
}

.tenant-panel__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.tenant-panel__menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: center;
}

.tenant-panel__menu-toggle.is-open .tenant-panel__menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tenant-panel__menu-toggle.is-open .tenant-panel__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.tenant-panel__menu-toggle.is-open .tenant-panel__menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tenant-panel__menu-toggle:hover,
.tenant-panel__menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.tenant-panel__mobile-drawer-inner {
  padding-bottom: 8px;
}

.tenant-panel__mobile-footer {
  display: none;
}

.tenant-panel__logout-form {
  margin: 0;
  display: flex;
  align-items: center;
}

.tenant-panel__logout-btn {
  border: 2px solid #c0392b;
  color: var(--white);
  background: #c0392b;
  padding: 8px 14px;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tenant-panel__logout-btn:hover,
.tenant-panel__logout-btn:focus-visible {
  background: #962d22;
  border-color: #962d22;
  color: var(--white);
  outline: none;
}

.tenant-panel__logout-btn--mobile {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  border: 2px solid #c0392b;
  border-radius: 0;
  font-weight: 900;
}

.tenant-panel__hero {
  padding: 40px 0 56px;
  background: var(--navy);
  color: var(--white);
}

.tenant-panel__hero-inner {
  max-width: var(--container);
}

.tenant-panel__welcome {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
}

.tenant-panel__welcome--onboarding {
  color: var(--navy);
}

.tenant-panel__meta {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 25px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.tenant-panel__meta strong {
  color: var(--white);
  font-weight: 900;
}

.tenant-panel__status {
  display: inline-block;
  margin-bottom: 32px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 18px;
  border: 2px solid var(--black);
}

.tenant-panel__status--pending {
  background: #f5e6b8;
  color: var(--navy);
  border-color: var(--yellow);
}

.tenant-panel__status--approved {
  background: #e8f4e3;
  color: #2d5a22;
  border-color: var(--green);
}

.tenant-panel__status--rejected {
  background: #fde8e8;
  color: #7a1f1f;
  border-color: #c0392b;
}

.tenant-panel__stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tenant-panel__stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  padding: 28px 20px;
  text-align: center;
  color: var(--white);
  box-sizing: border-box;
}

.tenant-panel__stat-card--blue {
  background: #007bc4;
}

.tenant-panel__stat-card--green {
  background: #538e32;
}

.tenant-panel__stat-card img {
  margin-bottom: 12px;
  opacity: 0.95;
}

.tenant-panel__stat-number {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.tenant-panel__stat-label {
  margin: 0;
  line-height: 1.2;
}

.tenant-panel__stat-highlight {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.tenant-panel__stat-detail {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  opacity: 0.95;
}

.tenant-panel__section {
  padding: 56px 0;
}

.tenant-panel__section-inner {
  max-width: var(--container);
}

.tenant-panel__section--white {
  background: var(--white);
  color: var(--black);
}

.tenant-panel__section--light {
  background: var(--light-bg);
  color: var(--black);
}

.tenant-panel__section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: inherit;
}

.tenant-panel__section-intro {
  margin: 0 0 32px;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--black);
}

.tenant-panel__section--white .tenant-panel__section-title,
.tenant-panel__section--light .tenant-panel__section-title,
.tenant-panel__section-title {
  color: var(--navy);
}

.tenant-panel__section--light .tenant-panel__section-intro {
  color: #333;
}

.tenant-panel__challenge-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
}

.tenant-panel__challenge-desc {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.tenant-panel__locked {
  padding: 24px 28px;
  background: var(--light-bg);
  border: 2px solid var(--navy);
}

.tenant-panel__locked-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.tenant-panel__locked-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.tenant-panel__form .form-group label {
  color: var(--navy);
}

.tenant-panel__form .form-group input,
.tenant-panel__form .form-group textarea {
  width: 100%;
  padding: 8px 16px;
  border: 2px solid var(--navy);
  border-radius: 0;
  font: inherit;
  background: var(--white);
  color: var(--black);
}

.tenant-panel__form .form-group textarea {
  min-height: 120px;
  resize: vertical;
}

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

.tenant-panel__history {
  display: grid;
  gap: 12px;
}

.tenant-panel__history-empty {
  padding: 32px 28px;
  background: var(--white);
  border: 2px solid var(--navy);
  text-align: center;
}

.tenant-panel__history-empty-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.tenant-panel__history-empty-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1;
}

.tenant-panel__history-empty-text {
  margin: 0;
  max-width: 48ch;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.tenant-panel__history-card {
  padding: 16px 20px;
  background: var(--white);
  border: 2px solid var(--navy);
}

.tenant-panel__history-card--rejected {
  border-color: #c0392b;
  background: #fff8f8;
}

.tenant-panel__history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tenant-panel__history-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
}

.tenant-panel__history-card-meta {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
}

.tenant-panel__history-card-feedback {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #555;
}

.tenant-panel__history-card-feedback--rejected {
  padding: 10px 12px;
  color: #7a1f1f;
  background: #fde8e8;
  border: 2px solid #c0392b;
}

.tenant-panel__history-detail-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tenant-panel__history-detail-btn:hover,
.tenant-panel__history-detail-btn:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.tenant-panel__history-detail-btn--rejected {
  background: #c0392b;
}

.tenant-panel__history-detail-btn--rejected:hover,
.tenant-panel__history-detail-btn--rejected:focus-visible {
  background: #962d22;
  color: var(--white);
}

.tenant-panel__history-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  border: 2px solid var(--navy);
}

.tenant-panel__history-badge--review {
  background: #fef3cd;
  color: #7a5b00;
  border-color: var(--yellow);
}

.tenant-panel__history-badge--approved {
  background: #e8f4e3;
  color: #2d5a22;
  border-color: var(--green);
}

.tenant-panel__history-badge--rejected {
  background: #fde8e8;
  color: #7a1f1f;
  border-color: #c0392b;
}

.tenant-panel__alert {
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #e8f4e3;
  border: 2px solid var(--green);
  color: var(--navy);
}

.tenant-panel__alert--error {
  background: #fde8e8;
  border-color: #c0392b;
  color: #7a1f1f;
}

.tenant-panel__alert-list {
  margin: 0;
  padding-left: 20px;
}

/* Onboarding steps */
.tenant-panel__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tenant-panel__step {
  flex: 1;
  padding: 16px 20px;
  text-align: center;
  border: 2px solid var(--navy);
}

.tenant-panel__step-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
}

.tenant-panel__step--green {
  background: #e8f4e3;
  border-color: var(--green);
}

.tenant-panel__step--yellow {
  background: #f5e6b8;
  border-color: var(--yellow);
}

.tenant-panel__step--gray {
  background: var(--gray);
  border-color: var(--navy);
}

/* Challenge grid */
.tenant-panel__challenge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tenant-panel__challenge-card {
  padding: 20px 24px;
  background: var(--white);
  border: 2px solid #d8e2ec;
  box-sizing: border-box;
}

.tenant-panel__challenge-card--locked {
  opacity: 0.95;
}

.tenant-panel__challenge-card--available {
  border-color: var(--blue);
}

.tenant-panel__challenge-card--submitted {
  border-color: var(--yellow);
}

.tenant-panel__challenge-card--completed {
  border-color: var(--green);
  background: #f8fcf6;
}

.tenant-panel__challenge-card--rejected {
  border-color: #c0392b;
  background: #fff8f8;
}

.tenant-panel__challenge-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tenant-panel__challenge-phase {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6d82;
}

.tenant-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1.2;
}

.tenant-panel__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tenant-panel__badge--locked {
  background: #e8edf2;
  color: #4a5d73;
}

.tenant-panel__badge--locked::before {
  background: #9aa8b8;
}

.tenant-panel__badge--available {
  background: #dbeafe;
  color: #1e40af;
}

.tenant-panel__badge--available::before {
  background: var(--blue);
}

.tenant-panel__badge--review {
  background: #fef3cd;
  color: #7a5b00;
}

.tenant-panel__badge--review::before {
  background: #e6a800;
}

.tenant-panel__badge--completed {
  background: #e8f4e3;
  color: #2d5a22;
}

.tenant-panel__badge--completed::before {
  background: var(--green);
}

.tenant-panel__badge--rejected {
  background: #fde8e8;
  color: #7a1f1f;
}

.tenant-panel__badge--rejected::before {
  background: #c0392b;
}

.tenant-panel__challenge-card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
}

.tenant-panel__challenge-points {
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tenant-panel__challenge-points-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
}

.tenant-panel__challenge-points-label {
  font-size: 0.9rem;
  color: #5a6d82;
}

.tenant-panel__challenge-summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}

.tenant-panel__challenge-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
}

.tenant-panel__challenge-locked-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5a6d82;
  font-weight: 600;
}

.tenant-panel__submission-notice--locked {
  background: #e8edf2;
  border-top-color: #9aa8b8;
  color: #4a5d73;
}

.tenant-panel__back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: none;
}

.tenant-panel__back-link:hover,
.tenant-panel__back-link:focus-visible {
  color: var(--navy);
}

.tenant-panel__section--challenge-show {
  padding-top: 40px;
}

.tenant-panel__challenge-show-header {
  margin-bottom: 32px;
}

.tenant-panel__challenge-show-header .tenant-panel__section-title {
  margin-top: 12px;
}

.tenant-panel__challenge-show-meta {
  margin: 8px 0 0;
  font-size: 1rem;
  color: #555;
}

.tenant-panel__challenge-show-body {
  display: grid;
  gap: 32px;
}

.tenant-panel__challenge-show-subtitle {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.tenant-panel__requirements-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.tenant-panel__requirements-list li {
  margin-bottom: 8px;
}

.tenant-panel__requirements-list li:last-child {
  margin-bottom: 0;
}

.tenant-panel__form-hint {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #555;
}

.tenant-panel__form-hint--limits {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #777;
}

.tenant-panel__form-hint--error {
  color: #b42318;
  font-weight: 600;
}

.tenant-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.tenant-evidence-thumb {
  display: block;
  border: 2px solid #d8e2ec;
  background: var(--light-bg);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.tenant-evidence-thumb:hover,
.tenant-evidence-thumb:focus-visible {
  border-color: var(--navy);
  outline: none;
}

.tenant-evidence-thumb img {
  display: block;
  width: 100%;
  max-height: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe5ec;
}

.tenant-evidence-video {
  margin: 0;
  border: 2px solid #d8e2ec;
  background: var(--light-bg);
  overflow: hidden;
}

.tenant-evidence-video video {
  display: block;
  width: 100%;
  max-height: 220px;
  background: #000;
}

.tenant-evidence-video__name {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-evidence-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 14px;
  min-height: 160px;
  border: 2px solid #d8e2ec;
  background: var(--light-bg);
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tenant-evidence-pdf:hover,
.tenant-evidence-pdf:focus-visible {
  border-color: var(--navy);
  background: #e8edf2;
  outline: none;
}

.tenant-evidence-pdf__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
}

.tenant-evidence-pdf__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-evidence-pdf__action {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: underline;
}

.tenant-evidence-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  min-height: 160px;
  border: 2px solid #d8e2ec;
  background: var(--white);
  text-decoration: none;
  color: var(--navy);
}

.tenant-evidence-file__name {
  font-size: 0.8rem;
  font-weight: 600;
  word-break: break-word;
  text-align: center;
}

.tenant-evidence-file__action {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
}

.tenant-panel__pdf-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--light-bg);
  border: 2px solid var(--navy);
}

.tenant-panel__pdf-card-content {
  flex: 1;
  min-width: 0;
}

.tenant-panel__pdf-card-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.tenant-panel__pdf-card-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

.tenant-panel__pdf-card-btn {
  flex-shrink: 0;
  width: auto;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tenant-panel__pdf-card-btn:hover,
.tenant-panel__pdf-card-btn:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.tenant-panel__rejected {
  max-width: 52ch;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--white);
  border: 2px solid #c0392b;
}

.tenant-panel__rejected-badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: #7a1f1f;
  background: #fde8e8;
  border: 2px solid #c0392b;
}

.tenant-panel__rejected-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
}

.tenant-panel__rejected-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.tenant-panel__rejected-text a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

.tenant-panel__rejected-text a:hover,
.tenant-panel__rejected-text a:focus-visible {
  color: var(--navy);
}

.tenant-panel__submission-summary {
  border: 2px solid var(--navy);
}

.tenant-panel__submission-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #f5e6b8;
  color: var(--navy);
}

.tenant-panel__submission-banner-badge {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: #7a5b00;
  background: #fef3cd;
  border: 2px solid var(--yellow);
}

.tenant-panel__submission-banner-date {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.tenant-panel__submission-summary--approved {
  border-color: var(--green);
}

.tenant-panel__submission-banner--approved {
  background: var(--green);
  color: var(--white);
}

.tenant-panel__submission-banner--approved .tenant-panel__submission-banner-badge {
  color: #2d5a22;
  background: #e8f4e3;
  border-color: var(--white);
}

.tenant-panel__submission-banner--approved .tenant-panel__submission-banner-date {
  color: var(--white);
}

.tenant-panel__submission-summary--rejected {
  border-color: #c0392b;
}

.tenant-panel__submission-banner--rejected {
  background: #fde8e8;
  color: #7a1f1f;
}

.tenant-panel__submission-banner--rejected .tenant-panel__submission-banner-badge {
  color: #7a1f1f;
  background: var(--white);
  border-color: #c0392b;
}

.tenant-panel__submission-banner--rejected .tenant-panel__submission-banner-date {
  color: #7a1f1f;
}

.tenant-panel__submission-feedback--rejected {
  background: #fff8f8;
  border-top: 2px solid #f0d4d4;
}

.tenant-panel__submission-feedback--rejected .tenant-panel__submission-feedback-text {
  border-color: #c0392b;
  background: #fde8e8;
  color: #7a1f1f;
}

.tenant-panel__submission-notice--rejected {
  background: #fde8e8;
  border-top-color: #c0392b;
  color: #7a1f1f;
}

.tenant-panel__challenge-show-subtitle--resubmit {
  margin-top: 32px;
}

.tenant-panel__submission-congrats {
  margin: 0;
  padding: 20px 24px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--navy);
  background: #f8fcf6;
  border-bottom: 2px solid #d8e2ec;
}

.tenant-panel__submission-congrats strong {
  font-family: var(--font-display);
  font-weight: 900;
}

.tenant-panel__submission-feedback {
  padding: 20px 24px;
  background: #f4f7f9;
  border-top: 2px solid #d8e2ec;
}

.tenant-panel__submission-feedback-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.tenant-panel__submission-feedback-text {
  margin: 0;
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  background: var(--white);
  border: 2px solid var(--navy);
}

.tenant-panel__submission-section {
  padding: 20px 24px;
  border-top: 2px solid #d8e2ec;
}

.tenant-panel__submission-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.tenant-panel__submission-files {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tenant-panel__submission-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light-bg);
  border: 2px solid #d8e2ec;
}

.tenant-panel__submission-file-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  border: 2px solid var(--navy);
}

.tenant-panel__submission-file-icon--photo {
  background: #e8edf2;
  color: #4a5d73;
  border-color: #9aa8b8;
}

.tenant-panel__submission-file-icon--pdf {
  background: #e8edf2;
  color: var(--navy);
  border-color: #9aa8b8;
}

.tenant-panel__submission-summary--approved .tenant-panel__submission-file-icon--photo {
  background: #e8f4e3;
  color: #2d5a22;
  border-color: var(--green);
}

.tenant-panel__submission-summary--approved .tenant-panel__submission-file-icon--pdf {
  background: #e8f4e3;
  color: #2d5a22;
  border-color: var(--green);
}

.tenant-panel__section--challenge-show .tenant-panel__submission-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tenant-panel__section--challenge-show .tenant-panel__submission-links a {
  display: block;
  padding: 12px 16px;
  background: var(--light-bg);
  border: 2px solid #d8e2ec;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.tenant-panel__section--challenge-show .tenant-panel__submission-links a:hover {
  border-color: var(--navy);
}

.tenant-panel__section--challenge-show .tenant-panel__submission-summary--approved .tenant-panel__submission-links a {
  border-color: var(--green);
  color: #2d5a22;
}

.tenant-panel__submission-file-name {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 600;
}

.tenant-panel__submission-notes {
  margin: 0;
  padding: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background: var(--light-bg);
  border: 2px solid #d8e2ec;
}

.tenant-panel__submission-empty {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.tenant-panel__submission-notice {
  margin: 0;
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #444;
  background: #f5e6b8;
  border-top: 2px solid var(--yellow);
}

@media (max-width: 768px) {
  .tenant-panel__section--challenge-show {
    overflow-x: clip;
  }

  .tenant-panel__section--challenge-show .tenant-panel__challenge-show-header,
  .tenant-panel__section--challenge-show .tenant-panel__challenge-show-body,
  .tenant-panel__section--challenge-show .tenant-panel__challenge-show-body section,
  .tenant-panel__section--challenge-show .tenant-panel__submission-summary,
  .tenant-panel__section--challenge-show .tenant-panel__submission-section,
  .tenant-panel__section--challenge-show .tenant-panel__submission-feedback {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .tenant-panel__section--challenge-show .tenant-panel__challenge-show-header .tenant-panel__section-title,
  .tenant-panel__section--challenge-show .tenant-panel__challenge-desc,
  .tenant-panel__section--challenge-show .tenant-panel__requirements-list,
  .tenant-panel__section--challenge-show .tenant-panel__pdf-card-text,
  .tenant-panel__section--challenge-show .tenant-panel__submission-file-name,
  .tenant-panel__section--challenge-show .tenant-panel__submission-links a,
  .tenant-panel__section--challenge-show .tenant-panel__submission-notes,
  .tenant-panel__section--challenge-show .tenant-panel__submission-notice,
  .tenant-panel__section--challenge-show .tenant-panel__submission-feedback-text,
  .tenant-panel__section--challenge-show .tenant-panel__submission-congrats {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tenant-panel__section--challenge-show .tenant-panel__pdf-card {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .tenant-panel__section--challenge-show .tenant-panel__pdf-card-content {
    width: 100%;
    max-width: 100%;
  }

  .tenant-panel__section--challenge-show .tenant-panel__submission-file {
    min-width: 0;
    max-width: 100%;
  }

  .tenant-panel__section--challenge-show .tenant-panel__submission-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .tenant-panel__section--challenge-show .tenant-panel__submission-section {
    padding: 16px;
  }

  .tenant-panel__section--challenge-show .tenant-panel__submission-feedback {
    padding: 16px;
  }

  .tenant-panel__section--challenge-show .tenant-panel__form .signup__form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .tenant-panel__section--challenge-show .tenant-panel__form .form-group input[type="file"],
  .tenant-panel__section--challenge-show .tenant-panel__form .signup__actions,
  .tenant-panel__section--challenge-show .tenant-panel__form .btn {
    width: 100%;
    max-width: 100%;
  }

  .tenant-panel__section--challenge-show .tenant-panel__form .btn {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .tenant-panel__section--challenge-show {
    padding-top: 24px;
  }

  .tenant-panel__section--challenge-show .tenant-panel__pdf-card {
    padding: 16px;
    gap: 12px;
  }

  .tenant-panel__section--challenge-show .tenant-panel__pdf-card-btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .tenant-panel__section--challenge-show .tenant-panel__requirements-list {
    padding-left: 0.875rem;
    padding-right: 0;
  }
}

@media (min-width: 640px) {
  .tenant-panel__pdf-card {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

@media (min-width: 768px) {
  .tenant-panel__stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .tenant-panel__steps {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .tenant-panel__challenge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .tenant-panel__header-desktop {
    display: none !important;
  }

  .tenant-panel__header-mobile {
    display: block;
    position: relative;
  }

  .tenant-panel__header-mobile .tenant-panel__header-left {
    flex: 1;
    justify-content: space-between;
    width: 100%;
  }

  .tenant-panel__mobile-drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.3s ease-in-out,
      opacity 0.25s ease-in-out,
      visibility 0.3s ease-in-out;
  }

  .tenant-panel__mobile-drawer.is-open {
    max-height: 120px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
  }

  .tenant-panel__mobile-drawer-inner {
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .tenant-panel__mobile-footer {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 0 0;
    box-sizing: border-box;
  }

  .tenant-panel__mobile-footer .tenant-panel__logout-form {
    width: 100%;
    margin: 0;
  }

  body.tenant-panel--menu-open {
    overflow: hidden;
  }
}

/* Admin panel (Fase 5B) */
.admin-panel {
  background: #f4f7f9;
  color: var(--black);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

.admin-panel__header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  background: var(--navy);
  color: var(--white);
}

.admin-panel__header-desktop {
  display: block;
}

.admin-panel__header-mobile {
  display: none;
}

.admin-panel__header-desktop .admin-panel__header-bar {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr minmax(0, auto);
  align-items: center;
  gap: 12px 28px;
  padding: 16px 0;
}

.admin-panel__header-mobile .admin-panel__header-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.admin-panel__mobile-drawer-inner {
  padding-bottom: 8px;
}

.admin-panel__header-inner {
  display: contents;
}

.admin-panel__header-inner--center {
  display: block;
  text-align: center;
  padding: 4px 0;
}

.admin-panel__header--login .admin-panel__brand img {
  max-height: 28px;
  object-fit: contain;
}

.admin-panel__header--login .section-cut {
  --section-cut-height: 5px;
  height: 5px;
}

.admin-panel__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-panel__header-desktop .admin-panel__header-left {
  flex-shrink: 0;
}

.admin-panel__header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.admin-panel__header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}

.admin-panel__brand {
  display: block;
  min-width: 0;
  line-height: 0;
}

.admin-panel__brand img {
  display: block;
  width: min(100%, 200px);
  height: auto;
}

.admin-panel__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-panel__menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: center;
}

.admin-panel__menu-toggle.is-open .admin-panel__menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.admin-panel__menu-toggle.is-open .admin-panel__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.admin-panel__menu-toggle.is-open .admin-panel__menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.admin-panel__menu-toggle:hover,
.admin-panel__menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.admin-panel__header-desktop .admin-panel__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-panel__nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-panel__header-desktop .admin-panel__nav-link:hover,
.admin-panel__header-desktop .admin-panel__nav-link:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.admin-panel__header-desktop .admin-panel__nav-link--active {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
  font-weight: 900;
}

.admin-panel__mobile-footer {
  display: none;
}

.admin-panel__logout-form {
  margin: 0;
  display: flex;
  align-items: center;
}

.admin-panel__logout-btn {
  border: 2px solid #c0392b;
  color: var(--white);
  background: #c0392b;
  padding: 8px 14px;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-panel__logout-btn:hover,
.admin-panel__logout-btn:focus-visible {
  background: #962d22;
  border-color: #962d22;
  color: var(--white);
  outline: none;
}

.admin-panel__logout-btn--mobile {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  border: 2px solid #c0392b;
  border-radius: 0;
  font-weight: 900;
}

.admin-panel__main {
  padding: 40px 0 56px;
}

.admin-panel__inner {
  max-width: var(--container);
}

.admin-page-header {
  margin-bottom: 32px;
}

.admin-page-header--spaced {
  margin-bottom: 32px;
}

.admin-page-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
}

.admin-page-intro {
  margin: 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

.admin-page-header--with-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.admin-page-header__main {
  flex: 1 1 280px;
  min-width: 0;
}

.admin-page-header__action {
  flex-shrink: 0;
  align-self: flex-start;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.admin-form-control--readonly {
  background: #f4f7fa;
  color: #444;
  cursor: default;
}

.admin-form-control--locked {
  background: #eef1f4;
  border-color: #b8c2ce;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

.admin-form-control--description {
  min-height: 220px;
}

.admin-form-control--description-grid {
  min-height: 280px;
  height: 100%;
}

.admin-form-control--soft {
  border: 1px solid #d8e2ec;
  border-radius: 8px;
}

.admin-form-control--soft:focus {
  border-color: var(--blue);
}

.admin-form-control--soft.admin-form-control--select {
  border-radius: 8px;
}

.admin-form-group--fill {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.admin-form-group--fill .admin-form-control--textarea {
  flex: 1;
  min-height: 280px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

.admin-form-grid--challenge {
  gap: 32px;
}

@media (min-width: 1024px) {
  .admin-form-grid,
  .admin-form-grid--challenge {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
  }
}

.admin-form-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-form-group--spaced {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.admin-form-group--spaced .admin-form-hint {
  margin-bottom: 4px;
}

.admin-form-grid__primary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-form-grid__primary .admin-form-group {
  margin: 0;
}

.admin-form-grid__primary .admin-form-group + .admin-form-group {
  margin-top: 0;
}

.admin-form--challenge-edit {
  gap: 28px;
}

.admin-form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #eef2f6;
  margin-top: 4px;
}

.admin-form-footer__danger {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.admin-form-footer__actions {
  padding-top: 0;
}

.admin-form-delete-notice {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #64748b;
  max-width: 36ch;
}

.admin-challenge-header__row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 8px;
}

.admin-challenge-header__title {
  margin: 0;
  flex: 1 1 280px;
  min-width: 0;
}

.admin-challenge-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
}

.admin-challenge-header__intro {
  margin: 0;
}

.admin-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-meta-badge--points {
  color: var(--navy);
  background: #eef6fc;
  border-color: #c5dff0;
}

.admin-form-hint--warning {
  color: #7a1f1f;
}

.admin-card--form {
  margin-bottom: 24px;
}

.admin-card--soft {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.admin-card--danger-zone {
  border-color: #c0392b;
  margin-bottom: 24px;
}

.admin-meta-list--compact {
  margin-bottom: 4px;
}

.admin-btn--ghost {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.admin-btn--ghost:hover,
.admin-btn--ghost:focus-visible {
  background: #f4f7fa;
}

.admin-btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}

.admin-btn--outline {
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--navy);
}

.admin-btn--outline:hover,
.admin-btn--outline:focus-visible {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--navy);
}

.admin-btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-btn__icon {
  flex-shrink: 0;
}

.admin-btn--danger-subtle {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #b42318;
  font-size: 13px;
  padding: 6px 10px;
}

.admin-btn--danger-subtle:hover:not(:disabled),
.admin-btn--danger-subtle:focus-visible:not(:disabled) {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.admin-btn--danger-subtle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-btn--placeholder {
  background: #f4f6f8;
  border-color: #c5ced8;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

.admin-btn--placeholder:disabled {
  opacity: 1;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 44, 70, 0.55);
}

.admin-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: 28px 24px;
  background: var(--white);
  border: 2px solid var(--navy);
}

.admin-modal__dialog--soft {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

.admin-modal__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
}

.admin-modal__text {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
}

.admin-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: none;
}

.admin-back-link:hover,
.admin-back-link:focus-visible {
  color: var(--navy);
}

.admin-alert {
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 2px solid;
  font-size: 0.95rem;
  line-height: 1.5;
}

.admin-alert--success {
  background: #e8f4e3;
  border-color: var(--green);
  color: #2d5a22;
}

.admin-alert--error {
  background: #fde8e8;
  border-color: #c0392b;
  color: #7a1f1f;
}

.admin-alert__list {
  margin: 0;
  padding-left: 1.25rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.admin-stat-card {
  padding: 20px 18px 18px;
  border: 2px solid var(--navy);
  background: var(--white);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
}

.admin-stat-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-stat-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  border: 2px solid;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-stat-card__badge--attention {
  color: #7a5b00;
  background: #fef3cd;
  border-color: var(--yellow);
}

.admin-stat-card__badge--ok {
  color: #2d5a22;
  background: #e8f4e3;
  border-color: var(--green);
}

.admin-stat-card__badge--muted {
  color: #4a5d73;
  background: #f4f6f8;
  border-color: #c5ced8;
}

.admin-stat-card--yellow {
  border-color: var(--navy);
  background: var(--white);
}

.admin-stat-card--blue {
  border-color: var(--navy);
  background: var(--white);
}

.admin-stat-card--green {
  border-color: var(--navy);
  background: var(--white);
}

.admin-stat-card--navy {
  border-color: var(--navy);
  background: var(--white);
}

.admin-stat-card__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
}

.admin-stat-card__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #444;
}

.admin-stat-card__link {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: none;
}

.admin-stat-card__link:hover,
.admin-stat-card__link:focus-visible {
  color: var(--navy);
}

.admin-dashboard-pending {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-dashboard-pending__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.admin-dashboard-pending__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .admin-dashboard-pending__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

.admin-pending-panel {
  padding: 20px 18px;
  border: 2px solid var(--navy);
  background: var(--white);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  min-width: 0;
}

.admin-pending-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-pending-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
}

.admin-pending-panel__empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  background: #f8fafc;
  border: 2px dashed #d8e2ec;
}

.admin-pending-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.admin-pending-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.admin-pending-table--submissions .admin-pending-table__col-piso {
  width: 32%;
}

.admin-pending-table--submissions .admin-pending-table__col-detail {
  width: 33%;
}

.admin-pending-table--submissions .admin-pending-table__col-time {
  width: 15%;
}

.admin-pending-table--submissions .admin-pending-table__col-action {
  width: 20%;
}

.admin-pending-table--dwellings .admin-pending-table__col-piso {
  width: 30%;
}

.admin-pending-table--dwellings .admin-pending-table__col-detail {
  width: 25%;
}

.admin-pending-table--dwellings .admin-pending-table__col-time {
  width: 15%;
}

.admin-pending-table--dwellings .admin-pending-table__col-action {
  width: 30%;
}

.admin-pending-table th,
.admin-pending-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #dce4ec;
}

.admin-pending-table th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.admin-pending-table__th-action,
.admin-pending-table__action {
  text-align: right;
}

.admin-pending-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-pending-table__truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}

.admin-pending-table__truncate strong {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
}

.admin-pending-table__muted {
  color: #64748b;
  font-size: 0.875rem;
}

.admin-pending-table__time {
  font-size: 0.8125rem;
  color: #666;
  white-space: nowrap;
}

.admin-pending-table__action .admin-btn {
  white-space: nowrap;
}

.admin-btn--compact {
  padding: 6px 8px;
  font-size: 12px;
}

@media (max-width: 767px) {
  .admin-pending-table-wrap {
    overflow-x: visible;
  }

  .admin-pending-table thead {
    display: none;
  }

  .admin-pending-table,
  .admin-pending-table tbody {
    display: block;
    width: 100%;
  }

  .admin-pending-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "piso time"
      "detail action";
    gap: 6px 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dce4ec;
  }

  .admin-pending-table tbody tr:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .admin-pending-table tbody tr:first-child {
    padding-top: 0;
  }

  .admin-pending-table td {
    display: block;
    padding: 0;
    border: none;
    max-width: none;
  }

  .admin-pending-table td:nth-child(1) {
    grid-area: piso;
  }

  .admin-pending-table td:nth-child(2) {
    grid-area: detail;
  }

  .admin-pending-table td:nth-child(3) {
    grid-area: time;
    text-align: right;
  }

  .admin-pending-table td:nth-child(4) {
    grid-area: action;
    text-align: right;
  }

  .admin-pending-table__truncate {
    max-width: 100%;
  }
}

.admin-card {
  padding: 24px 28px;
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.admin-submissions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 8px;
}

.admin-dwelling-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  min-height: 0;
}

.admin-dwelling-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
}

.admin-dwelling-card__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
  word-break: break-word;
}

.admin-dwelling-card__status {
  flex-shrink: 0;
}

.admin-dwelling-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.admin-dwelling-card__date {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

.admin-dwelling-card__date-label {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
}

.admin-dwelling-card__date-muted {
  color: #64748b;
  font-style: normal;
}

.admin-dwelling-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-dwelling-card__meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  color: #475569;
  background: #f8fafc;
  border: 2px solid #d8e2ec;
}

.admin-dwelling-card__meta-badge--points {
  color: #2d5a22;
  background: #e8f4e3;
  border-color: var(--green);
}

.admin-dwelling-card__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 4px;
  margin-top: 0;
}

.admin-empty-state {
  margin: 0;
  padding: 24px 20px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  background: var(--white);
  border: 2px solid var(--navy);
}

.admin-card--review {
  border-color: var(--blue);
}

.admin-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.admin-quick-strip {
  padding: 20px 24px;
  background: var(--white);
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.admin-quick-strip__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
  flex-shrink: 0;
}

.admin-quick-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.admin-quick-strip__btn {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-quick-strip__btn--navy {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.admin-quick-strip__btn--navy:hover,
.admin-quick-strip__btn--navy:focus-visible {
  background: #0f2238;
}

.admin-quick-strip__btn--blue {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.admin-quick-strip__btn--blue:hover,
.admin-quick-strip__btn--blue:focus-visible {
  background: #006aab;
}

.admin-quick-strip__btn--green {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.admin-quick-strip__btn--green:hover,
.admin-quick-strip__btn--green:focus-visible {
  background: #3a7529;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.admin-list-toolbar .admin-filters {
  margin-bottom: 0;
}

.admin-filter {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  border: 2px solid #d8e2ec;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.admin-filter:hover,
.admin-filter:focus-visible {
  border-color: var(--navy);
}

.admin-filter--active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.admin-filters--scroll-x {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.admin-filters--scroll-x .admin-filter {
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-summary-card {
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.admin-summary-card__value {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
}

.admin-summary-card__label {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #555;
}

.admin-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.admin-list-toolbar__filters {
  margin-bottom: 0;
  flex: 1 1 320px;
}

.admin-list-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.admin-list-toolbar__search {
  flex: 1 1 220px;
  min-width: 180px;
}

.admin-list-toolbar__search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  font-size: 16px;
  line-height: 1.2;
  border: 2px solid #d8e2ec;
  box-sizing: border-box;
}

.admin-list-toolbar__search-input:focus {
  border-color: var(--navy);
  outline: none;
}

.admin-list-toolbar__export {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
}

.admin-dwellings-index .admin-list-toolbar {
  align-items: center;
}

.admin-dwellings-index .admin-list-toolbar__filters,
.admin-dwellings-index .admin-list-toolbar__controls {
  display: flex;
  align-items: center;
}

.admin-dwellings-index__desktop {
  display: block;
}

.admin-dwellings-index__mobile {
  display: none;
}

.admin-dwellings-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-dwellings-cards__empty {
  margin: 0;
  padding: 24px 18px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.admin-dwellings-card__row {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

.admin-dwellings-card__row + .admin-dwellings-card__row {
  margin-top: 6px;
}

.admin-dwellings-card__label {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
}

.admin-dwellings-card--search-hidden {
  display: none !important;
}

.admin-table__col-center {
  text-align: center;
}

.admin-table__col-actions {
  text-align: right;
  white-space: nowrap;
}

.admin-table__action-btn {
  white-space: nowrap;
}

.admin-table--dwellings {
  table-layout: fixed;
  width: 100%;
}

.admin-table--dwellings th,
.admin-table--dwellings td {
  padding: 16px 22px;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-table--dwellings th:first-child,
.admin-table--dwellings td:first-child {
  padding-left: 24px;
}

.admin-table--dwellings th:last-child,
.admin-table--dwellings td:last-child {
  padding-right: 24px;
}

.admin-table--dwellings__col-team {
  width: 38%;
}

.admin-table--dwellings__col-email {
  width: 17rem;
}

.admin-table--dwellings__col-members {
  width: 7.75rem;
}

.admin-table--dwellings__col-status {
  width: 9rem;
}

.admin-table--dwellings__col-points {
  width: 5.5rem;
}

.admin-table--dwellings__col-actions {
  width: 9.75rem;
}

.admin-table--dwellings .admin-table__col-team,
.admin-table--dwellings .admin-table__col-email {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}

.admin-table--dwellings .admin-table__col-team strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table--dwellings .admin-table__col-members,
.admin-table--dwellings .admin-table__col-points {
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-left: 16px;
  padding-right: 16px;
}

.admin-table__col-status {
  padding-left: 22px;
  padding-right: 18px;
}

.admin-table__col-status .admin-badge {
  max-width: 100%;
}

.admin-table__col-actions {
  text-align: right;
  padding-left: 16px;
  padding-right: 24px;
}

.admin-table__sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.admin-table__sort:hover,
.admin-table__sort:focus-visible {
  color: var(--blue);
}

.admin-table__sort--active {
  color: var(--navy);
}

.admin-table__muted {
  color: #64748b;
  font-size: 0.9rem;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #d8e2ec;
}

.admin-pagination__info {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.admin-pagination__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 1);
}

.admin-pagination__btn:hover,
.admin-pagination__btn:focus-visible {
  background: #f4f7fa;
}

.admin-pagination__btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.admin-pagination__pages {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
  padding: 0 4px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  border: 2px solid;
  white-space: nowrap;
}

.admin-badge__text {
  line-height: 1.2;
}

.admin-badge--pending {
  color: #7a5b00;
  background: #fef3cd;
  border-color: var(--yellow);
}

.admin-badge--approved {
  color: #2d5a22;
  background: #e8f4e3;
  border-color: var(--green);
}

.admin-badge--rejected {
  color: #7a1f1f;
  background: #fde8e8;
  border-color: #c0392b;
}

.admin-badge--active {
  color: #2d5a22;
  background: #e8f4e3;
  border-color: var(--green);
}

.admin-badge--inactive {
  color: #4a5d73;
  background: #e8edf2;
  border-color: #9aa8b8;
}

.admin-badge--outline {
  background: var(--white);
  border-color: #9aa8b8;
  color: #4a5d73;
}

.admin-badge--none {
  color: #4a5d73;
  background: #f4f6f8;
  border-color: #c5ced8;
}

.admin-badge--muted {
  color: #444;
  background: var(--light-bg);
  border-color: #d8e2ec;
}

.admin-table-wrap {
  background: var(--white);
  border: 2px solid var(--navy);
  overflow-x: auto;
}

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

.admin-table-wrap--soft {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

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

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #d8e2ec;
}

.admin-table th {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
  background: var(--light-bg);
  border-bottom: 2px solid var(--navy);
}

.admin-table--soft th {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
}

.admin-table--soft td {
  border-bottom: 1px solid #eef2f6;
  padding: 14px 16px;
}

.admin-table--soft tbody tr:hover {
  background: #fafbfc;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table__empty {
  text-align: center;
  color: #555;
  padding: 32px 16px;
}

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

.admin-actions__form {
  margin: 0;
}

.admin-btn {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--navy);
  border-radius: 0;
  cursor: pointer;
  background: var(--white);
  color: var(--navy);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-mask-image: none;
  mask-image: none;
}

.admin-btn:hover,
.admin-btn:focus-visible {
  outline: none;
  transform: none;
  opacity: 1;
}

.admin-btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.admin-btn--primary:hover,
.admin-btn--primary:focus-visible {
  background: #006aab;
  border-color: #006aab;
}

.admin-btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.admin-btn--navy:hover,
.admin-btn--navy:focus-visible {
  background: #0f2238;
  border-color: #0f2238;
}

.admin-btn--success {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.admin-btn--success:hover,
.admin-btn--success:focus-visible {
  background: #3a7529;
  border-color: #3a7529;
}

.admin-btn--danger {
  background: #c0392b;
  border-color: #c0392b;
  color: var(--white);
}

.admin-btn--danger:hover,
.admin-btn--danger:focus-visible {
  background: #962d22;
  border-color: #962d22;
}

.admin-btn--block {
  width: 100%;
}

.admin-btn--is-disabled,
.admin-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.admin-table__title-cell {
  display: block;
  line-height: 1.4;
  word-break: break-word;
}

.admin-table__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.admin-table__title-row .admin-table__title-cell {
  display: inline;
}

.admin-page-title-row {
  align-items: center;
  margin-bottom: 8px;
}

.admin-page-title-row .admin-page-title {
  margin-bottom: 0;
}

.admin-table__muted {
  color: #777;
  font-size: 0.95rem;
}

.admin-table--challenges th:first-child,
.admin-table--challenges td:first-child {
  width: 50%;
  min-width: 200px;
}

.admin-btn-inline {
  width: auto;
  min-width: 0;
  font-size: 14px;
  padding: 8px 16px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.admin-dwelling-detail {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

.admin-dwelling-show-header {
  align-items: flex-start;
}

.admin-dwelling-show-header .admin-dwelling-header-actions {
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 6px;
}

.admin-dwelling-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  flex: 0 1 auto;
  max-width: 100%;
  padding-top: 0;
}

.admin-dwelling-header-actions__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-dwelling-header-actions__divider {
  width: 1px;
  height: 2rem;
  background: #d8e2ec;
  flex-shrink: 0;
}

.admin-dwelling-show-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.admin-card--dwelling-show {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 32px 32px;
}

.admin-card--dwelling-show .admin-card__head {
  margin-bottom: 0;
}

.admin-card--dwelling-show .admin-card__title {
  margin: 0;
}

.admin-card--dwelling-show .admin-form-hint,
.admin-card--dwelling-show .admin-dwelling-history__intro {
  margin: 0;
}

.admin-dwelling-data-grid--show {
  margin: 0;
}

.admin-detail-block--dwelling-show {
  margin: 0;
  padding: 24px 0 0;
}

.admin-dwelling-history {
  margin-top: 0;
}

.admin-magic-link-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -8px 0 24px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 2px solid var(--blue);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.admin-magic-link-bar__label {
  margin: 0;
}

.admin-magic-link-bar__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.admin-magic-link-bar__input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.admin-magic-link-bar__copy {
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-magic-link-bar__hint {
  margin: 0;
}

.admin-magic-link-access--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.admin-dwelling-detail__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.admin-dwelling-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.admin-dwelling-history {
  margin-top: 32px;
}

.admin-card--sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 28px 28px;
}

.admin-card--sidebar-panel .admin-card__title,
.admin-card--sidebar-panel .admin-form-hint {
  margin: 0;
}

.admin-card--sidebar-panel .admin-dwelling-status-summary {
  margin-bottom: 0;
}

.admin-card--sidebar-panel .admin-dwelling-actions {
  gap: 12px;
  margin: 0;
  padding-top: 4px;
}

.admin-card--magic-link {
  min-height: 100%;
}

.admin-magic-link-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 7.75rem;
}

.admin-magic-link-result__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.admin-magic-link-result__input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.admin-magic-link-result__input:placeholder-shown {
  color: #888;
}

.admin-magic-link-result__copy {
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-magic-link-result__copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-magic-link-access--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.admin-form-hint--spaced-sm {
  margin: 0;
}

.admin-dwelling-history__intro {
  margin: 0;
}

.admin-dwelling-data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 24px;
  margin: 0 0 24px;
}

@media (min-width: 640px) {
  .admin-dwelling-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-dwelling-data-grid__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-dwelling-data-grid__item dt {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  color: #5a6d82;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-dwelling-data-grid__item dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
  word-break: break-word;
}

.admin-dwelling-status-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-form-hint--spaced {
  margin-bottom: 16px;
}

.admin-table--compact th,
.admin-table--compact td {
  padding: 12px 14px;
}

.admin-meta-list {
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.admin-meta-list__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  align-items: baseline;
}

.admin-meta-list dt {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
}

.admin-meta-list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.admin-detail-block {
  margin-bottom: 24px;
  padding: 16px 0 0;
  border-top: 1px solid #d8e2ec;
}

.admin-detail-block__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.admin-detail-block__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.admin-detail-block__muted {
  margin: 0;
  color: #555;
}

.admin-file-list,
.admin-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.admin-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.admin-evidence-thumb {
  display: block;
  border: 2px solid #d8e2ec;
  background: var(--light-bg);
  text-decoration: none;
  color: var(--navy);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.admin-evidence-thumb:hover,
.admin-evidence-thumb:focus-visible {
  border-color: var(--navy);
  outline: none;
}

.admin-evidence-thumb__media {
  position: relative;
  display: block;
  overflow: hidden;
}

.admin-evidence-thumb__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 44, 70, 0.62);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.admin-evidence-thumb:hover .admin-evidence-thumb__overlay,
.admin-evidence-thumb:focus-visible .admin-evidence-thumb__overlay {
  opacity: 1;
}

.admin-evidence-thumb__zoom {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
  padding: 8px 14px;
  border: 2px solid var(--white);
  background: transparent;
}

.admin-evidence-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #dfe5ec;
}

.admin-evidence-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 14px;
  min-height: 148px;
  border: 2px solid #d8e2ec;
  background: var(--light-bg);
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.admin-evidence-pdf:hover,
.admin-evidence-pdf:focus-visible {
  border-color: var(--navy);
  background: #e8edf2;
  outline: none;
}

.admin-evidence-pdf__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
}

.admin-evidence-pdf__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-evidence-pdf__action {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: underline;
}

.admin-evidence-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  min-height: 148px;
  border: 2px solid #d8e2ec;
  background: var(--white);
  text-decoration: none;
  color: var(--navy);
}

.admin-evidence-file__name {
  font-size: 0.8rem;
  font-weight: 600;
  word-break: break-word;
  text-align: center;
}

.admin-evidence-file__action {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
}

.admin-file-list a,
.admin-link-list a {
  display: block;
  padding: 10px 14px;
  background: var(--light-bg);
  border: 2px solid #d8e2ec;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  word-break: break-word;
}

.admin-file-list a:hover,
.admin-link-list a:hover,
.admin-file-list a:focus-visible,
.admin-link-list a:focus-visible {
  border-color: var(--navy);
}

.admin-feedback-preview {
  margin-top: 8px;
  padding: 16px;
  background: #f4f7f9;
  border: 2px solid #d8e2ec;
}

.admin-review-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}

.admin-form-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #555;
}

.admin-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--navy);
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--black);
}

.admin-form-control:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.admin-form-control--textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.admin-form-control--select,
.admin-panel select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 42px 12px 16px;
  border: 2px solid var(--navy);
  border-radius: 0;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23142c46' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
}

.admin-custom-select {
  position: relative;
  width: 100%;
}

.admin-custom-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--navy);
  border-radius: 0;
  background: var(--white);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.admin-custom-select__trigger:hover,
.admin-custom-select__trigger:focus-visible {
  background: #f8fafc;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.admin-custom-select__value {
  flex: 1;
  min-width: 0;
}

.admin-custom-select__arrow {
  flex-shrink: 0;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23142c46' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px 8px;
}

.admin-custom-select__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 2px solid var(--navy);
  background: var(--white);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
}

.admin-custom-select__menu[hidden] {
  display: none;
}

.admin-custom-select__option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #d8e2ec;
  background: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.admin-custom-select__option:last-child {
  border-bottom: 0;
}

.admin-custom-select__option:hover,
.admin-custom-select__option:focus-visible,
.admin-custom-select__option--selected {
  background: #f4f7fa;
  outline: none;
}

.admin-custom-select.is-open .admin-custom-select__trigger {
  background: #f8fafc;
}

.admin-btn--track {
  letter-spacing: 0.03em;
}

.admin-dwelling-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-link-list--plain {
  list-style: disc;
  padding-left: 1.25rem;
}

.admin-link-list--plain a {
  color: inherit;
  text-decoration: none;
}

.admin-form-control--select:focus,
.admin-panel select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  background-color: var(--white);
}

.admin-panel select option,
.admin-form-control--select option {
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 400;
}

.admin-points-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-login-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--white);
  border: 2px solid var(--navy);
}

.admin-login-card--wide {
  max-width: 560px;
}

.auth-access-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.95rem;
}

.auth-access-footer__link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-access-footer__link:hover {
  color: var(--green);
}

@media (min-width: 769px) {
  .admin-dwellings-index__desktop {
    display: block;
  }

  .admin-dwellings-index__mobile {
    display: none !important;
  }

  .admin-panel__header-desktop {
    display: block;
  }

  .admin-panel__header-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .admin-dwellings-index {
    padding-inline: 0;
  }

  .admin-dwellings-index .admin-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .admin-dwellings-index .admin-list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .admin-dwellings-index .admin-list-toolbar__filters,
  .admin-dwellings-index .admin-list-toolbar__controls {
    flex: 0 0 auto;
    width: 100%;
  }

  .admin-dwellings-index .admin-list-toolbar__filters {
    min-width: 0;
    align-items: stretch;
  }

  .admin-dwellings-index .admin-list-toolbar__filters .admin-filters--scroll-x {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0;
    gap: 8px;
    padding-bottom: 2px;
  }

  .admin-dwellings-index .admin-list-toolbar__filters .admin-filter {
    width: auto;
    flex-shrink: 0;
    text-align: center;
  }

  .admin-dwellings-index .admin-list-toolbar__controls {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    gap: 10px;
  }

  .admin-dwellings-index .admin-list-toolbar__search,
  .admin-dwellings-index .admin-list-toolbar__export {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .admin-dwellings-index .admin-list-toolbar__export {
    justify-content: center;
  }

  .admin-dwellings-index__desktop {
    display: none !important;
  }

  .admin-dwellings-index__mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .admin-dwellings-index .admin-dwelling-card__footer {
    justify-content: stretch;
    padding-top: 8px;
  }

  .admin-dwellings-index .admin-dwelling-card__footer .admin-btn {
    width: 100%;
    text-align: center;
  }

  .admin-dwellings-index .admin-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-dwellings-index .admin-pagination__nav {
    justify-content: space-between;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-list-toolbar__filters,
  .admin-list-toolbar__controls {
    flex: 0 0 auto;
    width: 100%;
  }

  .admin-list-toolbar__controls {
    justify-content: stretch;
  }

  .admin-list-toolbar__search,
  .admin-list-toolbar__export {
    flex: 1 1 100%;
    width: 100%;
  }

  .admin-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-pagination__nav {
    justify-content: space-between;
  }

  .admin-panel__header-desktop {
    display: none !important;
  }

  .admin-panel__header-mobile {
    display: block;
    position: relative;
  }

  .admin-panel__header-mobile .admin-panel__header-left {
    flex: 1;
    justify-content: space-between;
    width: 100%;
  }

  .admin-panel__mobile-drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.3s ease-in-out,
      opacity 0.25s ease-in-out,
      visibility 0.3s ease-in-out;
  }

  .admin-panel__mobile-drawer.is-open {
    max-height: min(80vh, 520px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .admin-panel__mobile-drawer-inner {
    padding-top: 4px;
    padding-bottom: 16px;
    overflow: visible;
  }

  .admin-panel__mobile-footer {
    display: block;
    flex-shrink: 0;
    width: 100%;
    margin-top: 8px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    box-sizing: border-box;
  }

  .admin-panel__mobile-footer .admin-panel__logout-form {
    width: 100%;
    margin: 0;
  }

  .admin-panel__mobile-drawer .admin-panel__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 0;
    box-sizing: border-box;
  }

  .admin-panel__mobile-drawer .admin-panel__nav-link {
    display: block;
    width: 100vw;
    max-width: none;
    box-sizing: border-box;
    text-align: left;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--white);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 12px calc(50vw - 50%);
    border: none;
    border-radius: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .admin-panel__mobile-drawer .admin-panel__nav-link:hover,
  .admin-panel__mobile-drawer .admin-panel__nav-link:focus-visible {
    color: var(--white);
    background: rgba(30, 41, 59, 0.5);
  }

  .admin-panel__mobile-drawer .admin-panel__nav-link--active {
    color: var(--navy);
    background: var(--white);
    font-weight: 900;
  }

  body.admin-panel--menu-open {
    overflow: hidden;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-stat-card {
    min-height: 0;
    padding: 18px 16px;
  }

  .admin-dashboard-pending__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .admin-pending-panel {
    padding: 16px 14px;
  }

  .admin-quick-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }

  .admin-quick-strip__actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .admin-quick-strip__actions .admin-btn {
    width: 100%;
    text-align: center;
  }

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

  .admin-meta-list__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .admin-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
  }

  .admin-table-wrap--soft {
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-table tr {
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid var(--navy);
    background: var(--white);
  }

  .admin-table-wrap--soft .admin-table tr {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  }

  .admin-table tr:last-child {
    margin-bottom: 0;
  }

  .admin-table td {
    padding: 6px 0;
    border: none;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    color: #5a6d82;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .admin-table td:empty::before,
  .admin-table td[data-label=""]::before {
    display: none;
  }

  .admin-table td.admin-table__empty {
    text-align: center;
    border: 2px solid var(--navy);
    background: var(--white);
    padding: 24px 16px;
  }

  .admin-table td.admin-table__empty::before {
    display: none;
  }

  .admin-table--dwellings th,
  .admin-table--dwellings td {
    white-space: normal;
  }

  .admin-table--dwellings .admin-table__col-team,
  .admin-table--dwellings .admin-table__col-email {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }

  .admin-table--dwellings .admin-table__col-team strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .admin-table--dwellings .admin-table__col-actions {
    white-space: normal;
  }

  .admin-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .admin-actions .admin-btn {
    width: 100%;
    text-align: center;
  }

  .admin-card {
    padding: 20px 16px;
  }

  .admin-login-card {
    padding: 24px 20px;
  }

  .admin-quick-actions {
    flex-direction: column;
  }

  .admin-quick-actions .admin-btn-inline {
    width: 100%;
    text-align: center;
  }

  .admin-page-header--with-actions .admin-page-header__action {
    width: 100%;
    text-align: center;
  }

  .admin-dwelling-show-header .admin-dwelling-header-actions {
    width: 100%;
    padding-top: 0;
  }

  .admin-dwelling-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
  }

  .admin-dwelling-header-actions__group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-dwelling-header-actions__group .admin-btn,
  .admin-dwelling-header-actions__group .admin-actions__form {
    width: 100%;
  }

  .admin-dwelling-header-actions__group .admin-actions__form .admin-btn {
    width: 100%;
    text-align: center;
  }

  .admin-dwelling-header-actions__divider {
    display: none;
  }

  .admin-magic-link-bar__row {
    flex-direction: column;
  }

  .admin-magic-link-bar__copy {
    width: 100%;
    text-align: center;
  }

  .admin-card--dwelling-show {
    padding: 20px 18px 24px;
    gap: 20px;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-dwelling-detail {
    grid-template-columns: 1fr;
  }

  .admin-dwelling-data-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .admin-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form-footer__actions {
    width: 100%;
  }

  .admin-form-footer__actions .admin-btn {
    width: 100%;
    text-align: center;
  }

  .admin-submissions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .admin-dwelling-card {
    padding: 16px 18px;
  }

  .admin-dwelling-card__footer .admin-btn {
    width: 100%;
    text-align: center;
  }

  .admin-challenge-header__badges {
    padding-top: 0;
  }

  .admin-form-actions .admin-btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .admin-submissions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

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

.admin-panel--superadmin .app-shell__banner {
  background: #5c1a1a;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* App shell — barra superior (logo + sesión) + menú inferior */
.app-shell__header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-shell__topbar {
  background: var(--navy);
  color: var(--white);
}

.app-shell__topbar .section-cut {
  --section-cut-height: 5px;
  height: 5px;
}

.app-shell__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.app-shell__brand {
  display: block;
  min-width: 0;
  line-height: 0;
  flex-shrink: 0;
}

.app-shell__brand img {
  display: block;
  width: min(100%, 180px);
  height: auto;
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
}

.app-shell__topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.app-shell__greeting {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.app-shell__greeting-name {
  font-weight: 700;
}

.app-shell__profile-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.app-shell__profile-link:hover,
.app-shell__profile-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  outline: none;
}

.app-shell__logout-form {
  margin: 0;
  display: flex;
  align-items: center;
}

.app-shell__logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  color: #ffb4b0;
  background: transparent;
  padding: 4px 2px;
  border-radius: 0;
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.app-shell__logout-icon {
  display: block;
  flex-shrink: 0;
}

.app-shell__logout-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-shell__logout-btn:hover,
.app-shell__logout-btn:focus-visible {
  background: transparent;
  border: none;
  color: #ffd6d3;
  outline: none;
}

.app-shell__logout-btn:hover .app-shell__logout-icon,
.app-shell__logout-btn:focus-visible .app-shell__logout-icon {
  opacity: 0.9;
}

.app-shell__nav-shell {
  background: var(--white);
  border-bottom: 2px solid var(--navy);
}

.app-shell__nav-bar--mobile {
  display: none;
}

.app-shell__nav-bar-inner {
  padding: 0;
}

.app-shell__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.app-shell__nav-link {
  display: inline-block;
  padding: 12px 16px;
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--navy);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.app-shell__nav-link:hover,
.app-shell__nav-link:focus-visible {
  color: var(--navy);
  background: #eef3f8;
  outline: none;
}

.app-shell__nav-link--active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  font-weight: 700;
}

.app-shell__menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font-nav);
  font-size: 0.9rem;
  font-weight: 600;
}

.app-shell__menu-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.app-shell__menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: center;
}

.app-shell__menu-toggle.is-open .app-shell__menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.app-shell__menu-toggle.is-open .app-shell__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.app-shell__menu-toggle.is-open .app-shell__menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.app-shell__menu-toggle-label {
  line-height: 1;
}

.app-shell__nav-bar-inner--mobile {
  padding: 10px 0;
}

.app-shell__mobile-drawer {
  display: none;
}

body.app-shell--menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .app-shell__topbar-inner {
    padding: 4px 0;
  }

  .app-shell__brand img {
    width: min(100%, 140px);
    max-height: 24px;
  }

  .app-shell__greeting {
    font-size: 0.75rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-shell__profile-link {
    max-width: 120px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .app-shell__logout-btn {
    padding: 4px 2px;
    font-size: 0.75rem;
  }

  .app-shell__logout-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .app-shell__nav-bar--desktop {
    display: none;
  }

  .app-shell__nav-bar--mobile {
    display: block;
    position: relative;
  }

  .app-shell__mobile-drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--white);
    border-top: 1px solid #d8e2ec;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.3s ease-in-out,
      opacity 0.25s ease-in-out,
      visibility 0.3s ease-in-out;
  }

  .app-shell__mobile-drawer.is-open {
    max-height: min(70vh, 420px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
  }

  .app-shell__mobile-drawer-inner {
    padding: 8px 0 16px;
  }

  .app-shell__mobile-drawer .app-shell__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .app-shell__mobile-drawer .app-shell__nav-link {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.admin-page-header--toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.admin-inline-form {
  display: inline;
}

.admin-form-fieldset {
  border: 2px solid var(--color-border, #d5dde6);
  padding: 16px;
  margin: 24px 0;
}

.admin-form-legend {
  font-weight: 700;
  padding: 0 8px;
}

.admin-form-hint {
  font-size: 0.85rem;
  color: #5a6472;
  margin-top: 6px;
}

.admin-alert__list {
  margin: 0;
  padding-left: 1.25rem;
}

.home-access__bar {
  background: var(--color-navy, #142c46);
  color: #fff;
  padding: 28px 0 32px;
}

.home-access__inner {
  display: grid;
  gap: 20px;
  align-items: end;
}

.home-access__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.home-access__intro {
  margin: 0;
  font-size: 1rem;
  opacity: 0.92;
  max-width: 36rem;
}

.home-access__form {
  width: 100%;
}

.home-access__alert {
  margin-bottom: 12px;
}

.home-access__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.home-access__field {
  flex: 1 1 220px;
  margin: 0;
}

.home-access__field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #142c46;
  border-radius: 4px;
  font-size: 1rem;
}

.home-access__submit {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero__access-cta {
  display: inline-block;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .home-access__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: center;
  }
}