#transit-wheel{max-width:1000px;margin:12px auto 30px}
.transit-legend{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:.8rem;margin:20px 0}
.transit-legend>span:first-child{color:var(--ink)}
.transit-legend>span:nth-child(2){color:#326a80}
.transit-legend label{display:flex;align-items:center;gap:8px;margin-left:auto}
.transit-ring{fill:none;stroke:#8caebc;stroke-width:1}
.transit-degree{fill:none;stroke:#326a80;stroke-width:1.5}
.transit-planet .planet-glyph,.transit-planet .planet-position{fill:#326a80}
.transit-planet .planet-position{font-size:11px}
@media(max-width:700px){.transit-legend label{margin-left:0}.transit-legend{gap:12px}}

/* =========================================================
   TRÁNSITOS · DISEÑO COMPACTO
   ========================================================= */

/* Formulario de tránsitos */
#transit-form {
  padding: 16px 18px !important;
}

#transit-form h2 {
  font-size: 1.35rem !important;
  line-height: 1.1 !important;
  margin: 0 0 12px !important;
}

#transit-form h2:not(:first-child) {
  margin-top: 20px !important;
}

/* Campos */
#transit-form .field {
  margin-bottom: 10px !important;
}

#transit-form .field label {
  font-size: 0.78rem !important;
  margin-bottom: 4px !important;
}

#transit-form input,
#transit-form select {
  height: 36px !important;
  min-height: 36px !important;
  padding: 5px 8px !important;
  font-size: 0.84rem !important;
}

/* Zona horaria */
#transit-timezone {
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
  margin: 8px 0 12px !important;
}

/* Botón */
#calculate-transits {
  min-height: 36px !important;
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
}

/* Panel de espera */
#transit-form + .natal-awaiting {
  min-height: 220px !important;
  font-size: 0.82rem !important;
}

/* Resultado */
#transit-result {
  margin-top: 28px !important;
}

#transit-result > h2 {
  font-size: 1.55rem !important;
  margin-bottom: 6px !important;
}

#transit-result h3 {
  font-size: 1.05rem !important;
}

/* Leyenda */
.transit-legend {
  font-size: 0.76rem !important;
  gap: 14px !important;
  padding: 10px 0 !important;
}

.transit-legend label {
  font-size: 0.76rem !important;
}

/* Rueda de tránsitos */
#transit-wheel {
  width: 100%;
  max-width: 560px !important;
  margin: 18px auto !important;
}

#transit-wheel svg {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Bloques de información */
#transit-result .natal-block {
  padding: 14px !important;
  margin-top: 16px !important;
}

/* Tablas */
#transit-result .natal-table {
  font-size: 0.78rem !important;
}

#transit-result .natal-table th,
#transit-result .natal-table td {
  padding: 6px 8px !important;
}

/* Textos secundarios */
#transit-result .natal-detail,
#transit-result p {
  font-size: 0.82rem;
  line-height: 1.45;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 901px) {

  #transit-form {
    max-width: 320px !important;
  }

  #transit-form + .natal-awaiting {
    min-height: 240px !important;
  }

  #transit-wheel {
    max-width: 520px !important;
  }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

  #transit-form {
    padding: 15px !important;
  }

  #transit-form h2 {
    font-size: 1.25rem !important;
  }

  #transit-form h2:not(:first-child) {
    margin-top: 17px !important;
  }

  #transit-form input,
  #transit-form select {
    height: 38px !important;
    min-height: 38px !important;

    /* Evita zoom automático en iPhone */
    font-size: 16px !important;
  }

  #calculate-transits {
    width: 100%;
    height: 38px !important;
  }

  #transit-form + .natal-awaiting {
    min-height: 110px !important;
    margin-top: 15px;
  }

  .transit-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px !important;
    font-size: 0.72rem !important;
  }

  #transit-wheel {
    max-width: 100% !important;
    margin: 12px auto !important;
  }

  #transit-result .natal-block {
    padding: 12px !important;
  }

  #transit-result .natal-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #transit-result .natal-table {
    font-size: 0.72rem !important;
  }

  #transit-result .natal-table th,
  #transit-result .natal-table td {
    padding: 6px !important;
    white-space: nowrap;
  }
}